Compare commits

...
91 Commits
Author SHA1 Message Date
bot-githubaction 5e2ebd065d [bot] Update dist directory 2026-06-10 01:07:29 +00:00
Daz DeBoerandClaude Opus 4.8 9e2c1cc01d Resolve npm security vulnerabilities via dependency overrides (#980)
## What

Adds `overrides` to `sources/package.json` to force patched versions of
transitively-pulled packages flagged by Dependabot, plus one moderate
issue surfaced by `npm audit`:

| Package | Severity | Patched to | Pulled in via |
|---|---|---|---|
| `shell-quote` | Critical | 1.8.4 | `npm-run-all` |
| `fast-xml-builder` | High | 1.2.0 | `@actions/artifact` →
`@azure/storage-blob` → `@azure/core-xml` → `fast-xml-parser` |
| `fast-xml-parser` | Medium | 5.8.0 | `@actions/artifact` →
`@azure/storage-blob` → `@azure/core-xml` |
| `brace-expansion` | Moderate | 5.0.6 | `eslint` |

## Notes

- All four are **transitive** dependencies, so they're pinned via the
existing `overrides` block rather than direct version bumps.
- The patched versions satisfy the parents' declared ranges (e.g.
`@azure/core-xml` requires `fast-xml-parser ^5.0.7`; `fast-xml-parser`
5.8.0 requires `fast-xml-builder ^1.2.0`), so nothing is
force-downgraded or broken.
- `brace-expansion` is **scoped under `eslint`** rather than a blanket
override — most copies in the tree were already on the patched 5.0.6,
and only `eslint`'s was stuck at the vulnerable 5.0.5. A global override
would have forced unrelated 1.x/2.x copies up a major version.

## Verification

- `npm audit` → **0 vulnerabilities**
- `npm ci` → clean install, 0 vulnerabilities
- `npm test` → **352 passed, 14 suites**

The root `dist/` directory is intentionally left for the CI workflow to
update.

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

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 19:06:38 -06:00
bot-githubaction 657f690528 [bot] Update dist directory 2026-06-10 00:10:45 +00:00
Daz DeBoerandClaude Opus 4.8 9d6bacde37 Update @actions/cache and @actions/artifact, stop ignoring them in Dependabot (#978)
## What

- Bumps `@actions/cache` 6.0.0 → 6.0.1
- Bumps `@actions/artifact` 6.1.0 → 6.2.1
- Removes the Dependabot `ignore` rules for both so they're maintained
automatically going forward

## Why

Both deps were excluded from Dependabot's automatic updates:
`*actions/cache*` was fully ignored, and `*actions/artifact*` had
major/minor bumps ignored. Neither restriction is necessary.

The `cache` ignore existed out of concern for keeping versions aligned
with the vendored `gradle-actions-caching` library. That alignment isn't
required:

- The vendored bundle (`sources/vendor/gradle-actions-caching/index.js`)
**inlines** its own (patched) `@actions/cache` and exposes a type-clean
API (`restore`/`save`) that never leaks `@actions/cache` types across
the boundary.
- This repo's own direct `@actions/cache` usage is a **separate,
unpatched copy** consumed via the stock string-returning API
(`cache-service-basic.ts`, `provision.ts`), with no
`patch-package`/`postinstall` in this repo.

So there's no cross-repo sync requirement — these can be updated like
any other dependency.

## Verification

- `npm install --package-lock-only` regenerated the lockfile (resolves
cache 6.0.1, artifact 6.2.1)
- `./build` passes clean

The root `dist/` directory is intentionally left for the CI workflow to
update.

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

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 18:10:02 -06:00
bot-githubaction 79f6b196a7 [bot] Update dist directory 2026-06-09 18:59:33 +00:00
dependabot[bot] 6781648d2b Bump the npm-dependencies group in /sources with 5 updates (#977)
Bumps the npm-dependencies group in /sources with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [semver](https://github.com/npm/node-semver) | `7.8.1` | `7.8.3` |
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `25.9.1` | `25.9.2` |
|
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
| `8.59.4` | `8.61.0` |
| [eslint](https://github.com/eslint/eslint) | `10.4.0` | `10.4.1` |
| [prettier](https://github.com/prettier/prettier) | `3.8.3` | `3.8.4` |

Updates `semver` from 7.8.1 to 7.8.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/releases">semver's
releases</a>.</em></p>
<blockquote>
<h2>v7.8.3</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.2...v7.8.3">7.8.3</a>
(2026-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/872">#872</a>
align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)
(<a
href="https://github.com/wayyoungboy"><code>@​wayyoungboy</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/866">#866</a>
bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
</ul>
<h2>v7.8.2</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.2">7.8.2</a>
(2026-06-04)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/870">#870</a>
increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)
(<a href="https://github.com/liuzemei"><code>@​liuzemei</code></a>, <a
href="https://github.com/SheldonNeo"><code>@​SheldonNeo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/blob/main/CHANGELOG.md">semver's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.2...v7.8.3">7.8.3</a>
(2026-06-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/872">#872</a>
align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)
(<a
href="https://github.com/wayyoungboy"><code>@​wayyoungboy</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/866">#866</a>
bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot])</li>
</ul>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.2">7.8.2</a>
(2026-06-04)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/870">#870</a>
increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)
(<a href="https://github.com/liuzemei"><code>@​liuzemei</code></a>, <a
href="https://github.com/SheldonNeo"><code>@​SheldonNeo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/6b77aa84a648a4b54ea32a21e6db60ebd54d5040"><code>6b77aa8</code></a>
chore: release 7.8.3 (<a
href="https://redirect.github.com/npm/node-semver/issues/873">#873</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/3485ddadb2ca0d0691392ee5ce620072e1b1e040"><code>3485dda</code></a>
chore: bump <code>@​npmcli/eslint-config</code> from 6.0.1 to 7.0.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/866">#866</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/046da7f527cc72a482b5dea8cb59392be65bf186"><code>046da7f</code></a>
fix: align caret includePrerelease lower bounds (<a
href="https://redirect.github.com/npm/node-semver/issues/872">#872</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/efafcf8d029faa3d1ab74b5ec98d620112af859d"><code>efafcf8</code></a>
chore: release 7.8.2 (<a
href="https://redirect.github.com/npm/node-semver/issues/871">#871</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/bea6028694a75e840f48b288ac019e9644cfe6e8"><code>bea6028</code></a>
fix: increment dotted prerelease identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/870">#870</a>)</li>
<li>See full diff in <a
href="https://github.com/npm/node-semver/compare/v7.8.1...v7.8.3">compare
view</a></li>
</ul>
</details>
<br />

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

Updates `@typescript-eslint/eslint-plugin` from 8.59.4 to 8.61.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.61.0</h2>
<h2>8.61.0 (2026-06-08)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>ast-spec:</strong> change type of
<code>UnaryExpression.prefix</code> to always <code>true</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12372">#12372</a>)</li>
<li><strong>ast-spec:</strong> tighten types of
<code>ArrowFunction</code>, <code>YieldExpression</code>,
<code>TSTypePredicate</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12373">#12373</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>rule-schema-to-typescript-types:</strong> respect ECMAScript
line terminators (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12374">#12374</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
<li>lumir</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.61.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>
<h2>v8.60.1</h2>
<h2>8.60.1 (2026-06-01)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> respect ECMAScript line terminators
in ts-comment rules (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12352">#12352</a>)</li>
<li><strong>eslint-plugin:</strong> [no-shadow] correct rule to match
ESLint v10 handling (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12182">#12182</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>lumir</li>
<li>Nevette Bailey <a
href="https://github.com/nevette-bailey"><code>@​nevette-bailey</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.1">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>
<h2>v8.60.0</h2>
<h2>8.60.0 (2026-05-25)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>rule-tester:</strong> added updates of RuleTester from
upstream (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12291">#12291</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li>playground TS version selector is not working (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12326">#12326</a>,
<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/issues/12325">#12325</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</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.61.0 (2026-06-08)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>ast-spec:</strong> change type of
<code>UnaryExpression.prefix</code> to always <code>true</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12372">#12372</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.61.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>
<h2>8.60.1 (2026-06-01)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-shadow] correct rule to match
ESLint v10 handling (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12182">#12182</a>)</li>
<li><strong>eslint-plugin:</strong> respect ECMAScript line terminators
in ts-comment rules (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12352">#12352</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>lumir</li>
<li>Nevette Bailey <a
href="https://github.com/nevette-bailey"><code>@​nevette-bailey</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.1">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>
<h2>8.60.0 (2026-05-25)</h2>
<p>This was a version bump only for eslint-plugin to align it with other
projects, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.60.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/16a5b247affc32af21b695cf96dfd75d7ded50a3"><code>16a5b24</code></a>
chore(release): publish 8.61.0</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ef1fd28c68b10da2e5b56823da8491f10f2c2b97"><code>ef1fd28</code></a>
feat(ast-spec): change type of <code>UnaryExpression.prefix</code> to
always <code>true</code> (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12">#12</a>...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/4f84a697aedc436559c3ae09b5b357d98b448d68"><code>4f84a69</code></a>
chore(release): publish 8.60.1</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/598af564db50593277ba46c7fdea3648e4425391"><code>598af56</code></a>
docs(eslint-plugin): clarify no-redeclare type-value collision not
covered by...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/1849b530c254fb4f89d7270160f3a998e4acd964"><code>1849b53</code></a>
chore: typecheck using tsgo (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12139">#12139</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/5341d59dd3c21fc4e2bf3bce55cf35d8f84e5216"><code>5341d59</code></a>
chore: fix lint issues (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12369">#12369</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/f525814f01766487ab34a54d56de20ea5c4fb576"><code>f525814</code></a>
fix(eslint-plugin): [no-shadow] correct rule to match ESLint v10
handling (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/1">#1</a>...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2df540cd8bbeb3e2c56d516912f69bf63c1e9450"><code>2df540c</code></a>
chore(eslint-plugin): defer type checks to improve rules performance (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12296">#12296</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/1ab4284789b36cf482a4d9924719162a02d54243"><code>1ab4284</code></a>
fix(eslint-plugin): respect ECMAScript line terminators in ts-comment
rules (...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2f49df599b2db5f2937caf975d3c63e5cdeb0ea1"><code>2f49df5</code></a>
docs: update references to <code>@stylistic/eslint-plugin</code> rules
in documentation ...</li>
<li>Additional commits viewable in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.61.0/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.4.0 to 10.4.1
<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.4.1</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/e557467db7496220eebcbe2ac5ea6d38c12bb1ec"><code>e557467</code></a>
fix: update <code>@eslint/plugin-kit</code> version to 0.7.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20930">#20930</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d4ce898796ca22c3b96aa70d3014cb85f4bac1cd"><code>d4ce898</code></a>
fix: propagate failures from delegated commands (<a
href="https://redirect.github.com/eslint/eslint/issues/20917">#20917</a>)
(Minh Vu)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f4f3507460bc016b5be979c05d2969793f570cbf"><code>f4f3507</code></a>
fix: prefer-arrow-callback invalid autofix with newline after
<code>async</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20916">#20916</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c5bc78b37e08b9054a11f0cc2d81808bb24acb85"><code>c5bc78b</code></a>
fix: false positive for reference in <code>finally</code> block (<a
href="https://redirect.github.com/eslint/eslint/issues/20655">#20655</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/27538c01f5df4e9306f6f4ba867b2dd6307fae59"><code>27538c0</code></a>
fix: add missing CodePath and CodePathSegment types (<a
href="https://redirect.github.com/eslint/eslint/issues/20853">#20853</a>)
(Pixel998)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/61b0add61ffc52665562be7bb96f526690a78b30"><code>61b0add</code></a>
docs: remove deprecated rule from related rules of
<code>max-params</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20921">#20921</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/305d5b91aeac24d36fde42f75625a8f183d4ce43"><code>305d5b9</code></a>
docs: remove deprecated rules from related rules section (<a
href="https://redirect.github.com/eslint/eslint/issues/20911">#20911</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/49b0202d01918b8061720d586dffd7c68047090c"><code>49b0202</code></a>
docs: fix <code>display: none</code> of ad (<a
href="https://redirect.github.com/eslint/eslint/issues/20901">#20901</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9067f9492ec998afc5b4f057a477ecf6ebd45e44"><code>9067f94</code></a>
docs: switch build to Node.js 24 (<a
href="https://redirect.github.com/eslint/eslint/issues/20893">#20893</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/c91b0417e3420c76807ce1fa2aea76e2de87ab86"><code>c91b041</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e349265cb37f3ebc837e178e48a725bb782bd870"><code>e349265</code></a>
docs: clarify semver strings in rule deprecation objects (<a
href="https://redirect.github.com/eslint/eslint/issues/20885">#20885</a>)
(Milos Djermanovic)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/b0e466b6ab47bfc7de43d8de0c315d8ee83aa584"><code>b0e466b</code></a>
test: add <code>data</code> property to invalid tests cases for rules
(<a
href="https://redirect.github.com/eslint/eslint/issues/20924">#20924</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f78838bc4c86d487e1bcc7cede260c4467721c46"><code>f78838b</code></a>
test: add CodePath type coverage (<a
href="https://redirect.github.com/eslint/eslint/issues/20904">#20904</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1daa4bd734b79a62e317d0394394a6b38cff49f9"><code>1daa4bd</code></a>
chore: update <code>eslint-plugin-eslint-comments</code> test data to
latest commit (<a
href="https://redirect.github.com/eslint/eslint/issues/20922">#20922</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/002942ce988ea28b78e0a2f3b074081e638b552c"><code>002942c</code></a>
ci: declare contents:read on update-readme workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/20919">#20919</a>)
(Arpit Jain)</li>
<li><a
href="https://github.com/eslint/eslint/commit/64bca24e7bed35bc3c864fc625cb2d89eca87d5b"><code>64bca24</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20912">#20912</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6d7c832950d5e92499d88e504080661f888f8f56"><code>6d7c832</code></a>
chore: ignore fflate updates in renovate (<a
href="https://redirect.github.com/eslint/eslint/issues/20908">#20908</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b2c86382164d87c6203b78d52068cd6a2a6ffe30"><code>b2c8638</code></a>
ci: bump pnpm/action-setup from 6.0.7 to 6.0.8 (<a
href="https://redirect.github.com/eslint/eslint/issues/20889">#20889</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/a9b8d7f74c50211701cfc49710fa541fd91b2aa5"><code>a9b8d7f</code></a>
chore: increase maxBuffer for ecosystem tests (<a
href="https://redirect.github.com/eslint/eslint/issues/20881">#20881</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b702ead5e1ed7cb9f28238a454797662efb37396"><code>b702ead</code></a>
chore: update ecosystem update PR settings (<a
href="https://redirect.github.com/eslint/eslint/issues/20884">#20884</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/507f60e9a78c9a902bc8759f066ae17a1ea6cd81"><code>507f60e</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20882">#20882</a>)
(ESLint Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/92f5c5bb6bf3a5d167c8ee53a430833410295c6d"><code>92f5c5b</code></a>
test: add unit test for message-count (<a
href="https://redirect.github.com/eslint/eslint/issues/20878">#20878</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/df321080af5758b1fa25e4b9a40e26135642dd6e"><code>df32108</code></a>
chore: add <code>@​eslint/markdown</code> and typescript-eslint
ecosystem tests (<a
href="https://redirect.github.com/eslint/eslint/issues/20837">#20837</a>)
(sethamus)</li>
<li><a
href="https://github.com/eslint/eslint/commit/327f91d36aa49f2a50ded931d841a16374fd875f"><code>327f91d</code></a>
chore: use includeIgnoreFile internally (<a
href="https://redirect.github.com/eslint/eslint/issues/20876">#20876</a>)
(Kirk Waiblinger)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f0dc4bd893fb3a9f44e4ddc3ad7063ffb0beacd3"><code>f0dc4bd</code></a>
chore: pin fflate@0.8.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20877">#20877</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0f4bd257a67a082b756de746d9e0c4842ab764ca"><code>0f4bd25</code></a>
ci: run Discord alert for ecosystem test failures (<a
href="https://redirect.github.com/eslint/eslint/issues/20873">#20873</a>)
(Copilot)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/4a3d15a99c452c4db2fd56b577fa7597e98ab0c2"><code>4a3d15a</code></a>
10.4.1</li>
<li><a
href="https://github.com/eslint/eslint/commit/43e7e2bdc5c6cacc535446b7d23c10f780384ba8"><code>43e7e2b</code></a>
Build: changelog update for 10.4.1</li>
<li><a
href="https://github.com/eslint/eslint/commit/e557467db7496220eebcbe2ac5ea6d38c12bb1ec"><code>e557467</code></a>
fix: update <code>@eslint/plugin-kit</code> version to 0.7.2 (<a
href="https://redirect.github.com/eslint/eslint/issues/20930">#20930</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/b0e466b6ab47bfc7de43d8de0c315d8ee83aa584"><code>b0e466b</code></a>
test: add <code>data</code> property to invalid tests cases for rules
(<a
href="https://redirect.github.com/eslint/eslint/issues/20924">#20924</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d4ce898796ca22c3b96aa70d3014cb85f4bac1cd"><code>d4ce898</code></a>
fix: propagate failures from delegated commands (<a
href="https://redirect.github.com/eslint/eslint/issues/20917">#20917</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f4f3507460bc016b5be979c05d2969793f570cbf"><code>f4f3507</code></a>
fix: prefer-arrow-callback invalid autofix with newline after
<code>async</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20916">#20916</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f78838bc4c86d487e1bcc7cede260c4467721c46"><code>f78838b</code></a>
test: add CodePath type coverage (<a
href="https://redirect.github.com/eslint/eslint/issues/20904">#20904</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61b0add61ffc52665562be7bb96f526690a78b30"><code>61b0add</code></a>
docs: remove deprecated rule from related rules of
<code>max-params</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20921">#20921</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1daa4bd734b79a62e317d0394394a6b38cff49f9"><code>1daa4bd</code></a>
chore: update <code>eslint-plugin-eslint-comments</code> test data to
latest commit (<a
href="https://redirect.github.com/eslint/eslint/issues/20">#20</a>...</li>
<li><a
href="https://github.com/eslint/eslint/commit/002942ce988ea28b78e0a2f3b074081e638b552c"><code>002942c</code></a>
ci: declare contents:read on update-readme workflow (<a
href="https://redirect.github.com/eslint/eslint/issues/20919">#20919</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.4.0...v10.4.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `prettier` from 3.8.3 to 3.8.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/releases">prettier's
releases</a>.</em></p>
<blockquote>
<h2>3.8.4</h2>
<ul>
<li>Markdown: Fix blank lines between list items and nested sub-lists
being removed in Markdown/MDX (<a
href="https://redirect.github.com/prettier/prettier/pull/17746">prettier/prettier#17746</a>
by <a
href="https://github.com/byplayer"><code>@​byplayer</code></a>)</li>
</ul>
<p>🔗 <a
href="https://github.com/prettier/prettier/blob/3.8.4/CHANGELOG.md#384">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's
changelog</a>.</em></p>
<blockquote>
<h1>3.8.4</h1>
<p><a
href="https://github.com/prettier/prettier/compare/3.8.3...3.8.4">diff</a></p>
<h4>Markdown: Fix blank lines between list items and nested sub-lists
being removed in Markdown/MDX (<a
href="https://redirect.github.com/prettier/prettier/pull/17746">#17746</a>
by <a
href="https://github.com/byplayer"><code>@​byplayer</code></a>)</h4>
<p>Prettier was removing blank lines between list items and their nested
sub-lists, converting loose lists into tight lists and changing their
semantic meaning.</p>
<!-- raw HTML omitted -->
<pre lang="markdown"><code>&lt;!-- Input --&gt;
- a
<ul>
<li>
<p>b</p>
</li>
<li>
<p>c</p>
<ul>
<li>d</li>
</ul>
</li>
</ul>
<p>&lt;!-- Prettier 3.8.3 --&gt;</p>
<ul>
<li>a
<ul>
<li>b</li>
</ul>
</li>
<li>c
<ul>
<li>d</li>
</ul>
</li>
</ul>
<p>&lt;!-- Prettier 3.8.4 --&gt;</p>
<ul>
<li>
<p>a</p>
<ul>
<li>b</li>
</ul>
</li>
<li>
<p>c</p>
<ul>
<li>d<br />
</code></pre></li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prettier/prettier/commit/1c6ba5539141552e0e8e22d401ea620d8fdff468"><code>1c6ba55</code></a>
Release 3.8.4</li>
<li><a
href="https://github.com/prettier/prettier/commit/4a673dc9b59ddf7296bbab9822093d2971da84a8"><code>4a673dc</code></a>
Fix blank lines between list items and nested sub-lists being removed in
Mark...</li>
<li><a
href="https://github.com/prettier/prettier/commit/074aaedbb052a288e89d15eb0a4214de37a08866"><code>074aaed</code></a>
Replace <code>main</code> branch in changelog link with tags (<a
href="https://redirect.github.com/prettier/prettier/issues/19054">#19054</a>)</li>
<li><a
href="https://github.com/prettier/prettier/commit/c22a003ae97917c5043e8685b4fdff0f93e978f9"><code>c22a003</code></a>
Bump Prettier dependency to 3.8.3</li>
<li><a
href="https://github.com/prettier/prettier/commit/07bad1f04536e9799927007baf466e67151576f0"><code>07bad1f</code></a>
Clean changelog_unreleased</li>
<li>See full diff in <a
href="https://github.com/prettier/prettier/compare/3.8.3...3.8.4">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| @types/node | [>= 22.a, < 23] |
</details>


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-06-09 12:58:37 -06:00
bot-githubaction a3b40d2308 [bot] Update dist directory 2026-06-09 18:25:58 +00:00
Bot Githubaction f37016fb25 Bump references to Develocity Gradle plugin from 4.4.0 to 4.4.2 (#973)
This PR bumps references to Develocity Gradle plugin from 4.4.0 to
4.4.2.
2026-06-09 12:25:09 -06:00
bot-githubaction 2afdab2a02 [bot] Update dist directory 2026-06-09 09:50:27 +00:00
dependabot[bot]andJérôme Prinet 1046ffaf33 Bump the npm-dependencies group across 1 directory with 14 updates (#970)
Bumps the npm-dependencies group with 14 updates in the /sources
directory:

| Package | From | To |
| --- | --- | --- |
|
[@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core)
| `3.0.0` | `3.0.1` |
|
[@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github)
| `9.0.0` | `9.1.1` |
|
[@actions/glob](https://github.com/actions/toolkit/tree/HEAD/packages/glob)
| `0.6.1` | `0.7.0` |
|
[@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client)
| `4.0.0` | `4.0.1` |
| [semver](https://github.com/npm/node-semver) | `7.7.4` | `7.8.1` |
| [which](https://github.com/npm/node-which) | `6.0.1` | `7.0.0` |
|
[@jest/globals](https://github.com/jestjs/jest/tree/HEAD/packages/jest-globals)
| `30.3.0` | `30.4.1` |
|
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
| `25.5.0` | `25.9.1` |
|
[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)
| `8.58.0` | `8.59.4` |
| [eslint](https://github.com/eslint/eslint) | `10.1.0` | `10.4.0` |
| [globals](https://github.com/sindresorhus/globals) | `17.4.0` |
`17.6.0` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) |
`30.3.0` | `30.4.2` |
| [prettier](https://github.com/prettier/prettier) | `3.8.1` | `3.8.3` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.9` |
`29.4.11` |


Updates `@actions/core` from 3.0.0 to 3.0.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md">@​actions/core's
changelog</a>.</em></p>
<blockquote>
<h2>3.0.1</h2>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.1</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2348">#2348</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/core">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/github` from 9.0.0 to 9.1.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md">@​actions/github's
changelog</a>.</em></p>
<blockquote>
<h3>9.1.1</h3>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2346">#2346</a></li>
</ul>
<h3>9.1.0</h3>
<ul>
<li>Append <code>actions_orchestration_id</code> to user-agent when the
<code>ACTIONS_ORCHESTRATION_ID</code> environment variable is set <a
href="https://redirect.github.com/actions/toolkit/pull/2364">#2364</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/github">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/glob` from 0.6.1 to 0.7.0
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/glob/RELEASES.md">@​actions/glob's
changelog</a>.</em></p>
<blockquote>
<h2>0.7.0</h2>
<ul>
<li>Bump <code>minimatch</code> from <code>^3.0.4</code> to
<code>^10.2.5</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2355">#2355</a></li>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2345">#2345</a></li>
<li>Bump <code>brace-expansion</code> in <code>/packages/glob</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2369">#2369</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/glob">compare
view</a></li>
</ul>
</details>
<br />

Updates `@actions/http-client` from 4.0.0 to 4.0.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md">@​actions/http-client's
changelog</a>.</em></p>
<blockquote>
<h2>4.0.1</h2>
<ul>
<li>Bump <code>undici</code> from <code>6.23.0</code> to
<code>6.24.0</code> <a
href="https://redirect.github.com/actions/toolkit/pull/2347">#2347</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/actions/toolkit/commits/HEAD/packages/http-client">compare
view</a></li>
</ul>
</details>
<br />

Updates `semver` from 7.7.4 to 7.8.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/releases">semver's
releases</a>.</em></p>
<blockquote>
<h2>v7.8.1</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1">7.8.1</a>
(2026-05-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/869">#869</a>
strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)
(<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/867">#867</a>
handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)
(<a
href="https://github.com/puneetdixit200"><code>@​puneetdixit200</code></a>,
Puneet Dixit)</li>
</ul>
<h2>v7.8.0</h2>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0">7.8.0</a>
(2026-05-08)</h2>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/855">#855</a>
Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)
(<a href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>,
<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/859">#859</a>
Warn when defaulting to --inc=patch in CLI (<a
href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/853">#853</a>
fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)
(<a
href="https://github.com/ankitkumar572005"><code>@​ankitkumar572005</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/37776c31e2f3448fd852c975888e37b03efe9afe"><code>37776c3</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/846">#846</a>
fix BNF grammar to distinguish prerelease from build identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/846">#846</a>)
(<a href="https://github.com/abhu85"><code>@​abhu85</code></a>, <a
href="https://github.com/claude"><code>@​claude</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
<code>template-oss-apply@5.0.0</code> (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/852">#852</a>
bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a
href="https://github.com/npm-cli-bot"><code>@​npm-cli-bot</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-semver/blob/main/CHANGELOG.md">semver's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.8.0...v7.8.1">7.8.1</a>
(2026-05-21)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/869">#869</a>
strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)
(<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/867">#867</a>
handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)
(<a
href="https://github.com/puneetdixit200"><code>@​puneetdixit200</code></a>,
Puneet Dixit)</li>
</ul>
<h2><a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0">7.8.0</a>
(2026-05-08)</h2>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/855">#855</a>
Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)
(<a href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>,
<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/859">#859</a>
Warn when defaulting to --inc=patch in CLI (<a
href="https://github.com/pjohnmeyer"><code>@​pjohnmeyer</code></a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/853">#853</a>
fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)
(<a
href="https://github.com/ankitkumar572005"><code>@​ankitkumar572005</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/37776c31e2f3448fd852c975888e37b03efe9afe"><code>37776c3</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/846">#846</a>
fix BNF grammar to distinguish prerelease from build identifiers (<a
href="https://redirect.github.com/npm/node-semver/issues/846">#846</a>)
(<a href="https://github.com/abhu85"><code>@​abhu85</code></a>, <a
href="https://github.com/claude"><code>@​claude</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/860">#860</a>
<code>template-oss-apply@5.0.0</code> (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
<a href="https://redirect.github.com/npm/node-semver/pull/852">#852</a>
bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)
(<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a
href="https://github.com/npm-cli-bot"><code>@​npm-cli-bot</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-semver/commit/76416081a8413383cf6e24c82cafa438bd076d41"><code>7641608</code></a>
chore: release 7.8.1 (<a
href="https://redirect.github.com/npm/node-semver/issues/868">#868</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/17aa702d91166472b197a2ea768f085083bee2e4"><code>17aa702</code></a>
fix: strip build metadata before comparator trimming (<a
href="https://redirect.github.com/npm/node-semver/issues/869">#869</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/5f3ca133e040210b6ea80c350a1d61d9da02e722"><code>5f3ca13</code></a>
fix: handle prerelease bounds in subset (<a
href="https://redirect.github.com/npm/node-semver/issues/867">#867</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/efa4be6096c1f9b77d9d27d6132f6220c43b4e31"><code>efa4be6</code></a>
chore: release 7.8.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/847">#847</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/9542e09ebcd89e916777d35eba868061dad9ed7d"><code>9542e09</code></a>
chore: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-semver/commit/937bc2cd8721db14745c9be123078c44e77a86ef"><code>937bc2c</code></a>
chore: template-oss-apply@5.0.0</li>
<li><a
href="https://github.com/npm/node-semver/commit/3905343045dc293c3694d5e46170b1bb1fb5cf58"><code>3905343</code></a>
fix: Warn when defaulting to --inc=patch in CLI</li>
<li><a
href="https://github.com/npm/node-semver/commit/0d0a0a2582fb1486bc6cd255ba18819c441ed149"><code>0d0a0a2</code></a>
feat: Add <code>truncate</code> function (<a
href="https://redirect.github.com/npm/node-semver/issues/855">#855</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/c368af612e521767e960419e6388c5129c857984"><code>c368af6</code></a>
docs: fix typos in documentation (<a
href="https://redirect.github.com/npm/node-semver/issues/853">#853</a>)</li>
<li><a
href="https://github.com/npm/node-semver/commit/6946fefa57bd5e191871a4738b28ca673e003527"><code>6946fef</code></a>
chore: bump <code>@​npmcli/template-oss</code> from 4.29.0 to 4.30.0 (<a
href="https://redirect.github.com/npm/node-semver/issues/852">#852</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/npm/node-semver/compare/v7.7.4...v7.8.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `which` from 6.0.1 to 7.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-which/releases">which's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2><a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">7.0.0</a>
(2026-05-08)</h2>
<h3>⚠️ BREAKING CHANGES</h3>
<ul>
<li><code>which</code> now supports node <code>^22.22.2 || ^24.15.0 ||
&gt;=26.0.0</code></li>
<li>template-oss-apply</li>
</ul>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
bump to new node engine range (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/npm/node-which/blob/main/CHANGELOG.md">which's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">7.0.0</a>
(2026-05-08)</h2>
<h3>⚠️ BREAKING CHANGES</h3>
<ul>
<li><code>which</code> now supports node <code>^22.22.2 || ^24.15.0 ||
&gt;=26.0.0</code></li>
<li>template-oss-apply</li>
</ul>
<h3>Features</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
bump to new node engine range (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
<a href="https://redirect.github.com/npm/node-which/pull/176">#176</a>
template-oss-apply (<a
href="https://github.com/owlstronaut"><code>@​owlstronaut</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/npm/node-which/commit/297db11d58eebe01551ae0875a127a89ee63d2cb"><code>297db11</code></a>
chore: release 7.0.0 (<a
href="https://redirect.github.com/npm/node-which/issues/177">#177</a>)</li>
<li><a
href="https://github.com/npm/node-which/commit/9bdf0037cb47aaa7f89eb7ae0372d7f90b8557d3"><code>9bdf003</code></a>
chore: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-which/commit/471d90ba5f4c8af8e9d8c8604d57b1128255bfb8"><code>471d90b</code></a>
feat!: bump to new node engine range</li>
<li><a
href="https://github.com/npm/node-which/commit/8aac36f904ed4ba17e269763e0267167ac6a729d"><code>8aac36f</code></a>
feat!: template-oss-apply</li>
<li><a
href="https://github.com/npm/node-which/commit/482490851357b9c22da31dc4b06736dcac180344"><code>4824908</code></a>
deps &amp; engine update</li>
<li>See full diff in <a
href="https://github.com/npm/node-which/compare/v6.0.1...v7.0.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `@jest/globals` from 30.3.0 to 30.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/releases">@​jest/globals's
releases</a>.</em></p>
<blockquote>
<h2>v30.4.1</h2>
<h2>Features</h2>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1">https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1</a></p>
<h2>v30.4.0</h2>
<p>Big release! 😀</p>
<p>Main feature is a rewrite of our custom runtime in preparation for
stabilisation of native support of ESM. As part of that work
<code>require(esm)</code> module is now supported on Node 24.9+ (still
requires <code>--experimental-vm-modules</code> like before).</p>
<p>In addition we now support fake timers for the recently released
<code>Temporal</code> API in Node v26.</p>
<p>React 19 is also supported properly in <code>pretty-format</code>,
meaning snapshots of React components now work like they should.</p>
<p>Due to all the changes, there might be regressions that snuck in.
Please report them!</p>
<p>Full list of changes below</p>
<h2>Features</h2>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
<li><code>[pretty-format]</code> Support React 19 (<a
href="https://redirect.github.com/jestjs/jest/pull/16123">#16123</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[expect-utils]</code> Fix <code>toStrictEqual</code> failing
on <code>structuredClone</code> results due to cross-realm constructor
mismatch (<a
href="https://redirect.github.com/jestjs/jest/pull/15959">#15959</a>)</li>
<li><code>[@jest/expect-utils]</code> Prevent
<code>toMatchObject</code>/subset matching from throwing when
encountering exotic iterables (<a
href="https://redirect.github.com/jestjs/jest/pull/15952">#15952</a>)</li>
<li><code>[fake-timers]</code> Convert <code>Date</code> to milliseconds
before passing to <code>@sinonjs/fake-timers</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16029">#16029</a>)</li>
<li><code>[jest]</code> Export <code>GlobalConfig</code> and
<code>ProjectConfig</code> TypeScript types (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/blob/main/CHANGELOG.md">@​jest/globals's
changelog</a>.</em></p>
<blockquote>
<h2>30.4.1</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<h2>30.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
<li><code>[pretty-format]</code> Support React 19 (<a
href="https://redirect.github.com/jestjs/jest/pull/16123">#16123</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect-utils]</code> Fix <code>toStrictEqual</code> failing
on <code>structuredClone</code> results due to cross-realm constructor
mismatch (<a
href="https://redirect.github.com/jestjs/jest/pull/15959">#15959</a>)</li>
<li><code>[@jest/expect-utils]</code> Prevent
<code>toMatchObject</code>/subset matching from throwing when
encountering exotic iterables (<a
href="https://redirect.github.com/jestjs/jest/pull/15952">#15952</a>)</li>
<li><code>[fake-timers]</code> Convert <code>Date</code> to milliseconds
before passing to <code>@sinonjs/fake-timers</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16029">#16029</a>)</li>
<li><code>[jest]</code> Export <code>GlobalConfig</code> and
<code>ProjectConfig</code> TypeScript types (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-circus]</code> Prevent crash when
<code>asyncError</code> is undefined for non-Error throws (<a
href="https://redirect.github.com/jestjs/jest/pull/16003">#16003</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> Include
<code>Error.cause</code> in JSON <code>failureMessages</code> output (<a
href="https://redirect.github.com/jestjs/jest/pull/15967">#15967</a>)</li>
<li><code>[jest-config]</code> Fix preset path resolution on Windows
when the preset uses subpath <code>exports</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/15961">#15961</a>)</li>
<li><code>[jest-config]</code> Allow <code>collectCoverage</code> and
<code>coverageProvider</code> in project config without a validation
warning (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-config]</code> Project config validator now emits
&quot;is not supported in an individual project configuration&quot;
instead of &quot;probably a typing mistake&quot; for known global-only
options (<a
href="https://redirect.github.com/jestjs/jest/pull/16132">#16132</a>)</li>
<li><code>[jest-environment-node]</code> Fix
<code>--localstorage-file</code> warning on Node 25+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16086">#16086</a>)</li>
<li><code>[jest-reporters]</code> Apply global coverage threshold to
unmatched pattern files in addition to glob/path thresholds (<a
href="https://redirect.github.com/jestjs/jest/pull/16137">#16137</a>)</li>
<li><code>[jest-reporters, jest-runner, jest-runtime,
jest-transform]</code> Fix coverage report not showing correct code
coverage when using <code>projects</code> config option (<a
href="https://redirect.github.com/jestjs/jest/pull/16140">#16140</a>)</li>
<li><code>[jest-runtime]</code> Resolve <code>expect</code> and
<code>@jest/expect</code> from the internal module registry so test-file
imports share the same <code>JestAssertionError</code> as the global
<code>expect</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16130">#16130</a>)</li>
<li><code>[jest-runtime]</code> Improve CJS-from-ESM interop:
<code>__esModule</code>/Babel default unwrap, broader named-export
coverage, and shared CJS singleton across importers (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
<li><code>[jest-runtime]</code> Load <code>.js</code> files with ESM
syntax but no <code>&quot;type&quot;:&quot;module&quot;</code> marker as
native ESM (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
<li><code>[jest-runtime]</code> Extend the
<code>.js</code>-with-ESM-syntax fallback to <code>require()</code> on
Node v24.9+ - falls back to <code>require(esm)</code> when the CJS
parser rejects ESM syntax (<a
href="https://redirect.github.com/jestjs/jest/pull/16078">#16078</a>)</li>
<li><code>[jest-runtime]</code> Fix deadlocks and double-evaluation in
concurrent ESM and wasm imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16050">#16050</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/jestjs/jest/commit/b3b4a09ed3005369dacc7466d1d2122797283785"><code>b3b4a09</code></a>
v30.4.1</li>
<li><a
href="https://github.com/jestjs/jest/commit/5cbb21e0b3037edb42e503ec1a1ce80efad40c20"><code>5cbb21e</code></a>
v30.4.0</li>
<li>See full diff in <a
href="https://github.com/jestjs/jest/commits/v30.4.1/packages/jest-globals">compare
view</a></li>
</ul>
</details>
<br />

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

Updates `@typescript-eslint/eslint-plugin` from 8.58.0 to 8.59.4
<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.59.4</h2>
<h2>8.59.4 (2026-05-18)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-floating-promises] stack
overflow when using recursive types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12294">#12294</a>)</li>
<li><strong>project-service:</strong> throw error cause in
<code>getParsedConfigFileFromTSServer</code> (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12321">#12321</a>)</li>
<li><strong>typescript-eslint:</strong> export Compatible* types from
typescript-eslint to resolve pnpm TS error (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12340">#12340</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>lumir</li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.4">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>
<h2>v8.59.3</h2>
<h2>8.59.3 (2026-05-11)</h2>
<p>This was a version bump only, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.3">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>
<h2>v8.59.2</h2>
<h2>8.59.2 (2026-05-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unsafe-type-assertion] handle
crash on recursive template literal types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12150">#12150</a>)</li>
<li><strong>eslint-plugin:</strong> [no-deprecated] object destructuring
values should be treated as declarations (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12292">#12292</a>)</li>
<li><strong>rule-tester:</strong> add TypeScript as a peer dependency
(<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12288">#12288</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Dariusz Czajkowski</li>
<li>Dima Barabash</li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.2">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>
<h2>v8.59.1</h2>
<h2>8.59.1 (2026-04-27)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</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.59.4 (2026-05-18)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-floating-promises] stack
overflow when using recursive types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12294">#12294</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Evyatar Daud <a
href="https://github.com/StyleShit"><code>@​StyleShit</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.4">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>
<h2>8.59.3 (2026-05-11)</h2>
<p>This was a version bump only for eslint-plugin to align it with other
projects, there were no code changes.</p>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.3">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>
<h2>8.59.2 (2026-05-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-deprecated] object destructuring
values should be treated as declarations (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12292">#12292</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unsafe-type-assertion] handle
crash on recursive template literal types (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12150">#12150</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Dima Barabash</li>
<li>Kirk Waiblinger <a
href="https://github.com/kirkwaiblinger"><code>@​kirkwaiblinger</code></a></li>
</ul>
<p>See <a
href="https://github.com/typescript-eslint/typescript-eslint/releases/tag/v8.59.2">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>
<h2>8.59.1 (2026-04-27)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unnecessary-condition] treat
void as nullish in no-unnecessary-condition (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12241">#12241</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-arguments]
handle instantiation expressions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12220">#12220</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
avoid false positive in logical assignment assertions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12278">#12278</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
preserve phantom type arguments in generic inference (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12269">#12269</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion]
preserve index signatures in undefined unions (<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12257">#12257</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion] fix
crash &quot;TypeError: checker.getTypeArguments is not a function&quot;
(<a
href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/12246">#12246</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ca6ca1431b6d18235297a7e29feb5d98f012dff2"><code>ca6ca14</code></a>
chore(release): publish 8.59.4</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/4302433ae6bf93d4ddc35264ad1b951254758566"><code>4302433</code></a>
fix(eslint-plugin): [no-floating-promises] stack overflow when using
recursiv...</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/10b79f1ba8e98610a3af85152a1b3b406f91e633"><code>10b79f1</code></a>
chore(deps): update dependency eslint to v10.4.0 (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12339">#12339</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2a6765d9628dc776f8127c96f088bb807c0bcab2"><code>2a6765d</code></a>
chore: clenaup <code>getAwaitedType</code> from
<code>typescript.d.ts</code> (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12302">#12302</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/48e13c0261e3cb1bf4f4dfaa462cdb3a56ef7383"><code>48e13c0</code></a>
chore(release): publish 8.59.3</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/e26dc8003ababf078aad4df17765ee4cea30644c"><code>e26dc80</code></a>
docs: update stale links to latest (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12313">#12313</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/44f9625336841a8ee3eb01a9e02e49b1d7b12648"><code>44f9625</code></a>
chore(deps): update vitest monorepo to v4.1.5 (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12307">#12307</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/2ec35f1760aade4df4c631d76d78c7ed5e136333"><code>2ec35f1</code></a>
chore(release): publish 8.59.2</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/ec3ef25390f7daf5a9ff33a60282bdbbb49ab0f3"><code>ec3ef25</code></a>
test: make no-useless-empty-export tests fully static (<a
href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/12260">#12260</a>)</li>
<li><a
href="https://github.com/typescript-eslint/typescript-eslint/commit/60d0a513870d833617374ff8ea256d86ca3cbbbb"><code>60d0a51</code></a>
chore(eslint-plugin): switch auto-generated test cases to hand-written
in no-...</li>
<li>Additional commits viewable in <a
href="https://github.com/typescript-eslint/typescript-eslint/commits/v8.59.4/packages/eslint-plugin">compare
view</a></li>
</ul>
</details>
<br />

Updates `eslint` from 10.1.0 to 10.4.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.4.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/1a45ec596af1dd5f880e6874cb8f24dafb6a7ecf"><code>1a45ec5</code></a>
feat: check sequence expressions in <code>for-direction</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20701">#20701</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/450040bd89b989b3531824c6be45feb5fe3d936b"><code>450040b</code></a>
feat: add <code>includeIgnoreFile()</code> to <code>eslint/config</code>
(<a
href="https://redirect.github.com/eslint/eslint/issues/20735">#20735</a>)
(Kirk Waiblinger)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/544c0c3da589166ad8e5d634f35d3d06701c57be"><code>544c0c3</code></a>
fix: escape code path DOT labels in debug output (<a
href="https://redirect.github.com/eslint/eslint/issues/20866">#20866</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6799431203f2579632d0870f98ba132067f4040c"><code>6799431</code></a>
fix: update dependency <code>@​eslint/config-helpers</code> to ^0.6.0
(<a
href="https://redirect.github.com/eslint/eslint/issues/20850">#20850</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/f078fef5005dceb14fc162aab7c7200e027688dd"><code>f078fef</code></a>
fix: handle non-array deprecated rule replacements (<a
href="https://redirect.github.com/eslint/eslint/issues/20825">#20825</a>)
(xbinaryx)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/7e52a7151fb92eec0e0f67fe4e5ddbd1ccce796f"><code>7e52a71</code></a>
docs: add mention of <code>@eslint-react/eslint-plugin</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20869">#20869</a>)
(Pavel)</li>
<li><a
href="https://github.com/eslint/eslint/commit/db3468ba746407d7f286f18f7ea9db6df0e3bc08"><code>db3468b</code></a>
docs: tweak wording around ambiguous CJS-vs-ESM config (<a
href="https://redirect.github.com/eslint/eslint/issues/20865">#20865</a>)
(Kirk Waiblinger)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90846643ec6e97d447ae0d831fabe6d17b0a998a"><code>9084664</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9cc73875046e3c4b8313644cbb1e99e26b36bd3f"><code>9cc7387</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3d7b5484407403817aa9071a394d336d8ea96eb5"><code>3d7b548</code></a>
docs: Update README (GitHub Actions Bot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/191ec3c0a3f94ce0f110df761f0b2b8949011ccb"><code>191ec3c</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/6616856f28fa514a30f87b5539fc100d739a94bf"><code>6616856</code></a>
chore: upgrade knip to v6 (<a
href="https://redirect.github.com/eslint/eslint/issues/20875">#20875</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d13b084a3ad02f926e9addaa35fc383759ea5554"><code>d13b084</code></a>
ci: ensure auto-created PRs run CI (<a
href="https://redirect.github.com/eslint/eslint/issues/20860">#20860</a>)
(lumir)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e71c7af86dce9acc1d18cb12d2184309f6841594"><code>e71c7af</code></a>
ci: bump pnpm/action-setup from 6.0.5 to 6.0.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/20862">#20862</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/d84393dea170f54191fd20c8268b52c81c0ccd99"><code>d84393d</code></a>
test: add unit tests for SuppressionsService.applySuppressions() (<a
href="https://redirect.github.com/eslint/eslint/issues/20863">#20863</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/24db8cb8e6f07fba667121777a15b1785486be94"><code>24db8cb</code></a>
test: add tests for SuppressionsService.save() (<a
href="https://redirect.github.com/eslint/eslint/issues/20802">#20802</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2ef0549cac4a9537e4c3a26b9f3edd4c99476bf6"><code>2ef0549</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20857">#20857</a>)
(github-actions[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/a4297918d264d229a06cd96051ef9b91c7b86732"><code>a429791</code></a>
ci: remove <code>eslint-webpack-plugin</code> types integration test (<a
href="https://redirect.github.com/eslint/eslint/issues/20668">#20668</a>)
(Milos Djermanovic)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9e37386aa7f2ce220b2ef74a6afbac5f6b3527c5"><code>9e37386</code></a>
chore: replace <code>recast</code> with range approach in
code-sample-minimizer (<a
href="https://redirect.github.com/eslint/eslint/issues/20682">#20682</a>)
(Copilot)</li>
<li><a
href="https://github.com/eslint/eslint/commit/0dd1f9ffc9a07704d46e2a4c8d4ccc0d0908b0c0"><code>0dd1f9f</code></a>
test: disable warning for
<code>vm.constants.USE_MAIN_CONTEXT_DEFAULT_LOADER</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20845">#20845</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/9da3c7bc92d9579f8db19ecb56e718538d09db2b"><code>9da3c7b</code></a>
refactor: remove deprecated <code>meta.language</code> and migrate
<code>meta.dialects</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20716">#20716</a>)
(Pixel998)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2099ed12a0a74c3d7f0808514362af2499b4fe2b"><code>2099ed1</code></a>
refactor: add <code>meta.defaultOptions</code> to more rules, enable
linting (<a
href="https://redirect.github.com/eslint/eslint/issues/20800">#20800</a>)
(xbinaryx)</li>
<li><a
href="https://github.com/eslint/eslint/commit/f1dfbc9ca57196de7092e1888cc99427bd6fe06e"><code>f1dfbc9</code></a>
chore: update ecosystem plugins (<a
href="https://redirect.github.com/eslint/eslint/issues/20836">#20836</a>)
(github-actions[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/c75941390c14728806cd4baef4f6072f6de78318"><code>c759413</code></a>
ci: bump pnpm/action-setup from 6.0.3 to 6.0.5 (<a
href="https://redirect.github.com/eslint/eslint/issues/20843">#20843</a>)
(dependabot[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/5b817d6fdc9ae2c35b528dc662b2eca8f40f64aa"><code>5b817d6</code></a>
test: add unit tests for lib/shared/ast-utils (<a
href="https://redirect.github.com/eslint/eslint/issues/20838">#20838</a>)
(kuldeep kumar)</li>
<li><a
href="https://github.com/eslint/eslint/commit/1c13ae3934c198c494e5958fa3a68b33244ff06a"><code>1c13ae3</code></a>
test: add unit tests for lib/shared/severity (<a
href="https://redirect.github.com/eslint/eslint/issues/20835">#20835</a>)
(kuldeep kumar)</li>
</ul>
<h2>v10.3.0</h2>
<h2>Features</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/379571a975f2b24d88037b9de2e72ec61d004130"><code>379571a</code></a>
feat: add suggestions for no-unused-private-class-members (<a
href="https://redirect.github.com/eslint/eslint/issues/20773">#20773</a>)
(sethamus)</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/b6ae5cf07b9b51802367539cb24b245b61eaa37c"><code>b6ae5cf</code></a>
fix: handle unavailable require cache (<a
href="https://redirect.github.com/eslint/eslint/issues/20812">#20812</a>)
(Simon Podlipsky)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6fb3685bcbe9a6f72fd7dfb9129686b6fb96b0bd"><code>6fb3685</code></a>
fix: rule suggestions cause continuation in class body (<a
href="https://redirect.github.com/eslint/eslint/issues/20787">#20787</a>)
(Milos Djermanovic)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/32cc7ab4ec653ce89da92deb5c40a9f4fc707fe5"><code>32cc7ab</code></a>
docs: fix typos in docs and comments (<a
href="https://redirect.github.com/eslint/eslint/issues/20809">#20809</a>)
(Tanuj Kanti)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7f479376a2fa463d823ab762db6bb37ce8d2ee8f"><code>7f47937</code></a>
docs: Update README (GitHub Actions Bot)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/d32235ec19ceea211fa86452afa383ca05f5c2f9"><code>d32235e</code></a>
ci: use pnpm in <code>eslint-flat-config-utils</code> type integration
test (<a
href="https://redirect.github.com/eslint/eslint/issues/20826">#20826</a>)
(Francesco Trotta)</li>
<li><a
href="https://github.com/eslint/eslint/commit/3ffb14ea517de750ed1181579ef844af342e4096"><code>3ffb14e</code></a>
chore: clean up typos in comments and JSDoc (<a
href="https://redirect.github.com/eslint/eslint/issues/20821">#20821</a>)
(Pixel998)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/452c4010c07dc2e36fe6ec6a8c48298878e86887"><code>452c401</code></a>
10.4.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/b6417e8b55c9525070d6e168b485ce6ff21688ed"><code>b6417e8</code></a>
Build: changelog update for 10.4.0</li>
<li><a
href="https://github.com/eslint/eslint/commit/6616856f28fa514a30f87b5539fc100d739a94bf"><code>6616856</code></a>
chore: upgrade knip to v6 (<a
href="https://redirect.github.com/eslint/eslint/issues/20875">#20875</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d13b084a3ad02f926e9addaa35fc383759ea5554"><code>d13b084</code></a>
ci: ensure auto-created PRs run CI (<a
href="https://redirect.github.com/eslint/eslint/issues/20860">#20860</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/7e52a7151fb92eec0e0f67fe4e5ddbd1ccce796f"><code>7e52a71</code></a>
docs: add mention of <code>@eslint-react/eslint-plugin</code> (<a
href="https://redirect.github.com/eslint/eslint/issues/20869">#20869</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/e71c7af86dce9acc1d18cb12d2184309f6841594"><code>e71c7af</code></a>
ci: bump pnpm/action-setup from 6.0.5 to 6.0.7 (<a
href="https://redirect.github.com/eslint/eslint/issues/20862">#20862</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/544c0c3da589166ad8e5d634f35d3d06701c57be"><code>544c0c3</code></a>
fix: escape code path DOT labels in debug output (<a
href="https://redirect.github.com/eslint/eslint/issues/20866">#20866</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/db3468ba746407d7f286f18f7ea9db6df0e3bc08"><code>db3468b</code></a>
docs: tweak wording around ambiguous CJS-vs-ESM config (<a
href="https://redirect.github.com/eslint/eslint/issues/20865">#20865</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/d84393dea170f54191fd20c8268b52c81c0ccd99"><code>d84393d</code></a>
test: add unit tests for SuppressionsService.applySuppressions() (<a
href="https://redirect.github.com/eslint/eslint/issues/20863">#20863</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/90846643ec6e97d447ae0d831fabe6d17b0a998a"><code>9084664</code></a>
docs: Update README</li>
<li>Additional commits viewable in <a
href="https://github.com/eslint/eslint/compare/v10.1.0...v10.4.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `globals` from 17.4.0 to 17.6.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.6.0</h2>
<ul>
<li>Update globals (2026-05-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/343">#343</a>)
00a4dd9</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.5.0...v17.6.0">https://github.com/sindresorhus/globals/compare/v17.5.0...v17.6.0</a></p>
<h2>v17.5.0</h2>
<ul>
<li>Update globals (2026-04-12) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/342">#342</a>)
5d84602</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.4.0...v17.5.0">https://github.com/sindresorhus/globals/compare/v17.4.0...v17.5.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/6b15870f1c08b60b5b57afe45a703d9ed0be39bc"><code>6b15870</code></a>
17.6.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/00a4dd9821830a9b044798120e86b1bb1a54648d"><code>00a4dd9</code></a>
Update globals (2026-05-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/343">#343</a>)</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/b8170c8e1d648291b613c5b39a69652c796fa36c"><code>b8170c8</code></a>
17.5.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/5d846029679832931f38ced6381cc95bcb9abd80"><code>5d84602</code></a>
Update globals (2026-04-12) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/342">#342</a>)</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/1b727e5f4cc39121b8e77b9f27574a8ca27391fc"><code>1b727e5</code></a>
Fix build script for ES globals (<a
href="https://redirect.github.com/sindresorhus/globals/issues/341">#341</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.4.0...v17.6.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `jest` from 30.3.0 to 30.4.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/releases">jest's
releases</a>.</em></p>
<blockquote>
<h2>v30.4.2</h2>
<h1>Fixes</h1>
<ul>
<li><code>[jest-runtime]</code> Fix named imports from CJS modules whose
<code>module.exports</code> is a function with own-property exports (<a
href="https://redirect.github.com/jestjs/jest/pull/16150">#16150</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.1...v30.4.2">https://github.com/jestjs/jest/compare/v30.4.1...v30.4.2</a></p>
<h2>v30.4.1</h2>
<h2>Features</h2>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h2>Fixes</h2>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1">https://github.com/jestjs/jest/compare/v30.4.0...v30.4.1</a></p>
<h2>v30.4.0</h2>
<p>Big release! 😀</p>
<p>Main feature is a rewrite of our custom runtime in preparation for
stabilisation of native support of ESM. As part of that work
<code>require(esm)</code> module is now supported on Node 24.9+ (still
requires <code>--experimental-vm-modules</code> like before).</p>
<p>In addition we now support fake timers for the recently released
<code>Temporal</code> API in Node v26.</p>
<p>React 19 is also supported properly in <code>pretty-format</code>,
meaning snapshots of React components now work like they should.</p>
<p>Due to all the changes, there might be regressions that snuck in.
Please report them!</p>
<p>Full list of changes below</p>
<h2>Features</h2>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
the project-level value overrides the global value for that project's
tests (<a
href="https://redirect.github.com/jestjs/jest/pull/16133">#16133</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Duration</code> in
<code>jest.advanceTimersByTime()</code> and
<code>jest.advanceTimersByTimeAsync()</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Accept
<code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in
<code>jest.setSystemTime()</code> and <code>useFakeTimers({now})</code>
(<a
href="https://redirect.github.com/jestjs/jest/pull/16128">#16128</a>)</li>
<li><code>[@jest/fake-timers]</code> Support faking
<code>Temporal.Now.*</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16131">#16131</a>)</li>
<li><code>[jest-mock]</code> Add <code>clearMocksOnScope(scope)</code>
on <code>ModuleMocker</code> for clearing every mock function exposed on
a scope object (<a
href="https://redirect.github.com/jestjs/jest/pull/16088">#16088</a>)</li>
<li><code>[jest-resolve]</code> Add <code>canResolveSync()</code> on
<code>Resolver</code> so callers can detect when a user-configured
resolver only exports an <code>async</code> hook (<a
href="https://redirect.github.com/jestjs/jest/pull/16064">#16064</a>)</li>
<li><code>[jest-runtime]</code> Use synchronous <code>evaluate()</code>
for ES modules without top-level <code>await</code> on Node versions
that support it (v24.9+), and prefer the synchronous transform path when
a sync transformer is configured (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-runtime]</code> Support <code>require()</code> of ES
modules on Node v24.9+ (<a
href="https://redirect.github.com/jestjs/jest/pull/16074">#16074</a>)</li>
<li><code>[jest-runtime]</code> Validate TC39 import attributes
(<code>with { type: 'json' }</code>) on ESM imports (<a
href="https://redirect.github.com/jestjs/jest/pull/16127">#16127</a>)</li>
<li><code>[@jest/transform]</code> Add
<code>canTransformSync(filename)</code> on
<code>ScriptTransformer</code> so callers can pick the sync vs async
transform path (<a
href="https://redirect.github.com/jestjs/jest/pull/16062">#16062</a>)</li>
<li><code>[jest-util]</code> Add <code>isError</code> helper (<a
href="https://redirect.github.com/jestjs/jest/pull/16076">#16076</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jestjs/jest/blob/main/CHANGELOG.md">jest's
changelog</a>.</em></p>
<blockquote>
<h2>30.4.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Fix named imports from CJS modules whose
<code>module.exports</code> is a function with own-property exports (<a
href="https://redirect.github.com/jestjs/jest/pull/16150">#16150</a>)</li>
</ul>
<h2>30.4.1</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-config, jest-core, jest-runner, jest-schemas,
jest-types]</code> Allow custom runner configuration options via tuple
format <code>['runner-path', {options}]</code> (<a
href="https://redirect.github.com/jestjs/jest/pull/16141">#16141</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-runtime]</code> Align CJS-from-ESM default export with
Node: <code>module.exports</code> is always the ESM default,
<code>__esModule</code> unwrapping is no longer applied (<a
href="https://redirect.github.com/jestjs/jest/pull/16143">#16143</a>)</li>
</ul>
<h2>30.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Support collecting coverage from
<code>.mts</code>, <code>.cts</code> (and other) files (<a
href="https://redirect.github.com/jestjs/jest/pull/15994">#15994</a>)</li>
<li><code>[jest-circus, jest-cli, jest-config, jest-core, jest-jasmine2,
jest-types]</code> Add <code>--collect-tests</code> flag to discover and
list tests without executing them (<a
href="https://redirect.github.com/jestjs/jest/pull/16006">#16006</a>)</li>
<li><code>[jest-config, jest-runner, jest-worker]</code> Add
<code>workerGracefulExitTimeout</code> config option to control how long
workers are given to exit before being force-killed (<a
href="https://redirect.github.com/jestjs/jest/pull/15984">#15984</a>)</li>
<li><code>[jest-config]</code> Add support for
<code>jest.config.mts</code> as a valid configuration file (<a
href="https://redirect.github.com/jestjs/jest/pull/16005">#16005</a>)</li>
<li><code>[jest-config, jest-core, jest-reporters, jest-runner]</code>
<code>verbose</code> and <code>silent</code> can now be set per-project;
t...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-06-09 11:49:38 +02:00
dependabot[bot]andJérôme Prinet 8499b50242 Bump the github-actions group across 2 directories with 8 updates (#976)
Bumps the github-actions group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6.0.2` |
`6.0.3` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.3.0`
| `6.4.0` |
| [gradle/actions](https://github.com/gradle/actions) | `6.0.1` |
`6.1.0` |
|
[tj-actions/changed-files](https://github.com/tj-actions/changed-files)
| `47.0.5` | `47.0.6` |
| [github/codeql-action](https://github.com/github/codeql-action) |
`4.35.1` | `4.36.2` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact)
| `7.0.0` | `7.0.1` |
| [actions/github-script](https://github.com/actions/github-script) |
`8.0.0` | `9.0.0` |
|
[peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request)
| `8.1.0` | `8.1.1` |

Bumps the github-actions group with 2 updates in the
/.github/actions/build-dist directory:
[actions/setup-node](https://github.com/actions/setup-node) and
[actions/upload-artifact](https://github.com/actions/upload-artifact).

Updates `actions/checkout` from 6.0.2 to 6.0.3
<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>v6.0.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Update changelog by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2357">actions/checkout#2357</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>
<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>Update changelog for v6.0.3 by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2446">actions/checkout#2446</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/yaananth"><code>@​yaananth</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6...v6.0.3">https://github.com/actions/checkout/compare/v6...v6.0.3</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>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>
<h2>v4.2.0</h2>
<ul>
<li>Add Ref and Commit outputs by <a
href="https://github.com/lucacome"><code>@​lucacome</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li>
<li>Dependency updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>- <a
href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a>,
<a
href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li>
</ul>
<h2>v4.1.7</h2>
<ul>
<li>Bump the minor-npm-dependencies group across 1 directory with 4
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li>
<li>Bump actions/checkout from 3 to 4 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li>
<li>Check out other refs/* by commit by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</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/df4cb1c069e1874edd31b4311f1884172cec0e10"><code>df4cb1c</code></a>
Update changelog for v6.0.3 (<a
href="https://redirect.github.com/actions/checkout/issues/2446">#2446</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/1cce3390c2bfda521930d01229c073c7ff920824"><code>1cce339</code></a>
Fix checkout init for SHA-256 repositories (<a
href="https://redirect.github.com/actions/checkout/issues/2439">#2439</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/900f2210b1d28bbbd0bd22d17926b9e224e8f231"><code>900f221</code></a>
fix: expand merge commit SHA regex and add SHA-256 test cases (<a
href="https://redirect.github.com/actions/checkout/issues/2414">#2414</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/0c366fd6a839edf440554fa01a7085ccba70ac98"><code>0c366fd</code></a>
Update changelog (<a
href="https://redirect.github.com/actions/checkout/issues/2357">#2357</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.3.0 to 6.4.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>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"><code>48b55a0</code></a>
Update Node.js versions in versions.yml and bump package to v6.4.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1533">#1533</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/ab72c7e7eba0eaa11f8cab0f5679243900c2cac9"><code>ab72c7e</code></a>
Upgrade <a href="https://github.com/actions"><code>@​actions</code></a>
dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1525">#1525</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e">compare
view</a></li>
</ul>
</details>
<br />

Updates `gradle/actions` from 6.0.1 to 6.1.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions's
releases</a>.</em></p>
<blockquote>
<h2>v6.1.0</h2>
<h2>New: Basic Cache Provider</h2>
<p>A new MIT-licensed <strong>Basic Caching</strong> provider is now
available as an alternative to the proprietary <strong>Enhanced
Caching</strong> provided by <code>gradle-actions-caching</code>. Choose
Basic Caching by setting <code>cache-provider: basic</code> on
<code>setup-gradle</code> or <code>dependency-submission</code>
actions.</p>
<ul>
<li>Built on <code>@actions/cache</code> -- fully open source</li>
<li>Caches <code>~/.gradle/caches</code> and
<code>~/.gradle/wrapper</code> directories</li>
<li>Cache key derived from build files (<code>*.gradle*</code>,
<code>gradle-wrapper.properties</code>, etc.)</li>
<li>Clean cache on build file changes (no restore keys, preventing stale
entry accumulation)</li>
</ul>
<p><strong>Limitations vs Enhanced Caching:</strong> No cache cleanup,
no deduplication of cached content, cached content is fixed unless build
files change.</p>
<h2>Revamped Licensing &amp; Distribution Documentation</h2>
<ul>
<li>New <strong>DISTRIBUTION.md</strong> documents the licensing of each
component (particularly Basic Caching vs Enhanced Caching)</li>
<li>Simplified licensing notices in README, docs, and runtime log
output</li>
<li>Clear usage tiers: Enhanced Caching is free for public repos and in
Free Preview for private repos</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Use a unique cache entry for wrapper-validation test by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/921">gradle/actions#921</a></li>
<li>Update Dependencies by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/922">gradle/actions#922</a></li>
<li>Update dependencies and resolve npm vulnerabilities by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/933">gradle/actions#933</a></li>
<li>Add open-source 'basic' cache provider and revamp licensing
documentation by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/930">gradle/actions#930</a></li>
<li>Restructure caching documentation for basic and enhanced providers
by <a href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/934">gradle/actions#934</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.0.1...v6.1.0">https://github.com/gradle/actions/compare/v6.0.1...v6.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/50e97c2cd7a37755bbfafc9c5b7cafaece252f6e"><code>50e97c2</code></a>
Link to docs for caching providers</li>
<li><a
href="https://github.com/gradle/actions/commit/f2e6298504c4b1f20294637059e1d0d89422409a"><code>f2e6298</code></a>
Restructure caching documentation for basic and enhanced providers (<a
href="https://redirect.github.com/gradle/actions/issues/934">#934</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/b294b1e2dbcf270bfe835590dedbbc7e2024618c"><code>b294b1e</code></a>
Really fix integ-test-full</li>
<li><a
href="https://github.com/gradle/actions/commit/83d3189aae3332f1b2235b42d8804258f2348213"><code>83d3189</code></a>
Revise license details for gradle-actions-caching</li>
<li><a
href="https://github.com/gradle/actions/commit/1d5db06d2662829845876553d61cf3df3cf997d1"><code>1d5db06</code></a>
Update license link for gradle-actions-caching component</li>
<li><a
href="https://github.com/gradle/actions/commit/1c809615505fae9768e2610dc6dbecdc3a796443"><code>1c80961</code></a>
Fix license link for Enhanced Caching component</li>
<li><a
href="https://github.com/gradle/actions/commit/9e99920b14b9dc5a9bf8c72e94ba47ebf5bbaee6"><code>9e99920</code></a>
Fix integ-test-full workflow</li>
<li><a
href="https://github.com/gradle/actions/commit/bb8aaaf9d56f25afd4a90925425facf294f31fcf"><code>bb8aaaf</code></a>
Fix workflow permissions</li>
<li><a
href="https://github.com/gradle/actions/commit/f5dfb43fc8c99c758ebf2324d102118e5faf6cb6"><code>f5dfb43</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/ff9ae24c39252301b448088d2c7d9f0a2d8066dd"><code>ff9ae24</code></a>
Add open-source 'basic' cache provider and revamp licensing
documentation (<a
href="https://redirect.github.com/gradle/actions/issues/930">#930</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f...50e97c2cd7a37755bbfafc9c5b7cafaece252f6e">compare
view</a></li>
</ul>
</details>
<br />

Updates `tj-actions/changed-files` from 47.0.5 to 47.0.6
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/releases">tj-actions/changed-files's
releases</a>.</em></p>
<blockquote>
<h2>v47.0.6</h2>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v47.0.5 by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2816">tj-actions/changed-files#2816</a></li>
<li>Updated README.md by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2817">tj-actions/changed-files#2817</a></li>
<li>chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2818">tj-actions/changed-files#2818</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.3.3 to
25.3.5 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2820">tj-actions/changed-files#2820</a></li>
<li>chore(deps): bump github/codeql-action from 4.32.5 to 4.32.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2819">tj-actions/changed-files#2819</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.3.5 to
25.5.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2825">tj-actions/changed-files#2825</a></li>
<li>chore(deps): bump actions/download-artifact from 8.0.0 to 8.0.1 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2824">tj-actions/changed-files#2824</a></li>
<li>chore(deps): bump github/codeql-action from 4.32.6 to 4.35.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2834">tj-actions/changed-files#2834</a></li>
<li>chore(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2831">tj-actions/changed-files#2831</a></li>
<li>chore(deps): bump yaml from 2.8.2 to 2.8.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2830">tj-actions/changed-files#2830</a></li>
<li>chore(deps): bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2829">tj-actions/changed-files#2829</a></li>
<li>chore(deps-dev): bump jest from 30.2.0 to 30.3.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2822">tj-actions/changed-files#2822</a></li>
<li>chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2849">tj-actions/changed-files#2849</a></li>
<li>chore(deps-dev): bump prettier from 3.8.1 to 3.8.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2848">tj-actions/changed-files#2848</a></li>
<li>chore(deps-dev): bump <code>@​types/node</code> from 25.5.0 to
25.6.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2846">tj-actions/changed-files#2846</a></li>
<li>chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2844">tj-actions/changed-files#2844</a></li>
<li>chore(deps): bump peter-evans/create-pull-request from 8.1.0 to
8.1.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2843">tj-actions/changed-files#2843</a></li>
<li>chore(deps): bump lodash from 4.17.23 to 4.18.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/tj-actions/changed-files/pull/2837">tj-actions/changed-files#2837</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6">https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/tj-actions/changed-files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v47.0.5...v47.0.6">47.0.6</a>
- (2026-04-18)</h1>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2817">#2817</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/c23d52ba6ff8c67273c61e097615eafe88cb8650">c23d52b</a>)
- (github-actions[bot])</p>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Bump lodash from 4.17.23 to 4.18.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2837">#2837</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/9426d40962ed5378910ee2e21d5f8c6fcbf2dd96">9426d40</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump peter-evans/create-pull-request from
8.1.0 to 8.1.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2843">#2843</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/32de080616d8c84d89622770d26b0857f4ce8b49">32de080</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/upload-artifact from 7.0.0 to
7.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2844">#2844</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2487d125c6ecf3457228762d50599297a8c80310">2487d12</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.5.0 to 25.6.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2846">#2846</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/cef85a3eab76d9db9f294de4915d6a31b1dcbfda">cef85a3</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump prettier from 3.8.1 to 3.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2848">#2848</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/7b082dee30a6f42592f70940c0f0a26a72af452c">7b082de</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.35.1 to
4.35.2 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2849">#2849</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/07224cab5986b4ce28c5080f4a804e5573422714">07224ca</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump jest from 30.2.0 to 30.3.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2822">#2822</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2bb135777322059ee3a3c9239999b159ff49febc">2bb1357</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2829">#2829</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/cc98117d3993777f3babaccc496514b4a65652a9">cc98117</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump yaml from 2.8.2 to 2.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2830">#2830</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/786e4213eac60d6e2b4492135b46644269fac3db">786e421</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump eslint-plugin-jest from 29.15.0 to
29.15.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2831">#2831</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/726b41bbed783a50de97829de6d977cd665831f7">726b41b</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.32.6 to
4.35.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2834">#2834</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/2c3585e584822ed39e27c6c471225dde37991778">2c3585e</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/download-artifact from 8.0.0 to
8.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2824">#2824</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/3d37a7ff08a7ce64b4cab9669eac39b0709cdac9">3d37a7f</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.3.5 to 25.5.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2825">#2825</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/445b0eb32849cdd5b22a390bf0568af00ed4ca34">445b0eb</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump github/codeql-action from 4.32.5 to
4.32.6 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2819">#2819</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/4f892cd56345d721bac7139000c4b4a22c8f138f">4f892cd</a>)
- (dependabot[bot])</li>
<li><strong>deps-dev:</strong> Bump <code>@​types/node</code> from
25.3.3 to 25.3.5 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2820">#2820</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/611865116d9f223a0ca640071aec29292c81978f">6118651</a>)
- (dependabot[bot])</li>
<li><strong>deps:</strong> Bump actions/setup-node from 6.2.0 to 6.3.0
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2818">#2818</a>)
(<a
href="https://github.com/tj-actions/changed-files/commit/e517d7a5ca34a5d08bbe5c949e59381bd6d7cce2">e517d7a</a>)
- (dependabot[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v47.0.5 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2816">#2816</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/4750530ff4e020eafc769c56c2fa8376ca8ad8e9">4750530</a>)
- (github-actions[bot])</p>
<h1><a
href="https://github.com/tj-actions/changed-files/compare/v47.0.4...v47.0.5">47.0.5</a>
- (2026-03-03)</h1>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2805">#2805</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
(<a
href="https://github.com/tj-actions/changed-files/commit/35dace0375d89e25e78db5f0a44127b61f4e5c20">35dace0</a>)
- (github-actions[bot])</p>
<ul>
<li>Updated README.md (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2803">#2803</a>)</li>
</ul>
<p>Co-authored-by: github-actions[bot]
&lt;41898282+github-actions[bot]<a
href="https://github.com/users"><code>@​users</code></a>.noreply.github.com&gt;
Co-authored-by: Tonye Jack <a
href="mailto:jtonye@ymail.com">jtonye@ymail.com</a> (<a
href="https://github.com/tj-actions/changed-files/commit/9ee99eb5bda5d6a67fedcd50ecd24fb10add2f41">9ee99eb</a>)
- (github-actions[bot])</p>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/tj-actions/changed-files/commit/9426d40962ed5378910ee2e21d5f8c6fcbf2dd96"><code>9426d40</code></a>
chore(deps): bump lodash from 4.17.23 to 4.18.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2837">#2837</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/32de080616d8c84d89622770d26b0857f4ce8b49"><code>32de080</code></a>
chore(deps): bump peter-evans/create-pull-request from 8.1.0 to 8.1.1
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2843">#2843</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/2487d125c6ecf3457228762d50599297a8c80310"><code>2487d12</code></a>
chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2844">#2844</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cef85a3eab76d9db9f294de4915d6a31b1dcbfda"><code>cef85a3</code></a>
chore(deps-dev): bump <code>@​types/node</code> from 25.5.0 to 25.6.0
(<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2846">#2846</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/7b082dee30a6f42592f70940c0f0a26a72af452c"><code>7b082de</code></a>
chore(deps-dev): bump prettier from 3.8.1 to 3.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2848">#2848</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/07224cab5986b4ce28c5080f4a804e5573422714"><code>07224ca</code></a>
chore(deps): bump github/codeql-action from 4.35.1 to 4.35.2 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2849">#2849</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/2bb135777322059ee3a3c9239999b159ff49febc"><code>2bb1357</code></a>
chore(deps-dev): bump jest from 30.2.0 to 30.3.0 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2822">#2822</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/cc98117d3993777f3babaccc496514b4a65652a9"><code>cc98117</code></a>
chore(deps): bump nrwl/nx-set-shas from 4.4.0 to 5.0.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2829">#2829</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/786e4213eac60d6e2b4492135b46644269fac3db"><code>786e421</code></a>
chore(deps): bump yaml from 2.8.2 to 2.8.3 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2830">#2830</a>)</li>
<li><a
href="https://github.com/tj-actions/changed-files/commit/726b41bbed783a50de97829de6d977cd665831f7"><code>726b41b</code></a>
chore(deps-dev): bump eslint-plugin-jest from 29.15.0 to 29.15.1 (<a
href="https://redirect.github.com/tj-actions/changed-files/issues/2831">#2831</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/tj-actions/changed-files/compare/22103cc46bda19c2b464ffe86db46df6922fd323...9426d40962ed5378910ee2e21d5f8c6fcbf2dd96">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action` from 4.35.1 to 4.36.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action's
releases</a>.</em></p>
<blockquote>
<h2>v4.36.2</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>v4.36.1</h2>
<p>No user facing changes.</p>
<h2>v4.36.0</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>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.5">2.25.5</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3926">#3926</a></li>
</ul>
<h2>v4.35.5</h2>
<ul>
<li>We have improved how the JavaScript bundles for the CodeQL Action
are generated to avoid duplication across bundles and reduce the size of
the repository by around 70%. This should have no effect on the runtime
behaviour of the CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3899">#3899</a></li>
<li>For performance and accuracy reasons, <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> will now only be enabled on a pull request when
diff-informed analysis is also enabled for that run. If diff-informed
analysis is unavailable (for example, because the PR diff ranges could
not be computed), the action will fall back to a full analysis. <a
href="https://redirect.github.com/github/codeql-action/pull/3791">#3791</a></li>
<li>If multiple inputs are provided for the GitHub-internal
<code>analysis-kinds</code> input, only <code>code-scanning</code> will
be enabled. The <code>analysis-kinds</code> input is experimental, for
GitHub-internal use only, and may change without notice at any time. <a
href="https://redirect.github.com/github/codeql-action/pull/3892">#3892</a></li>
<li>Added an experimental change which, when running a Code Scanning
analysis for a PR with <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> enabled, prefers CodeQL CLI versions that have
a cached overlay-base database for the configured languages. This speeds
up analysis for a repository when there is not yet a cached overlay-base
database for the latest CLI version. We expect to roll this change out
to everyone in May. <a
href="https://redirect.github.com/github/codeql-action/pull/3880">#3880</a></li>
</ul>
<h2>v4.35.4</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.4">2.25.4</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3881">#3881</a></li>
</ul>
<h2>v4.35.3</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.19.3 and earlier. These versions of
CodeQL were discontinued on 9 April 2026 alongside GitHub Enterprise
Server 3.15, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3837">#3837</a></li>
<li>Configurations for private registries that use Cloudsmith or GCP
OIDC are now accepted. <a
href="https://redirect.github.com/github/codeql-action/pull/3850">#3850</a></li>
<li>Best-effort connection tests for private registries now use
<code>GET</code> requests instead of <code>HEAD</code> for better
compatibility with various registry implementations. For NuGet feeds,
the test is now always performed against the service index. <a
href="https://redirect.github.com/github/codeql-action/pull/3853">#3853</a></li>
<li>Fixed a bug where two diagnostics produced within the same
millisecond could overwrite each other on disk, causing one of them to
be lost. <a
href="https://redirect.github.com/github/codeql-action/pull/3852">#3852</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.3">2.25.3</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3865">#3865</a></li>
</ul>
<h2>v4.35.2</h2>
<ul>
<li>The undocumented TRAP cache cleanup feature that could be enabled
using the <code>CODEQL_ACTION_CLEANUP_TRAP_CACHES</code> environment
variable is deprecated and will be removed in May 2026. If you are
affected by this, we recommend disabling TRAP caching by passing the
<code>trap-caching: false</code> input to the <code>init</code> Action.
<a
href="https://redirect.github.com/github/codeql-action/pull/3795">#3795</a></li>
<li>The Git version 2.36.0 requirement for improved incremental analysis
now only applies to repositories that contain submodules. <a
href="https://redirect.github.com/github/codeql-action/pull/3789">#3789</a></li>
<li>Python analysis on GHES no longer extracts the standard library,
relying instead on models of the standard library. This should result in
significantly faster extraction and analysis times, while the effect on
alerts should be minimal. <a
href="https://redirect.github.com/github/codeql-action/pull/3794">#3794</a></li>
<li>Fixed a bug in the validation of OIDC configurations for private
registries that was added in CodeQL Action 4.33.0 / 3.33.0. <a
href="https://redirect.github.com/github/codeql-action/pull/3807">#3807</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.2">2.25.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3823">#3823</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'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.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>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.5">2.25.5</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3926">#3926</a></li>
</ul>
<h2>4.35.5 - 15 May 2026</h2>
<ul>
<li>We have improved how the JavaScript bundles for the CodeQL Action
are generated to avoid duplication across bundles and reduce the size of
the repository by around 70%. This should have no effect on the runtime
behaviour of the CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3899">#3899</a></li>
<li>For performance and accuracy reasons, <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> will now only be enabled on a pull request when
diff-informed analysis is also enabled for that run. If diff-informed
analysis is unavailable (for example, because the PR diff ranges could
not be computed), the action will fall back to a full analysis. <a
href="https://redirect.github.com/github/codeql-action/pull/3791">#3791</a></li>
<li>If multiple inputs are provided for the GitHub-internal
<code>analysis-kinds</code> input, only <code>code-scanning</code> will
be enabled. The <code>analysis-kinds</code> input is experimental, for
GitHub-internal use only, and may change without notice at any time. <a
href="https://redirect.github.com/github/codeql-action/pull/3892">#3892</a></li>
<li>Added an experimental change which, when running a Code Scanning
analysis for a PR with <a
href="https://redirect.github.com/github/roadmap/issues/1158">improved
incremental analysis</a> enabled, prefers CodeQL CLI versions that have
a cached overlay-base database for the configured languages. This speeds
up analysis for a repository when there is not yet a cached overlay-base
database for the latest CLI version. We expect to roll this change out
to everyone in May. <a
href="https://redirect.github.com/github/codeql-action/pull/3880">#3880</a></li>
</ul>
<h2>4.35.4 - 07 May 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.4">2.25.4</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3881">#3881</a></li>
</ul>
<h2>4.35.3 - 01 May 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.19.3 and earlier. These versions of
CodeQL were discontinued on 9 April 2026 alongside GitHub Enterprise
Server 3.15, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3837">#3837</a></li>
<li>Configurations for private registries that use Cloudsmith or GCP
OIDC are now accepted. <a
href="https://redirect.github.com/github/codeql-action/pull/3850">#3850</a></li>
<li>Best-effort connection tests for private registries now use
<code>GET</code> requests instead of <code>HEAD</code> for better
compatibility with various registry implementations. For NuGet feeds,
the test is now always performed against the service index. <a
href="https://redirect.github.com/github/codeql-action/pull/3853">#3853</a></li>
<li>Fixed a bug where two diagnostics produced within the same
millisecond could overwrite each other on disk, causing one of them to
be lost. <a
href="https://redirect.github.com/github/codeql-action/pull/3852">#3852</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.3">2.25.3</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3865">#3865</a></li>
</ul>
<h2>4.35.2 - 15 Apr 2026</h2>
<ul>
<li>The undocumented TRAP cache cleanup feature that could be enabled
using the <code>CODEQL_ACTION_CLEANUP_TRAP_CACHES</code> environment
variable is deprecated and will be removed in May 2026. If you are
affected by this, we recommend disabling TRAP caching by passing the
<code>trap-caching: false</code> input to the <code>init</code> Action.
<a
href="https://redirect.github.com/github/codeql-action/pull/3795">#3795</a></li>
<li>The Git version 2.36.0 requirement for improved incremental analysis
now only applies to repositories that contain submodules. <a
href="https://redirect.github.com/github/codeql-action/pull/3789">#3789</a></li>
<li>Python analysis on GHES no longer extracts the standard library,
relying instead on models of the standard library. This should result in
significantly faster extraction and analysis times, while the effect on
alerts should be minimal. <a
href="https://redirect.github.com/github/codeql-action/pull/3794">#3794</a></li>
<li>Fixed a bug in the validation of OIDC configurations for private
registries that was added in CodeQL Action 4.33.0 / 3.33.0. <a
href="https://redirect.github.com/github/codeql-action/pull/3807">#3807</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.2">2.25.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3823">#3823</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/8aad20d150bbac5944a9f9d289da16a4b0d87c1e"><code>8aad20d</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3949">#3949</a>
from github/update-v4.36.2-dcb947ce1</li>
<li><a
href="https://github.com/github/codeql-action/commit/f521b08cd8f468ab193ea950a589cb2e9c869c6a"><code>f521b08</code></a>
Add additional changelog notes</li>
<li><a
href="https://github.com/github/codeql-action/commit/8aeff0ffb7b78582ee0d0e6eebb8140684400d08"><code>8aeff0f</code></a>
Update changelog for v4.36.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/dcb947ce15976d40ea82935510b2db4872ec124c"><code>dcb947c</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3948">#3948</a>
from github/update-bundle/codeql-bundle-v2.25.6</li>
<li><a
href="https://github.com/github/codeql-action/commit/c251bcefa178f7780f62f150002acffe3d07fde9"><code>c251bce</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/62953c18b35f59e28351d2f1e806925aef8b1e3c"><code>62953c1</code></a>
Update default bundle to codeql-bundle-v2.25.6</li>
<li><a
href="https://github.com/github/codeql-action/commit/423b570baf1976cd7a3daeba5d6e9f9b76432f37"><code>423b570</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3946">#3946</a>
from github/dependabot/npm_and_yarn/npm-minor-5d507a...</li>
<li><a
href="https://github.com/github/codeql-action/commit/c35d1b164463ee62a100735382aaaa525c5d3496"><code>c35d1b1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3947">#3947</a>
from github/dependabot/github_actions/dot-github/wor...</li>
<li><a
href="https://github.com/github/codeql-action/commit/cb1a588b02755b176e7b9d033ed4b69312f0e1bd"><code>cb1a588</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3937">#3937</a>
from github/robertbrignull/waitForProcessing_backoff</li>
<li><a
href="https://github.com/github/codeql-action/commit/ba47406412c54532b5b4fcfbaf877c9e2382b206"><code>ba47406</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/3943">#3943</a>
from github/henrymercer/cache-cli-version-info</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/c10b8064de6f491fea524254123dbe5e09572f13...8aad20d150bbac5944a9f9d289da16a4b0d87c1e">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Update the readme with direct upload details by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/795">actions/upload-artifact#795</a></li>
<li>Readme: bump all the example versions to v7 by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/796">actions/upload-artifact#796</a></li>
<li>Include changes in typespec/ts-http-runtime 0.3.5 by <a
href="https://github.com/yacaovsnc"><code>@​yacaovsnc</code></a> in <a
href="https://redirect.github.com/actions/upload-artifact/pull/797">actions/upload-artifact#797</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/upload-artifact/compare/v7...v7.0.1">https://github.com/actions/upload-artifact/compare/v7...v7.0.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/upload-artifact/commit/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"><code>043fb46</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/upload-artifact/issues/797">#797</a>
from actions/yacaovsnc/update-dependency</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/634250c1388765ea7ed0f053e636f1f399000b94"><code>634250c</code></a>
Include changes in typespec/ts-http-runtime 0.3.5</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/e454baaac2be505c9450e11b8f3215c6fc023ce8"><code>e454baa</code></a>
Readme: bump all the example versions to v7 (<a
href="https://redirect.github.com/actions/upload-artifact/issues/796">#796</a>)</li>
<li><a
href="https://github.com/actions/upload-artifact/commit/74fad66b98a6d799dc004d3353ccd0e6f6b2530e"><code>74fad66</code></a>
Update the readme with direct upload details (<a
href="https://redirect.github.com/actions/upload-artifact/issues/795">#795</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/github-script` from 8.0.0 to 9.0.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/github-script/releases">actions/github-script's
releases</a>.</em></p>
<blockquote>
<h2>v9.0.0</h2>
<p><strong>New features:</strong></p>
<ul>
<li><strong><code>getOctokit</code> factory function</strong> —
Available directly in the script context. Create additional
authenticated Octokit clients with different tokens for multi-token
workflows, GitHub App tokens, and cross-org access. See <a
href="https://github.com/actions/github-script#creating-additional-clients-with-getoctokit">Creating
additional clients with <code>getOctokit</code></a> for details and
examples.</li>
<li><strong>Orchestration ID in user-agent</strong> — The
<code>ACTIONS_ORCHESTRATION_ID</code> environment variable is
automatically appended to the user-agent string for request
tracing.</li>
</ul>
<p><strong>Breaking changes:</strong></p>
<ul>
<li><strong><code>require('@actions/github')</code> no longer works in
scripts.</strong> The upgrade to <code>@actions/github</code> v9
(ESM-only) means <code>require('@actions/github')</code> will fail at
runtime. If you previously used patterns like <code>const { getOctokit }
= require('@actions/github')</code> to create secondary clients, use the
new injected <code>getOctokit</code> function instead — it's available
directly in the script context with no imports needed.</li>
<li><code>getOctokit</code> is now an injected function parameter.
Scripts that declare <code>const getOctokit = ...</code> or <code>let
getOctokit = ...</code> will get a <code>SyntaxError</code> because
JavaScript does not allow <code>const</code>/<code>let</code>
redeclaration of function parameters. Use the injected
<code>getOctokit</code> directly, or use <code>var getOctokit =
...</code> if you need to redeclare it.</li>
<li>If your script accesses other <code>@actions/github</code> internals
beyond the standard <code>github</code>/<code>octokit</code> client, you
may need to update those references for v9 compatibility.</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>Add ACTIONS_ORCHESTRATION_ID to user-agent string by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/695">actions/github-script#695</a></li>
<li>ci: use deployment: false for integration test environments by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/712">actions/github-script#712</a></li>
<li>feat!: add getOctokit to script context, upgrade
<code>@​actions/github</code> v9, <code>@​octokit/core</code> v7, and
related packages by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/github-script/pull/700">actions/github-script#700</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/github-script/pull/695">actions/github-script#695</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/github-script/compare/v8.0.0...v9.0.0">https://github.com/actions/github-script/compare/v8.0.0...v9.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/github-script/commit/3a2844b7e9c422d3c10d287c895573f7108da1b3"><code>3a2844b</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/github-script/issues/700">#700</a>
from actions/salmanmkc/expose-getoctokit + prepare re...</li>
<li><a
href="https://github.com/actions/github-script/commit/ca10bbdd1a7739de09e99a200c7a59f5d73a4079"><code>ca10bbd</code></a>
fix: use <code>@​octokit/core/</code>types import for v7
compatibility</li>
<li><a
href="https://github.com/actions/github-script/commit/86e48e20ac85c970ed1f96e718fd068173948b7b"><code>86e48e2</code></a>
merge: incorporate main branch changes</li>
<li><a
href="https://github.com/actions/github-script/commit/c1084728b5b935ec4ddc1e4cee877b01797b3ff9"><code>c108472</code></a>
chore: rebuild dist for v9 upgrade and getOctokit factory</li>
<li><a
href="https://github.com/actions/github-script/commit/afff112e4f8b57c718168af75b89ce00bc8d091d"><code>afff112</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/github-script/issues/712">#712</a>
from actions/salmanmkc/deployment-false + fix user-ag...</li>
<li><a
href="https://github.com/actions/github-script/commit/ff8117e5b78c415f814f39ad6998f424fee7b817"><code>ff8117e</code></a>
ci: fix user-agent test to handle orchestration ID</li>
<li><a
href="https://github.com/actions/github-script/commit/81c6b7876079abe10ff715951c9fc7b3e1ab389d"><code>81c6b78</code></a>
ci: use deployment: false to suppress deployment noise from integration
tests</li>
<li><a
href="https://github.com/actions/github-script/commit/3953caf8858d318f37b6cc53a9f5708859b5a7b7"><code>3953caf</code></a>
docs: update README examples from <a
href="https://github.com/v8"><code>@​v8</code></a> to <a
href="https://github.com/v9"><code>@​v9</code></a>, add getOctokit docs
and v9 brea...</li>
<li><a
href="https://github.com/actions/github-script/commit/c17d55b90dcdb3d554d0027a6c180a7adc2daf78"><code>c17d55b</code></a>
ci: add getOctokit integration test job</li>
<li><a
href="https://github.com/actions/github-script/commit/a047196d9a02fe92098771cafbb98c2f1814e408"><code>a047196</code></a>
test: add getOctokit integration tests via callAsyncFunction</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/github-script/compare/ed597411d8f924073f98dfc5c65a23a2325f34cd...3a2844b7e9c422d3c10d287c895573f7108da1b3">compare
view</a></li>
</ul>
</details>
<br />

Updates `peter-evans/create-pull-request` from 8.1.0 to 8.1.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/peter-evans/create-pull-request/releases">peter-evans/create-pull-request's
releases</a>.</em></p>
<blockquote>
<h2>Create Pull Request v8.1.1</h2>
<h2>What's Changed</h2>
<ul>
<li>build(deps-dev): bump the npm group with 2 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4305">peter-evans/create-pull-request#4305</a></li>
<li>build(deps): bump minimatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4311">peter-evans/create-pull-request#4311</a></li>
<li>build(deps): bump the github-actions group with 2 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4316">peter-evans/create-pull-request#4316</a></li>
<li>build(deps): bump <code>@​tootallnate/once</code> and
jest-environment-jsdom by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4323">peter-evans/create-pull-request#4323</a></li>
<li>build(deps-dev): bump undici from 6.23.0 to 6.24.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4328">peter-evans/create-pull-request#4328</a></li>
<li>build(deps-dev): 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/peter-evans/create-pull-request/pull/4334">peter-evans/create-pull-request#4334</a></li>
<li>build(deps): bump picomatch by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4339">peter-evans/create-pull-request#4339</a></li>
<li>build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4344">peter-evans/create-pull-request#4344</a></li>
<li>build(deps-dev): bump the npm group with 3 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4349">peter-evans/create-pull-request#4349</a></li>
<li>fix: retry post-creation API calls on 422 eventual consistency
errors by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-pull-request/pull/4356">peter-evans/create-pull-request#4356</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-pull-request/compare/v8.1.0...v8.1.1">https://github.com/peter-evans/create-pull-request/compare/v8.1.0...v8.1.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/5f6978faf089d4d20b00c7766989d076bb2fc7f1"><code>5f6978f</code></a>
fix: retry post-creation API calls on 422 eventual consistency errors
(<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4356">#4356</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/d32e88dac789dcc7906e7d26f69f24116fa9c97d"><code>d32e88d</code></a>
build(deps-dev): bump the npm group with 3 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4349">#4349</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/8170bccad11c0df62542c04dcaefe36d342dfd39"><code>8170bcc</code></a>
build(deps-dev): bump handlebars from 4.7.8 to 4.7.9 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4344">#4344</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/00418193b417f888dbf1d993c5c0d31d27fdc7de"><code>0041819</code></a>
build(deps): bump picomatch (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4339">#4339</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/b993918c8536b6d44706130734d5456879762b27"><code>b993918</code></a>
build(deps-dev): bump flatted from 3.3.1 to 3.4.2 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4334">#4334</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/36d7c8468b48f9c2f8f29e260e82f10d4b90d2bd"><code>36d7c84</code></a>
build(deps-dev): bump undici from 6.23.0 to 6.24.0 (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4328">#4328</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/a45d1fb447fcaf601166e405fd4f335cde1a8aa8"><code>a45d1fb</code></a>
build(deps): bump <code>@​tootallnate/once</code> and
jest-environment-jsdom (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4323">#4323</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/3499eb61835cc0015c0b786e203d74b1e8f55e43"><code>3499eb6</code></a>
build(deps): bump the github-actions group with 2 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4316">#4316</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/3f3b473b8c148f5a7520efb4d1f9a70eea3d9d1f"><code>3f3b473</code></a>
build(deps): bump minimatch (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4311">#4311</a>)</li>
<li><a
href="https://github.com/peter-evans/create-pull-request/commit/6699836a213cf8b28c4f0408a404a6ac79d4458a"><code>6699836</code></a>
build(deps-dev): bump the npm group with 2 updates (<a
href="https://redirect.github.com/peter-evans/create-pull-request/issues/4305">#4305</a>)</li>
<li>See full diff in <a
href="https://github.com/peter-evans/create-pull-request/compare/c0f553fe549906ede9cf27b5156039d195d2ece0...5f6978faf089d4d20b00c7766989d076bb2fc7f1">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/setup-node` from 6.3.0 to 6.4.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>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"><code>48b55a0</code></a>
Update Node.js versions in versions.yml and bump package to v6.4.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1533">#1533</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/ab72c7e7eba0eaa11f8cab0f5679243900c2cac9"><code>ab72c7e</code></a>
Upgrade <a href="https://github.com/actions"><code>@​actions</code></a>
dependencies (<a
href="https://redirect.github.com/actions/setup-node/issues/1525">#1525</a>)</li>
<li>See full diff in <a
href="https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e">compare
view</a></li>
</ul>
</details>
<br />

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Update the readme with direct upload details by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/795">actions/upload-artifact#795</a></li>
<li>Readme: bump all the example versions to v7 by <a
href="https://github.com/danwkennedy"><code>@​danwkennedy</code></a> in
<a
href="https://redirect.github.com/actions/upload-artifact/pull/796">actions/upload-artifact#796</a></...

_Description has been truncated_

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-06-09 10:49:31 +02:00
bot-githubaction a16ad4ab25 [bot] Update dist directory 2026-06-09 08:41:22 +00:00
github-actions[bot]andbot-githubaction e9965bd762 Update known wrapper checksums (#937)
Automatically generated pull request to update the known wrapper
checksums.

In case of conflicts, manually run the workflow from the [Actions
tab](https://github.com/gradle/actions/actions/workflows/update-checksums-file.yml),
the changes will then be force-pushed onto this pull request branch.
Do not manually update the pull request branch; those changes might get
overwritten.

> [!IMPORTANT]  
> GitHub workflows have not been executed for this pull request yet.
Before merging, close and then directly reopen this pull request to
trigger the workflows.

Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:40:40 +02:00
Bot Githubaction 6959d5a1db Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/kotlin-dsl (#965)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:40:09 +02:00
Bot Githubaction 139f652ee4 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/java-toolchain (#964)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:54 +02:00
Bot Githubaction 77818a6789 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/groovy-dsl (#963)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:38 +02:00
Bot Githubaction d0dd67506b Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /.github/workflow-samples/gradle-plugin (#962)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:39:15 +02:00
Bot Githubaction 0f159117b5 Bump Gradle Wrapper from 9.4.1 to 9.5.1 in /sources/test/init-scripts (#961)
Bump Gradle Wrapper from 9.4.1 to 9.5.1.

Release notes of Gradle 9.5.1 can be found here:
https://docs.gradle.org/9.5.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-06-09 10:38:19 +02:00
Daz DeBoer 11d4d83c63 Update docs for v6 2026-04-03 15:25:10 -06:00
Daz DeBoer 50e97c2cd7 Link to docs for caching providers 2026-04-03 08:42:14 -06:00
Daz DeBoerandClaude Opus 4.6 f2e6298504 Restructure caching documentation for basic and enhanced providers (#934)
## Summary
- Reorganized setup-gradle caching docs into three clear sections:
general (shared options), Enhanced Caching, and Basic Caching
- Added new documentation for `cache-encryption-key`,
`gradle-home-cache-strict-match`, and the full Basic Caching section
(key strategy, stored content, limitations)
- Moved enhanced-only options (`cache-write-only`,
`cache-overwrite-existing`, `cache-cleanup`, includes/excludes, strict
matching) into the Enhanced Caching section
- Preserved all existing anchor links used by source code and other docs

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

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 08:36:37 -06:00
Daz DeBoer b294b1e2db Really fix integ-test-full 2026-04-03 08:14:43 -06:00
Daz DeBoer 83d3189aae Revise license details for gradle-actions-caching
Updated licensing information for vendor component.
2026-04-03 07:48:43 -06:00
Daz DeBoer 1d5db06d26 Update license link for gradle-actions-caching component 2026-04-03 07:47:03 -06:00
Daz DeBoer 1c80961550 Fix license link for Enhanced Caching component
Updated the license link for Enhanced Caching component.
2026-04-03 07:45:43 -06:00
Daz DeBoer 9e99920b14 Fix integ-test-full workflow 2026-04-03 07:29:33 -06:00
Daz DeBoer bb8aaaf9d5 Fix workflow permissions 2026-04-02 22:03:35 -06:00
bot-githubaction f5dfb43fc8 [bot] Update dist directory 2026-04-03 03:36:46 +00:00
Daz DeBoerandClaude Opus 4.6 ff9ae24c39 Add open-source 'basic' cache provider and revamp licensing documentation (#930)
## Summary

- **New `basic` cache provider**: Adds an open-source (MIT-licensed)
caching implementation built on `@actions/cache` as an alternative to
the proprietary Enhanced Caching. Users can opt in with `cache-provider:
basic` on both `setup-gradle` and `dependency-submission` actions.
- **Revamped licensing & distribution docs**: Replaces the verbose
licensing notice block (previously shown in README, docs, and logs) with
a friendlier callout and a new dedicated
[DISTRIBUTION.md](./DISTRIBUTION.md) covering component licensing, usage
tiers, data privacy ("Safe Harbor"), and opt-out instructions.
- **Improved messaging**: Enhanced Caching and Basic Caching each
display concise, informative log messages and job summary notes instead
of the previous wall-of-text license warning.
- **New integration tests**: Adds `integ-test-basic-cache-provider.yml`
workflow that seeds and verifies the basic cache provider across
platforms, plus unit tests for `BasicCacheService` and `getCacheService`
selection logic.
- **CI workflow reorganization**: Dependency-submission integration
tests extracted into their own reusable suite
(`suite-integ-test-dependency-submission.yml`); sample project tests
moved into the caching suite.

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 21:36:01 -06:00
bot-githubaction ac396bf1a8 [bot] Update dist directory 2026-04-02 23:47:27 +00:00
Daz DeBoeranddependabot[bot] f333b2d34b Update dependencies and resolve npm vulnerabilities (#933)
This pull request includes dependency updates, a minor bug fix, and a
workflow update. The most significant changes are grouped below:

Dependency Updates:

* Updated several development dependencies in `sources/package.json`,
including `@typescript-eslint/eslint-plugin` to 8.58.0, `esbuild` to
0.28.0, and `ts-jest` to 29.4.9, to keep the project up to date with the
latest features and bug fixes.

Bug Fix:

* Fixed a typo in the import statement for `deprecation-collector` in
`sources/src/configuration.ts`, correcting the import from `de cator` to
`deprecator`.

CI/CD Workflow Update:

* Updated the commit hashes for the `github/codeql-action/init` and
`github/codeql-action/analyze` steps in
`.github/workflows/ci-codeql.yml` to use a newer commit, ensuring the
workflow uses the latest patches for these actions.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-02 17:46:48 -06:00
Daz DeBoer d341a58140 Remove configuration-cache docs 2026-04-02 12:01:48 -06:00
Daz DeBoer f8858e0208 Revert "Update gradle-actions-caching library to v0.5.0 (#923)"
This reverts commit 6ac57d8041.
2026-04-02 08:45:51 -06:00
Daz DeBoer c841461734 Ignore claude directory 2026-04-02 08:45:40 -06:00
Bot Githubaction 6ac57d8041 Update gradle-actions-caching library to v0.5.0 (#923)
Updates to the latest gradle-actions-caching library.
2026-04-01 07:18:25 -06:00
bot-githubaction b93d9dccdc [bot] Update dist directory 2026-04-01 05:01:34 +00:00
Daz DeBoer d63f73fa0d Update Dependencies (#922)
This pull request primarily updates dependencies to ensure compatibility
and benefit from the latest features and fixes. The most significant
changes include upgrading the Develocity Gradle plugin and related
workflow/test matrix versions, as well as updating several
JavaScript/TypeScript development dependencies.

**Gradle and Develocity plugin updates:**

* Updated the `com.gradle.develocity` plugin version from `4.3.2` to
`4.4.0` across all workflow sample Gradle files and documentation. This
ensures the latest features and fixes are used in all example and test
projects.
[[1]](diffhunk://#diff-76298366dd6b8dd6f26592596c333884930a893c9553247c720b151c4e2ca314L2-R2)
[[2]](diffhunk://#diff-d4c2e31d274e47ae44389c511a1ba7fb24275335d155de5d013bcfa1631da3f4L2-R2)
[[3]](diffhunk://#diff-8ccb433ca9eee93c137fed07a97f755e10aae3a5989fbcd9eae427383a8c2243L2-R2)
[[4]](diffhunk://#diff-f71438b1f838b2006cbff9be742ce918a0a53dfa51ab838f480517f63da54e55L2-R2)
[[5]](diffhunk://#diff-f7ae8d202a355a0d67ecbaf0d3b18c5bc0ef3d94a546724ff776b20517d4318cL867-R867)
* Changed the Develocity plugin version in the integration test matrix
and related access key logic from `4.3.2` to `4.4.0` in the GitHub
Actions workflow configuration.
[[1]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L33-R33)
[[2]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L46-R46)
[[3]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L95-R95)
[[4]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L151-R151)
[[5]](diffhunk://#diff-670fc94ebca0a47e5491678ac19b6eeb5c06bbe5fb1786748f38b3a983564543L194-R194)

**GitHub Actions workflow updates:**

* Upgraded the `gradle/actions/setup-gradle` and
`gradle/actions/wrapper-validation` actions from v5.0.2 to v6.0.1 in all
relevant workflows, ensuring compatibility with the latest Gradle and
GitHub Actions features.
[[1]](diffhunk://#diff-67e3ccddaa5be01f56241af95a472ecc7b4eea0f6c71adb38e109207ea643af2L29-R29)
[[2]](diffhunk://#diff-20def8dd090267382644676ff63075fd8c64a9c8a9eeae936fc2451b10c063ccL33-R33)
[[3]](diffhunk://#diff-97df74640aaaa8bf2c853ceb34bc83eda56f6a670a91ef5a27e5c9ffcf1c9378L15-R15)
* Updated the `github/codeql-action/init` and
`github/codeql-action/analyze` actions to a new commit SHA, maintaining
up-to-date security scanning.

**JavaScript/TypeScript dependency updates:**

* Upgraded `@typescript-eslint/eslint-plugin` from `8.57.1` to `8.57.2`,
`eslint` from `10.0.3` to `10.1.0`, and `typescript` from `5.9.3` to
`6.0.2` in `sources/package-lock.json`, along with related dependency
tree updates for improved linting and TypeScript support.
[[1]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL34-R44)
[[2]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL1679-R1685)
[[3]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2857-R2867)
[[4]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2880-R2925)
[[5]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2917-R2946)
[[6]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebL2943-R2988)
[[7]](diffhunk://#diff-7e4a393257b8b2f1b2d998903badbc3175139afc4f7959f1a80f3a2fac68ecebR2997-R3015)
2026-03-31 23:00:47 -06:00
dependabot[bot] 8d29df0507 Revert typescript update 2026-03-31 22:46:32 -06:00
dependabot[bot] 5f8d454165 Bump the github-actions group across 1 directory with 2 updates
Bumps the github-actions group with 2 updates in the / directory: [gradle/actions](https://github.com/gradle/actions) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `gradle/actions` from 5.0.2 to 6.0.1
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/0723195856401067f7a2779048b490ace7a47d7c...39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f)

Updates `github/codeql-action` from 4.33.0 to 4.34.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/b1bff81932f5cdfc8695c7752dcee935dcd061c8...38697555549f1db7851b81482ff19f1fa5c4fedc)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: 4.34.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-31 22:35:40 -06:00
dependabot[bot] 5636af687b Bump the npm-dependencies group in /sources with 3 updates
Bumps the npm-dependencies group in /sources with 3 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [eslint](https://github.com/eslint/eslint) and [typescript](https://github.com/microsoft/TypeScript).


Updates `@typescript-eslint/eslint-plugin` from 8.57.1 to 8.57.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.2/packages/eslint-plugin)

Updates `eslint` from 10.0.3 to 10.1.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.0.3...v10.1.0)

Updates `typescript` from 5.9.3 to 6.0.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.2)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.57.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-version: 10.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-31 22:35:18 -06:00
bot-githubaction 00c71e737e Bump references to Develocity Gradle plugin from 4.3.2 to 4.4.0 2026-03-31 22:34:44 -06:00
bot-githubaction 43b3895d27 [bot] Update dist directory 2026-04-01 04:17:46 +00:00
Daz DeBoer 0b8fa27eb1 Use a unique cache entry for wrapper-validation test (#921)
This is necessary to avoid loading a cache entry from a different test,
where the allowed wrapper checksums might have been cached, causing the
wrapper validation to unexpectedly succeed.
2026-03-31 22:16:59 -06:00
Daz DeBoer 263d8fe18e Enhance setup-gradle.md with validation details
Added a point about Gradle Wrapper files validation to the setup documentation.
2026-03-27 12:50:52 -06:00
bot-githubaction 39e147cb9d [bot] Update dist directory 2026-03-24 15:25:09 +00:00
dependabot[bot] 14ac3d6351 Bump com.fasterxml.jackson.dataformat:jackson-dataformat-smile from 2.21.1 to 2.21.2 in /sources/test/init-scripts in the gradle group across 1 directory (#907)
Bumps the gradle group with 1 update in the /sources/test/init-scripts
directory:
[com.fasterxml.jackson.dataformat:jackson-dataformat-smile](https://github.com/FasterXML/jackson-dataformats-binary).

Updates `com.fasterxml.jackson.dataformat:jackson-dataformat-smile` from
2.21.1 to 2.21.2
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/4abc5dc04ab08b8c587029d7bdc86a50cc7ba81a"><code>4abc5dc</code></a>
[maven-release-plugin] prepare release
jackson-dataformats-binary-2.21.2</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/c139eb76ca789b6c1f628c56491e3a801f812d2e"><code>c139eb7</code></a>
Prep for 2.21.2 release</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/4a3327708a24445f4e775d6aa51d4c6a87728baf"><code>4a33277</code></a>
Merge branch '2.20' into 2.21</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/816df57981204df2f0b0b418f179f78df0736fb0"><code>816df57</code></a>
Merge branch '2.19' into 2.20</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/3ae1b3102e795e48edb1dd6481b7856155d52dc6"><code>3ae1b31</code></a>
Update release notes</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/c5f237894b9b92ca54743e474f9af2bcdf8ba8ca"><code>c5f2378</code></a>
Post-release dep version bump</li>
<li><a
href="https://github.com/FasterXML/jackson-dataformats-binary/commit/182a13afdec0b17889d1447775b28984a3d327c9"><code>182a13a</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/FasterXML/jackson-dataformats-binary/compare/jackson-dataformats-binary-2.21.1...jackson-dataformats-binary-2.21.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.fasterxml.jackson.dataformat:jackson-dataformat-smile&package-manager=gradle&previous-version=2.21.1&new-version=2.21.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-03-24 09:24:18 -06:00
Daz DeBoer 81fec7a823 Mention explicit license acceptance in notice (#912) 2026-03-24 09:23:53 -06:00
bot-githubaction 4ac5b012ea [bot] Update dist directory 2026-03-24 14:47:03 +00:00
Daz DeBoer f64284c333 Mute license warning when terms are accepted (#911)
With licensing changes in v6, a license warning was added to the logs
and job summary. Now, accepting the Build Scan Terms of Use or providing
a Develocity Access Key will mute this warning.
2026-03-24 08:46:15 -06:00
Daz DeBoer c2457a7fb2 Update tagging instructions for release 2026-03-23 17:46:33 -06:00
Daz DeBoer 8205114447 Update Gradle version compatibility information 2026-03-23 17:38:52 -06:00
Daz DeBoer 6710000013 Add typing information for use by typesafegithub (#910)
Introduces type descriptor YAML files for GitHub
Actions in the repository, improving type safety and documentation for
action inputs and outputs. It also adds a new GitHub Actions workflow to
validate these typings automatically on pushes and pull requests. The
changes are grouped into the addition of type descriptor files for
various actions and the automation of their validation.

https://github.com/typesafegithub/github-actions-typing

**Type descriptor files for GitHub Actions:**

* Added `action-types.yml` files to `setup-gradle`,
`dependency-submission`, and `wrapper-validation` actions, specifying
input and output types for each action to improve type safety and
documentation.

[[1]](diffhunk://#diff-542de74831b6dc1954ff20a4c329b170053c82087ea7df742bd536156133f25bR1-R171)
[[2]](diffhunk://#diff-44708a3af3d0f3cfed1873f9b77d7e815c6c14e941fa3dd5ed08835a69d67855R1-R146)
[[3]](diffhunk://#diff-3fe1028d7aa5ee815c90fa580d4f62e646f0b9a4b7372f227fc131a56948ace0R1-R17)

**Automation and validation:**

* Introduced a new GitHub Actions workflow
`.github/workflows/ci-validate-typings.yml` to automatically validate
action typings on pushes to `main` and `release/**` branches, as well as
on pull requests. This uses the `github-actions-typing` action for
validation.
2026-03-23 12:14:14 -06:00
Daz DeBoer 3d0e2a88da Pin version for github actions 2026-03-23 12:11:47 -06:00
Daz DeBoer f663ed9f3d Ignore internal action files for type validation 2026-03-23 12:10:10 -06:00
Leonard Brünings 9e6b5adc6e Add typing information for use by typesafegithub (#814)
Introduces type descriptor YAML files for GitHub
Actions in the repository, improving type safety and documentation for
action inputs and outputs. It also adds a new GitHub Actions workflow to
validate these typings automatically on pushes and pull requests. The
changes are grouped into the addition of type descriptor files for
various actions and the automation of their validation.

https://github.com/typesafegithub/github-actions-typing

**Type descriptor files for GitHub Actions:**

* Added `action-types.yml` files to `setup-gradle`,
`dependency-submission`, and `wrapper-validation` actions, specifying
input and output types for each action to improve type safety and
documentation.
[[1]](diffhunk://#diff-542de74831b6dc1954ff20a4c329b170053c82087ea7df742bd536156133f25bR1-R171)
[[2]](diffhunk://#diff-44708a3af3d0f3cfed1873f9b77d7e815c6c14e941fa3dd5ed08835a69d67855R1-R146)
[[3]](diffhunk://#diff-3fe1028d7aa5ee815c90fa580d4f62e646f0b9a4b7372f227fc131a56948ace0R1-R17)

**Automation and validation:**

* Introduced a new GitHub Actions workflow
`.github/workflows/ci-validate-typings.yml` to automatically validate
action typings on pushes to `main` and `release/**` branches, as well as
on pull requests. This uses the `github-actions-typing` action for
validation.
2026-03-23 12:06:12 -06:00
Zongle Wang 310f24cf39 Bump actions used in docs (#792) 2026-03-23 11:53:33 -06:00
bot-githubaction 0f4528296b [bot] Update dist directory 2026-03-23 17:35:12 +00:00
Daz DeBoer 6c6dec06f4 Fix rendering of job-disabled message (#909) 2026-03-23 11:34:26 -06:00
Daz DeBoer dd0829a494 Add cache-disabled example to demo workflow 2026-03-23 11:11:46 -06:00
bot-githubaction fd60153b4a [bot] Update dist directory 2026-03-23 17:02:50 +00:00
Daz DeBoer 9c9963b8af Dependency updates (#905) 2026-03-23 11:02:00 -06:00
bot-githubaction 22c3ef2608 Update known wrapper checksums 2026-03-23 10:26:38 -06:00
bot-githubaction 51a7f13c39 Bump Gradle Wrapper from 9.4.0 to 9.4.1.
Release notes of Gradle 9.4.1 can be found here:
https://docs.gradle.org/9.4.1/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>
2026-03-23 10:26:16 -06:00
dependabot[bot] 2c1f55600d Bump github/codeql-action in the github-actions group across 1 directory
Bumps the github-actions group with 1 update in the / directory: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.32.6 to 4.33.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/0d579ffd059c29b07949a3cce3983f0780820c98...b1bff81932f5cdfc8695c7752dcee935dcd061c8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 10:24:00 -06:00
dependabot[bot] d0745b9c76 Bump @typescript-eslint/eslint-plugin
Bumps the npm-dependencies group in /sources with 1 update: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin).


Updates `@typescript-eslint/eslint-plugin` from 8.57.0 to 8.57.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.57.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 10:23:42 -06:00
Daz DeBoer 8bfa39f571 Add instructions for claude 2026-03-23 10:20:32 -06:00
Daz DeBoerandClaude Opus 4.6 db39ac7061 Fix critical and high npm vulnerabilities
Update transitive dependencies to resolve 4 security vulnerabilities:
- fast-xml-parser 5.2.0 → 5.5.8 (critical: DoS, entity expansion, stack overflow)
- flatted 3.3.3 → 3.4.2 (high: recursion DoS, prototype pollution)
- minimatch 3.1.2/5.1.6/9.0.5 → 3.1.5/5.1.9/9.0.9 (high: ReDoS)
- undici 6.23.0/7.21.0 → 6.24.1/7.24.5 (high: WebSocket overflow, HTTP smuggling)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:19:28 -06:00
bot-githubaction 8f7f5a5ed8 [bot] Update dist directory 2026-03-23 15:44:10 +00:00
Daz DeBoer 25454f526a Avoid windows shutdown bug (#900)
* Avoid windows shutdown bug with shutdown delay
* Use a separate concurrency group for integ-test-full
2026-03-23 09:43:17 -06:00
Daz DeBoer 2cab5e3c71 Fix path for running full-integ-test 2026-03-20 10:20:00 -06:00
Bot Githubaction 75dee00288 Update gradle-actions-caching library to v0.3.0 (#899) 2026-03-20 10:17:14 -06:00
Daz DeBoer 56227c19fe Run only one integ-test suite at a time 2026-03-20 10:16:30 -06:00
Daz DeBoer b99ed96fc6 Fix branch name for update PR 2026-03-20 09:14:33 -06:00
Daz DeBoer 9becd650e8 Run integ-test-full for gradle-actions-caching updates 2026-03-20 08:26:42 -06:00
bot-githubaction 73536630a5 [bot] Update dist directory 2026-03-18 20:58:30 +00:00
Daz DeBoer a0ee12f71e Extract caching logic into a separate gradle-actions-caching component (#885)
With this change, the caching functionality of `setup-gradle` and
`dependency-submission` is now provided by `gradle-actions-caching`, a
closed-source library distributed under our [Terms of
Use](https://gradle.com/legal/terms-of-use/). The rest of the action
implementation remains open source.

Using `setup-gradle` or `dependency-submission` with caching enabled
involves loading and using the `gradle-actions-caching` component,
requiring acceptance of the [Terms of
Use](https://gradle.com/legal/terms-of-use/). There are no functional
changes to caching provided by these actions: all workflows will
continue to function as before.

The non-caching aspects of action implementation remain open source. By
running these actions with caching disabled they can be used without
ever loading `gradle-actions-caching` or accepting the license terms.

Supporting the caching infrastructure in this project requires a
substantial engineering investment by Gradle Technologies, which we can
sustain thanks to Develocity, our commercial offering. Caching
technologies are a core part of the Develocity offering, and the caching
in `setup-gradle` fits squarely in that space.

This licensing change lets us continue to build advanced capabilities
that go beyond what we would offer as open source. Proper
production-ready Configuration Cache support will be the first
capability. Improving build performance for self-hosted runners will
follow.

We may introduce functionality restrictions in future updates. However,
caching functionality will remain free for public repositories.
We have a long-standing commitment to open source, as maintainers of
Gradle Build Tool, and by [sponsoring the open source
community](https://gradle.com/oss-sponsored-by-develocity/) with free
Develocity licenses. Public repositories are primarily used by open
source projects, and we remain committed to supporting them.

- Implementation of caching logic to save and restore Gradle User Home
content has been removed, replaced by the `gradle-actions-caching`
component.
- The `@actions/caching` library is still used to cache Gradle
distributions that are downloaded and provisioned by `setup-gradle`.
This PR updates to the latest version of `@actions/caching`, and removes
the patch that is no longer required.
- License notices are now displayed in documentation, logs and the
generated Job Summary.
2026-03-18 14:57:27 -06:00
Daz DeBoer c999154b1f Remove configuration-cache support (#884)
Removes support for configuration-cache extraction and restore from the
caching workflow and related source code. Configuration-cache support
only worked for a limited set of projects (gradle/actions#21), and we
plan to reimplement this properly as part of the
`gradle-actions-caching` project.

The main impact is simplification of the caching logic, focusing only on
common Gradle artifacts. The `ConfigurationCacheEntryExtractor` class
and related logic were deleted from
`sources/src/caching/gradle-home-extry-extractor.ts`.
2026-03-18 14:27:09 -06:00
dependabot[bot]andJérôme Prinet 03ee1e1693 Bump the github-actions group across 3 directories with 5 updates (#880)
Bumps the github-actions group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.2.0` | `6.3.0` |
| [tj-actions/changed-files](https://github.com/tj-actions/changed-files) | `47.0.4` | `47.0.5` |
| [github/codeql-action](https://github.com/github/codeql-action) | `4.32.4` | `4.32.6` |
| [crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg) | `6.3.0` | `7.0.0` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `8.0.0` | `8.0.1` |

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/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/setup-node` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/6044e13b5dc448c55e2357c09f80417699197238...53b83947a5a98c8d113130e565377fae1a50d02f)

Updates `tj-actions/changed-files` from 47.0.4 to 47.0.5
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/7dee1b0c1557f278e5c7dc244927139d78c0e22a...22103cc46bda19c2b464ffe86db46df6922fd323)

Updates `github/codeql-action` from 4.32.4 to 4.32.6
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/89a39a4e59826350b863aa6b6252a07ad50cf83e...0d579ffd059c29b07949a3cce3983f0780820c98)

Updates `crazy-max/ghaction-import-gpg` from 6.3.0 to 7.0.0
- [Release notes](https://github.com/crazy-max/ghaction-import-gpg/releases)
- [Commits](https://github.com/crazy-max/ghaction-import-gpg/compare/e89d40939c28e39f97cf32126055eeae86ba74ec...2dc316deee8e90f13e1a351ab510b4d5bc0c82cd)

Updates `actions/download-artifact` from 8.0.0 to 8.0.1
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3...3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c)

Updates `actions/setup-node` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/6044e13b5dc448c55e2357c09f80417699197238...53b83947a5a98c8d113130e565377fae1a50d02f)

Updates `actions/download-artifact` from 8.0.0 to 8.0.1
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3...3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: tj-actions/changed-files
  dependency-version: 47.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-version: 4.32.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: crazy-max/ghaction-import-gpg
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Prinet <jprinet@gradle.com>
2026-03-16 17:07:46 +01:00
bot-githubaction 0ec8ab4e61 [bot] Update dist directory 2026-03-16 15:57:21 +00:00
dependabot[bot] e9f7b35003 Bump the npm-dependencies group in /sources with 6 updates (#879)
Bumps the npm-dependencies group in /sources with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [@jest/globals](https://github.com/jestjs/jest/tree/HEAD/packages/jest-globals) | `30.2.0` | `30.3.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.3.5` | `25.5.0` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.56.1` | `8.57.0` |
| [esbuild](https://github.com/evanw/esbuild) | `0.27.3` | `0.27.4` |
| [eslint](https://github.com/eslint/eslint) | `10.0.2` | `10.0.3` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) | `30.2.0` | `30.3.0` |


Updates `@jest/globals` from 30.2.0 to 30.3.0
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.3.0/packages/jest-globals)

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

Updates `@typescript-eslint/eslint-plugin` from 8.56.1 to 8.57.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.0/packages/eslint-plugin)

Updates `esbuild` from 0.27.3 to 0.27.4
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.3...v0.27.4)

Updates `eslint` from 10.0.2 to 10.0.3
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.0.2...v10.0.3)

Updates `jest` from 30.2.0 to 30.3.0
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.3.0/packages/jest)

---
updated-dependencies:
- dependency-name: "@jest/globals"
  dependency-version: 30.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@types/node"
  dependency-version: 25.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.57.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: esbuild
  dependency-version: 0.27.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-version: 10.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: jest
  dependency-version: 30.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 16:56:24 +01:00
github-actions[bot]andbot-githubaction 092fa96ff7 Update known wrapper checksums (#881)
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-03-16 16:55:58 +01:00
dependabot[bot] 39bfbcf1a9 Bump the github-actions group across 3 directories with 3 updates (#867)
Bumps the github-actions group with 3 updates in the / directory: [gradle/actions](https://github.com/gradle/actions), [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/build-dist directory: [actions/upload-artifact](https://github.com/actions/upload-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/init-integ-test directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `gradle/actions` from 5.0.1 to 5.0.2
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/f29f5a9d7b09a7c6b29859002d29d24e1674c884...0723195856401067f7a2779048b490ace7a47d7c)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-12 13:52:50 -06:00
bot-githubaction 9b2e353921 [bot] Update dist directory 2026-03-12 19:52:05 +00:00
dependabot[bot] 41b9789f1f Bump @types/node (#877)
Bumps the npm-dependencies group with 1 update in the /sources directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


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

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-12 13:51:13 -06:00
github-actions[bot]andbot-githubaction 5e8b335505 Update known wrapper checksums (#878)
Co-authored-by: bot-githubaction <bot-githubaction@gradle.com>
2026-03-12 13:50:30 -06:00
a3dd0763dc Dependency updates (#876)
* Bump Gradle Wrapper from 9.3.1 to 9.4.0.

Release notes of Gradle 9.4.0 can be found here:
https://docs.gradle.org/9.4.0/release-notes.html

Signed-off-by: bot-githubaction <bot-githubaction@gradle.com>

* Bump the github-actions group across 3 directories with 3 updates

Bumps the github-actions group with 3 updates in the / directory: [gradle/actions](https://github.com/gradle/actions), [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/build-dist directory: [actions/upload-artifact](https://github.com/actions/upload-artifact).
Bumps the github-actions group with 1 update in the /.github/actions/init-integ-test directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `gradle/actions` from 5.0.1 to 5.0.2
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](https://github.com/gradle/actions/compare/f29f5a9d7b09a7c6b29859002d29d24e1674c884...0723195856401067f7a2779048b490ace7a47d7c)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

Updates `actions/upload-artifact` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/b7c566a772e6b6bfb58ed0dc250532a479d7789f...bbbca2ddaa5d8feaa63e36b76fdaad77386f024f)

Updates `actions/download-artifact` from 7.0.0 to 8.0.0
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/37930b1c2abaa49bbe596cd826c3c89aef350131...70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump the npm-dependencies group in /sources with 3 updates

Bumps the npm-dependencies group in /sources with 3 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [dedent](https://github.com/dmnd/dedent) and [globals](https://github.com/sindresorhus/globals).


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

Updates `dedent` from 1.7.1 to 1.7.2
- [Release notes](https://github.com/dmnd/dedent/releases)
- [Changelog](https://github.com/dmnd/dedent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dmnd/dedent/compare/v1.7.1...v1.7.2)

Updates `globals` from 17.3.0 to 17.4.0
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v17.3.0...v17.4.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: dedent
  dependency-version: 1.7.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: globals
  dependency-version: 17.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

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>
2026-03-06 09:32:11 -07:00
bot-githubaction b8b4104aef [bot] Update dist directory 2026-03-03 22:32:52 +00:00
Iñaki Villar b84bcb3369 Update known wrapper checksums (#868)
Automatically generated pull request to update the known wrapper
checksums.

In case of conflicts, manually run the workflow from the [Actions
tab](https://github.com/gradle/actions/actions/workflows/update-checksums-file.yml),
the changes will then be force-pushed onto this pull request branch.
Do not manually update the pull request branch; those changes might get
overwritten.

> [!IMPORTANT]  
> GitHub workflows have not been executed for this pull request yet.
Before merging, close and then directly reopen this pull request to
trigger the workflows.
2026-03-03 14:32:08 -08:00
Iñaki Villar 342e94ec9a Bump the npm-dependencies group in /sources with 2 updates (#866)
Bumps the npm-dependencies group in /sources with 2 updates:
[@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)
and [eslint](https://github.com/eslint/eslint).

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

Updates `eslint` from 10.0.1 to 10.0.2
<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.0.2</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/2b723616a4daeacd4605f11b4d087d4a7cae5c74"><code>2b72361</code></a>
fix: update <code>ajv</code> to <code>6.14.0</code> to address security
vulnerabilities (<a
href="https://redirect.github.com/eslint/eslint/issues/20537">#20537</a>)
(루밀LuMir)</li>
</ul>
<h2>Documentation</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/13eeedbbd16218b0da1425b78cb284937fd964ca"><code>13eeedb</code></a>
docs: link rule type explanation to CLI option --fix-type (<a
href="https://redirect.github.com/eslint/eslint/issues/20548">#20548</a>)
(Mike McCready)</li>
<li><a
href="https://github.com/eslint/eslint/commit/98cbf6ba53a1fb2028d25078c7049a538d0e392c"><code>98cbf6b</code></a>
docs: update migration guide per Program range change (<a
href="https://redirect.github.com/eslint/eslint/issues/20534">#20534</a>)
(Huáng Jùnliàng)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61a24054411fa56ce74bef554846caa9d8cb01f5"><code>61a2405</code></a>
docs: add missing semicolon in vars-on-top rule example (<a
href="https://redirect.github.com/eslint/eslint/issues/20533">#20533</a>)
(Abilash)</li>
</ul>
<h2>Chores</h2>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/951223b29669885643f7854d7c824288ba962d7e"><code>951223b</code></a>
chore: update dependency <code>@​eslint/eslintrc</code> to ^3.3.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/20553">#20553</a>)
(renovate[bot])</li>
<li><a
href="https://github.com/eslint/eslint/commit/6aa1afe6694f3fd7f82116109a5ef2ad18ece074"><code>6aa1afe</code></a>
chore: update dependency eslint-plugin-jsdoc to ^62.7.0 (<a
href="https://redirect.github.com/eslint/eslint/issues/20536">#20536</a>)
(Milos Djermanovic)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eslint/eslint/commit/55122d6f971119607c85b0df8e62942171c939f7"><code>55122d6</code></a>
10.0.2</li>
<li><a
href="https://github.com/eslint/eslint/commit/80f1e29ec87c07a1cef789c718d6167da59f35f6"><code>80f1e29</code></a>
Build: changelog update for 10.0.2</li>
<li><a
href="https://github.com/eslint/eslint/commit/951223b29669885643f7854d7c824288ba962d7e"><code>951223b</code></a>
chore: update dependency <code>@​eslint/eslintrc</code> to ^3.3.4 (<a
href="https://redirect.github.com/eslint/eslint/issues/20553">#20553</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/13eeedbbd16218b0da1425b78cb284937fd964ca"><code>13eeedb</code></a>
docs: link rule type explanation to CLI option --fix-type (<a
href="https://redirect.github.com/eslint/eslint/issues/20548">#20548</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/6aa1afe6694f3fd7f82116109a5ef2ad18ece074"><code>6aa1afe</code></a>
chore: update dependency eslint-plugin-jsdoc to ^62.7.0 (<a
href="https://redirect.github.com/eslint/eslint/issues/20536">#20536</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/2b723616a4daeacd4605f11b4d087d4a7cae5c74"><code>2b72361</code></a>
fix: update <code>ajv</code> to <code>6.14.0</code> to address security
vulnerabilities (<a
href="https://redirect.github.com/eslint/eslint/issues/20537">#20537</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/98cbf6ba53a1fb2028d25078c7049a538d0e392c"><code>98cbf6b</code></a>
docs: update migration guide per Program range change (<a
href="https://redirect.github.com/eslint/eslint/issues/20534">#20534</a>)</li>
<li><a
href="https://github.com/eslint/eslint/commit/61a24054411fa56ce74bef554846caa9d8cb01f5"><code>61a2405</code></a>
docs: add missing semicolon in vars-on-top rule example (<a
href="https://redirect.github.com/eslint/eslint/issues/20533">#20533</a>)</li>
<li>See full diff in <a
href="https://github.com/eslint/eslint/compare/v10.0.1...v10.0.2">compare
view</a></li>
</ul>
</details>
<br />

<details>
<summary>Most Recent Ignore Conditions Applied to This Pull
Request</summary>

| Dependency Name | Ignore Conditions |
| --- | --- |
| @types/node | [>= 22.a, < 23] |
</details>


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>
2026-03-02 15:12:11 -08:00
bot-githubaction 9a834d769a Update known wrapper checksums 2026-02-28 05:38:21 +00:00
dependabot[bot] 626cd96bc6 Bump the npm-dependencies group in /sources with 2 updates
Bumps the npm-dependencies group in /sources with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [eslint](https://github.com/eslint/eslint).


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

Updates `eslint` from 10.0.1 to 10.0.2
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.0.1...v10.0.2)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-version: 10.0.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 23:04:42 +00:00
147 changed files with 4054 additions and 7418 deletions

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ name: 'Build and upload distribution'
runs:
using: "composite"
steps:
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: npm
@@ -23,7 +23,7 @@ runs:
cp -r sources/dist .
- name: Upload distribution
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist/
+1 -1
View File
@@ -23,7 +23,7 @@ runs:
# Downloads a 'dist' directory artifact that was uploaded in an earlier 'build-dist' step
- name: Download dist
if: ${{ env.SKIP_DIST != 'true' && !env.ACT }}
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist/
-6
View File
@@ -15,12 +15,6 @@ updates:
npm-dependencies:
patterns:
- "*"
ignore:
# Keep actions/cache and actions/artifact major aligned and force actions/cache version to match patch
- dependency-name: "*actions/cache*"
- dependency-name: "*actions/artifact*"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@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
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@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
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@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
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,8 +1,10 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@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
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.3.2"
id("com.gradle.develocity") version "4.4.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.3.2"
id "com.gradle.develocity" version "4.4.2"
}
develocity {
+3 -3
View File
@@ -18,15 +18,15 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
@@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@7dee1b0c1557f278e5c7dc244927139d78c0e22a # v47.0.4
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
dist/**
+3 -3
View File
@@ -31,11 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
with:
languages: ${{ matrix.language }}
config: |
@@ -43,4 +43,4 @@ jobs:
- sources/src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
+2 -2
View File
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
@@ -30,7 +30,7 @@ jobs:
java-version: 17
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
- name: Run integration tests
+17 -8
View File
@@ -5,12 +5,10 @@ on:
push:
branches:
- 'main'
- 'bot/gradle-actions-caching'
paths:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
- 'sources/vendor/gradle-actions-caching/**'
permissions:
contents: read
@@ -19,21 +17,32 @@ jobs:
caching-integ-tests:
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-full
group: CI-integ-test-caching
cancel-in-progress: false
with:
runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
skip-dist: true
secrets: inherit
other-integ-tests:
permissions:
contents: write
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
group: CI-integ-test-full
group: CI-integ-test-other
cancel-in-progress: false
with:
skip-dist: true
secrets: inherit
dependency-submission-integ-tests:
permissions:
contents: write
needs: other-integ-tests
uses: ./.github/workflows/suite-integ-test-dependency-submission.yml
concurrency:
group: CI-integ-test-dependency-submission
cancel-in-progress: false
with:
runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
skip-dist: true
secrets: inherit
+20 -6
View File
@@ -11,10 +11,6 @@ on:
paths-ignore:
- 'dist/**'
concurrency:
group: integ-test
cancel-in-progress: false
permissions:
contents: read
@@ -23,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
@@ -31,6 +27,9 @@ jobs:
caching-integ-tests:
needs: build-distribution
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
group: CI-integ-test-caching
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
@@ -38,8 +37,23 @@ jobs:
other-integ-tests:
permissions:
contents: write
needs: build-distribution
needs: caching-integ-tests
uses: ./.github/workflows/suite-integ-test-other.yml
concurrency:
group: CI-integ-test-other
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
dependency-submission-integ-tests:
permissions:
contents: write
needs: other-integ-tests
uses: ./.github/workflows/suite-integ-test-dependency-submission.yml
concurrency:
group: CI-integ-test-dependency-submission
cancel-in-progress: false
with:
skip-dist: false
secrets: inherit
+2 -8
View File
@@ -21,7 +21,7 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
show-progress: false
@@ -44,14 +44,8 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: 'Upload artifact'
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: 'Upload to code-scanning'
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3.29.5
with:
sarif_file: results.sarif
+3 -3
View File
@@ -23,12 +23,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
@@ -61,7 +61,7 @@ jobs:
cp -r sources/dist .
- name: Import GPG key to sign commits
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
+24
View File
@@ -0,0 +1,24 @@
name: ci-validate-typings.yml
on:
push:
branches:
- 'main'
- 'release/**'
paths-ignore:
- 'dist/**'
pull_request:
permissions:
contents: read
jobs:
validate-typings:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: typesafegithub/github-actions-typing@9ddf35b71a482be7d8922b28e8d00df16b77e315 # v2.2.2
with:
ignored-action-files: |
.github/actions/build-dist/action.yml
.github/actions/init-integ-test/action.yml
action.yml
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: gradle/actions/wrapper-validation@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+74 -5
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -114,3 +114,72 @@ jobs:
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
cache-disabled:
needs: build-distribution
runs-on: ubuntu-latest
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-disabled: true
- 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
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-provider: basic
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
terms-of-use-accepted:
needs: build-distribution
runs-on: ubuntu-latest
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:
build-scan-terms-of-use-url: https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree: yes
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
develocity-access-key-set:
needs: build-distribution
runs-on: ubuntu-latest
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:
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew assemble
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -0,0 +1,67 @@
name: Test basic cache provider
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: basic-cache-provider-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
basic-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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with basic cache provider
uses: ./setup-gradle
with:
cache-provider: basic
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build
basic-cache-verify-build:
needs: basic-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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with basic cache provider
uses: ./setup-gradle
with:
cache-provider: basic
cache-read-only: true
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build --offline
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -62,7 +62,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build with 3.1
working-directory: sources/test/jest/resources/cache-cleanup
working-directory: .github/workflow-samples/cache-cleanup
run: ./gradlew --no-daemon --build-cache -Dcommons_math3_version="3.1" build
# Second build will use the cache from the first build, but cleanup should remove unused artifacts
@@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
cache-read-only: false
cache-cleanup: 'on-success'
- name: Build with 3.1.1
working-directory: sources/test/jest/resources/cache-cleanup
working-directory: .github/workflow-samples/cache-cleanup
run: ./gradlew --no-daemon --build-cache -Dcommons_math3_version="3.1.1" build
# Third build will restore cache entry from second, and verify stale content removed
@@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -105,7 +105,7 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest # This test only runs on Ubuntu
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -129,7 +129,7 @@ jobs:
run: ./gradlew help
- name: Check Build Scan url is captured
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -146,7 +146,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -170,7 +170,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -178,7 +178,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Download dependency-graph artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: downloaded-dependency-graphs
pattern: dependency-graph_*dependency-graph-generate-submit-and-upload.json
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -86,7 +86,7 @@ jobs:
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,7 +60,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -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.3.2']
plugin-version: ['3.16.2', '4.4.2']
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.3.2'
- plugin-version: '4.4.2'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
@@ -55,7 +55,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -72,7 +72,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -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.3.2']
plugin-version: ['3.16.2', '4.4.2']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -106,7 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -129,7 +129,7 @@ jobs:
run: "[ ${#GRADLE_ENTERPRISE_ACCESS_KEY} -gt 500 ] || (echo 'GRADLE_ENTERPRISE_ACCESS_KEY does not look like a short lived token'; exit 1)"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -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.3.2' ]
plugin-version: [ '3.16.2', '4.4.2' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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.3.2' ]
plugin-version: [ '3.16.2', '4.4.2' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -205,7 +205,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -225,7 +225,7 @@ jobs:
run: gradle help
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -77,7 +77,7 @@ jobs:
run: gradle help
- name: Check current version output parameter
if: ${{ !startsWith(steps.gradle-current.outputs.gradle-version , '9.') }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.gradle-current.outputs.gradle-version }}"')
@@ -105,7 +105,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -122,7 +122,7 @@ jobs:
gradle-version: ${{ matrix.gradle }}
- name: Check output parameter
if: ${{ steps.setup-gradle.outputs.gradle-version != matrix.gradle }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('Gradle version parameter not set correctly: value was "${{ steps.setup-gradle.outputs.gradle-version }}"')
@@ -132,7 +132,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=${{matrix.gradle}}"
- name: Check Build Scan url
if: ${{ !steps.gradle.outputs.build-scan-url }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
core.setFailed('No Build Scan detected')
@@ -1,235 +0,0 @@
name: Test restore configuration-cache
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
secrets:
GRADLE_ENCRYPTION_KEY:
required: true
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: restore-configuration-cache-${{ inputs.cache-key-prefix }}
permissions:
contents: read
jobs:
restore-cc-seed-build-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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
cache-write-only: true # Ensure we start with a clean cache entry
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
restore-cc-verify-build-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_1
needs: restore-cc-seed-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false
cache-cleanup: on-success
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/groovy-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
# Ensure that cache-cleanup doesn't remove all necessary files
restore-cc-verify-no-cache-cleanup-groovy:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_2
needs: restore-cc-verify-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Groovy build with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/groovy-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
# Check that the build can run when no extracted cache entries are restored
restore-cc-gradle-user-home-not-fully-restored:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-groovy
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_x
needs: restore-cc-seed-build-groovy
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle with no extracted cache entries restored
uses: ./setup-gradle
env:
GRADLE_BUILD_ACTION_SKIP_RESTORE: "generated-gradle-jars|wrapper-zips|java-toolchains|instrumented-jars|dependencies|kotlin-dsl"
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Check execute Gradle build with configuration cache enabled (but not restored)
working-directory: .github/workflow-samples/groovy-dsl
run: gradle test --configuration-cache
restore-cc-seed-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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
cache-write-only: true # Ensure we start with a clean cache entry
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'help' with configuration-cache enabled
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle help --configuration-cache
restore-cc-modify-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_1
needs: restore-cc-seed-build-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'test' with configuration-cache enabled
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle test --configuration-cache
# Test restore configuration-cache from the third build invocation
restore-cc-verify-build-kotlin:
env:
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: restore-cc-kotlin
GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION: ${{github.sha}}_2
needs: restore-cc-modify-build-kotlin
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Execute 'test' again with configuration-cache enabled
id: execute
working-directory: .github/workflow-samples/kotlin-dsl
run: gradle test --configuration-cache
- name: Verify configuration-cache hit
shell: bash
run: |
if [ -e ".github/workflow-samples/kotlin-dsl/task-configured.txt" ]; then
echo "Configuration cache was not used - task was configured unexpectedly"
exit 1
fi
@@ -24,7 +24,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -54,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -77,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +100,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +125,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -12,6 +12,7 @@ on:
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: wrapper-validation- # Avoid loading cache entries from other tests, that may have cached allowed wrapper checksums
permissions:
contents: read
@@ -25,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -48,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -77,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -110,7 +111,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
sparse-checkout: |
.github
dist
wrapper-validation
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -118,10 +125,8 @@ jobs:
id: action-test
uses: ./wrapper-validation
with:
# to allow the invalid wrapper jar present in test data
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
min-wrapper-count: 11
# Expected to fail; validated below
min-wrapper-count: 7
# There are only 6 wrappers in workflow-samples, so expected to fail
continue-on-error: true
- name: Check outcome
@@ -140,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2 # Checkout the repository with no wrappers
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
+18 -8
View File
@@ -26,14 +26,6 @@ jobs:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
restore-configuration-cache:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-restore-configuration-cache.yml
with:
skip-dist: ${{ inputs.skip-dist }}
secrets:
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
restore-containerized-gradle-home:
uses: ./.github/workflows/integ-test-restore-containerized-gradle-home.yml
with:
@@ -53,3 +45,21 @@ jobs:
uses: ./.github/workflows/integ-test-restore-java-toolchain.yml
with:
skip-dist: ${{ inputs.skip-dist }}
sample-kotlin-dsl:
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-gradle-plugin:
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
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 }}
@@ -0,0 +1,43 @@
name: suite-integ-test-dependency-submission
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
dependency-graph:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission-failures:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission-failures.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
@@ -20,33 +20,6 @@ jobs:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-graph:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
dependency-submission-failures:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-dependency-submission-failures.yml
permissions:
contents: write
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
develocity-injection:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/integ-test-inject-develocity.yml
@@ -61,18 +34,6 @@ jobs:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-kotlin-dsl:
uses: ./.github/workflows/integ-test-sample-kotlin-dsl.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
sample-gradle-plugin:
uses: ./.github/workflows/integ-test-sample-gradle-plugin.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
toolchain-detection:
uses: ./.github/workflows/integ-test-detect-toolchains.yml
with:
+4 -4
View File
@@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
cache: npm
@@ -38,7 +38,7 @@ jobs:
working-directory: sources
- name: Import GPG key to sign commits
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
@@ -48,7 +48,7 @@ jobs:
# If there are no changes, this action will not create a pull request
- name: Create or update pull request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
branch: bot/wrapper-checksums-update
author: bot-githubaction <bot-githubaction@gradle.com>
+1
View File
@@ -1,2 +1,3 @@
.git
.vscode
.claude
+34
View File
@@ -0,0 +1,34 @@
# Workspace Instructions
## Vendored Library Flow
This repository uses a proprietary caching library: `gradle-actions-caching`.
- The vendored copy lives at `sources/vendor/gradle-actions-caching`
- The source code is at `../actions-caching` and https://github.com/gradle/actions-caching
When a task involves building, updating, validating, or testing the vendored `gradle-actions-caching` library, use this sequence:
1. Run `npm run build` in `actions-caching`.
2. Copy (overwrite) the contents of `actions-caching/dist/` onto `sources/vendor/gradle-actions-caching/`. (No need to rm the existing contents)
3. Then continue with any build, test, or validation steps in this repository.
Do not treat `actions/sources/vendor/gradle-actions-caching` as the source of truth. The source of truth is `actions-caching`, and the vendor directory must be refreshed from its `dist/` output after rebuilding.
## Building
Before running any build or npm commands, initialize the PATH:
```sh
source ~/.zshrc
```
To build this repository, run the `build` script at the root of that repository with no arguments:
```sh
./build
```
## dist directory
Never make direct changes to the 'dist' directory. Building with npm will populate 'sources/dist' which is enough. There is a CI workflow that will update the 'dist' directory when required.
+50
View File
@@ -0,0 +1,50 @@
# Distribution and Licensing of gradle/actions
This document provides a clear breakdown of the components within the `gradle/actions` repository, their respective licenses, and how we handle data and privacy. Our goal is to provide the best possible experience for running Gradle on GitHub Actions while maintaining our commitment to the open-source community.
## 1. Component Map
The `gradle/actions` project consists of three primary components:
| Component | License | Source | Description |
| :--- | :--- | :--- | :--- |
| **Action Runner** | **[MIT](LICENSE)** | Open | The core action logic: configures a local Gradle installation, performs wrapper validation, and reports on Gradle build execution. |
| **[Basic Caching](docs/setup-gradle.md#basic-caching)** | **[MIT](LICENSE)** | Open | Configures basic Gradle User Home caching using 'actions/cache'. |
| **[Enhanced Caching](docs/setup-gradle.md#enhanced-caching)** | **[Proprietary](licenses/gradle-actions-caching-license.txt)** | Closed | Uses the 'gradle-actions-caching' library to provide fine-grained caching of Gradle User Home, intelligent cache cleanup and other advanced features. |
By default, **Enhanced Caching** is enabled to provide the best experience.
## 2. The "Safe Harbor" Clause (Data Privacy)
The proprietary components of this action are governed by the **[Gradle Technologies Terms of Use](https://gradle.com/legal/gradle-technologies-terms-of-use/)**. We have updated these terms to include a specific safe harbor for users of `gradle-actions-caching`.
> **Plain English Summary:** Gradle does not claim ownership of any code, build artifacts, or other content processed by the caching library. These remain your sole property. We only use metadata (like cache keys) to facilitate the caching service.
## 3. Usage Tiers
To support the development of high-performance CI tooling, we offer the following usage model:
* **Public Repositories:**
* Both **Basic** and **Enhanced** caching are free forever. We are committed to supporting the open-source ecosystem at no cost.
* **Private Repositories:**
* **Basic Caching** is free forever under the MIT license.
* **Enhanced Caching** is currently in a **Free Preview** phase. We plan to introduce usage-based pricing for large-scale commercial organizations in the future.
While we haven't finalized specific usage thresholds yet, our intent is to keep Enhanced Caching free for individual developers and small teams. We are currently in a learning phase to ensure that future restrictions are focused on large-scale commercial users of the product. No matter how these limits evolve, the open-source Basic Caching provider will always remain a free, functional alternative for everyone.
## 4. Your Choice: Basic vs. Enhanced
We believe in user autonomy. If you do not wish to use proprietary code or accept the Gradle Technologies Terms of Use, you can opt-out of enhanced caching with a single line of configuration:
```yaml
- uses: gradle/actions/setup-gradle@v6
with:
cache-provider: basic # Switches to the MIT-licensed open-source implementation
```
> [!IMPORTANT]
> ## Licensing notice
>
> The software in this repository, except for the bundled `gradle-actions-caching` component, is licensed under the [MIT License](LICENSE).
>
> The caching functionality in this project has been extracted into `gradle-actions-caching`, a proprietary commercial component that is not covered by the MIT License for this repository.
>
> Use of the `gradle-actions-caching` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
>
> The `gradle-actions-caching` component is used only when enhanced caching is enabled and is not loaded or used with basic caching or when caching is disabled.
+11
View File
@@ -1,3 +1,14 @@
Note on Repository Contents:
The software in this repository is primarily licensed under the MIT License (see below).
However, this repository includes a vendor-included component, 'gradle-actions-caching',
which is Proprietary and distributed under a different license:
see licenses/gradle-actions-caching-license.txt.
For a detailed breakdown of which components are Open Source (MIT) and which are
Proprietary, please refer to DISTRIBUTION.md and NOTICE.
-------------------------------------------------------------------------
The MIT License (MIT)
+11
View File
@@ -0,0 +1,11 @@
NOTICE
The software in this repository, except for the bundled `gradle-actions-caching` component, is licensed under the MIT License.
The caching functionality in this project has been extracted into `gradle-actions-caching`, a proprietary commercial component that is not covered by the MIT License for this repository.
The `gradle-actions-caching` component is used only when enhanced caching is enabled and is not loaded or used with basic caching or when caching is disabled.
Use the `gradle-actions-caching` component is subject to a separate license, available at license/gradle-actions-caching-license.txt.
For a detailed breakdown of components, licensing tiers, and data privacy terms, see DISTRIBUTION.md.
+17 -10
View File
@@ -1,9 +1,16 @@
# GitHub Actions for Gradle builds
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/gradle/actions/badge)](https://scorecard.dev/viewer/?uri=github.com/gradle/actions)
This repository contains a set of GitHub Actions that are useful for building Gradle projects on GitHub.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](./DISTRIBUTION.md).
## The `setup-gradle` action
The `setup-gradle` action can be used to configure Gradle for optimal execution on any platform supported by GitHub Actions.
@@ -25,14 +32,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: ./gradlew build
```
@@ -63,14 +70,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
See the [full action documentation](docs/dependency-submission.md) for more advanced usage scenarios.
@@ -98,8 +105,8 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v5
- uses: actions/checkout@v6
- uses: gradle/actions/wrapper-validation@v6
```
See the [full action documentation](docs/wrapper-validation.md) for more advanced usage scenarios.
+2 -1
View File
@@ -20,8 +20,9 @@
- Include a Full changelog link in the format https://github.com/gradle/actions/compare/v2.12.0...v3.0.0
- Publish the release.
- Force push the `v5` 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 "v5.0.0" v5 v5.0.0 && git push -f --tags`
- From CLI: `git tag -f -s -a -m "v5.0.0" v5 && 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.
## Post release steps
+3 -3
View File
@@ -22,14 +22,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
See the [full action documentation](../docs/dependency-submission.md) for more advanced usage scenarios.
+152
View File
@@ -0,0 +1,152 @@
# Type descriptors based on https://github.com/typesafegithub/github-actions-typing
inputs:
# Gradle execution configuration
gradle-version:
type: string
build-root-directory:
type: string
dependency-resolution-task:
type: string
additional-arguments:
type: string
# Cache configuration
cache-provider:
type: enum
allowed-values:
- basic
- enhanced
cache-disabled:
type: boolean
cache-read-only:
type: boolean
cache-write-only:
type: boolean
cache-overwrite-existing:
type: boolean
cache-encryption-key:
type: string
cache-cleanup:
type: enum
allowed-values:
- never
- on-success
- always
gradle-home-cache-cleanup:
type: boolean
gradle-home-cache-includes:
type: list
separator: '\n'
list-item:
type: string
gradle-home-cache-excludes:
type: list
separator: '\n'
list-item:
type: string
# Job summary configuration
add-job-summary:
type: enum
allowed-values:
- never
- always
- on-failure
add-job-summary-as-pr-comment:
type: enum
allowed-values:
- never
- always
- on-failure
# Dependency Graph configuration
dependency-graph:
type: enum
allowed-values:
- generate-and-submit
- generate-submit-and-upload
- generate-and-upload
- download-and-submit
dependency-graph-report-dir:
type: string
dependency-graph-continue-on-failure:
type: boolean
dependency-graph-exclude-projects:
type: string
dependency-graph-include-projects:
type: string
dependency-graph-exclude-configurations:
type: string
dependency-graph-include-configurations:
type: string
artifact-retention-days:
type: integer
# Build Scan configuration
build-scan-publish:
type: boolean
build-scan-terms-of-use-url:
type: enum
allowed-values:
- https://gradle.com/terms-of-service
- https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree:
type: enum
allowed-values:
- 'yes'
develocity-access-key:
type: string
develocity-token-expiry:
type: integer
# Wrapper validation configuration
validate-wrappers:
type: boolean
allow-snapshot-wrappers:
type: boolean
# Experimental action inputs
gradle-home-cache-strict-match:
type: boolean
# Internal action inputs
workflow-job-context:
type: string
github-token:
type: string
outputs:
build-scan-url:
type: string
dependency-graph-file:
type: string
gradle-version:
type: string
+8
View File
@@ -26,6 +26,14 @@ inputs:
required: false
# Cache configuration
cache-provider:
description: |
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.
required: false
default: 'enhanced'
cache-disabled:
description: When 'true', all caching is disabled. No entries will be written to or read from the cache.
required: false
+176 -333
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var wMt=Object.create;var vP=Object.defineProperty;var NMt=Object.getOwnPropertyDescriptor;var SMt=Object.getOwnPropertyNames;var RMt=Object.getPrototypeOf,DMt=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 xMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)vP(t,r,{get:e[r],enumerable:!0})},hTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of SMt(e))!DMt.call(t,s)&&s!==r&&vP(t,s,{get:()=>e[s],enumerable:!(n=NMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?wMt(RMt(t)):{},hTe(e||!t||!t.__esModule?vP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>hTe(vP({},"__esModule",{value:!0}),t);var ITe=f(eb=>{"use strict";var Uyn=B("net"),LMt=B("tls"),$K=B("http"),mTe=B("https"),UMt=B("events"),Pyn=B("assert"),PMt=B("util");eb.httpOverHttp=_Mt;eb.httpsOverHttp=OMt;eb.httpOverHttps=HMt;eb.httpsOverHttps=qMt;function _Mt(t){var e=new _f(t);return e.request=$K.request,e}function OMt(t){var e=new _f(t);return e.request=$K.request,e.createSocket=ETe,e.defaultPort=443,e}function HMt(t){var e=new _f(t);return e.request=mTe.request,e}function qMt(t){var e=new _f(t);return e.request=mTe.request,e.createSocket=ETe,e.defaultPort=443,e}function _f(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=CTe(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)})}PMt.inherits(_f,UMt.EventEmitter);_f.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,CTe(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)}})};_f.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},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")),Ym("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){Ym("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Ym("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Ym("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ym(`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)}};_f.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 ETe(t,e){var r=this;_f.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=LMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function CTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(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 Ym;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ym=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)}:Ym=function(){};eb.debug=Ym});var HP=f((Oyn,BTe)=>{BTe.exports=ITe()});var ps=f((Hyn,QTe)=>{QTe.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 tn=f((qyn,VTe)=>{"use strict";var yTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{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[bTe]===!0}[bTe]=!0},wTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{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[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{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[NTe]===!0}[NTe]=!0},STe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{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[STe]===!0}[STe]=!0},RTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{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 sUt(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(qLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function iUt(){return"allowed"}function oUt(){return"success"}function aUt(){return"success"}function AUt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function cUt(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&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":A_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ub(t,e){return t}function uUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ub(t.domainLookupStartTime,r),domainLookupEndTime:ub(t.domainLookupEndTime,r),connectionStartTime:ub(t.connectionStartTime,r),connectionEndTime:ub(t.connectionEndTime,r),secureConnectionStartTime:ub(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function lUt(t){return ub(WLt.now(),t)}function dUt(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 ake(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function hUt(t){return{referrerPolicy:t.referrerPolicy}}function gUt(t){let e=t.referrerPolicy;aB(e);let r=null;if(t.referrer==="client"){let a=tke();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=A_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(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=PT(t);return A_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return aB(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 UT(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 fUt(t,e){if(a_===void 0)return!0;let r=Ake(e);if(r==="no metadata"||r.length===0)return!0;let n=mUt(r),s=EUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=a_.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)),CUt(A,a))return!0}return!1}var pUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ake(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=pUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();nke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mUt(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 EUt(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 CUt(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 IUt(t){}function A_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function BUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function QUt(t){return t.controller.state==="aborted"}function yUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function bUt(t){return KLt[t.toLowerCase()]??t}function wUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return aB(typeof e=="string"),e}var NUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function cke(t,e,r=0,n=1){class s{ Line truncated
`);function rPt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function nPt(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 sPt(t,e){u_(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&&l_(t,ePt,i)||i.position===t.length-4&&l_(t,tPt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=iPt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",rPt(u)||(u=""),h=new ZUt([d],c,{type:u})):h=WUt(Buffer.from(d)),u_(Bke(A)),u_(typeof h=="string"&&Bke(h)||jUt(h)),s.push(KUt(A,h,c))}}function iPt(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=db(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!zUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,db(a=>a===32||a===9,t,e),VUt(o)){case"content-disposition":{if(r=n=null,!l_(t,$Ut,e)||(e.position+=17,r=bke(t,e),r===null))return"failure";if(l_(t,yke,e)){let a=e.position+yke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=bke(t,e),n===null))return"failure"}break}case"content-type":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Qke(a);break}case"content-transfer-encoding":{let a=db(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Qke(a);break}default:db(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function bke(t,e){u_(t[e.position-1]===34);let r=db(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 db(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(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 l_(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}wke.exports={multipartFormDataParser:sPt,validateBoundary:nPt}});var fb=f((hbn,Lke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:oPt,isBlobLike:Ske,isReadableStreamLike:aPt,readableStreamClose:APt,createDeferredPromise:cPt,fullyReadBody:uPt,extractMimeType:lPt,utf8DecodeBytes:xke}=Qc(),{FormData:Rke}=OT(),{kState:gb}=Jm(),{webidl:dPt}=Oo(),{Blob:hPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Tke,isDisturbed:gPt}=B("node:stream"),{isArrayBuffer:fPt}=B("node:util/types"),{serializeAMimeType:pPt}=yA(),{multipartFormDataParser:mPt}=Nke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var d_=new TextEncoder;function EPt(){}var kke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Fke;kke&&(Fke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gPt(e)&&!Tke(e)&&e.cancel("Response object has been garbage collected").catch(EPt)}));function Mke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ske(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?d_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>APt(A))},start(){},type:"bytes"}),rZ(aPt(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(fPt(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(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=d_.encode(c+`; name="${u(l(C))}"\r
var N4e=Object.create;var $M=Object.defineProperty;var T4e=Object.getOwnPropertyDescriptor;var x4e=Object.getOwnPropertyNames;var R4e=Object.getPrototypeOf,D4e=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),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},k4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of x4e(e))!D4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=T4e(e,s))||n.enumerable});return t};var Ae=(t,e,r)=>(r=t!=null?N4e(R4e(t)):{},k4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var tee=E(Up=>{"use strict";var _Wt=b("net"),U4e=b("tls"),tL=b("http"),XZ=b("https"),P4e=b("events"),FWt=b("assert"),O4e=b("util");Up.httpOverHttp=H4e;Up.httpsOverHttp=G4e;Up.httpOverHttps=q4e;Up.httpsOverHttps=Y4e;function H4e(t){var e=new cu(t);return e.request=tL.request,e}function G4e(t){var e=new cu(t);return e.request=tL.request,e.createSocket=ZZ,e.defaultPort=443,e}function q4e(t){var e=new cu(t);return e.request=XZ.request,e}function Y4e(t){var e=new cu(t);return e.request=XZ.request,e.createSocket=ZZ,e.defaultPort=443,e}function cu(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=eee(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)})}O4e.inherits(cu,P4e.EventEmitter);cu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,eee(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)}})};cu.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)}};cu.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 ZZ(t,e){var r=this;cu.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=U4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function eee(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(){};Up.debug=xl});var nL=E((LWt,ree)=>{ree.exports=tee()});var yr=E((UWt,nee)=>{nee.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((PWt,Tee)=>{"use strict";var see=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[see]===!0}[see]=!0},iee=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[iee]===!0}[iee]=!0},oee=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[oee]===!0}[oee]=!0},aee=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[aee]===!0}[aee]=!0},cee=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[cee]===!0}[cee]=!0},Aee=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_CO Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function oHe(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(Y5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function aHe(){return"allowed"}function cHe(){return"success"}function AHe(){return"success"}function uHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function lHe(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(SI(t))&&(e=null);break;case"same-origin":hS(t,SI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function zp(t,e){return t}function dHe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:zp(t.domainLookupStartTime,r),domainLookupEndTime:zp(t.domainLookupEndTime,r),connectionStartTime:zp(t.connectionStartTime,r),connectionEndTime:zp(t.connectionEndTime,r),secureConnectionStartTime:zp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function hHe(t){return zp(j5e.now(),t)}function fHe(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 Gte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function gHe(t){return{referrerPolicy:t.referrerPolicy}}function pHe(t){let e=t.referrerPolicy;qh(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=hS(t,n),o=wI(n)&&!wI(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=SI(t);return hS(n,a)?n:wI(n)&&!wI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return qh(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 wI(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 mHe(t,e){if(dS===void 0)return!0;let r=qte(e);if(r==="no metadata"||r.length===0)return!0;let n=CHe(r),s=IHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=dS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),yHe(c,a))return!0}return!1}var EHe=/(?<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=EHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Ute.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function CHe(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 IHe(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 yHe(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 BHe(t){}function hS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function bHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function QHe(t){return t.controller.state==="aborted"}function wHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function SHe(t){return X5e[t.toLowerCase()]??t}function NHe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return qh(typeof e=="string"),e}var THe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Yte(t,e,r=0,n=1){class s{ Line truncated
`);function s9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function i9e(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 o9e(t,e){gS(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&&pS(t,r9e,i)||i.position===t.length-4&&pS(t,n9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=a9e(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",s9e(u)||(u=""),h=new e9e([d],A,{type:u})):h=jHe(Buffer.from(d)),gS(rre(c)),gS(typeof h=="string"&&rre(h)||$He(h)),s.push(XHe(c,h,A))}}function a9e(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=Kp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!KHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Kp(a=>a===32||a===9,t,e),zHe(o)){case"content-disposition":{if(r=n=null,!pS(t,t9e,e)||(e.position+=17,r=ire(t,e),r===null))return"failure";if(pS(t,sre,e)){let a=e.position+sre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ire(t,e),n===null))return"failure"}break}case"content-type":{let a=Kp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=nre(a);break}case"content-transfer-encoding":{let a=Kp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=nre(a);break}default:Kp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ire(t,e){gS(t[e.position-1]===34);let r=Kp(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 Kp(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 pS(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}ore.exports={multipartFormDataParser:o9e,validateBoundary:i9e}});var Zp=E((uJt,mre)=>{"use strict";var xI=dt(),{ReadableStreamFrom:c9e,isBlobLike:cre,isReadableStreamLike:A9e,readableStreamClose:u9e,createDeferredPromise:l9e,fullyReadBody:d9e,extractMimeType:h9e,utf8DecodeBytes:lre}=xi(),{FormData:Are}=TI(),{kState:Xp}=Rl(),{webidl:f9e}=Kn(),{Blob:g9e}=b("node:buffer"),aU=b("node:assert"),{isErrored:dre,isDisturbed:p9e}=b("node:stream"),{isArrayBuffer:m9e}=b("node:util/types"),{serializeAMimeType:E9e}=Ks(),{multipartFormDataParser:C9e}=are(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var mS=new TextEncoder;function I9e(){}var hre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,fre;hre&&(fre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!p9e(e)&&!dre(e)&&e.cancel("Response object has been garbage collected").catch(I9e)}));function gre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:cre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?mS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>u9e(c))},start(){},type:"bytes"}),aU(A9e(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(m9e(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(xI.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=mS.encode(A+`; name="${u(l(I))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=d_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=mS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=d_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(Ske(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(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:oPt(t)}if((typeof s=="string"||HT.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(!Tke(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 CPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),Mke(t,e)}function IPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function BPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function QPt(t){return{blob(){return hb(this,r=>{let n=Dke(this);return n===null?n="":n&&(n=pPt(n)),new hPt([r],{type:n})},t)},arrayBuffer(){return hb(this,r=>new Uint8Array(r).buffer,t)},text(){return hb(this,xke,t)},json(){return hb(this,bPt,t)},formData(){return hb(this,r=>{let n=Dke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Rke;return i[gb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Rke;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 hb(this,r=>new Uint8Array(r),t)}}}function yPt(t){Object.assign(t.prototype,QPt(t))}async function hb(t,e,r){if(dPt.brandCheck(t,r),vke(t))throw new TypeError("Body is unusable: Body has already been read");BPt(t[gb]);let n=cPt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[gb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await uPt(t[gb].body,i,s),n.promise)}function vke(t){let e=t[gb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function bPt(t){return JSON.parse(xke(t))}function Dke(t){let e=t[gb].headersList,r=lPt(e);return r==="failure"?null:r}Lke.exports={extractBody:Mke,safelyExtractBody:CPt,cloneBody:IPt,mixinBody:yPt,streamRegistry:Fke,hasFinalizationRegistry:kke,bodyUnusable:vke}});var Wke=f((gbn,Vke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:Uke}=rb(),sZ=_X(),{RequestContentLengthMismatchError:AB,ResponseContentLengthMismatchError:wPt,RequestAbortedError:Gke,HeadersTimeoutError:NPt,HeadersOverflowError:SPt,SocketError:E_,InformationalError:pb,BodyTimeoutError:RPt,HTTPParserError:DPt,ResponseExceededMaxSizeError:xPt}=tn(),{kUrl:Yke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:TPt,kSize:Pke,kWriting:Wm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:kPt,kHostHeader:FPt,kPendingIdx:MPt,kRunningIdx:ku,kError:Fu,kPipelining:p_,kSocket:mb,kKeepAliveTimeoutValue:C_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:vPt,kKeepAliveTimeoutThreshold:LPt,kHeadersTimeout:UPt,kBodyTimeout:PPt,kStrictContentLength:cZ,kMaxRequests:_ke,kCounter:_Pt,kMaxResponseSize:OPt,kOnError:HPt,kResume:Vm,kHTTPContext:Jke}=ps(),Qh=F1e(),qPt=Buffer.alloc(0),h_=Buffer[Symbol.species],g_=Yt.addListener,GPt=Yt.removeAllListeners,oZ;async function YPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(L1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onStatus(new h_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(qi.ptr===r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderField(new h_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onHeaderValue(new h_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(qi.ptr===r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(qi.ptr===r);let i=n-bh+yh.byteOffset;return qi.onBody(new h_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(qi.ptr===r),qi.onMessageComplete()||0)}})}var aZ=null,uZ=YPt();uZ.catch();var qi=null,yh=null,f_=0,bh=null,JPt=0,GT=1,Eb=2|GT,m_=4|GT,lZ=8|JPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.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
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=mS.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(cre(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(xI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:c9e(t)}if((typeof s=="string"||xI.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(!dre(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 y9e(t,e=!1){return t instanceof ReadableStream&&(aU(!xI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),gre(t,e)}function B9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function b9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Q9e(t){return{blob(){return $p(this,r=>{let n=ure(this);return n===null?n="":n&&(n=E9e(n)),new g9e([r],{type:n})},t)},arrayBuffer(){return $p(this,r=>new Uint8Array(r).buffer,t)},text(){return $p(this,lre,t)},json(){return $p(this,S9e,t)},formData(){return $p(this,r=>{let n=ure(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=C9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Are;return i[Xp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Are;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 $p(this,r=>new Uint8Array(r),t)}}}function w9e(t){Object.assign(t.prototype,Q9e(t))}async function $p(t,e,r){if(f9e.brandCheck(t,r),pre(t))throw new TypeError("Body is unusable: Body has already been read");b9e(t[Xp]);let n=l9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Xp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await d9e(t[Xp].body,i,s),n.promise)}function pre(t){let e=t[Xp].body;return e!=null&&(e.stream.locked||xI.isDisturbed(e.stream))}function S9e(t){return JSON.parse(lre(t))}function ure(t){let e=t[Xp].headersList,r=h9e(e);return r==="failure"?null:r}mre.exports={extractBody:gre,safelyExtractBody:y9e,cloneBody:B9e,mixinBody:w9e,streamRegistry:fre,hasFinalizationRegistry:hre,bodyUnusable:pre}});var Tre=E((lJt,Nre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:Ere}=Op(),AU=YL(),{RequestContentLengthMismatchError:Yh,ResponseContentLengthMismatchError:N9e,RequestAbortedError:Qre,HeadersTimeoutError:T9e,HeadersOverflowError:x9e,SocketError:bS,InformationalError:em,BodyTimeoutError:R9e,HTTPParserError:D9e,ResponseExceededMaxSizeError:k9e}=Lt(),{kUrl:wre,kReset:$s,kClient:hU,kParser:Mr,kBlocking:kI,kRunning:cs,kPending:v9e,kSize:Cre,kWriting:kl,kQueue:xa,kNoRef:RI,kKeepAliveDefaultTimeout:_9e,kHostHeader:F9e,kPendingIdx:M9e,kRunningIdx:Qo,kError:wo,kPipelining:yS,kSocket:tm,kKeepAliveTimeoutValue:QS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:L9e,kKeepAliveTimeoutThreshold:U9e,kHeadersTimeout:P9e,kBodyTimeout:O9e,kStrictContentLength:fU,kMaxRequests:Ire,kCounter:H9e,kMaxResponseSize:G9e,kOnError:q9e,kResume:Dl,kHTTPContext:Sre}=yr(),Sc=fte(),Y9e=Buffer.alloc(0),ES=Buffer[Symbol.species],CS=Xe.addListener,V9e=Xe.removeAllListeners,lU;async function W9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(mte())}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 ES(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 ES(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 ES(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 ES(Nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=W9e();gU.catch();var gn=null,Nc=null,IS=0,Tc=null,J9e=0,DI=1,rm=2|DI,BS=4|DI,pU=8|J9e,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[FPt],i?p+=`connection: upgrade\r
`:p+=t[F9e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[p_]&&!h[bA]?p+=`connection: keep-alive\r
`:t[yS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Uke.sendHeaders.hasSubscribers&&Uke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Hke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Hke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?qke(g,A.stream(),t,e,h,u,p,l):XPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?KPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?qke(g,A,t,e,h,u,p,l):xt(!1),!0}function KPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Gke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Wm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.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 Hke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\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 Ere.sendHeaders.hasSubscribers&&Ere.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Bre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?Bre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?bre(f,c.stream(),t,e,h,u,p,l):Z9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?X9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?bre(f,c,t,e,h,u,p,l):Ge(!1),!0}function X9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new wS({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 Qre;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 Bre(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\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
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vm]()}catch(A){t(A)}}async function XPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new AB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\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 Z9e(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 Yh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Vm]()}catch(A){t(A)}}async function qke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===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)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new I_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var I_=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[Wm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new AB;process.emitWarning(new AB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\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 bre(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 wS({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 wS=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 Yh;process.emitWarning(new Yh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===Eb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wm]=!1,e[Fu])throw e[Fu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\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===rm&&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
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[cZ])throw new AB;process.emitWarning(new AB)}e[Js].timeout&&e[Js].timeoutType===Eb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Vm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Vke.exports=VPt});var t2e=f((fbn,e2e)=>{"use strict";var Mu=B("node:assert"),{pipeline:ZPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:zke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:B_,kReset:y_,kClient:Cb,kRunning:b_,kPending:$Pt,kQueue:zm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:e_t,kOnError:pZ,kMaxConcurrentStreams:$ke,kHTTP2Session:ud,kResume:jm,kSize:t_t,kHTTPContext:r_t}=ps(),Jf=Symbol("open streams"),jke,Kke=!1,Q_;try{Q_=B("node:http2")}catch{Q_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n_t,HTTP2_HEADER_METHOD:s_t,HTTP2_HEADER_PATH:i_t,HTTP2_HEADER_SCHEME:o_t,HTTP2_HEADER_CONTENT_LENGTH:a_t,HTTP2_HEADER_EXPECT:A_t,HTTP2_HEADER_STATUS:c_t}}=Q_;function u_t(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 l_t(t,e){t[oo]=e,Kke||(Kke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Q_.connect(t[B_],{createConnection:()=>e,peerMaxConcurrentStreams:t[$ke]});r[Jf]=0,r[Cb]=t,r[oo]=e,wr.addListener(r,"error",h_t),wr.addListener(r,"frameError",g_t),wr.addListener(r,"end",f_t),wr.addListener(r,"goaway",p_t),wr.addListener(r,"close",function(){let{[Cb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[$Pt]===0);let a=s[zm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Cb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[b_]===0),t.emit("disconnect",t[B_],[t],s),t[jm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return E_t(t,...s)},resume(){d_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function d_t(t){let e=t[oo];e?.destroyed===!1&&(t[t_t]===0&&t[$ke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function h_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Cb][pZ](t)}function g_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Cb][pZ](n)}}function f_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function p_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Cb];if(r[oo]=null,r[r_t]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[zm].length){let n=r[zm][r[cd]];r[zm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[b_]===0),r.emit("disconnect",r[B_],[r],e),r[jm]()}function m_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function E_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[B_];l[n_t]=i||`${h}${g?`:${g}`:""}`,l[s_t]=n;let p=w=>{e.aborted||e.completed||(w=w||new zke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[zm][t[cd]++]=null,t[jm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}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[Jf],t[zm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Jf],t[zm][t[cd]++]=null}),d.once("close",()=>{r[Jf]-=1,r[Jf]===0&&r.unref()}),!0;l[i_t]=s,l[o_t]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){jke??=fb().extractBody;let[w,H]=jke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),m_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[e_t])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[a_t]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[A_t]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[Y_t]=A??3e5,this[G_t]=s??3e5,this[J_t]=I??!0,this[V_t]=w,this[IZ]=z,this[Xm]=null,this[X_t]=W>-1?W:-1,this[$_t]=oe??100,this[fi]=null,this[dd]=[],this[Wf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[Z_t]=he=>h2e(this,he)}get pipelining(){return this[R_]}set pipelining(e){this[R_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Wf]}get[KT](){return this[dd].length-this[Wf]}get[L_t](){return!!this[fi]&&!this[Bb]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(d2e(this)||1)||this[ZT]>0)}[v_t](e){g2e(this),this.once("connect",e)}[K_t](e,r){let n=e.origin||this[Nh].origin,s=new D_t(n,e,r);return this[dd].push(s),this[uB]||(cB.bodyLength(s.body)==null&&cB.isIterable(s.body)?(this[uB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[uB]&&this[Zm]!==2&&this[CZ]&&(this[Zm]=2),this[Zm]<2}async[z_t](){return new Promise(e=>{this[KT]?this[Xm]=e:e(null)})}async[j_t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];cB.errorRequest(this,o,e)}let s=()=>{this[Xm]&&(this[Xm](),this[Xm]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},rOt=S_();function h2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Vf(t[hd]===t[Wf]);let r=t[dd].splice(t[Wf]);for(let n=0;n<r.length;n++){let s=r[n];cB.errorRequest(t,s,e)}Vf(t[KT]===0)}}async function g2e(t){Vf(!t[Bb]),Vf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Vf(i!==-1);let o=r.substring(1,i);Vf(l2e.isIP(o)),r=o}t[Bb]=!0,Ib.beforeConnect.hasSubscribers&&Ib.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[Km],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){cB.destroy(i.on("error",c2e),new k_t);return}Vf(i);try{t[fi]=i.alpnProtocol==="h2"?await tOt(t,i):await eOt(t,i)}catch(o){throw i.destroy().on("error",c2e),o}t[Bb]=!1,i[W_t]=0,i[IZ]=t[IZ],i[M_t]=t,i[P_t]=null,Ib.connected.hasSubscribers&&Ib.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Bb]=!1,Ib.connectError.hasSubscribers&&Ib.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[Km],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Vf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[Km];){let o=t[dd][t[hd]++];cB.errorRequest(t,o,i)}else h2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function u2e(t){t[Zm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[uB]!==2&&(t[uB]=2,nOt(t,e),t[uB]=0,t[Wf]>256&&(t[dd].splice(0,t[Wf]),t[hd]-=t[Wf],t[Wf]=0))}function nOt(t,e){for(;;){if(t.destroyed){Vf(t[ZT]===0);return}if(t[Xm]&&!t[KT]){t[Xm](),t[Xm]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Zm]=2;else if(t[Zm]===2){e?(t[Zm]=1,queueMicrotask(()=>u2e(t))):u2e(t);continue}if(t[ZT]===0||t[XT]>=(d2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[Km]!==r.servername){if(t[XT]>0)return;t[Km]=r.servername,t[fi]?.destroy(new T_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Bb])return;if(!t[fi]){g2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}f2e.exports=BZ});var yZ=f((Ibn,p2e)=>{"use strict";var D_=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)}};p2e.exports=class{constructor(){this.head=this.tail=new D_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new D_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var E2e=f((Bbn,m2e)=>{var{kFree:sOt,kConnected:iOt,kPending:oOt,kQueued:aOt,kRunning:AOt,kSize:cOt}=ps(),lB=Symbol("pool"),bZ=class{constructor(e){this[lB]=e}get connected(){return this[lB][iOt]}get free(){return this[lB][sOt]}get pending(){return this[lB][oOt]}get queued(){return this[lB][aOt]}get running(){return this[lB][AOt]}get size(){return this[lB][cOt]}};m2e.exports=bZ});var xZ=f((Qbn,R2e)=>{"use strict";var uOt=ob(),lOt=yZ(),{kConnected:wZ,kSize:C2e,kRunning:I2e,kPending:B2e,kQueued:$T,kBusy:dOt,kFree:hOt,kUrl:gOt,kClose:fOt,kDestroy:pOt,kDispatch:mOt}=ps(),EOt=E2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),Q2e=Symbol("onConnect"),y2e=Symbol("onDisconnect"),b2e=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Yh;process.emitWarning(new Yh)}e[Mr].timeout&&e[Mr].timeoutType===rm&&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))}};Nre.exports=z9e});var Mre=E((dJt,Fre)=>{"use strict";var So=b("node:assert"),{pipeline:eGe}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:xre,SocketError:vI,InformationalError:CU}=Lt(),{kUrl:SS,kReset:TS,kClient:nm,kRunning:xS,kPending:tGe,kQueue:vl,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Dn,kStrictContentLength:rGe,kOnError:yU,kMaxConcurrentStreams:_re,kHTTP2Session:Da,kResume:_l,kSize:nGe,kHTTPContext:sGe}=yr(),fu=Symbol("open streams"),Rre,Dre=!1,NS;try{NS=b("node:http2")}catch{NS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:iGe,HTTP2_HEADER_METHOD:oGe,HTTP2_HEADER_PATH:aGe,HTTP2_HEADER_SCHEME:cGe,HTTP2_HEADER_CONTENT_LENGTH:AGe,HTTP2_HEADER_EXPECT:uGe,HTTP2_HEADER_STATUS:lGe}}=NS;function dGe(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 hGe(t,e){t[Dn]=e,Dre||(Dre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=NS.connect(t[SS],{createConnection:()=>e,peerMaxConcurrentStreams:t[_re]});r[fu]=0,r[nm]=t,r[Dn]=e,Et.addListener(r,"error",gGe),Et.addListener(r,"frameError",pGe),Et.addListener(r,"end",mGe),Et.addListener(r,"goaway",EGe),Et.addListener(r,"close",function(){let{[nm]:s}=this,{[Dn]:i}=s,o=this[Dn][ka]||this[ka]||new vI("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[tGe]===0);let a=s[vl].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[nm][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new vI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new vI("closed",Et.getSocketInfo(this));t[Dn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[xS]===0),t.emit("disconnect",t[SS],[t],s),t[_l]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return IGe(t,...s)},resume(){fGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function fGe(t){let e=t[Dn];e?.destroyed===!1&&(t[nGe]===0&&t[_re]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function gGe(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][ka]=t,this[nm][yU](t)}function pGe(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][ka]=n,this[nm][yU](n)}}function mGe(){let t=new vI("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function EGe(t){let e=this[ka]||new vI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[nm];if(r[Dn]=null,r[sGe]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Dn],e),r[Ra]<r[vl].length){let n=r[vl][r[Ra]];r[vl][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[xS]===0),r.emit("disconnect",r[SS],[r],e),r[_l]()}function CGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function IGe(t,e){let r=t[Da],{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[SS];l[iGe]=i||`${h}${f?`:${f}`:""}`,l[oGe]=n;let p=N=>{e.aborted||e.completed||(N=N||new xre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[vl][t[Ra]++]=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[fu],t[vl][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[fu],t[vl][t[Ra]++]=null}),d.once("close",()=>{r[fu]-=1,r[fu]===0&&r.unref()}),!0;l[aGe]=s,l[cGe]="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)){Rre??=Zp().extractBody;let[N,M]=Rre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),CGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[rGe])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[AGe]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[uGe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[WGe]=c??3e5,this[VGe]=s??3e5,this[JGe]=C??!0,this[zGe]=N,this[wU]=O,this[Ml]=null,this[ZGe]=P>-1?P:-1,this[tqe]=ee??100,this[Kr]=null,this[va]=[],this[pu]=0,this[_a]=0,this[LI]=ce=>NU(this,ce),this[eqe]=ce=>zre(this,ce)}get pipelining(){return this[vS]}set pipelining(e){this[vS]=e,this[LI](!0)}get[OI](){return this[va].length-this[_a]}get[PI](){return this[_a]-this[pu]}get[UI](){return this[va].length-this[pu]}get[UGe](){return!!this[Kr]&&!this[im]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[UI]>=(Jre(this)||1)||this[OI]>0)}[LGe](e){jre(this),this.once("connect",e)}[XGe](e,r){let n=e.origin||this[Rc].origin,s=new DGe(n,e,r);return this[va].push(s),this[Wh]||(Vh.bodyLength(s.body)==null&&Vh.isIterable(s.body)?(this[Wh]=1,queueMicrotask(()=>NU(this))):this[LI](!0)),this[Wh]&&this[Ll]!==2&&this[QU]&&(this[Ll]=2),this[Ll]<2}async[KGe](){return new Promise(e=>{this[UI]?this[Ml]=e:e(null)})}async[$Ge](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Vh.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[LI]()})}},sqe=kS();function zre(t,e){if(t[PI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gu(t[_a]===t[pu]);let r=t[va].splice(t[pu]);for(let n=0;n<r.length;n++){let s=r[n];Vh.errorRequest(t,s,e)}gu(t[UI]===0)}}async function jre(t){gu(!t[im]),gu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Rc];if(r[0]==="["){let i=r.indexOf("]");gu(i!==-1);let o=r.substring(1,i);gu(Wre.isIP(o)),r=o}t[im]=!0,sm.beforeConnect.hasSubscribers&&sm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[MI]},connector:t[FI]});try{let i=await new Promise((o,a)=>{t[FI]({host:e,hostname:r,protocol:n,port:s,servername:t[Fl],localAddress:t[MI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Vh.destroy(i.on("error",Yre),new _Ge);return}gu(i);try{t[Kr]=i.alpnProtocol==="h2"?await nqe(t,i):await rqe(t,i)}catch(o){throw i.destroy().on("error",Yre),o}t[im]=!1,i[jGe]=0,i[wU]=t[wU],i[MGe]=t,i[OGe]=null,sm.connected.hasSubscribers&&sm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[MI]},connector:t[FI],socket:i}),t.emit("connect",t[Rc],[t])}catch(i){if(t.destroyed)return;if(t[im]=!1,sm.connectError.hasSubscribers&&sm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[MI]},connector:t[FI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gu(t[PI]===0);t[OI]>0&&t[va][t[_a]].servername===t[Fl];){let o=t[va][t[_a]++];Vh.errorRequest(t,o,i)}else zre(t,i);t.emit("connectionError",t[Rc],[t],i)}t[LI]()}function Vre(t){t[Ll]=0,t.emit("drain",t[Rc],[t])}function NU(t,e){t[Wh]!==2&&(t[Wh]=2,iqe(t,e),t[Wh]=0,t[pu]>256&&(t[va].splice(0,t[pu]),t[_a]-=t[pu],t[pu]=0))}function iqe(t,e){for(;;){if(t.destroyed){gu(t[OI]===0);return}if(t[Ml]&&!t[UI]){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(()=>Vre(t))):Vre(t);continue}if(t[OI]===0||t[PI]>=(Jre(t)||1))return;let r=t[va][t[_a]];if(t[Rc].protocol==="https:"&&t[Fl]!==r.servername){if(t[PI]>0)return;t[Fl]=r.servername,t[Kr]?.destroy(new vGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[im])return;if(!t[Kr]){jre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}Kre.exports=SU});var TU=E((mJt,$re)=>{"use strict";var _S=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)}};$re.exports=class{constructor(){this.head=this.tail=new _S}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new _S),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Zre=E((EJt,Xre)=>{var{kFree:oqe,kConnected:aqe,kPending:cqe,kQueued:Aqe,kRunning:uqe,kSize:lqe}=yr(),Jh=Symbol("pool"),xU=class{constructor(e){this[Jh]=e}get connected(){return this[Jh][aqe]}get free(){return this[Jh][oqe]}get pending(){return this[Jh][cqe]}get queued(){return this[Jh][Aqe]}get running(){return this[Jh][uqe]}get size(){return this[Jh][lqe]}};Xre.exports=xU});var FU=E((CJt,Ane)=>{"use strict";var dqe=Yp(),hqe=TU(),{kConnected:RU,kSize:ene,kRunning:tne,kPending:rne,kQueued:HI,kBusy:fqe,kFree:gqe,kUrl:pqe,kClose:mqe,kDestroy:Eqe,kDispatch:Cqe}=yr(),Iqe=Zre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),GI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),nne=Symbol("onConnect"),sne=Symbol("onDisconnect"),ine=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};MMe.exports=x$});var W_=f((Kbn,_Me)=>{"use strict";var LMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Yqt}=tn(),Jqt=bb();PMe()===void 0&&UMe(new Jqt);function UMe(t){if(!t||typeof t.dispatch!="function")throw new Yqt("Argument agent must implement Agent");Object.defineProperty(globalThis,LMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function PMe(){return globalThis[LMe]}_Me.exports={setGlobalDispatcher:UMe,getGlobalDispatcher:PMe}});var z_=f((Zbn,OMe)=>{"use strict";OMe.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 qMe=f(($bn,HMe)=>{"use strict";var Vqt=N_();HMe.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 Vqt(r,o,s,i);return r(a,A)}}});var YMe=f((ewn,GMe)=>{"use strict";var Wqt=U_();GMe.exports=t=>e=>function(n,s){return e(n,new Wqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var VMe=f((twn,JMe)=>{"use strict";var zqt=mr(),{InvalidArgumentError:jqt,RequestAbortedError:Kqt}=tn(),Xqt=z_(),T$=class extends Xqt{#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 jqt("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=zqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Kqt(`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 Zqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}JMe.exports=Zqt});var jMe=f((rwn,zMe)=>{"use strict";var{isIP:$qt}=B("node:net"),{lookup:eGt}=B("node:dns"),tGt=z_(),{InvalidArgumentError:Mb,InformationalError:rGt}=tn(),WMe=Math.pow(2,31)-1,k$=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 rGt("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){eGt(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===WMe?(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===WMe?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 F$(this,e,r)}},F$=class extends tGt{#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":RUe(i)&&(r[s]=i);break;case"id":DUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&RUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&DUe(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}}};xUe.exports={EventSourceStream:Eee}});var _Ue=f((Fwn,PUe)=>{"use strict";var{pipeline:uYt}=B("node:stream"),{fetching:lYt}=h1(),{makeRequest:dYt}=Ub(),{webidl:Zf}=Oo(),{EventSourceStream:hYt}=TUe(),{parseMIMEType:gYt}=yA(),{createFastMessageEvent:fYt}=Gb(),{isNetworkError:kUe}=l1(),{delay:pYt}=pee(),{kEnumerableProperty:NB}=mr(),{environmentSettingsObject:FUe}=Qc(),MUe=!1,vUe=3e3,w1=0,LUe=1,N1=2,mYt="anonymous",EYt="use-credentials",zb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Zf.util.markAsUncloneable(this);let n="EventSource constructor";Zf.argumentLengthCheck(arguments,1,n),MUe||(MUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Zf.converters.USVString(e,n,"url"),r=Zf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:vUe};let s=FUe,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=mYt;r.withCredentials&&(o=EYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=FUe.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=dYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{kUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kUe(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?gYt(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=LUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new hYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(fYt(A.type,A.options))}});uYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=lYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await pYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Zf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,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}},UUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:LUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(zb,UUe);Object.defineProperties(zb.prototype,UUe);Object.defineProperties(zb.prototype,{close:NB,onerror:NB,onmessage:NB,onopen:NB,readyState:NB,url:NB,withCredentials:NB});Zf.converters.EventSourceInitDict=Zf.dictionaryConverter([{key:"withCredentials",converter:Zf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Zf.converters.any}]);PUe.exports={EventSource:zb,defaultReconnectionTime:vUe}});var GUe=f((Mwn,Mt)=>{"use strict";var CYt=Qb(),OUe=TT(),IYt=yb(),BYt=U2e(),QYt=bb(),yYt=GZ(),bYt=aFe(),wYt=hFe(),HUe=tn(),LO=mr(),{InvalidArgumentError:vO}=HUe,jb=$Fe(),NYt=FT(),SYt=b$(),RYt=vMe(),DYt=S$(),xYt=l$(),TYt=U_(),{getGlobalDispatcher:qUe,setGlobalDispatcher:kYt}=W_(),FYt=z_(),MYt=N_(),vYt=S_();Object.assign(OUe.prototype,jb);Mt.exports.Dispatcher=OUe;Mt.exports.Client=CYt;Mt.exports.Pool=IYt;Mt.exports.BalancedPool=BYt;Mt.exports.Agent=QYt;Mt.exports.ProxyAgent=yYt;Mt.exports.EnvHttpProxyAgent=bYt;Mt.expo Line truncated
\r
`),S6t=/\r\n/g,R6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function ew(t){qPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=HPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=HPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new w6t(N6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}b6t(ew,qPe);ew.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};ew.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};ew.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};ew.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(S6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=R6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};GPe.exports=ew});var ate=f((NNn,VPe)=>{"use strict";var ote=B("node:stream").Writable,D6t=B("node:util").inherits,x6t=ste(),JPe=_Pe(),T6t=YPe(),k6t=45,F6t=Buffer.from("-"),M6t=Buffer.from(`\r
`),v6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new T6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}D6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new JPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(M6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new x6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",v6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===k6t)++o,++this._dashes;else{this._dashes&&(s=F6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new JPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};VPe.exports=Ed});var jO=f((Ate,jPe)=>{"use strict";var WPe=new TextDecoder("utf-8"),zPe=new Map([["utf-8",WPe],["utf8",WPe]]);function L6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),zPe.has(Ate.toString()))try{return zPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function U6t(t,e,r){return t&&L6t(r)(t,e)}jPe.exports=U6t});var ute=f((SNn,e_e)=>{"use strict";var KO=jO(),KPe=/%[a-fA-F0-9][a-fA-F0-9]/g,P6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function U9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(y9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function P9t(){return"allowed"}function _9t(){return"success"}function O9t(){return"success"}function H9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function q9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":tH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function G9t(t){return N9t.now()}function Y9t(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 J9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V9t(t){return{referrerPolicy:t.referrerPolicy}}function W9t(t){let e=t.referrerPolicy;iw(e);let r=null;if(t.referrer==="client"){let a=w9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=tH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(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=P1(t);return tH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return iw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(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 z9t(t,e){if(eH===void 0)return!0;let r=S_e(e);if(r==="no metadata"||r.length===0)return!0;let n=K9t(r),s=X9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=eH.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)),Z9t(A,a))return!0}return!1}var j9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function S_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();y_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function K9t(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 X9t(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 Z9t(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 $9t(t){}function tH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eJt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function tJt(t){return t.controller.state==="aborted"}function rJt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function nJt(t){return Cte[t.toLowerCase()]??t}function sJt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return iw(typeof e=="string"),e}var iJt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oJt(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,aJt(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,iJt),Object.setPrototypeOf({},s)}function aJt(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&M_e(t[n]);n++);if(r)for(;s>0&&M_e(t[s]);s--);return t.slice(n,s+1)}function v_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function NJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&v_e(t[n]);n++);if(r)for(;s>0&&v_e(t[s]);s--);return t.slice(n,s+1)}__e.exports={dataURLProcessor:QJt,URLSerializer:L_e,collectASequenceOfCodePoints:sH,collectASequenceOfCodePointsFast:ow,stringPercentDecode:U_e,parseMIMEType:Bte,collectAnHTTPQuotedString:P_e,serializeAMimeType:wJt}});var iH=f((_Nn,Y_e)=>{"use strict";var{Blob:q_e,File:O_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:G_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:SJt,serializeAMimeType:RJt}=Cd(),{kEnumerableProperty:H_e}=Gr(),DJt=new TextEncoder,_1=class t extends q_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=SJt(i),i==="failure"){i="";break e}i=RJt(i).toLowerCase()}o=n.lastModified}super(xJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:H_e,lastModified:H_e});fn.converters.Blob=fn.interfaceConverter(q_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(G_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function xJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=TJt(s)),r.push(DJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):G_e(n)&&r.push(n);return r}function TJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function kJt(t){return O_e&&t instanceof O_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}Y_e.exports={File:_1,FileLike:yte,isFileLike:kJt}});var aH=f((ONn,j_e)=>{"use strict";var{isBlobLike:oH,toUSVString:FJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:z_e,FileLike:J_e,isFileLike:MJt}=iH(),{webidl:wn}=Ya(),{Blob:vJt,File:wte}=B("buffer"),V_e=wte??z_e,aw=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=W_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!oH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=oH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?FJt(n):void 0;let s=W_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};aw.prototype[Symbol.iterator]=aw.prototype.entries;Object.defineProperties(aw.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function W_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(MJt(e)||(e=e instanceof vJt?new V_e([e],"blob",{type:e.type}):new J_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof z_e?new V_e([e],r,n):new J_e(e,r,n)}return{name:t,value:e}}j_e.exports={FormData:aw}});var O1=f((HNn,sOe)=>{"use strict";var LJt=h_e(),Aw=Gr(),{ReadableStreamFrom:UJt,isBlobLike:K_e,isReadableStreamLike:PJt,readableStreamClose:_Jt,createDeferredPromise:OJt,fullyReadBody:HJt}=Hu(),{FormData:X_e}=aH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:eOe,structuredClone:qJt}=gE(),{Blob:GJt,File:YJt}=B("buffer"),{kBodyUsed:JJt}=ts(),Ste=B("assert"),{isErrored:VJt}=Gr(),{isUint8Array:tOe,isArrayBuffer:WJt}=B("util/types"),{File:zJt}=iH(),{parseMIMEType:jJt,serializeAMimeType:KJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,Z_e=YJt??zJt,AH=new TextEncoder,XJt=new TextDecoder;function rOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:K_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?AH.encode(s):s),queueMicrotask(()=>_Jt(A))},start(){},type:void 0}),Ste(PJt(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(WJt(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(Aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=AH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=AH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=AH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(K_e(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(Aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:UJt(t)}if((typeof s=="string"||Aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):VJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function ZJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!Aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),rOe(t,e)}function $Jt(t){let[e,r]=t.stream.tee(),n=qJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*$_e(t){if(t)if(tOe(t))yield t;else{let e=t.stream;if(Aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[JJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new eOe("The operation was aborted.","AbortError")}function eVt(t){return{blob(){return cH(this,r=>{let n=sVt(this);return n==="failure"?n="":n&&(n=KJt(n)),new GJt([r],{type:n})},t)},arrayBuffer(){return cH(this,r=>new Uint8Array(r).buffer,t)},text(){return cH(this,nOe,t)},json(){return cH(this,nVt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new X_e,i;try{i=new LJt({headers:n,preservePath:!0})}catch(a){throw new eOe(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new Z_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new Z_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of $_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of $_e(this[ip].body)){if(!tOe(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new X_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function tVt(t){Object.assign(t.prototype,eVt(t))}async function cH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),rVt(t[ip].body))throw new TypeError("Body is unusable");let n=OJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await HJt(t[ip].body,i,s),n.promise)}function rVt(t){return t!=null&&(t.stream.locked||Aw.isDisturbed(t.stream))}function nOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),XJt.decode(t))}function nVt(t){return JSON.parse(nOe(t))}function sVt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":jJt(r)}sOe.exports={extractBody:rOe,safelyExtractBody:ZJt,cloneBody:$Jt,mixinBody:tVt}});var AOe=f((qNn,aOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:iVt}=Un(),op=B("assert"),{kHTTP2BuildRequest:oVt,kHTTP2CopyHeaders:aVt,kHTTP1BuildRequest:AVt}=ts(),xA=Gr(),iOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,oOe=/[^\t\x20-\x7e\x80-\xff]/,cVt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),Ti={},xte;try{let t=B("diagnostics_channel");Ti.create=t.channel("undici:request:create"),Ti.bodySent=t.channel("undici:request:bodySent"),Ti.headers=t.channel("undici:request:headers"),Ti.trailers=t.channel("undici:request:trailers"),Ti.error=t.channel("undici:request:error")}catch{Ti.create={hasSubscribers:!1},Ti.bodySent={hasSubscribers:!1},Ti.headers={hasSubscribers:!1},Ti.trailers={hasSubscribers:!1},Ti.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,Ti.create.hasSubscribers&&Ti.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(Ti.bodySent.hasSubscribers&&Ti.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),Ti.headers.hasSubscribers&&Ti.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,Ti.trailers.hasSubscribers&&Ti.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),Ti.error.hasSubscribers&&Ti.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[AVt](e,r,n){return new t(e,r,n)}static[oVt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[aVt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",oOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(oOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new iVt("expect header not supported");if(iOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}aOe.exports=Tte});var uH=f((GNn,cOe)=>{"use strict";var uVt=B("events"),kte=class extends uVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};cOe.exports=kte});var G1=f((YNn,uOe)=>{"use strict";var lVt=uH(),{ClientDestroyedError:Fte,ClientClosedError:dVt,InvalidArgumentError:cw}=Un(),{kDestroy:hVt,kClose:gVt,kDispatch:Mte,kInterceptors:MB}=ts(),uw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),lw=Symbol("onClosed"),lH=Symbol("Intercepted Dispatch"),vte=class extends lVt{constructor(){super(),this[uw]=!1,this[ap]=null,this[q1]=!1,this[lw]=[]}get destroyed(){return this[uw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new cw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new cw("invalid callback");if(this[uw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[lw]?this[lw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[lw].push(e);let r=()=>{let n=this[lw];this[lw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[gVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new cw("invalid callback");if(this[uw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[uw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[hVt](e).then(()=>{queueMicrotask(n)})}[lH](e,r){if(!this[MB]||this[MB].length===0)return this[lH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[lH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new cw("handler must be an object");try{if(!e||typeof e!="object")throw new cw("opts must be an object.");if(this[uw]||this[ap])throw new Fte;if(this[q1])throw new dVt;return this[lH](e,r)}catch(n){if(typeof r.onError!="function")throw new cw("invalid onError method");return r.onError(n),!1}}};uOe.exports=vte});var Y1=f((WNn,hOe)=>{"use strict";var fVt=B("net"),lOe=B("assert"),dOe=Gr(),{InvalidArgumentError:pVt,ConnectTimeoutError:mVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function EVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new pVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[xOe]=A??3e5,this[DOe]=s??3e5,this[K1]=I??!0,this[zVt]=w,this[X1]=z,this[pE]=null,this[kOe]=W>-1?W:-1,this[Ph]="h1",this[kc]=null,this[CH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[FOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[EE]}set pipelining(e){this[EE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[WVt](){return!!this[Ws]&&!this[hw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[fw])||this[LB]>=(this[EE]||1)||this[UB]>0}[VVt](e){UOe(this),this.once("connect",e)}[XVt](e,r){let n=e.origin||this[qo].origin,s=this[Ph]==="h2"?Yte[$Vt](n,e,r):Yte[tWt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[mE]!==2&&this[Jte]&&(this[mE]=2),this[mE]<2}async[jVt](){return new Promise(e=>{this[LB]?this[pE]=e:e(null)})}async[KVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[pE]&&(this[pE](),this[pE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[CH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function cWt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,yH(this[Uh],t)}function uWt(t,e,r){let n=new Lh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,yH(this[Uh],n))}function lWt(){ft.destroy(this,new gw("other side closed")),ft.destroy(this[Ws],new gw("other side closed"))}function dWt(t){let e=this[Uh],r=new Lh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var Fh=fOe(),hWt=gH(),gWt=Buffer.alloc(0);async function fWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(QOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onStatus(new fH(Mh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderField(new fH(Mh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onHeaderValue(new fH(Mh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-vh+Mh.byteOffset;return Gi.onBody(new fH(Mh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=fWt();zte.catch();var Gi=null,Mh=null,pH=0,vh=null,pw=1,EH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[mH])&&e[mH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fh.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.headersMaxSize=e[mH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(pWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===EH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||gWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>pH&&(vh&&n.free(vh),pH=Math.ceil(e.length/4096)*4096,vh=n.malloc(pH)),new Uint8Array(n.memory.buffer,vh,pH).set(e);try{let s;try{Mh=e,Gi=this,s=n.llhttp_execute(this.ptr,vh,e.length)}catch(o){throw o}finally{Gi=null,Mh=null}let i=n.llhttp_get_error_pos(this.ptr)-vh;if(s===Fh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Fh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Fh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[NOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[EE]&&!h[Ja]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?BH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):OOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?_Oe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?BH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function CWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[eWt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[CH];if(l[rWt]=o||t[FOe],l[nWt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[sWt]=i,l[iWt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),POe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[oWt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[aWt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[AWt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Lh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?BH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):OOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?_Oe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?BH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function _Oe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Ph]==="h2"){let p=function(C){n.onBodySent(C)},g=LVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.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)}async function OOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Ph]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function BH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===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[Go]?h(s[Go]):A=d});if(r[Ph]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new QH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var QH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Vs].timeout&&r[Vs].timeoutType===pw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];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[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===pw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}HOe.exports=Wte});var GOe=f((rSn,qOe)=>{"use strict";var bH=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)}};qOe.exports=class{constructor(){this.head=this.tail=new bH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var JOe=f((nSn,YOe)=>{var{kFree:IWt,kConnected:BWt,kPending:QWt,kQueued:yWt,kRunning:bWt,kSize:wWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][BWt]}get free(){return this[PB][IWt]}get pending(){return this[PB][QWt]}get queued(){return this[PB][yWt]}get running(){return this[PB][bWt]}get size(){return this[PB][wWt]}};YOe.exports=$te});var ire=f((sSn,tHe)=>{"use strict";var NWt=G1(),SWt=GOe(),{kConnected:ere,kSize:VOe,kRunning:WOe,kPending:zOe,kQueued:$1,kBusy:RWt,kFree:DWt,kUrl:xWt,kClose:TWt,kDestroy:kWt,kDispatch:FWt}=ts(),MWt=JOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),jOe=Symbol("onConnect"),KOe=Symbol("onDisconnect"),XOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),$Oe=Symbol("add client"),eHe=Symbol("remove client"),ZOe=Symbol("stats"),sre=class extends NWt{constructor(){super(),this[ek]=new SWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[jOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[KOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[XOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[ZOe]=new MWt(this)}get[RWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[DWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[zOe](){let e=this[$1];for(let{[zOe]:r}of this[TA])e+=r;return e}get[WOe](){let e=0;for(let{[WOe]:r}of this[TA])e+=r;return e}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get stats(){return this[ZOe]}async[TWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[kWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[FWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[$Oe](e){return e.on("drain",this[rre]).on("connect",this[jOe]).on("disconnect",this[KOe]).on("connectionError",this[XOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[xWt],[this,e])}),this}[eHe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};tHe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:$Oe,kRemoveClient:eHe,kGetDispatcher:nre}});var mw=f((iSn,sHe)=>{"use strict";var{PoolBase:vWt,kClients:wH,kNeedDrain:LWt,kAddClient:UWt,kGetDispatcher:PWt}=ire(),_Wt=Z1(),{InvalidArgumentError:ore}=Un(),are=Gr(),{kUrl:rHe,kInterceptors:OWt}=ts(),HWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),nHe=Symbol("factory");function qWt(t,e){return new _Wt(t,e)}var ure=class extends vWt{constructor(e,{connections:r,factory:n=qWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=HWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[OWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[rHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[nHe]=n,this.on("con Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Lqe.exports=zre});var Gqe=f((xSn,qqe)=>{"use strict";var{kProxy:Gjt,kClose:Yjt,kDestroy:Jjt,kInterceptors:Vjt}=ts(),{URL:Pqe}=B("url"),_qe=rk(),Wjt=mw(),zjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:jjt}=Un(),Oqe=Y1(),ik=Symbol("proxy agent"),VH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Kjt=Symbol("proxy tls settings"),Hqe=Symbol("connect endpoint function");function Xjt(t){return t==="https:"?443:80}function Zjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function $jt(t,e){return new Wjt(t,e)}var Kre=class extends zjt{constructor(e){if(super(e),this[Gjt]=Zjt(e),this[ik]=new _qe(e),this[Vjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=$jt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Kjt]=e.proxyTls,this[ok]=e.headers||{};let n=new Pqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Oqe({...e.proxyTls});this[Hqe]=Oqe({...e.requestTls}),this[VH]=r(n,{connect:c}),this[ik]=new _qe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Xjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[VH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new jjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[Hqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Pqe(e.origin),s=e7t(e.headers);return t7t(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Yjt](){await this[ik].close(),await this[VH].close()}async[Jjt](){await this[ik].destroy(),await this[VH].destroy()}};function e7t(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function t7t(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}qqe.exports=Kre});var zqe=f((TSn,Wqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:Yqe}=ts(),{RequestRetryError:WH}=Un(),{isDisturbed:Jqe,parseHeaders:r7t,parseRangeHeader:Vqe}=Gr();function n7t(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Yqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Yqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?n7t(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=r7t(r);if(this.retryCount+=1,e>=300)return this.abort(new WH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Vqe(i["content-range"]);if(!a)return this.abort(new WH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new WH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return n3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,s3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,s3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};qw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__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(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var WZt=B("os"),qne=B("fs"),{access:zZt,appendFile:jZt,writeFile:KZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield zZt(e,qne.constants.R_OK|qne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?KZt:jZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(WZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},o3e=new Gne;LA.markdownSummary=o3e;LA.summary=o3e});var a3e=f(UA=>{"use strict";var XZt=UA&&UA.__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]})),ZZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Zt=UA&&UA.__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)&&XZt(e,t,r);return ZZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var e$t=$Zt(B("path"));function t$t(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=t$t;function r$t(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=r$t;function n$t(t){return t.replace(/[/\\]/g,e$t.sep)}UA.toPlatformPath=n$t});var Vne=f(Ze=>{"use strict";var s$t=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Yr.platform=w3e.default.platform();Yr.arch=w3e.default.arch();Yr.isWindows=Yr.platform==="win32";Yr.isMacOS=Yr.platform==="darwin";Yr.isLinux=Yr.platform==="linux";function L$t(){return Gq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Yr.isWindows?F$t():Yr.isMacOS?M$t():v$t()),{platform:Yr.platform,arch:Yr.arch,isWindows:Yr.isWindows,isMacOS:Yr.isMacOS,isLinux:Yr.isLinux})})}Yr.getDetails=L$t});var Oc=f(We=>{"use strict";var U$t=We&&We.__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]})),P$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__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)&&U$t(e,t,r);return P$t(e,t),e},S3e=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.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=dPe(),ZB=fPe(),Yw=qO(),R3e=Xne(B("os")),_$t=Xne(B("path")),O$t=i3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function H$t(t,e){let r=(0,Yw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=H$t;function q$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=q$t;function G$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${_$t.delimiter}${process.env.PATH}`}We.addPath=G$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function Y$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=Y$t;function J$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=J$t;function V$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(R3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Yw.toCommandValue)(e))}We.setOutput=V$t;function W$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=W$t;function z$t(t){process.exitCode=Kne.Failure,D3e(t)}We.setFailed=z$t;function j$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=j$t;function K$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=K$t;function D3e(t,e={}){(0,zu.issueCommand)("error",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=D3e;function X$t(t,e={}){(0,zu.issueCommand)("warning",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=X$t;function Z$t(t,e={}){(0,zu.issueCommand)("notice",(0,Yw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=Z$t;function $$t(t){process.stdout.write(t+R3e.EOL)}We.info=$$t;function x3e(t){(0,zu.issue)("group",t)}We.startGroup=x3e;function T3e(){(0,zu.issue)("endgroup")}We.endGroup=T3e;function eer(t,e){return S3e(this,void 0,void 0,function*(){x3e(t);let r;try{r=yield e()}finally{T3e()}return r})}We.group=eer;function ter(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Yw.toCommandValue)(e))}We.saveState=ter;function rer(t){return process.env[`STATE_${t}`]||""}We.getState=rer;function ner(t){return S3e(this,void 0,void 0,function*(){return yield O$t.OidcClient.getIDToken(t)})}We.getIDToken=ner;var ser=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return ser.summary}});var ier=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return ier.markdownSummary}});var $ne=a3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(N3e())});var k3e=f(Vh=>{"use strict";var oer=Vh&&Vh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aer=Vh&&Vh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Aer=Vh&&Vh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&oer(e,t,r);return aer(e,t),e};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.getOptions=void 0;var ese=Aer(Oc());function cer(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Vh.getOptions=cer});var Jq=f(js=>{"use strict";var uer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ler=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),der=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&uer(e,t,r);return ler(e,t),e},her=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Yq=der(B("path")),$B=her(B("assert")),NE=process.platform==="win32";function ger(t){if(t=rse(t),NE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Yq.dirname(t);return NE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ger;function fer(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(NE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(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.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==zq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===zq)return[n,s];if(!s)return Yer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Ger;function Ger(){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?ose:e.dot?ver:Ler,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?Jer(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}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.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;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(Z3e),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};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Yer(t){return t.replace(/\\(.)/g,"$1")}function Jer(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var r4e=f(ju=>{"use strict";var Ver=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t4e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ver(e,t,r);return Wer(e,t),e},zer=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=t4e(B("path")),RE=t4e(Jq()),wk=zer(B("assert")),jer=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=RE.safeTrimTrailingSeparator(e),!RE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=RE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=RE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=RE.normalizeSeparators(e[r]),r===0&&RE.hasRoot(n)?(n=RE.safeTrimTrailingSeparator(n),wk.default(n===RE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||jer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var n4e=f(Ku=>{"use strict";var Ker=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xer=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ker(e,t,r);return Xer(e,t),e},Zer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var $er=dse(B("os")),Nk=dse(B("path")),qA=dse(Jq()),e0=Zer(B("assert")),etr=Ase(),use=Vq(),Kq=r4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Kq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Kq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Kq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new etr.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Kq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap 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 a4e.Pattern(i));return n.searchPaths.push(...Zq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`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 Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var u4e=f(Vw=>{"use strict";var atr=Vw&&Vw.__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(Vw,"__esModule",{value:!0});Vw.create=void 0;var Atr=c4e();function ctr(t,e){return atr(this,void 0,void 0,function*(){return yield Atr.DefaultGlobber.create(t,e)})}Vw.create=ctr});var p4e=f((Ot,f4e)=>{Ot=f4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,$q=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,utr=Dk-6,Ww=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},h4e=0;function Er(t){ie[t]=h4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,utr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Ww[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Ww[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ltr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=jtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=nG.relative(a,d).replace(new RegExp(`\\${nG.sep}`,"g"),"/");kk.debug(`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})}Zr.resolvePaths=nrr;function srr(t){return Kw(this,void 0,void 0,function*(){return $tr.promisify(bse.unlink)(t)})}Zr.unlinkFile=srr;function Q4e(t,e=[]){return Kw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Ktr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function irr(){return Kw(this,void 0,void 0,function*(){let t=yield Q4e("zstd",["--quiet"]),e=Ztr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=irr;function orr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=orr;function arr(){return Kw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield Q4e("tar")).toLowerCase().includes("gnu tar")?I4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=arr;function Arr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Arr;function crr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(err),B4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=crr;function urr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=urr});var Vn={};xu(Vn,{__addDisposableResource:()=>W4e,__assign:()=>sG,__asyncDelegator:()=>_4e,__asyncGenerator:()=>P4e,__asyncValues:()=>O4e,__await:()=>Zw,__awaiter:()=>k4e,__classPrivateFieldGet:()=>Y4e,__classPrivateFieldIn:()=>V4e,__classPrivateFieldSet:()=>J4e,__createBinding:()=>oG,__decorate:()=>w4e,__disposeResources:()=>z4e,__esDecorate:()=>S4e,__exportStar:()=>M4e,__extends:()=>y4e,__generator:()=>F4e,__importDefault:()=>G4e,__importStar:()=>q4e,__makeTemplateObject:()=>H4e,__metadata:()=>T4e,__param:()=>N4e,__propKey:()=>D4e,__read:()=>Sse,__rest:()=>b4e,__rewriteRelativeImportExtension:()=>j4e,__runInitializers:()=>R4e,__setFunctionName:()=>x4e,__spread:()=>v4e,__spreadArray:()=>U4e,__spreadArrays:()=>L4e,__values:()=>iG,default:()=>hrr});function y4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function b4e(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}function w4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function N4e(t,e){return function(r,n){e(r,n,t)}}function S4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function R4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function D4e(t){return typeof t=="symbol"?t:"".concat(t)}function x4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function T4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function k4e(t,e,r,n){function s(i){re Line truncated
${Grr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=pG;function Yrr(t){return t instanceof pG?!0:(0,Orr.isError)(t)&&t.name==="RestError"}});var s0=f(mG=>{"use strict";Object.defineProperty(mG,"__esModule",{value:!0});mG.uint8ArrayToString=Jrr;mG.stringToUint8Array=Vrr;function Jrr(t,e){return Buffer.from(t).toString(e)}function Vrr(t,e){return Buffer.from(t,e)}});var Uk=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.logger=void 0;var Wrr=uG();EG.logger=(0,Wrr.createClientLogger)("ts-http-runtime")});var CYe=f(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.getBodyLength=EYe;IG.createNodeHttpClient=tnr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),gYe=$se.__importDefault(B("node:zlib")),zrr=B("node:stream"),fYe=Fk(),jrr=TE(),_k=$w(),eN=Uk(),Krr=vk(),Xrr={};function Pk(t){return t&&typeof t.pipe=="function"}function pYe(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 mYe(t){return t&&typeof t.byteLength=="number"}var CG=class extends zrr.Transform{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}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new fYe.AbortError("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 Krr.Sanitizer;eN.logger.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=EYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new CG(g);p.on("error",C=>{eN.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Zrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?$rr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new CG(h);g.on("error",p=>{eN.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await enr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=pYe(a));let u=Promise.resolve();Pk(A)&&(u=pYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{eN.logger.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?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new fYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):mYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(eN.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Xrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(eN.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Zrr(t){let e=(0,jrr.createHttpHeaders)();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 $rr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gYe.default.createInflate Line truncated
`.trim())}};gie.exports=FP});var XS=E((JJt,Iie)=>{"use strict";var mie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:WVe}=Lt(),JVe=cm();Cie()===void 0&&Eie(new JVe);function Eie(t){if(!t||typeof t.dispatch!="function")throw new WVe("Argument agent must implement Agent");Object.defineProperty(globalThis,mie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Cie(){return globalThis[mie]}Iie.exports={setGlobalDispatcher:Eie,getGlobalDispatcher:Cie}});var ZS=E((jJt,yie)=>{"use strict";yie.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 bie=E((KJt,Bie)=>{"use strict";var zVe=DS();Bie.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 zVe(r,o,s,i);return r(a,c)}}});var wie=E(($Jt,Qie)=>{"use strict";var jVe=GS();Qie.exports=t=>e=>function(n,s){return e(n,new jVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Nie=E((XJt,Sie)=>{"use strict";var KVe=dt(),{InvalidArgumentError:$Ve,RequestAbortedError:XVe}=Lt(),ZVe=ZS(),MP=class extends ZVe{#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 $Ve("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=KVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new XVe(`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 e7e({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)}}Sie.exports=e7e});var Rie=E((ZJt,xie)=>{"use strict";var{isIP:t7e}=b("node:net"),{lookup:r7e}=b("node:dns"),n7e=ZS(),{InvalidArgumentError:Em,InformationalError:s7e}=Lt(),Tie=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 s7e("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){r7e(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===Tie?(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===Tie?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 n7e{#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":Ace(i)&&(r[s]=i);break;case"id":uce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Ace(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&uce(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}}};lce.exports={EventSourceStream:bO}});var Ice=E((Rzt,Cce)=>{"use strict";var{pipeline:fje}=b("node:stream"),{fetching:gje}=ty(),{makeRequest:pje}=ym(),{webidl:yu}=Kn(),{EventSourceStream:mje}=dce(),{parseMIMEType:Eje}=Ks(),{createFastMessageEvent:Cje}=Nm(),{isNetworkError:hce}=ZI(),{delay:Ije}=yO(),{kEnumerableProperty:Af}=dt(),{environmentSettingsObject:fce}=xi(),gce=!1,pce=3e3,fy=0,mce=1,gy=2,yje="anonymous",Bje="use-credentials",km=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=fy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),yu.util.markAsUncloneable(this);let n="EventSource constructor";yu.argumentLengthCheck(arguments,1,n),gce||(gce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=yu.converters.USVString(e,n,"url"),r=yu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:pce};let s=fce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=yje;r.withCredentials&&(o=Bje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=fce.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=pje(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===gy)return;this.#r=fy;let e={request:this.#s,dispatcher:this.#a},r=n=>{hce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(hce(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?Eje(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=mce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new mje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Cje(c.type,c.options))}});fje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=gje(e)}async#A(){this.#r!==gy&&(this.#r=fy,this.dispatchEvent(new Event("error")),await Ije(this.#o.reconnectionTime),this.#r===fy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){yu.brandCheck(this,t),this.#r!==gy&&(this.#r=gy,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}},Ece={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:fy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1}};Object.defineProperties(km,Ece);Object.defineProperties(km.prototype,Ece);Object.defineProperties(km.prototype,{close:Af,onerror:Af,onmessage:Af,onopen:Af,readyState:Af,url:Af,withCredentials:Af});yu.converters.EventSourceInitDict=yu.dictionaryConverter([{key:"withCredentials",converter:yu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:yu.converters.any}]);Cce.exports={EventSource:km,defaultReconnectionTime:pce}});var HN=E((Dzt,Ye)=>{"use strict";var bje=om(),yce=CI(),Qje=am(),wje=Ene(),Sje=cm(),Nje=zU(),Tje=Gne(),xje=zne(),Bce=Lt(),ON=dt(),{InvalidArgumentError:PN}=Bce,vm=_se(),Rje=yI(),Dje=xP(),kje=pie(),vje=kP(),_je=pP(),Fje=GS(),{getGlobalDispatcher:bce,setGlobalDispatcher:Mje}=XS(),Lje=ZS(),Uje=DS(),Pje=kS();Object.assign(yce.prototype,vm);Ye.exports.Dispatcher=yce;Ye.exports.Client=bje;Ye.exports.Pool=Qje;Ye.exports.BalancedPool=wje;Ye.exports.Agent=Sje;Ye.exports.ProxyAgent=Nje;Ye.exports.EnvHttpProxyAgent=Tje;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?g3:C.type==="?"?f3:"\\"+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!==lT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===lT)return[n,s];if(!s)return _Xe(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=vXe;function vXe(){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?g3:e.dot?wXe:SXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ff?r:typeof o=="string"?FXe(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;Ny.sep!=="/"&&(e=e.split(Ny.sep).join("/")),e=e.split(gue),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(ff)!==-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]===ff){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===ff){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===ff?(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===ff)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 _Xe(t){return t.replace(/\\(.)/g,"$1")}function FXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Gm=E((NKt,Bue)=>{"use strict";var qXe="2.0.0",YXe=Number.MAX_SAFE_INTEGER||9007199254740991,VXe=16,WXe=250,JXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Bue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:VXe,MAX_SAFE_BUILD_LENGTH:WXe,MAX_SAFE_INTEGER:YXe,RELEASE_TYPES:JXe,SEMVER_SPEC_VERSION:qXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Dy=E((TKt,bue)=>{"use strict";var zXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};bue.exports=zXe});var qm=E((Mc,Que)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m3,MAX_SAFE_BUILD_LENGTH:jXe,MAX_LENGTH:KXe}=Gm(),$Xe=Dy();Mc=Que.exports={};var XXe=Mc.re=[],ZXe=Mc.safeRe=[],me=Mc.src=[],eZe=Mc.safeSrc=[],Ee=Mc.t={},tZe=0,E3="[a-zA-Z0-9-]",rZe=[["\\s",1],["\\d",KXe],[E3,jXe]],nZe=t=>{for(let[e,r]of rZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`).join(`
`+i),t.push(s+"m+"+xG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dsr()+e+" "+t[0]}function dsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hsr(...t){return process.stderr.write(DG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function gsr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fsr(){return process.env.DEBUG}function psr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}xG.exports=mie()(lo);var{formatters:qYe}=xG.exports;qYe.o=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qYe.O=function(t){return this.inspectOpts.colors=this.useColors,DG.inspect(t,this.inspectOpts)}});var TG=f((EDn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=LYe():Iie.exports=GYe()});var VYe=f(YA=>{"use strict";var msr=YA&&YA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Esr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YYe=YA&&YA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&msr(e,t,r);return Esr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var Csr=YYe(B("http")),Isr=YYe(B("https"));async function JYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=JYe;async function Bsr(t){let r=(await JYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=Bsr;function Qsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Isr:Csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=Qsr});var Qie=f(qc=>{"use strict";var zYe=qc&&qc.__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]})),ysr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jYe=qc&&qc.__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)&&zYe(e,t,r);return ysr(e,t),e},bsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var wsr=jYe(B("net")),WYe=jYe(B("http")),Nsr=B("https");bsr(VYe(),qc);var zh=Symbol("AgentBaseInternalState"),Bie=class extends WYe.Agent{constructor(e){super(e),this[zh]={}}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 wsr.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)?Nsr.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 WYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[zh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[zh].currentSocket;if(this[zh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zh]&&(this[zh].defaultPort=e)}get protocol(){return this[zh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zh]&&(this[zh].protocol=e)}};qc.Agent=Bie});var KYe=f(dN=>{"use strict";var Ssr=dN&&dN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dN,"__esModule",{value:!0});dN.parseProxyResponse=void 0;var Rsr=Ssr(TG()),kG=(0,Rsr.default)("https-proxy-agent:parse-proxy-response");function Dsr(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(),kG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),kG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+jT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Wrt()+e+" "+t[0]}function Wrt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Jrt(...t){return process.stderr.write(zT.formatWithOptions(vn.inspectOpts,...t)+`
`)}function zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function jrt(){return process.env.DEBUG}function Krt(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]]}jT.exports=a8()(vn);var{formatters:Xde}=jT.exports;Xde.o=function(t){return this.inspectOpts.colors=this.useColors,zT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Xde.O=function(t){return this.inspectOpts.colors=this.useColors,zT.inspect(t,this.inspectOpts)}});var KT=E((sZt,u8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u8.exports=Wde():u8.exports=Zde()});var rhe=E(oi=>{"use strict";var $rt=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]})),Xrt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ehe=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)&&$rt(e,t,r);return Xrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Zrt=ehe(b("http")),ent=ehe(b("https"));async function the(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=the;async function tnt(t){let r=(await the(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=tnt;function rnt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ent:Zrt).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=rnt});var d8=E(qi=>{"use strict";var she=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]})),nnt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ihe=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)&&she(e,t,r);return nnt(e,t),e},snt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&she(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var int=ihe(b("net")),nhe=ihe(b("http")),ont=b("https");snt(rhe(),qi);var Pc=Symbol("AgentBaseInternalState"),l8=class extends nhe.Agent{constructor(e){super(e),this[Pc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(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 int.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)?ont.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Pc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Pc].currentSocket;if(this[Pc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Pc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Pc]&&(this[Pc].defaultPort=e)}get protocol(){return this[Pc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Pc]&&(this[Pc].protocol=e)}};qi.Agent=l8});var ohe=E(Xm=>{"use strict";var ant=Xm&&Xm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.parseProxyResponse=void 0;var cnt=ant(KT()),$T=(0,cnt.default)("https-proxy-agent:parse-proxy-response");function Ant(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(),$T("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),$T("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){kG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}kG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}dN.parseProxyResponse=Dsr});var yie=f($u=>{"use strict";var xsr=$u&&$u.__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]})),Tsr=$u&&$u.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),e5e=$u&&$u.__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)&&xsr(e,t,r);return Tsr(e,t),e},t5e=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.HttpsProxyAgent=void 0;var FG=e5e(B("net")),XYe=e5e(B("tls")),ksr=t5e(B("assert")),Fsr=t5e(TG()),Msr=Qie(),vsr=B("url"),Lsr=KYe(),qk=(0,Fsr.default)("https-proxy-agent"),ZYe=t=>t.servername===void 0&&t.host&&!FG.isIP(t.host)?{...t,servername:t.host}:t,MG=class extends Msr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vsr.URL(e):e,this.proxyHeaders=r?.headers??{},qk("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?$Ye(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:"?(qk("Creating `tls.Socket`: %o",this.connectOpts),s=XYe.connect(ZYe(this.connectOpts))):(qk("Creating `net.Socket`: %o",this.connectOpts),s=FG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=FG.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){$T("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}$T("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()})}Xm.parseProxyResponse=Ant});var dhe=E(_o=>{"use strict";var unt=_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]})),lnt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uhe=_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)&&unt(e,t,r);return lnt(e,t),e},lhe=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var XT=uhe(b("net")),ahe=uhe(b("tls")),dnt=lhe(b("assert")),hnt=lhe(KT()),fnt=d8(),gnt=b("url"),pnt=ohe(),Wy=(0,hnt.default)("https-proxy-agent"),che=t=>t.servername===void 0&&t.host&&!XT.isIP(t.host)?{...t,servername:t.host}:t,ZT=class extends fnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new gnt.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ahe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),s=ahe.connect(che(this.connectOpts))):(Wy("Creating `net.Socket`: %o",this.connectOpts),s=XT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=XT.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 A=(0,Lsr.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",Usr),r.secureEndpoint?(qk("Upgrading socket connection to TLS"),XYe.connect({...$Ye(ZYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new FG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{qk("Replaying proxy buffer for failed request"),(0,ksr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};MG.protocols=["http","https"];$u.HttpsProxyAgent=MG;function Usr(t){t.resume()}function $Ye(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var bie=f(el=>{"use strict";var Psr=el&&el.__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]})),_sr=el&&el.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n5e=el&&el.__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)&&Psr(e,t,r);return _sr(e,t),e},Osr=el&&el.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(el,"__esModule",{value:!0});el.HttpProxyAgent=void 0;var Hsr=n5e(B("net")),qsr=n5e(B("tls")),Gsr=Osr(TG()),Ysr=B("events"),Jsr=Qie(),r5e=B("url"),hN=(0,Gsr.default)("http-proxy-agent"),vG=class extends Jsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new r5e.URL(e):e,this.proxyHeaders=r?.headers??{},hN("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?Vsr(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 r5e.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;hN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,pnt.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",mnt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),ahe.connect({...Ahe(che(r),"host","path","port"),socket:s})):s;s.destroy();let l=new XT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,dnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};ZT.protocols=["http","https"];_o.HttpsProxyAgent=ZT;function mnt(t){t.resume()}function Ahe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ghe=E(Fo=>{"use strict";var Ent=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]})),Cnt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fhe=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)&&Ent(e,t,r);return Cnt(e,t),e},Int=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var ynt=fhe(b("net")),Bnt=fhe(b("tls")),bnt=Int(KT()),Qnt=b("events"),wnt=d8(),hhe=b("url"),Zm=(0,bnt.default)("http-proxy-agent"),ex=class extends wnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new hhe.URL(e):e,this.proxyHeaders=r?.headers??{},Zm("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?Snt(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 hhe.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;Zm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Zm("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),hN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hN("Creating `tls.Socket`: %o",this.connectOpts),i=qsr.connect(this.connectOpts)):(hN("Creating `net.Socket`: %o",this.connectOpts),i=Hsr.connect(this.connectOpts)),await(0,Ysr.once)(i,"connect"),i}};vG.protocols=["http","https"];el.HttpProxyAgent=vG;function Vsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var wie=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.globalNoProxyList=tl.proxyPolicyName=void 0;tl.loadNoProxy=A5e;tl.getDefaultProxySettings=rir;tl.proxyPolicy=sir;var Wsr=yie(),zsr=bie(),jsr=Uk(),Ksr="HTTPS_PROXY",Xsr="HTTP_PROXY",Zsr="ALL_PROXY",$sr="NO_PROXY";tl.proxyPolicyName="proxyPolicy";tl.globalNoProxyList=[];var o5e=!1,eir=new Map;function LG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function a5e(){if(!process)return;let t=LG(Ksr),e=LG(Zsr),r=LG(Xsr);return t||e||r}function tir(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function A5e(){let t=LG($sr);return o5e=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function rir(t){if(!t&&(t=a5e(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function nir(){let t=a5e();return t?new URL(t):void 0}function s5e(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function i5e(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&jsr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new zsr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Wsr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function sir(t,e){o5e||tl.globalNoProxyList.push(...A5e());let r=t?s5e(t):nir(),n={};return{name:tl.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!tir(s.url,e?.customNoProxyList??tl.globalNoProxyList,e?.customNoProxyList?void 0:eir)?i5e(s,n,r):s.proxySettings&&i5e(s,n,s5e(s.proxySettings)),i(s)}}}});var Nie=f(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.agentPolicyName=void 0;gN.agentPolicy=iir;gN.agentPolicyName="agentPolicy";function iir(t){return{name:gN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var Sie=f(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.tlsPolicyName=void 0;fN.tlsPolicy=oir;fN.tlsPolicyName="tlsPolicy";function oir(t){return{name:fN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Gk=f(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.isNodeReadableStream=c5e;a0.isWebReadableStream=u5e;a0.isBinaryBody=air;a0.isReadableStream=l5e;a0.isBlob=Air;function c5e(t){return!!(t&&typeof t.pipe=="function")}function u5e(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function air(t){return t!==void 0&&(t instanceof Uint8Array||l5e(t)||typeof t=="function"||t instanceof Blob)}function l5e(t){return c5e(t)||u5e(t)}function Air(t){return typeof t.stream=="function"}});var g5e=f(Die=>{"use strict";Object.defineProperty(Die,"__esModule",{value:!0});Die.concat=dir;var Rie=B("stream"),cir=Gk();async function*d5e(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function uir(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=d5e.bind(t)),t.values||(t.values=d5e.bind(t))}function h5e(t){return t instanceof ReadableStream?(uir(t),Rie.Readable.fromWeb(t)):t}function lir(t){return t instanceof Uint8Array?Rie.Readable.from(Buffer.from(t)):(0,cir.isBlob)(t)?h5e(t.stream()):h5e(t)}async function dir(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(lir);return Rie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var xie=f(mN=>{"use strict";Object.defineProperty(mN,"__esModule",{value:!0});mN.multipartPolicyName=void 0;mN.multipartPolicy=bir;var pN=s0(),hir=Gk(),gir=dG(),fir=g5e();function pir(){return`----AzSDKFormBoundary${(0,gir.randomUUID)()}`}function mir(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Eir(t){return t instanceof Uint8Array?t.byteLength:(0,hir.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Cir(t){let e=0;for(let r of t){let n=Eir(r);if(n===void 0)return;e+=n}return e}async function Iir(t,e,r){let n=[(0,pN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,pN.stringToUint8Array)(`\r
`,"utf-8"),(0,pN.stringToUint8Array)(mir(i.headers),"utf-8"),(0,pN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,pN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,pN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Cir(n);s&&t.headers.set("Content-Length",s),t.body=await(0,fir.concat)(n)}mN.multipartPolicyName="multipartPolicy";var Bir=70,Qir=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function yir(t){if(t.length>Bir)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qir.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function bir(){return{name:mN.multipartPolicyName,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?yir(r):r=pir(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Iir(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var m5e=f(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0});Tie.createPipelineFromOptions=vir;var wir=rie(),Nir=Yse(),Sir=nie(),Rir=oie(),Dir=aie(),xir=fie(),Tir=pie(),f5e=Hk(),kir=wie(),Fir=Nie(),Mir=Sie(),p5e=xie();function vir(t){let e=(0,Nir.createEmptyPipeline)();return f5e.isNodeLike&&(t.agent&&e.addPolicy((0,Fir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,Mir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,kir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Dir.decompressResponsePolicy)())),e.addPolicy((0,Tir.formDataPolicy)(),{beforePolicies:[p5e.multipartPolicyName]}),e.addPolicy((0,Rir.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,p5e.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,xir.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),f5e.isNodeLike&&e.addPolicy((0,Sir.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,wir.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var E5e=f(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});EN.apiVersionPolicyName=void 0;EN.apiVersionPolicy=Lir;EN.apiVersionPolicyName="ApiVersionPolicy";function Lir(t){return{name:EN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var C5e=f(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.isOAuth2TokenCredential=Uir;CN.isBearerTokenCredential=Pir;CN.isBasicCredential=_ir;CN.isApiKeyCredential=Oir;function Uir(t){return"getOAuth2Token"in t}function Pir(t){return"getBearerToken"in t}function _ir(t){return"username"in t&&"password"in t}function Oir(t){return"key"in t}});var Yk=f(kie=>{"use strict";Object.defineProperty(kie,"__esModule",{value:!0});kie.ensureSecureConnection=Yir;var Hir=Uk(),I5e=!1;function qir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function Gir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";Hir.logger.warning(t),typeof process?.emitWarning=="function"&&!I5e&&(I5e=!0,process.emitWarning(t))}function Yir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(qir(t,e))Gir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var B5e=f(IN=>{"use strict";Object.defineProperty(IN,"__esModule",{value:!0});IN.apiKeyAuthenticationPolicyName=void 0;IN.apiKeyAuthenticationPolicy=Vir;var Jir=Yk();IN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Vir(t){return{name:IN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,Jir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var y5e=f(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.basicAuthenticationPolicyName=void 0;BN.basicAuthenticationPolicy=zir;var Q5e=s0(),Wir=Yk();BN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function zir(t){return{name:BN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,Wir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,Q5e.uint8ArrayToString)((0,Q5e.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var b5e=f(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var m9e=f(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.auxiliaryAuthenticationHeaderPolicyName=void 0;l0.auxiliaryAuthenticationHeaderPolicy=Fcr;var xcr=voe(),Tcr=Wk();l0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var p9e="x-ms-authorization-auxiliary";async function kcr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function Fcr(t){let{credentials:e,scopes:r}=t,n=t.logger||Tcr.logger,s=new WeakMap;return{name:l0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${l0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,xcr.createTokenCycler)(c),s.set(c,u)),a.push(kcr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${p9e} header will not be set.`),o(i)):(i.headers.set(p9e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Ji=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var Mcr=Gie();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return Mcr.createEmptyPipeline}});var vcr=$6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return vcr.createPipelineFromOptions}});var Lcr=e9e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return Lcr.createDefaultHttpClient}});var Ucr=t9e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return Ucr.createHttpHeaders}});var Pcr=r9e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return Pcr.createPipelineRequest}});var E9e=s8();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return E9e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return E9e.isRestError}});var C9e=hoe();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return C9e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return C9e.decompressResponsePolicyName}});var I9e=s9e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return I9e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return I9e.exponentialRetryPolicyName}});var B9e=Eoe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return B9e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return B9e.setClientRequestIdPolicyName}});var Q9e=Zie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return Q9e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return Q9e.logPolicyName}});var y9e=doe();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return y9e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return y9e.multipartPolicyName}});var Loe=moe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Loe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Loe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Loe.getDefaultProxySettings}});var b9e=$ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return b9e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Me=h(Q,J);if(Me===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Me.value;if(J=Me.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Me.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=Ic(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Me=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Me=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Me=q.lastIndexOf("."),q=q.substring(0,Me),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=zI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=Ic(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=Ic(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=zI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Me=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Ys="";if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let Su=this.readStopNodeData(Q,Ee,bt+1);if(!Su)throw new Error(`Unexpected end of ${Ee}`);J=Su.i,Ys=Su.tagContent}let _a=new F(ae);ae!==Me&&zt&&(_a[":@"]=this.buildAttributesMap(Me,q,ae)),Ys&&(Ys=this.parseTextData(Ys,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),_a.add(this.options.textNodeName,Ys),this.addChild(P,_a,q,hn)}else{if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Ys=new F(ae);ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Ys=new F(ae);this.tagsNodeStack.push(P),ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),P=Ys}j="",J=bt}}else j+=Q[J];return b.child};function VI(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let WI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function Ic(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function zI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Ys,_a="";for(let Su=pr;Su<bt.length;Su++){let Bc=bt[Su];if(Ys)Bc===Ys&&(Ys="");else if(Bc==='"'||Bc==="'")Ys=Bc;else if(Bc===hn[0]){if(!hn[1])return{data:_a,index:Su};if(bt[Su+1]===hn[1])return{data:_a,index:Su}}else Bc===" "&&(Bc=" ");_a+=Bc}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Me=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Me=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Pf(Q,b,"",P)}function Pf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=BA(ae);if(Ee===void 0)continue;let Me="";if(Me=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];Gm(Me,b)||(hn=b.tagValueProcessor(Ee,hn),hn=tB(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=QA(ae[":@"],b),Ys=Ee==="?xml"?"":j,_a=ae[Ee][0][b.textNodeName];_a=_a.length!==0?" "+_a:"",q+=Ys+`<${Ee}${_a}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${QA(ae[":@"],b)}`,pr=Pf(ae[Ee],b,Me,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function BA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function QA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=tB(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function Gm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function tB(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?eB(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Me="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Me+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Me,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Me=0;Me<Ee;Me++)j+=this.buildAttrPairStr(ae[Me],""+Q[ue][ae[Me]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};FJe.exports=e})()});var cae=f(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.XML_CHARKEY=YN.XML_ATTRKEY=void 0;YN.XML_ATTRKEY="$";YN.XML_CHARKEY="_"});var UJe=f(N8=>{"use strict";Object.defineProperty(N8,"__esModule",{value:!0});N8.stringifyXML=jlr;N8.parseXML=Klr;var uae=MJe(),vJe=cae();function LJe(t){var e;return{attributesGroupName:vJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:vJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Wlr(t={}){var e,r;return Object.assign(Object.assign({},LJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function zlr(t={}){return Object.assign(Object.assign({},LJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ha.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ha.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ha.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,Hdr.compareHeader)(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=(0,sVe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,sVe.getURLQueries)(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}};H8.StorageSharedKeyCredentialPolicy=Rae});var iVe=f(q8=>{"use strict";Object.defineProperty(q8,"__esModule",{value:!0});q8.StorageSharedKeyCredential=void 0;var qdr=B("node:crypto"),Gdr=Dae(),Ydr=_8(),xae=class extends Ydr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Gdr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,qdr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};q8.StorageSharedKeyCredential=xae});var oVe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.AbortError=void 0;var Tae=class extends Error{constructor(e){super(e),this.name="AbortError"}};G8.AbortError=Tae});var kae=f(Y8=>{"use strict";Object.defineProperty(Y8,"__esModule",{value:!0});Y8.AbortError=void 0;var Jdr=oVe();Object.defineProperty(Y8,"AbortError",{enumerable:!0,get:function(){return Jdr.AbortError}})});var Fae=f(J8=>{"use strict";Object.defineProperty(J8,"__esModule",{value:!0});J8.logger=void 0;var Vdr=A0();J8.logger=(0,Vdr.createClientLogger)("storage-common")});var Mae=f(V8=>{"use strict";Object.defineProperty(V8,"__esModule",{value:!0});V8.StorageRetryPolicyType=void 0;var aVe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(aVe||(V8.StorageRetryPolicyType=aVe={}))});var cVe=f(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.StorageRetryPolicy=void 0;I2.NewRetryPolicyFactory=jdr;var Wdr=kae(),zdr=C2(),AVe=Cp(),vae=h0(),PE=Fae(),Lae=Mae();function jdr(t){return{create:(e,r)=>new W8(e,r,t)}}var _E={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kdr=new Wdr.AbortError("The operation was aborted."),W8=class extends zdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=_E){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:_E.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):_E.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:_E.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:_E.maxRetryDelayInMs):_E.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:_E.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:_E.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=(0,vae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,vae.setURLParameter)(s.url,AVe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(PE.logger.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(PE.logger.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 PE.logger.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 PE.logger.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 PE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return PE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(AVe.HeaderConstants.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')?(PE.logger.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 Lae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return PE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,vae.delay)(s,n,Kdr)}};I2.StorageRetryPolicy=W8});var _ae=f(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,Ahr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ga.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ga.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ga.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,chr.compareHeader)(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=(0,fVe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,fVe.getURLQueries)(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:XN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var mVe=f(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0});ZN.storageRequestFailureDetailsParserPolicyName=void 0;ZN.storageRequestFailureDetailsParserPolicy=lhr;ZN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function lhr(){return{name:ZN.storageRequestFailureDetailsParserPolicyName,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}});var EVe=f(z8=>{"use strict";Object.defineProperty(z8,"__esModule",{value:!0});z8.UserDelegationKeyCredential=void 0;var dhr=B("node:crypto"),Gae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,dhr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};z8.UserDelegationKeyCredential=Gae});var bd=f(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.BaseRequestPolicy=Ks.getCachedDefaultHttpClient=void 0;var fa=(Wn(),$n(Vn));fa.__exportStar(qJe(),Ks);var hhr=GJe();Object.defineProperty(Ks,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return hhr.getCachedDefaultHttpClient}});fa.__exportStar(JJe(),Ks);fa.__exportStar(rVe(),Ks);fa.__exportStar(nVe(),Ks);fa.__exportStar(_8(),Ks);fa.__exportStar(iVe(),Ks);fa.__exportStar(_ae(),Ks);var ghr=C2();Object.defineProperty(Ks,"BaseRequestPolicy",{enumerable:!0,get:function(){return ghr.BaseRequestPolicy}});fa.__exportStar(yae(),Ks);fa.__exportStar(L8(),Ks);fa.__exportStar(uVe(),Ks);fa.__exportStar(lVe(),Ks);fa.__exportStar(gVe(),Ks);fa.__exportStar(Dae(),Ks);fa.__exportStar(pVe(),Ks);fa.__exportStar(mVe(),Ks);fa.__exportStar(EVe(),Ks)});var Gc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var OE=f($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.Pipeline=$h.StorageOAuthScopes=void 0;$h.isPipelineLike=phr;$h.newPipeline=mhr;$h.getCoreClientOptions=Chr;$h.getCredentialFromPipeline=yVe;var QVe=w8(),CVe=Ji(),IVe=Kh(),BVe=lae(),Yae=_N(),fhr=R8(),Yc=bd(),B2=Gc();Object.defineProperty($h,"StorageOAuthScopes",{enumerable:!0,get:function(){return B2.StorageOAuthScopes}});function phr(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 j8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};$h.Pipeline=j8;function mhr(t,e={}){t||(t=new Yc.AnonymousCredential);let r=new j8([],e);return r._credential=t,r}function Ehr(t){let e=[Ihr,bVe,Bhr,Qhr,yhr,bhr,Nhr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>whr(s));return{wrappedPolicies:(0,QVe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function Chr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,QVe.convertHttpClient)(e):(0,Yc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${B2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,IVe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:B2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:B2.StorageBlobLoggingAllowedQueryParameters,logger:fhr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:BVe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new C0.SASQueryParameters(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 Ufr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Pfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 _fr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Ofr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Hfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 qfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 I0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function B0(t){let e=t.version?t.version:cWe.SERVICE_VERSION;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 C3=f(E3=>{"use strict";Object.defineProperty(E3,"__esModule",{value:!0});E3.BlobLeaseClient=void 0;var Gfr=Bs(),tg=Gc(),y2=f0(),m3=nl(),hAe=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=(0,Gfr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==tg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,m3.assertResponse)(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!==tg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,m3.assertResponse)(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!==tg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==tg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,m3.assertResponse)(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!==tg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${xWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(DWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function mpr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await ppr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(TWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!xWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}zE.pollOperation=mpr});var LAe=f(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.pollHttpOperation=Zs.isOperationError=Zs.getResourceLocation=Zs.getOperationStatus=Zs.getOperationLocation=Zs.initHttpOperation=Zs.getStatusFromInitialResponse=Zs.getErrorFromResponse=Zs.parseRetryAfter=Zs.inferLroMode=void 0;var kWe=k3(),FAe=x3();function FWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function MWe(t){return t.headers.location}function vWe(t){return t.headers["operation-location"]}function LWe(t){return t.headers["azure-asyncoperation"]}function Epr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function UWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=vWe(e),o=LWe(e),a=FWe({operationLocation:i,azureAsyncOperation:o}),A=MWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Epr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Zs.inferLroMode=UWe;function PWe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return MAe(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return FAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Cpr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return PWe({status:r,statusCode:t.statusCode})}function Ipr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return PWe({status:i,statusCode:t.statusCode})}function MAe(t){return t===202?"running":t<300?"succeeded":"failed"}function _We({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Bpr(new Date(e)):r*1e3}}Zs.parseRetryAfter=_We;function OWe(t){let e=GWe(t,"error");if(!e){FAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){FAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Zs.getErrorFromResponse=OWe;function Bpr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function HWe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return MAe(e.rawResponse.statusCode);case"Body":return vAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Zs.getStatusFromInitialResponse=HWe;async function Qpr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,kWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=UWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:HWe,setErrorAsResult:i})}Zs.initHttpOperation=Qpr;function qWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,h4.truncatedISO8061Date)(t.startsOn,!1):"",(0,h4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,mze.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Dmr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var yze=f(p4=>{"use strict";Object.defineProperty(p4,"__esModule",{value:!0});p4.BlobServiceClient=void 0;var kmr=_N(),Fmr=Ji(),Cze=Bs(),S2=OE(),Mmr=ace(),f4=nl(),w0=bd(),og=nl(),ag=f0(),vmr=s4(),Lmr=A3(),Ize=c4(),Bze=dce(),Qze=d4(),hce=class t extends Lmr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,f4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(Cze.isNodeLike){let s=new w0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,Fmr.getDefaultProxySettings)(n.proxyUri));let i=(0,S2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,S2.newPipeline)(new w0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,S2.isPipelineLike)(r)?s=r:Cze.isNodeLike&&r instanceof w0.StorageSharedKeyCredential||r instanceof w0.AnonymousCredential||(0,kmr.isTokenCredential)(r)?s=(0,S2.newPipeline)(r,n):s=(0,S2.newPipeline)(new w0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new Mmr.ContainerClient((0,f4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return ag.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,og.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,og.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,og.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,og.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return ag.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,og.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return ag.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,og.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return ag.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,og.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,f4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};zA.NetworkError=I4;I4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var B4=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};zA.UsageError=B4;B4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Rze=f(jA=>{"use strict";var Hmr=jA&&jA.__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]})),qmr=jA&&jA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gmr=jA&&jA.__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)&&Hmr(e,t,r);return qmr(e,t),e},Ymr=jA&&jA.__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(jA,"__esModule",{value:!0});jA.uploadCacheArchiveSDK=jA.UploadProgress=void 0;var Ice=Gmr(Oc()),Jmr=gce(),Vmr=Cce(),Q4=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);Ice.info(`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()}};jA.UploadProgress=Q4;function Wmr(t,e,r){var n;return Ymr(this,void 0,void 0,function*(){let s=new Jmr.BlobClient(t),i=s.getBlockBlobClient(),o=new Q4((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(),Ice.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Vmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ice.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}jA.uploadCacheArchiveSDK=Wmr});var Qce=f(ei=>{"use strict";var zmr=ei&&ei.__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]})),jmr=ei&&ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kmr=ei&&ei.__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)&&zmr(e,t,r);return jmr(e,t),e},b4=ei&&ei.__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(ei,"__esModule",{value:!0});ei.retryHttpClientResponse=ei.retryTypedResponse=ei.retry=ei.isRetryableStatusCode=ei.isServerErrorStatusCode=ei.isSuccessStatusCode=void 0;var Dze=Kmr(Oc()),y4=XB(),hS=jw();function Xmr(t){return t?t>=200&&t<300:!1}ei.isSuccessStatusCode=Xmr;function xze(t){return t?t>=500:!0}ei.isServerErrorStatusCode=xze;function Tze(t){return t?[y4.HttpCodes.BadGateway,y4.HttpCodes.ServiceUnavailable,y4.HttpCodes.GatewayTimeout].includes(t):!1}ei.isRetryableStatusCode=Tze;function Zmr(t){return b4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bce(t,e,r,n=hS.DefaultRetryAttempts,s=hS.DefaultRetryDelay,i=void 0){return b4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!xze(c)))return A;if(c&&(u=Tze(c),o=`Cache service responded with ${c}`),Dze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Wc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function vEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=new SEr.URL(t),s=(0,Dce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,R4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,R4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,R4.downloadCacheHttpClient)(t,e):yield(0,R4.downloadCacheHttpClient)(t,e)})}mo.downloadCache=vEr;function LEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=xce(),s=pS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,ZE.retryTypedResponse)("reserveCache",()=>KA(this,void 0,void 0,function*(){return n.postJson(F2("caches"),i)}))})}mo.reserveCache=LEr;function Gze(t,e){return`bytes ${t}-${e}/*`}function UEr(t,e,r,n,s){return KA(this,void 0,void 0,function*(){Wc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Gze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Gze(n,s)},o=yield(0,ZE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>KA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,ZE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function PEr(t,e,r,n){return KA(this,void 0,void 0,function*(){let s=pS.getArchiveFileSizeInBytes(r),i=F2(`caches/${e.toString()}`),o=Sce.openSync(r,"r"),a=(0,Dce.getUploadOptions)(n),A=pS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=pS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Wc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>KA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield UEr(t,i,()=>Sce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{Sce.closeSync(o)}})}function _Er(t,e,r){return KA(this,void 0,void 0,function*(){let n={size:r};return yield(0,ZE.retryTypedResponse)("commitCache",()=>KA(this,void 0,void 0,function*(){return t.postJson(F2(`caches/${e.toString()}`),n)}))})}function OEr(t,e,r,n){return KA(this,void 0,void 0,function*(){if((0,Dce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,REr.uploadCacheArchiveSDK)(r,e,n)}else{let i=xce();Wc.debug("Upload cache"),yield PEr(i,t,e,n),Wc.debug("Commiting cache");let o=pS.getArchiveFileSizeInBytes(e);Wc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield _Er(i,t,o);if(!(0,ZE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Wc.info("Cache saved successfully")}})}mo.saveCache=OEr});var D4=f(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.isJsonObject=mS.typeofJsonValue=void 0;function HEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}mS.typeofJsonValue=HEr;function qEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}mS.isJsonObject=qEr});var T4=f(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.base64encode=ES.base64decode=void 0;var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),x4=[];for(let t=0;t<yp.length;t++)x4[yp[t].charCodeAt(0)]=t;x4[45]=yp.indexOf("+");x4[95]=yp.indexOf("/");function GEr(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=x4[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)}ES.base64decode=GEr;function YEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=yp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=yp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=yp[s|n>>6],e+=yp[n&63],r=0;break}return r&&(e+=yp[s],e+="=",r==1&&(e+="=")),e}ES.base64encode=YEr});var Jze=f(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});k4.utf8read=void 0;var Tce=t=>String.fromCharCode.apply(String,t);function JEr(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(Tce(n)),s=0);return r.length?(s&&r.push(Tce(n.slice(0,s))),r.join("")):Tce(n.slice(0,s))}k4.utf8read=JEr});var M2=f(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.WireType=Ag.mergeBinaryOptions=Ag.UnknownFieldHandler=void 0;var VEr;(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])})(VEr=Ag.UnknownFieldHandler||(Ag.UnknownFieldHandler={}));function WEr(t,e){return Object.assign(Object.assign({},t),e)}Ag.mergeBinaryOptions=WEr;var zEr;(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"})(zEr=Ag.WireType||(Ag.WireType={}))});var M4=f(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.varint32read=XA.varint32write=XA.int64toString=XA.int64fromString=XA.varint64write=XA.varint64read=void 0;function jEr(){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")}XA.varint64read=jEr;function KEr(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)}}XA.varint64write=KEr;var F4=65536*65536;function XEr(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>=F4&&(s=s+(n/F4|0),n=n%F4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}XA.int64fromString=XEr;function ZEr(t,e){if(e>>>0<=2097151)return""+(F4*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)}XA.int64toString=ZEr;function $Er(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)}}XA.varint32write=$Er;function eCr(){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}XA.varint32read=eCr});var eC=f($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.PbLong=$E.PbULong=$E.detectBi=void 0;var v2=M4(),_n;function Vze(){let t=new DataView(new ArrayBuffer(8));_n=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}$E.detectBi=Vze;Vze();function Wze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var zze=/^-?[0-9]+$/,L4=4294967296,v4=2147483648, Line truncated
`)}};aY.RpcError=sue});var oue=f(cY=>{"use strict";Object.defineProperty(cY,"__esModule",{value:!0});cY.mergeRpcOptions=void 0;var bje=lr();function QIr(t,e){if(!e)return t;let r={};AY(t,r),AY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=bje.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=bje.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},AY(t.meta,r.meta),AY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}cY.mergeRpcOptions=QIr;function AY(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 Aue=f(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.Deferred=R0.DeferredState=void 0;var lg;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(lg=R0.DeferredState||(R0.DeferredState={}));var aue=class{constructor(e=!0){this._state=lg.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!==lg.PENDING)throw new Error(`cannot resolve ${lg[this.state].toLowerCase()}`);this._resolve(e),this._state=lg.RESOLVED}reject(e){if(this.state!==lg.PENDING)throw new Error(`cannot reject ${lg[this.state].toLowerCase()}`);this._reject(e),this._state=lg.REJECTED}resolvePending(e){this._state===lg.PENDING&&this.resolve(e)}rejectPending(e){this._state===lg.PENDING&&this.reject(e)}};R0.Deferred=aue});var uue=f(uY=>{"use strict";Object.defineProperty(uY,"__esModule",{value:!0});uY.RpcOutputStreamController=void 0;var wje=Aue(),D0=lr(),cue=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){D0.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){D0.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){D0.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(){D0.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;D0.assert(e,"bad state"),D0.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 wje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;D0.assert(n.state==wje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};uY.RpcOutputStreamController=cue});var due=f(wS=>{"use strict";var yIr=wS&&wS.__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(wS,"__esModule",{value:!0});wS.UnaryCall=void 0;var lue=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 yIr(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}})}};wS.UnaryCall=lue});var gue=f(NS=>{"use strict";var bIr=NS&&NS.__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(NS,"__esModule",{value:!0});NS.ServerStreamingCall=void 0;var hue=class Line truncated
`));let n=yield Uue(r,"create");yield Pue(n,t)})}pa.createTar=EBr});var Z2=f(vi=>{"use strict";var CBr=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]})),IBr=vi&&vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),K2=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)&&CBr(e,t,r);return IBr(e,t),e},qS=vi&&vi.__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(vi,"__esModule",{value:!0});vi.saveCache=vi.restoreCache=vi.isFeatureAvailable=vi.ReserveCacheError=vi.ValidationError=void 0;var dr=K2(Oc()),EY=K2(B("path")),bs=K2(Xw()),OS=K2(Yze()),Yje=K2(Oje()),X2=N4(),nC=Gje(),BBr=jw(),F2n=XB(),sC=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};vi.ValidationError=sC;var j2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};vi.ReserveCacheError=j2;function Jje(t){if(!t||t.length===0)throw new sC("Path Validation Error: At least one directory or file path is required")}function _ue(t){if(t.length>512)throw new sC(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new sC(`Key Validation Error: ${t} cannot contain commas.`)}function QBr(){return(0,X2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}vi.isFeatureAvailable=QBr;function yBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){let i=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Jje(t),i==="v2"?yield wBr(t,e,r,n,s):yield bBr(t,e,r,n,s)})}vi.restoreCache=yBr;function bBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new sC("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)_ue(A);let o=yield bs.getCompressionMethod(),a="";try{let A=yield OS.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=EY.join(yield bs.createTempDirectory(),bs.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield OS.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,nC.listTar)(a,o));let c=bs.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,nC.extractTar)(a,o),dr.info("Cache restored successfully"),new HS(A.cacheKey,c)}finally{try{yield bs.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function wBr(t,e,r,n,s=!1){return qS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new sC("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)_ue(a);let o="";try{let a=Yje.internalCacheTwirpClient(),A=yield bs.getCompressionMethod(),c={key:e,restoreKeys:r,version:bs.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=EY.join(yield bs.createTempDirectory(),bs.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield OS.downloadCache(u.signedDownloadUrl,o,n);let d=bs.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,nC.listTar)(o,A)),yield(0,nC.extractTar)(o,A),dr.info("Cache restored successfully"),new HS(u.matchedKey,d)}finally{try{o&&(yield bs.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function NBr(t,e,r,n=!1){return qS(this,void 0,void 0,function*(){let s=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Jje(t),_ue(e),s==="v2"?yield RBr(t,e,r,n):yield SBr(t,e,r,n)})}vi.saveCache=NBr;function SBr(t,e,r,n=!1){var s,i,o,a,A;return qS(this,void 0,void 0,function*(){let c=yield bs.getCompressionMethod(),u=-1,l=yield bs.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function cyr(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(WQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function uyr(){return"allowed"}function lyr(){return"success"}function dyr(){return"success"}function hyr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function gyr(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&&_le(t.origin)&&!_le(dF(t))&&(e=null);break;case"same-origin":WY(t,dF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function rR(t,e){return t}function fyr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:rR(t.domainLookupStartTime,r),domainLookupEndTime:rR(t.domainLookupEndTime,r),connectionStartTime:rR(t.connectionStartTime,r),connectionEndTime:rR(t.connectionEndTime,r),secureConnectionStartTime:rR(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function pyr(t){return rR(ZQr.now(),t)}function myr(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 jKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Eyr(t){return{referrerPolicy:t.referrerPolicy}}function Cyr(t){let e=t.referrerPolicy;U0(e);let r=null;if(t.referrer==="client"){let a=GKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=Ple(r),s=Ple(r,!0);n.toString().length>4096&&(n=s);let i=WY(t,n),o=lF(n)&&!lF(t.url);switch(e){case"origin":return s??Ple(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=dF(t);return WY(n,a)?n:lF(n)&&!lF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function Ple(t,e){return U0(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 lF(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 Iyr(t,e){if(VY===void 0)return!0;let r=KKe(e);if(r==="no metadata"||r.length===0)return!0;let n=Qyr(r),s=yyr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=VY.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)),byr(A,a))return!0}return!1}var Byr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Byr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();JKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Qyr(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 yyr(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 byr(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 wyr(t){}function WY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Nyr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function Syr(t){return t.controller.state==="aborted"}function Ryr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Dyr(t){return tyr[t.toLowerCase()]??t}function xyr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return U0(typeof e=="string"),e}var Tyr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function XKe(t,e,r=0,n=1){cl Line truncated
`);function abr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Abr(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 cbr(t,e){jY(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&&KY(t,ibr,i)||i.position===t.length-4&&KY(t,obr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=ubr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",abr(u)||(u=""),h=new nbr([d],c,{type:u})):h=Zyr(Buffer.from(d)),jY(cXe(A)),jY(typeof h=="string"&&cXe(h)||ebr(h)),s.push(tbr(A,h,c))}}function ubr(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=sR(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Vle(o,!0,!0,a=>a===9||a===32),!$yr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,sR(a=>a===32||a===9,t,e),Xyr(o)){case"content-disposition":{if(r=n=null,!KY(t,sbr,e)||(e.position+=17,r=dXe(t,e),r===null))return"failure";if(KY(t,lXe,e)){let a=e.position+lXe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=dXe(t,e),n===null))return"failure"}break}case"content-type":{let a=sR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),s=uXe(a);break}case"content-transfer-encoding":{let a=sR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),i=uXe(a);break}default:sR(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function dXe(t,e){jY(t[e.position-1]===34);let r=sR(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 sR(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Vle(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 KY(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}hXe.exports={multipartFormDataParser:cbr,validateBoundary:Abr}});var aR=f((RFn,bXe)=>{"use strict";var fF=Ir(),{ReadableStreamFrom:lbr,isBlobLike:fXe,isReadableStreamLike:dbr,readableStreamClose:hbr,createDeferredPromise:gbr,fullyReadBody:fbr,extractMimeType:pbr,utf8DecodeBytes:EXe}=jc(),{FormData:pXe}=gF(),{kState:oR}=AC(),{webidl:mbr}=Wo(),{Blob:Ebr}=B("node:buffer"),Wle=B("node:assert"),{isErrored:CXe,isDisturbed:Cbr}=B("node:stream"),{isArrayBuffer:Ibr}=B("node:util/types"),{serializeAMimeType:Bbr}=$A(),{multipartFormDataParser:Qbr}=gXe(),zle;try{let t=B("node:crypto");zle=e=>t.randomInt(0,e)}catch{zle=t=>Math.floor(Math.random(t))}var XY=new TextEncoder;function ybr(){}var IXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,BXe;IXe&&(BXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Cbr(e)&&!CXe(e)&&e.cancel("Response object has been garbage collected").catch(ybr)}));function QXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fXe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?XY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>hbr(A))},start(){},type:"bytes"}),Wle(dbr(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(Ibr(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(fF.isFormDataLike(t)){let A=`----formdata-undici-0${`${zle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=XY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=XY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=XY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(fXe(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(fF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:lbr(t)}if((typeof s=="string"||fF.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(!CXe(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 bbr(t,e=!1){return t instanceof ReadableStream&&(Wle(!fF.isDisturbed(t),"The body has already been consumed."),Wle(!t.locked,"The stream is locked.")),QXe(t,e)}function wbr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Nbr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Sbr(t){return{blob(){return iR(this,r=>{let n=mXe(this);return n===null?n="":n&&(n=Bbr(n)),new Ebr([r],{type:n})},t)},arrayBuffer(){return iR(this,r=>new Uint8Array(r).buffer,t)},text(){return iR(this,EXe,t)},json(){return iR(this,Dbr,t)},formData(){return iR(this,r=>{let n=mXe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Qbr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new pXe;return i[oR]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new pXe;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 iR(this,r=>new Uint8Array(r),t)}}}function Rbr(t){Object.assign(t.prototype,Sbr(t))}async function iR(t,e,r){if(mbr.brandCheck(t,r),yXe(t))throw new TypeError("Body is unusable: Body has already been read");Nbr(t[oR]);let n=gbr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[oR].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await fbr(t[oR].body,i,s),n.promise)}function yXe(t){let e=t[oR].body;return e!=null&&(e.stream.locked||fF.isDisturbed(e.stream))}function Dbr(t){return JSON.parse(EXe(t))}function mXe(t){let e=t[oR].headersList,r=pbr(e);return r==="failure"?null:r}bXe.exports={extractBody:QXe,safelyExtractBody:bbr,cloneBody:wbr,mixinBody:Rbr,streamRegistry:BXe,hasFinalizationRegistry:IXe,bodyUnusable:yXe}});var vXe=f((DFn,MXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:wXe}=zS(),jle=xle(),{RequestContentLengthMismatchError:P0,ResponseContentLengthMismatchError:xbr,RequestAbortedError:TXe,HeadersTimeoutError:Tbr,HeadersOverflowError:kbr,SocketError:n5,InformationalError:AR,BodyTimeoutError:Fbr,HTTPParserError:Mbr,ResponseExceededMaxSizeError:vbr}=sn(),{kUrl:kXe,kReset:ec,kClient:$le,kParser:si,kBlocking:EF,kRunning:ma,kPending:Lbr,kSize:NXe,kWriting:uC,kQueue:Td,kNoRef:pF,kKeepAliveDefaultTimeout:Ubr,kHostHeader:Pbr,kPendingIdx:_br,kRunningIdx:gl,kError:fl,kPipelining:t5,kSocket:cR,kKeepAliveTimeoutValue:s5,kMaxHeadersSize:Kle,kKeepAliveMaxTimeout:Obr,kKeepAliveTimeoutThreshold:Hbr,kHeadersTimeout:qbr,kBodyTimeout:Gbr,kStrictContentLength:ede,kMaxRequests:SXe,kCounter:Ybr,kMaxResponseSize:Jbr,kOnError:Vbr,kResume:cC,kHTTPContext:FXe}=ws(),fg=BKe(),Wbr=Buffer.alloc(0),ZY=Buffer[Symbol.species],$Y=Vt.addListener,zbr=Vt.removeAllListeners,Xle;async function jbr(){let t=process.env.JEST_WORKER_ID?Fle():void 0,e;try{e=await WebAssembly.compile(bKe())}catch{e=await WebAssembly.compile(t||Fle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onStatus(new ZY(pg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(zi.ptr===r),zi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onHeaderField(new ZY(pg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onHeaderValue(new ZY(pg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(zi.ptr===r),zi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(zi.ptr===r);let i=n-mg+pg.byteOffset;return zi.onBody(new ZY(pg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(zi.ptr===r),zi.onMessageComplete()||0)}})}var Zle=null,tde=jbr();tde.catch();var zi=null,pg=null,e5=0,mg=null,Kbr=0,mF=1,uR=2|mF,r5=4|mF,rde=8|Kbr,nde=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Kle])&&e[Kle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(fg.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,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Pbr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[t5]&&!h[ec]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return wXe.sendHeaders.hasSubscribers&&wXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?DXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?DXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?xXe(g,A.stream(),t,e,h,u,p,l):rwr(g,A,t,e,h,u,p,l):Vt.isStream(A)?twr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?xXe(g,A,t,e,h,u,p,l):kt(!1),!0}function twr(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"stream body cannot be pipelined");let A=!1,c=new i5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new TXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[uC]&&r[ma]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.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 DXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(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[ec]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[cC]()}catch(A){t(A)}}async function rwr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new P0;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[ec]=!0),r[cC]()}catch(A){t(A)}}async function xXe(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===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)=>{kt(A===null),s[fl]?h(s[fl]):A=d});s.on("close",c).on("drain",c);let l=new i5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[fl])throw s[fl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var i5=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[uC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[fl])throw r[fl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ede])throw new P0;process.emitWarning(new P0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ec]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[si].timeout&&r[si].timeoutType===uR&&r[si].timeout.refresh&&r[si].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[uC]=!1,e[fl])throw e[fl];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[ede])throw new P0;process.emitWarning(new P0)}e[si].timeout&&e[si].timeoutType===uR&&e[si].timeout.refresh&&e[si].timeout.refresh(),n[cC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[uC]=!1,e&&(kt(n[ma]<=1,"pipeline should only contain this request"),s(e))}};MXe.exports=Xbr});var GXe=f((xFn,qXe)=>{"use strict";var pl=B("node:assert"),{pipeline:nwr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:sde,RequestAbortedError:LXe,SocketError:CF,InformationalError:ide}=sn(),{kUrl:o5,kReset:A5,kClient:lR,kRunning:c5,kPending:swr,kQueue:lC,kPendingIdx:ode,kRunningIdx:kd,kError:Md,kSocket:Bo,kStrictContentLength:iwr,kOnError:ade,kMaxConcurrentStreams:HXe,kHTTP2Session:Fd,kResume:dC,kSize:owr,kHTTPContext:awr}=ws(),Mp=Symbol("open streams"),UXe,PXe=!1,a5;try{a5=B("node:http2")}catch{a5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Awr,HTTP2_HEADER_METHOD:cwr,HTTP2_HEADER_PATH:uwr,HTTP2_HEADER_SCHEME:lwr,HTTP2_HEADER_CONTENT_LENGTH:dwr,HTTP2_HEADER_EXPECT:hwr,HTTP2_HEADER_STATUS:gwr}}=a5;function fwr(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 pwr(t,e){t[Bo]=e,PXe||(PXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=a5.connect(t[o5],{createConnection:()=>e,peerMaxConcurrentStreams:t[HXe]});r[Mp]=0,r[lR]=t,r[Bo]=e,Tr.addListener(r,"error",Ewr),Tr.addListener(r,"frameError",Cwr),Tr.addListener(r,"end",Iwr),Tr.addListener(r,"goaway",Bwr),Tr.addListener(r,"close",function(){let{[lR]:s}=this,{[Bo]:i}=s,o=this[Bo][Md]||this[Md]||new CF("closed",Tr.getSocketInfo(i));if(s[Fd]=null,s.destroyed){pl(s[swr]===0);let a=s[lC].splice(s[kd]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[Fd]=r,e[Fd]=r,Tr.addListener(e,"error",function(s){pl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Md]=s,this[lR][ade](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new CF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Md]||new CF("closed",Tr.getSocketInfo(this));t[Bo]=null,this[Fd]!=null&&this[Fd].destroy(s),t[ode]=t[kd],pl(t[c5]===0),t.emit("disconnect",t[o5],[t],s),t[dC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return ywr(t,...s)},resume(){mwr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function mwr(t){let e=t[Bo];e?.destroyed===!1&&(t[owr]===0&&t[HXe]===0?(e.unref(),t[Fd].unref()):(e.ref(),t[Fd].ref()))}function Ewr(t){pl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bo][Md]=t,this[lR][ade](t)}function Cwr(t,e,r){if(r===0){let n=new ide(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bo][Md]=n,this[lR][ade](n)}}function Iwr(){let t=new CF("other side closed",Tr.getSocketInfo(this[Bo]));this.destroy(t),Tr.destroy(this[Bo],t)}function Bwr(t){let e=this[Md]||new CF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[lR];if(r[Bo]=null,r[awr]=null,this[Fd]!=null&&(this[Fd].destroy(e),this[Fd]=null),Tr.destroy(this[Bo],e),r[kd]<r[lC].length){let n=r[lC][r[kd]];r[lC][r[kd]++]=null,Tr.errorRequest(r,n,e),r[ode]=r[kd]}pl(r[c5]===0),r.emit("disconnect",r[o5],[r],e),r[dC]()}function Qwr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ywr(t,e){let r=t[Fd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[o5];l[Awr]=i||`${h}${g?`:${g}`:""}`,l[cwr]=n;let p=w=>{e.aborted||e.completed||(w=w||new LXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[lC][t[kd]++]=null,t[dC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}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[Mp],t[lC][t[kd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Mp],t[lC][t[kd]++]=null}),d.once("close",()=>{r[Mp]-=1,r[Mp]===0&&r.unref()}),!0;l[uwr]=s,l[lwr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){UXe??=aR().extractBody;let[w,H]=UXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),Qwr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[iwr])return Tr.errorRequest(t,e,new sde),!1;process.emitWarning(new sde)}m!=null&&(pl(u,"no body must not have content length"),l[dwr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[hwr]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[jwr]=A??3e5,this[zwr]=s??3e5,this[Kwr]=I??!0,this[Xwr]=w,this[lde]=z,this[gC]=null,this[rNr]=W>-1?W:-1,this[sNr]=oe??100,this[yi]=null,this[vd]=[],this[Lp]=0,this[Ld]=0,this[yF]=he=>hde(this,he),this[nNr]=he=>tZe(this,he)}get pipelining(){return this[h5]}set pipelining(e){this[h5]=e,this[yF](!0)}get[NF](){return this[vd].length-this[Ld]}get[wF](){return this[Ld]-this[Lp]}get[bF](){return this[vd].length-this[Lp]}get[Hwr](){return!!this[yi]&&!this[hR]&&!this[yi].destroyed}get[ude](){return!!(this[yi]?.busy(null)||this[bF]>=(eZe(this)||1)||this[NF]>0)}[Owr](e){rZe(this),this.once("connect",e)}[tNr](e,r){let n=e.origin||this[Cg].origin,s=new Mwr(n,e,r);return this[vd].push(s),this[O0]||(_0.bodyLength(s.body)==null&&_0.isIterable(s.body)?(this[O0]=1,queueMicrotask(()=>hde(this))):this[yF](!0)),this[O0]&&this[fC]!==2&&this[ude]&&(this[fC]=2),this[fC]<2}async[$wr](){return new Promise(e=>{this[bF]?this[gC]=e:e(null)})}async[eNr](e){return new Promise(r=>{let n=this[vd].splice(this[Ld]);for(let i=0;i<n.length;i++){let o=n[i];_0.errorRequest(this,o,e)}let s=()=>{this[gC]&&(this[gC](),this[gC]=null),r(null)};this[yi]?(this[yi].destroy(e,s),this[yi]=null):queueMicrotask(s),this[yF]()})}},aNr=d5();function tZe(t,e){if(t[wF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){vp(t[Ld]===t[Lp]);let r=t[vd].splice(t[Lp]);for(let n=0;n<r.length;n++){let s=r[n];_0.errorRequest(t,s,e)}vp(t[bF]===0)}}async function rZe(t){vp(!t[hR]),vp(!t[yi]);let{host:e,hostname:r,protocol:n,port:s}=t[Cg];if(r[0]==="["){let i=r.indexOf("]");vp(i!==-1);let o=r.substring(1,i);vp($Xe.isIP(o)),r=o}t[hR]=!0,dR.beforeConnect.hasSubscribers&&dR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF]});try{let i=await new Promise((o,a)=>{t[BF]({host:e,hostname:r,protocol:n,port:s,servername:t[hC],localAddress:t[QF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){_0.destroy(i.on("error",XXe),new Uwr);return}vp(i);try{t[yi]=i.alpnProtocol==="h2"?await oNr(t,i):await iNr(t,i)}catch(o){throw i.destroy().on("error",XXe),o}t[hR]=!1,i[Zwr]=0,i[lde]=t[lde],i[_wr]=t,i[Gwr]=null,dR.connected.hasSubscribers&&dR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF],socket:i}),t.emit("connect",t[Cg],[t])}catch(i){if(t.destroyed)return;if(t[hR]=!1,dR.connectError.hasSubscribers&&dR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[hC],localAddress:t[QF]},connector:t[BF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(vp(t[wF]===0);t[NF]>0&&t[vd][t[Ld]].servername===t[hC];){let o=t[vd][t[Ld]++];_0.errorRequest(t,o,i)}else tZe(t,i);t.emit("connectionError",t[Cg],[t],i)}t[yF]()}function ZXe(t){t[fC]=0,t.emit("drain",t[Cg],[t])}function hde(t,e){t[O0]!==2&&(t[O0]=2,ANr(t,e),t[O0]=0,t[Lp]>256&&(t[vd].splice(0,t[Lp]),t[Ld]-=t[Lp],t[Lp]=0))}function ANr(t,e){for(;;){if(t.destroyed){vp(t[NF]===0);return}if(t[gC]&&!t[bF]){t[gC](),t[gC]=null;return}if(t[yi]&&t[yi].resume(),t[ude])t[fC]=2;else if(t[fC]===2){e?(t[fC]=1,queueMicrotask(()=>ZXe(t))):ZXe(t);continue}if(t[NF]===0||t[wF]>=(eZe(t)||1))return;let r=t[vd][t[Ld]];if(t[Cg].protocol==="https:"&&t[hC]!==r.servername){if(t[wF]>0)return;t[hC]=r.servername,t[yi]?.destroy(new Lwr("servername changed"),()=>{t[yi]=null,hde(t)})}if(t[hR])return;if(!t[yi]){rZe(t);return}if(t[yi].destroyed||t[yi].busy(r))return;!r.aborted&&t[yi].write(r)?t[Ld]++:t[vd].splice(t[Ld],1)}}nZe.exports=dde});var gde=f((vFn,sZe)=>{"use strict";var g5=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)}};sZe.exports=class{constructor(){this.head=this.tail=new g5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new g5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var oZe=f((LFn,iZe)=>{var{kFree:cNr,kConnected:uNr,kPending:lNr,kQueued:dNr,kRunning:hNr,kSize:gNr}=ws(),H0=Symbol("pool"),fde=class{constructor(e){this[H0]=e}get connected(){return this[H0][uNr]}get free(){return this[H0][cNr]}get pending(){return this[H0][lNr]}get queued(){return this[H0][dNr]}get running(){return this[H0][hNr]}get size(){return this[H0][gNr]}};iZe.exports=fde});var Bde=f((UFn,pZe)=>{"use strict";var fNr=ZS(),pNr=gde(),{kConnected:pde,kSize:aZe,kRunning:AZe,kPending:cZe,kQueued:SF,kBusy:mNr,kFree:ENr,kUrl:CNr,kClose:INr,kDestroy:BNr,kDispatch:QNr}=ws(),yNr=oZe(),tc=Symbol("clients"),rA=Symbol("needDrain"),RF=Symbol("queue"),mde=Symbol("closed resolve"),Ede=Symbol("onDrain"),uZe=Symbol("onConnect"),lZe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};yet.exports=Bhe});var k5=f((lMn,Det)=>{"use strict";var wet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:jRr}=sn(),KRr=pR();Ret()===void 0&&Net(new KRr);function Net(t){if(!t||typeof t.dispatch!="function")throw new jRr("Argument agent must implement Agent");Object.defineProperty(globalThis,wet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ret(){return globalThis[wet]}Det.exports={setGlobalDispatcher:Net,getGlobalDispatcher:Ret}});var F5=f((hMn,xet)=>{"use strict";xet.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 ket=f((gMn,Tet)=>{"use strict";var XRr=l5();Tet.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 XRr(r,o,s,i);return r(a,A)}}});var Met=f((fMn,Fet)=>{"use strict";var ZRr=Q5();Fet.exports=t=>e=>function(n,s){return e(n,new ZRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Let=f((pMn,vet)=>{"use strict";var $Rr=Ir(),{InvalidArgumentError:eDr,RequestAbortedError:tDr}=sn(),rDr=F5(),Qhe=class extends rDr{#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 eDr("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=$Rr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new tDr(`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 nDr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Qhe({maxSize:i},s);return e(n,o)}}vet.exports=nDr});var _et=f((mMn,Pet)=>{"use strict";var{isIP:sDr}=B("node:net"),{lookup:iDr}=B("node:dns"),oDr=F5(),{InvalidArgumentError:NR,InformationalError:aDr}=sn(),Uet=Math.pow(2,31)-1,yhe=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 aDr("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){iDr(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===Uet?(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===Uet?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 bhe(this,e,r)}},bhe=class extends oDr{#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)=> Line truncated
${i}`;break;case"retry":Ent(i)&&(r[s]=i);break;case"id":Cnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Ent(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Cnt(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}}};Int.exports={EventSourceStream:cge}});var Dnt=f((zMn,Rnt)=>{"use strict";var{pipeline:fkr}=B("node:stream"),{fetching:pkr}=HF(),{makeRequest:mkr}=DR(),{webidl:Hp}=Wo(),{EventSourceStream:Ekr}=Bnt(),{parseMIMEType:Ckr}=$A(),{createFastMessageEvent:Ikr}=vR(),{isNetworkError:Qnt}=_F(),{delay:Bkr}=age(),{kEnumerableProperty:rQ}=Ir(),{environmentSettingsObject:ynt}=jc(),bnt=!1,wnt=3e3,$F=0,Nnt=1,eM=2,Qkr="anonymous",ykr="use-credentials",OR=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=$F;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hp.util.markAsUncloneable(this);let n="EventSource constructor";Hp.argumentLengthCheck(arguments,1,n),bnt||(bnt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hp.converters.USVString(e,n,"url"),r=Hp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:wnt};let s=ynt,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=Qkr;r.withCredentials&&(o=ykr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ynt.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=mkr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===eM)return;this.#r=$F;let e={request:this.#s,dispatcher:this.#a},r=n=>{Qnt(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Qnt(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?Ckr(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=Nnt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Ekr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Ikr(A.type,A.options))}});fkr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=pkr(e)}async#c(){this.#r!==eM&&(this.#r=$F,this.dispatchEvent(new Event("error")),await Bkr(this.#o.reconnectionTime),this.#r===$F&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Hp.brandCheck(this,t),this.#r!==eM&&(this.#r=eM,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}},Snt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:$F,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Nnt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eM,writable:!1}};Object.defineProperties(OR,Snt);Object.defineProperties(OR.prototype,Snt);Object.defineProperties(OR.prototype,{close:rQ,onerror:rQ,onmessage:rQ,onopen:rQ,readyState:rQ,url:rQ,withCredentials:rQ});Hp.converters.EventSourceInitDict=Hp.dictionaryConverter([{key:"withCredentials",converter:Hp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hp.converters.any}]);Rnt.exports={EventSource:OR,defaultReconnectionTime:wnt}});var uge=f((jMn,vt)=>{"use strict";var bkr=gR(),xnt=iF(),wkr=fR(),Nkr=wZe(),Skr=pR(),Rkr=Mde(),Dkr=jZe(),xkr=t$e(),Tnt=sn(),B6=Ir(),{InvalidArgumentError:I6}=Tnt,HR=H$e(),Tkr=aF(),kkr=fhe(),Fkr=bet(),Mkr=Ehe(),vkr=rhe(),Lkr=Q5(),{getGlobalDispatcher:knt,setGlobalDispatcher:Ukr}=k5(),Pkr=F5(),_kr=l5(),Okr=d5();Object.assign(xnt.prototype,HR);vt.exports.Dispatcher=xnt;vt.exports.Client=bkr;vt.exports.Pool=wkr;vt.exports.BalancedPool=Nkr;vt.exports.Agent=Skr;vt.exports.ProxyAgent=Rkr;vt.exports.EnvHttpProxyAgent=Dkr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Zm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Zm("Creating `tls.Socket`: %o",this.connectOpts),i=Bnt.connect(this.connectOpts)):(Zm("Creating `net.Socket`: %o",this.connectOpts),i=ynt.connect(this.connectOpts)),await(0,Qnt.once)(i,"connect"),i}};ex.protocols=["http","https"];Fo.HttpProxyAgent=ex;function Snt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var jhe=E(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var dfe=E(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var Wpe=E((apr,OAt)=>{OAt.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 zpe=E((cpr,Jpe)=>{var HAt=Wpe();Jpe.exports={version:HAt.version}});var XR=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.isJsonObject=Q0.typeofJsonValue=void 0;function KAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Q0.typeofJsonValue=KAt;function $At(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Q0.isJsonObject=$At});var eD=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.base64encode=w0.base64decode=void 0;var Hu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<Hu.length;t++)ZR[Hu[t].charCodeAt(0)]=t;ZR[45]=Hu.indexOf("+");ZR[95]=Hu.indexOf("/");function XAt(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)}w0.base64decode=XAt;function ZAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Hu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Hu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Hu[s|n>>6],e+=Hu[n&63],r=0;break}return r&&(e+=Hu[s],e+="=",r==1&&(e+="=")),e}w0.base64encode=ZAt});var Zpe=E(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var u9=t=>String.fromCharCode.apply(String,t);function eut(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(u9(n)),s=0);return r.length?(s&&r.push(u9(n.slice(0,s))),r.join("")):u9(n.slice(0,s))}tD.utf8read=eut});var GB=E(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});uA.WireType=uA.mergeBinaryOptions=uA.UnknownFieldHandler=void 0;var tut;(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])})(tut=uA.UnknownFieldHandler||(uA.UnknownFieldHandler={}));function rut(t,e){return Object.assign(Object.assign({},t),e)}uA.mergeBinaryOptions=rut;var nut;(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"})(nut=uA.WireType||(uA.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 sut(){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=sut;function iut(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=iut;var rD=65536*65536;function out(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=out;function aut(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=aut;function cut(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=cut;function Aut(){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=Aut});var Ed=E(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var qB=nD(),ir;function eme(){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=eme;eme();function tme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var rme=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=L9});var P9=E(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var kme=At();function Dlt(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=kme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=kme.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=Dlt;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 H9=E(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.Deferred=Wf.DeferredState=void 0;var hA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hA=Wf.DeferredState||(Wf.DeferredState={}));var O9=class{constructor(e=!0){this._state=hA.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!==hA.PENDING)throw new Error(`cannot resolve ${hA[this.state].toLowerCase()}`);this._resolve(e),this._state=hA.RESOLVED}reject(e){if(this.state!==hA.PENDING)throw new Error(`cannot reject ${hA[this.state].toLowerCase()}`);this._reject(e),this._state=hA.REJECTED}resolvePending(e){this._state===hA.PENDING&&this.resolve(e)}rejectPending(e){this._state===hA.PENDING&&this.reject(e)}};Wf.Deferred=O9});var q9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var vme=H9(),Jf=At(),G9=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){Jf.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){Jf.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){Jf.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(){Jf.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;Jf.assert(e,"bad state"),Jf.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 vme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Jf.assert(n.state==vme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=G9});var V9=E(k0=>{"use strict";var klt=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 Y9=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 klt(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=Y9});var J9=E(v0=>{"use strict";var vlt=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 W9=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 Mut=f(Fut=>{"use strict";var Ime=$p().Buffer;Fut._dbcs=em;var jo=-1,kut=-2,Ml=-10,AA=-1e3,fD=new Array(256),$M=-1;for(DJ=0;DJ<256;DJ++)fD[DJ]=jo;var DJ;function em(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]=fD.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(fD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[AA-o[n]],A=48;A<=57;A++){if(a[A]===jo)a[A]=AA-s;else if(a[A]>AA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[AA-a[A]],u=129;u<=254;u++){if(c[u]===jo)c[u]=AA-i;else{if(c[u]===AA-i)continue;if(c[u]>AA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[AA-c[u]],d=48;d<=57;d++)l[d]===jo&&(l[d]=kut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function _4r(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(b4r.has(s)){r=s;break}}return r}function O4r(t,e){let r=_4r(e);r!==""&&(t.referrerPolicy=r)}function H4r(){return"allowed"}function q4r(){return"success"}function G4r(){return"success"}function Y4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function J4r(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&&MEe(t.origin)&&!MEe(RQ(t))&&(e=null);break;case"same-origin":cv(t,RQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function QD(t,e){return t}function V4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:QD(t.domainLookupStartTime,r),domainLookupEndTime:QD(t.domainLookupEndTime,r),connectionStartTime:QD(t.connectionStartTime,r),connectionEndTime:QD(t.connectionEndTime,r),secureConnectionStartTime:QD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function W4r(t){return QD(R4r.now(),t)}function z4r(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 uht(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function j4r(t){return{referrerPolicy:t.referrerPolicy}}function K4r(t){let e=t.referrerPolicy;uv(e);let r=null;if(t.referrer==="client"){let i=iht();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else WC.is.URL(t.referrer)&&(r=t.referrer);let n=FEe(r),s=FEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??FEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=RQ(t);return cv(n,i)?n:SQ(n)&&!SQ(i)?"no-referrer":s}case"same-origin":return cv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return cv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":n}}}function FEe(t,e=!1){return uv(WC.is.URL(t)),t=new URL(t),ght(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var X4r=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)$/),Z4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function lht(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Z4r(t)):X4r(t)}function $4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||lht(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function SQ(t){return WC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:$4r(t.origin):!1}function eYr(t){}function cv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function tYr(t){return t.controller.state==="aborted"}function rYr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function nYr(t){return x4r[t.toLowerCase()]??t}var sYr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dht(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,sYr),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 iYr(t,e,r,n=0,s=1){let i=dht(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return WC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return WC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>GEe(a)&&a!==59,t,e);i=HEe.decode(o)}return{name:n,value:i}}function DYr(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 lc("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qEe(o,!0,!0,a=>a===9||a===32),!BYr.test(o.toString()))throw lc("header name does not match the field-name token production");if(t[e.position]!==58)throw lc("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),IYr(o)){case"content-disposition":{if(r=n=null,Ul(A=>GEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw lc("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=RYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw lc("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=qEe(a,!1,!0,A=>A===9||A===32),s=Iht(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=qEe(a,!1,!0,A=>A===9||A===32),i=Iht(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw lc("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function qEe(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 xYr(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 lc(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function TYr(t){return t<=31||t===127}function kYr(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 GEe(t){return t<=127&&t!==32&&t!==9&&!TYr(t)&&!kYr(t)}Bht.exports={multipartFormDataParser:SYr,validateBoundary:NYr}});var lv=f((wGn,yht)=>{"use strict";function FYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yht.exports={createDeferredPromise:FYr}});var wD=f((NGn,Rht)=>{"use strict";var VEe=Wt(),{ReadableStreamFrom:MYr,readableStreamClose:vYr,fullyReadBody:LYr,extractMimeType:UYr}=au(),{FormData:bht,setFormDataState:PYr}=$J(),{webidl:jd}=Ko(),YEe=B("node:assert"),{isErrored:JEe,isDisturbed:_Yr}=B("node:stream"),{isUint8Array:OYr}=B("node:util/types"),{serializeAMimeType:HYr}=Ll(),{multipartFormDataParser:qYr}=Qht(),{createDeferredPromise:GYr}=lv(),{parseJSONFromBytes:YYr}=nm(),{utf8DecodeBytes:JYr}=ov(),{runtimeFeatures:VYr}=sm(),WYr=VYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),eV=new TextEncoder;function zYr(){}var jYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!_Yr(e)&&!JEe(e)&&e.cancel("Response object has been garbage collected").catch(zYr)});function Nht(t,e=!1){let r=null,n=null;jd.is.ReadableStream(t)?r=t:jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),YEe(jd.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(jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(jd.is.BufferSource(t))i=jd.util.getCopyOfBytesHeldByBufferSource(t);else if(jd.is.FormData(t)){let c=`----formdata-undici-0${`${WYr(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 HIe=E(OIe=>{"use strict";var qY=Zu().Buffer;OIe._dbcs=el;var Zn=-1,PIe=-2,sa=-10,Us=-1e3,lE=new Array(256),Hb=-1;for(pk=0;pk<256;pk++)lE[pk]=Zn;var pk;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]=PIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Dyt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(pyt.has(s)){r=s;break}}return r}function kyt(t,e){let r=Dyt(e);r!==""&&(t.referrerPolicy=r)}function vyt(){return"allowed"}function _yt(){return"success"}function Fyt(){return"success"}function Myt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lyt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&a7(t.origin)&&!a7(Bg(t))&&(e=null);break;case"same-origin":Kb(t,Bg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pE(t,e){return t}function Uyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime: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 Pyt(t){return pE(Iyt.now(),t)}function Oyt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function mbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Hyt(t){return{referrerPolicy:t.referrerPolicy}}function Gyt(t){let e=t.referrerPolicy;$b(e);let r=null;if(t.referrer==="client"){let i=dbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Gd.is.URL(t.referrer)&&(r=t.referrer);let n=o7(r),s=o7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??o7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Bg(t);return yg(n)&&!yg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Bg(t);return Kb(n,i)?n:yg(n)&&!yg(i)?"no-referrer":s}case"same-origin":return Kb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Kb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Bg(t);return yg(n)&&!yg(i)?"no-referrer":n}}}function o7(t,e=!1){return $b(Gd.is.URL(t)),t=new URL(t),ybe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var qyt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Yyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Ebe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Yyt(t)):qyt(t)}function Vyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Ebe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function yg(t){return Gd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Vyt(t.origin):!1}function Wyt(t){}function Kb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jyt(t){return t.controller.state==="aborted"}function zyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jyt(t){return Byt[t.toLowerCase()]??t}var Kyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Cbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Kyt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function $yt(t,e,r,n=0,s=1){let i=Cbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Gd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Gd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>p7(a)&&a!==59,t,e);i=f7.decode(o)}return{name:n,value:i}}function yBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=g7(o,!0,!0,a=>a===9||a===32),!hBt.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++,aa(a=>a===32||a===9,t,e),dBt(o)){case"content-disposition":{if(r=n=null,aa(c=>p7(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=IBt(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=aa(c=>c!==10&&c!==13,t,e);a=g7(a,!1,!0,c=>c===9||c===32),s=Nbe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=g7(a,!1,!0,c=>c===9||c===32),i=Nbe(a);break}default:aa(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 aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function g7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function BBt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function bBt(t){return t<=31||t===127}function QBt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function p7(t){return t<=127&&t!==32&&t!==9&&!bBt(t)&&!QBt(t)}Tbe.exports={multipartFormDataParser:CBt,validateBoundary:EBt}});var Xb=E((dbr,Rbe)=>{"use strict";function wBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Rbe.exports={createDeferredPromise:wBt}});var CE=E((hbr,Fbe)=>{"use strict";var C7=Ze(),{ReadableStreamFrom:SBt,readableStreamClose:NBt,fullyReadBody:TBt,extractMimeType:xBt}=ro(),{FormData:Dbe,setFormDataState:RBt}=Hk(),{webidl:cc}=es(),m7=b("node:assert"),{isErrored:E7,isDisturbed:DBt}=b("node:stream"),{isUint8Array:kBt}=b("node:util/types"),{serializeAMimeType:vBt}=oa(),{multipartFormDataParser:_Bt}=xbe(),{createDeferredPromise:FBt}=Xb(),{parseJSONFromBytes:MBt}=nl(),{utf8DecodeBytes:LBt}=Fk(),{runtimeFeatures:UBt}=sl(),PBt=UBt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Gk=new TextEncoder;function OBt(){}var HBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DBt(e)&&!E7(e)&&e.cancel("Response object has been garbage collected").catch(OBt)});function vbe(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"}),m7(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${`${PBt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=eV.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 y=Gk.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=eV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=Gk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=eV.encode(`--${c}--\r
`);h.push(C),o+=C.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=${c}`}else if(jd.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(VEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:MYr(t)}return(typeof i=="string"||OYr(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(JEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!JEe(r)&&n.enqueue(typeof c=="string"?eV.encode(c):new Uint8Array(c));queueMicrotask(()=>vYr(n))})(),[{stream:r,source:i,length:o},a]}function KYr(t,e=!1){return jd.is.ReadableStream(t)&&(YEe(!VEe.isDisturbed(t),"The body has already been consumed."),YEe(!t.locked,"The stream is locked.")),Nht(t,e)}function XYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ZYr(t,e){return{blob(){return bD(this,n=>{let s=wht(e(this));return s===null?s="":s&&(s=HYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bD(this,JYr,t,e)},json(){return bD(this,YYr,t,e)},formData(){return bD(this,n=>{let s=wht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qYr(n,s),o=new bht;return PYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bht;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 bD(this,n=>new Uint8Array(n),t,e)}}}function $Yr(t,e){Object.assign(t.prototype,ZYr(t,e))}function bD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=GYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(LYr(t.body,o,i),s.promise)}function Sht(t){let e=t.body;return e!=null&&(e.stream.locked||VEe.isDisturbed(e.stream))}function wht(t){let e=t.headersList,r=UYr(e);return r==="failure"?null:r}Rht.exports={extractBody:Nht,safelyExtractBody:KYr,cloneBody:XYr,mixinBody:$Yr,streamRegistry:jYr,bodyUnusable:Sht}});var _ht=f((SGn,Pht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Dht}=JC(),WEe=kme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:e5r,RequestAbortedError:vht,HeadersTimeoutError:t5r,HeadersOverflowError:r5r,SocketError:gv,InformationalError:ND,BodyTimeoutError:n5r,HTTPParserError:s5r,ResponseExceededMaxSizeError:i5r}=or(),{kUrl:Lht,kReset:dc,kClient:eCe,kParser:ai,kBlocking:fv,kRunning:Na,kPending:o5r,kSize:xht,kWriting:jC,kQueue:Kd,kNoRef:dv,kKeepAliveDefaultTimeout:a5r,kHostHeader:A5r,kPendingIdx:c5r,kRunningIdx:Pl,kError:_l,kPipelining:nV,kSocket:SD,kKeepAliveTimeoutValue:iV,kMaxHeadersSize:u5r,kKeepAliveMaxTimeout:l5r,kKeepAliveTimeoutThreshold:d5r,kHeadersTimeout:h5r,kBodyTimeout:g5r,kStrictContentLength:KEe,kMaxRequests:Tht,kCounter:f5r,kMaxResponseSize:p5r,kOnError:m5r,kResume:zC,kHTTPContext:Uht,kClosed:XEe}=Mn(),Mg=Rdt(),E5r=Buffer.alloc(0),tV=Buffer[Symbol.species],C5r=Pt.removeAllListeners,zEe;function I5r(){let t=process.env.JEST_WORKER_ID?IEe():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(Tdt())}catch{}return e||(e=new WebAssembly.Module(t||IEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onStatus(new tV(vg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderField(new tV(vg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onHeaderValue(new tV(vg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-Lg+vg.byteOffset;return Ki.onBody(new tV(vg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var jEe=null,Ki=null,vg=null,rV=0,Lg=null,B5r=0,hv=1,RD=2|hv,sV=4|hv,ZEe=8|B5r,$Ee=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Mg.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[u5r],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Gk.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(C7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=cc.is.ReadableStream(t)?t:SBt(t)}return(typeof i=="string"||kBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(E7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!E7(r)&&n.enqueue(typeof A=="string"?Gk.encode(A):new Uint8Array(A));queueMicrotask(()=>NBt(n))})(),[{stream:r,source:i,length:o},a]}function GBt(t,e=!1){return cc.is.ReadableStream(t)&&(m7(!C7.isDisturbed(t),"The body has already been consumed."),m7(!t.locked,"The stream is locked.")),vbe(t,e)}function qBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function YBt(t,e){return{blob(){return EE(this,n=>{let s=kbe(e(this));return s===null?s="":s&&(s=vBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return EE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return EE(this,LBt,t,e)},json(){return EE(this,MBt,t,e)},formData(){return EE(this,n=>{let s=kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=_Bt(n,s),o=new Dbe;return RBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Dbe;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 VBt(t,e){Object.assign(t.prototype,YBt(t,e))}function EE(t,e,r,n){try{cc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),_be(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(TBt(t.body,o,i),s.promise)}function _be(t){let e=t.body;return e!=null&&(e.stream.locked||C7.isDisturbed(e.stream))}function kbe(t){let e=t.headersList,r=xBt(e);return r==="failure"?null:r}Fbe.exports={extractBody:vbe,safelyExtractBody:GBt,cloneBody:qBt,mixinBody:VBt,streamRegistry:HBt,bodyUnusable:_be}});var Wbe=E((fbr,Vbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:Mbe}=Od(),I7=tV(),{RequestContentLengthMismatchError:bg,ResponseContentLengthMismatchError:WBt,RequestAbortedError:Gbe,HeadersTimeoutError:JBt,HeadersOverflowError:zBt,SocketError:tQ,InformationalError:IE,BodyTimeoutError:jBt,HTTPParserError:KBt,ResponseExceededMaxSizeError:$Bt}=Ke(),{kUrl:qbe,kReset:Bi,kClient:N7,kParser:Wr,kBlocking:rQ,kRunning:ms,kPending:XBt,kSize:Lbe,kWriting:Yd,kQueue:Ac,kNoRef:Zb,kKeepAliveDefaultTimeout:ZBt,kHostHeader:ebt,kPendingIdx:tbt,kRunningIdx:ca,kError:Aa,kPipelining:Vk,kSocket:yE,kKeepAliveTimeoutValue:Jk,kMaxHeadersSize:rbt,kKeepAliveMaxTimeout:nbt,kKeepAliveTimeoutThreshold:sbt,kHeadersTimeout:ibt,kBodyTimeout:obt,kStrictContentLength:b7,kMaxRequests:Ube,kCounter:abt,kMaxResponseSize:cbt,kOnError:Abt,kResume:qd,kHTTPContext:Ybe,kClosed:Q7}=Kt(),QA=FBe(),ubt=Buffer.alloc(0),qk=Buffer[Symbol.species],lbt=Je.removeAllListeners,y7;function dbt(){let t=process.env.JEST_WORKER_ID?JV():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(UBe())}catch{}return e||(e=new WebAssembly.Module(t||JV())),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-SA+wA.byteOffset;return bn.onStatus(new qk(wA.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-SA+wA.byteOffset;return bn.onHeaderField(new qk(wA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-SA+wA.byteOffset;return bn.onHeaderValue(new qk(wA.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-SA+wA.byteOffset;return bn.onBody(new qk(wA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var B7=null,bn=null,wA=null,Yk=0,SA=null,hbt=0,eQ=1,BE=2|eQ,Wk=4|eQ,w7=8|hbt,S7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(QA.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[rbt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[cbt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[A5r],i?p+=`connection: upgrade\r
`:p+=t[ebt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[nV]&&!h[dc]?p+=`connection: keep-alive\r
`:t[Vk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Dht.sendHeaders.hasSubscribers&&Dht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Fht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Fht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Mht(g,A.stream(),t,e,h,u,p,l):k5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?T5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Mht(g,A,t,e,h,u,p,l):Lt(!1),!0}function T5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new vht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[jC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.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 Fht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\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 Mbe.sendHeaders.hasSubscribers&&Mbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Obe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?Obe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?Hbe(f,c.stream(),t,e,h,u,p,l):Qbt(f,c,t,e,h,u,p,l):Je.isStream(c)?bbt(f,c,t,e,h,u,p,l):Je.isIterable(c)?Hbe(f,c,t,e,h,u,p,l):We(!1),!0}function bbt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new zk({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 Gbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Yd]&&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 Obe(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[dc]=!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"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[zC]()}catch(A){t(A)}}async function k5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new DQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[qd]()}catch(c){t(c)}}async function Qbt(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 bg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[dc]=!0),r[zC]()}catch(A){t(A)}}async function Mht(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===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)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new oV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var oV=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[jC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KEe])throw new DQ;process.emitWarning(new DQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[dc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Bi]=!0),r[qd]()}catch(c){t(c)}}async function Hbe(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[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new zk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var zk=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[Yd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[b7])throw new bg;process.emitWarning(new bg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ai].timeout&&r[ai].timeoutType===RD&&r[ai].timeout.refresh&&r[ai].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[jC]=!1,e[_l])throw e[_l];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\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[Yd]=!1,e[Aa])throw e[Aa];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[KEe])throw new DQ;process.emitWarning(new DQ)}e[ai].timeout&&e[ai].timeoutType===RD&&e[ai].timeout.refresh&&e[ai].timeout.refresh(),n[zC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[jC]=!1,e&&(Lt(n[Na]<=1,"pipeline should only contain this request"),s(e))}};Pht.exports=Q5r});var zht=f((RGn,Wht)=>{"use strict";var Hl=B("node:assert"),{pipeline:F5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:sCe,RequestAbortedError:M5r,SocketError:Cv,InformationalError:KC,InvalidArgumentError:v5r}=or(),{kUrl:Ev,kReset:uV,kClient:Au,kRunning:Iv,kPending:L5r,kQueue:XC,kPendingIdx:oCe,kRunningIdx:Xd,kError:cu,kSocket:_s,kStrictContentLength:U5r,kOnError:DD,kMaxConcurrentStreams:AV,kPingInterval:Oht,kHTTP2Session:om,kHTTP2InitialWindowSize:P5r,kHTTP2ConnectionWindowSize:_5r,kResume:Ug,kSize:O5r,kHTTPContext:aCe,kClosed:iCe,kBodyTimeout:H5r,kEnableConnectProtocol:pv,kRemoteSettings:mv,kHTTP2Stream:aV,kHTTP2SessionState:ACe}=Mn(),{channels:Hht}=JC(),Ol=Symbol("open streams"),qht,cV;try{cV=B("node:http2")}catch{cV={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:q5r,HTTP2_HEADER_METHOD:Ght,HTTP2_HEADER_PATH:Yht,HTTP2_HEADER_SCHEME:tCe,HTTP2_HEADER_CONTENT_LENGTH:G5r,HTTP2_HEADER_EXPECT:Y5r,HTTP2_HEADER_STATUS:rCe,HTTP2_HEADER_PROTOCOL:J5r,NGHTTP2_REFUSED_STREAM:V5r,NGHTTP2_CANCEL:W5r}}=cV;function nCe(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 z5r(t,e){t[_s]=e;let r=t[P5r],n=t[_5r],s=cV.connect(t[Ev],{createConnection:()=>e,peerMaxConcurrentStreams:t[AV],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[_s]=e,s[Ol]=0,s[Au]=t,s[_s]=e,s[ACe]={ping:{interval:t[Oht]===0?null:setInterval(Z5r,t[Oht],s).unref()}},s[pv]=!1,s[mv]=!1,n&&hr.addListener(s,"connect",K5r.bind(s,n)),hr.addListener(s,"error",$5r),hr.addListener(s,"frameError",e6r),hr.addListener(s,"end",t6r),hr.addListener(s,"goaway",r6r),hr.addListener(s,"close",n6r),hr.addListener(s,"remoteSettings",X5r),s.unref(),t[om]=s,e[om]=s,hr.addListener(e,"error",i6r),hr.addListener(e,"end",o6r),hr.addListener(e,"close",s6r),e[iCe]=!1,e.on("close",a6r),{version:"h2",defaultPipelining:1/0,write(i){return c6r(t,i)},resume(){j5r(t)},destroy(i,o){e[iCe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Iv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mv]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[mv]===!1;return!1}}}function j5r(t){let e=t[_s];e?.destroyed===!1&&(t[O5r]===0||t[AV]===0?(e.unref(),t[om].unref()):(e.ref(),t[om].ref()))}function K5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function X5r(t){if(this[Au][AV]=t.maxConcurrentStreams??this[Au][AV],this[mv]===!0&&this[pv]===!0&&t.enableConnectProtocol===!1){let e=new KC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[_s][cu]=e,this[Au][DD](e);return}this[pv]=t.enableConnectProtocol??this[pv],this[mv]=!0,this[Au][Ug]()}function Z5r(t){let e=t[ACe];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[Au],o=this[Au];if(n!=null){let a=new KC(`HTTP/2: "PING" errored - type ${n.message}`);o[cu]=a,i[DD](a)}else i.emit("ping",s)}}function $5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_s][cu]=t,this[Au][DD](t)}function e6r(t,e,r){if(r===0){let n=new KC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_s][cu]=n,this[Au][DD](n)}}function t6r(){let t=new Cv("other side closed",hr.getSocketInfo(this[_s]));this.destroy(t),hr.destroy(this[_s],t)}function r6r(t){let e=this[cu]||new Cv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[_s])),r=this[Au];if(r[_s]=null,r[aCe]=null,this.close(),this[om]=null,hr.destroy(this[_s],e),r[Xd]<r[XC].length){let n=r[XC][r[Xd]];r[XC][r[Xd]++]=null,hr.errorRequest(r,n,e),r[oCe]=r[Xd]}Hl(r[Iv]===0),r.emit("disconnect",r[Ev],[r],e),r.emit("connectionError",r[Ev],[r],e),r[Ug]()}function n6r(){let{[Au]:t,[ACe]:e}=this,{[_s]:r}=t,n=this[_s][cu]||this[cu]||new Cv("closed",hr.getSocketInfo(r));if(t[_s]=null,t[aCe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[L5r]===0);let s=t[XC].splice(t[Xd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function s6r(){let t=this[cu]||new Cv("closed",hr.getSocketInfo(this)),e=this[om][Au];e[_s]=null,e[aCe]=null,this[om]!==null&&this[om].destroy(t),e[oCe]=e[Xd],Hl(e[Iv]===0),e.emit("disconnect",e[Ev],[e],t),e[Ug]()}function i6r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cu]=t,this[Au][DD](t)}function o6r(){hr.destroy(this,new Cv("other side closed",hr.getSock Line truncated
`;Hht.sendHeaders.publish({request:e,headers:F,socket:n[_s]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[Y5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[aV]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[aV]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[rCe]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),nCe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[XC][t[Xd]++]=null,t[Ug]()):(m(new KC("HTTP/2: stream half-closed (remote)")),t[XC][t[Xd]++]=null,t[oCe]=t[Xd],t[Ug]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new KC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new KC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?Jht(m,g,null,t,e,t[_s],y,I):hr.isBuffer(d)?Jht(m,g,d,t,e,t[_s],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?Vht(m,g,d.stream(),t,e,t[_s],y,I):l6r(m,g,d,t,e,t[_s],y,I):hr.isStream(d)?u6r(m,t[_s],I,g,d,t,e,y):hr.isIterable(d)?Vht(m,g,d,t,e,t[_s],y,I):Hl(!1)}}function Jht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[uV]=!0),s.onRequestSent(),n[Ug]()}catch(A){t(A)}}function u6r(t,e,r,n,s,i,o,a){Hl(a!==0||i[Iv]===0,"stream body cannot be pipelined");let A=F5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[uV]=!0),i[Ug]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function l6r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new sCe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[uV]=!0),n[Ug]()}catch(A){t(A)}}async function Vht(t,e,r,n,s,i,o,a){Hl(o!==0||n[Iv]===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)=>{Hl(A===null),i[cu]?d(i[cu]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cu])throw i[cu];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[uV]=!0),n[Ug]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Wht.exports=z5r});var rI=f((DGn,ngt)=>{"use strict";var am=B("node:assert"),$ht=B("node:net"),Bv=B("node:http"),xQ=Wt(),{ClientStats:d6r}=iEe(),{channels:xD}=JC(),h6r=pdt(),g6r=ID(),{InvalidArgumentError:us,InformationalError:f6r,ClientDestroyedError:p6r}=or(),m6r=BD(),{kUrl:Pg,kServerName:tI,kClient:E6r,kBusy:cCe,kConnect:C6r,kResuming:TQ,kRunning:wv,kPending:Nv,kSize:Qv,kQueue:Zd,kConnected:I6r,kConnecting:TD,kNeedDrain:$C,kKeepAliveDefaultTimeout:jht,kHostHeader:B6r,kPendingIdx:$d,kRunningIdx:Am,kError:Q6r,kPipelining:lV,kKeepAliveTimeoutValue:y6r,kMaxHeadersSize:b6r,kKeepAliveMaxTimeout:w6r,kKeepAliveTimeoutThreshold:N6r,kHeadersTimeout:S6r,kBodyTimeout:R6r,kStrictContentLength:D6r,kConnector:yv,kMaxRequests:uCe,kCounter:x6r,kClose:T6r,kDestroy:k6r,kDispatch:F6r,kLocalAddress:bv,kMaxResponseSize:M6r,kOnError:v6r,kHTTPContext:wi,kMaxConcurrentStreams:L6r,kHTTP2InitialWindowSize:U6r,kHTTP2ConnectionWindowSize:P6r,kResume:eI,kPingInterval:_6r}=Mn(),O6r=_ht(),H6r=zht(),ZC=Symbol("kClosedResolve"),q6r=Bv&&Bv.maxHeaderSize&&Number.isInteger(Bv.maxHeaderSize)&&Bv.maxHeaderSize>0?()=>Bv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Kht=()=>{};function egt(t){return t[lV]??t[wi]?.defaultPipelining??1}var lCe=class extends g6r{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:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[R6r]=a??3e5,this[S6r]=n??3e5,this[D6r]=m??!0,this[uCe]=w,this[ZC]=null,this[M6r]=z>-1?z:-1,this[wi]=null,this[L6r]=U??100,this[U6r]=Z??262144,this[P6r]=he??524288,this[_6r]=Se??6e4,this[Zd]=[],this[Am]=0,this[$d]=0,this[eI]=Je=>dCe(this,Je),this[v6r]=Je=>tgt(this,Je)}get pipelining(){return this[lV]}set pipelining(e){this[lV]=e,this[eI](!0)}get stats(){return new d6r(this)}get[Nv](){return this[Zd].length-this[$d]}get[wv](){return this[$d]-this[Am]}get[Qv](){return this[Zd].length-this[Am]}get[I6r](){return!!this[wi]&&!this[TD]&&!this[wi].destroyed}get[cCe](){return!!(this[wi]?.busy(null)||this[Qv]>=(egt(this)||1)||this[Nv]>0)}[C6r](e){rgt(this),this.once("connect",e)}[F6r](e,r){let n=new h6r(this[Pg].origin,e,r);return this[Zd].push(n),this[TQ]||(xQ.bodyLength(n.body)==null&&xQ.isIterable(n.body)?(this[TQ]=1,queueMicrotask(()=>dCe(this))):this[eI](!0)),this[TQ]&&this[$C]!==2&&this[cCe]&&(this[$C]=2),this[$C]<2}[T6r](){return new Promise(e=>{this[Qv]?this[ZC]=e:e(null)})}[k6r](e){return new Promise(r=>{let n=this[Zd].splice(this[$d]);for(let i=0;i<n.length;i++){let o=n[i];xQ.errorRequest(this,o,e)}let s=()=>{this[ZC]&&(this[ZC](),this[ZC]=null),r(null)};this[wi]?(this[wi].destroy(e,s),this[wi]=null):queueMicrotask(s),this[eI]()})}};function tgt(t,e){if(t[wv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){am(t[$d]===t[Am]);let r=t[Zd].splice(t[Am]);for(let n=0;n<r.length;n++){let s=r[n];xQ.errorRequest(t,s,e)}am(t[Qv]===0)}}function rgt(t){am(!t[TD]),am(!t[wi]);let{host:e,hostname:r,protocol:n,port:s}=t[Pg];if(r[0]==="["){let i=r.indexOf("]");am(i!==-1);let o=r.substring(1,i);am($ht.isIPv6(o)),r=o}t[TD]=!0,xD.beforeConnect.hasSubscribers&&xD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv]}),t[yv]({host:e,hostname:r,protocol:n,port:s,servername:t[tI],localAddress:t[bv]},(i,o)=>{if(i){Xht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[eI]();return}if(t.destroyed){xQ.destroy(o.on("error",Kht),new p6r),t[eI]();return}am(o);try{t[wi]=o.alpnProtocol==="h2"?H6r(t,o):O6r(t,o)}catch(a){o.destroy().on("error",Kht),Xht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[eI]();return}t[TD]=!1,o[x6r]=0,o[uCe]=t[uCe],o[E6r]=t,o[Q6r]=null,xD.connected.hasSubscribers&&xD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv],socket:o}),t.emit("connect",t[Pg],[t]),t[eI]()})}function Xht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[TD]=!1,xD.connectError.hasSubscribers&&xD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[wi]?.version,servername:t[tI],localAddress:t[bv]},connector:t[yv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(am(t[wv]===0);t[Nv]>0&&t[Zd][t[$d]].servername===t[tI];){let o=t[Zd][t[$d]++];xQ.errorRequest(t,o,e)}else tgt(t,e);t.emit("connectionError",t[Pg],[t],e)}}function Zht(t){t[$C]=0,t.emit("drain",t[Pg],[t])}function dCe(t,e){t[TQ]!==2&&(t[TQ]=2,G6r(t,e),t[TQ]=0,t[Am]>256&&(t[Zd].splice(0,t[Am]),t[$d]-=t[Am],t[Am]=0))}function G6r(t,e){for(;;){if(t.destroyed){am(t[Nv]===0);return}if(t[ZC]&&!t[Qv]){t[ZC](),t[ZC]=null;return}if(t[wi]&&t[wi].resume(),t[cCe])t[$C]=2;else if(t[$C]===2){e?(t[$C]=1,queueMicrotask(()=>Zht(t))):Zht(t);continue}if(t[Nv]===0||t[wv]>=(egt(t)||1))return;let r=t[Zd][t[$d]];if(t[Pg].protocol==="https:"&&t[tI]!==r.servername){if(t[wv]>0)return;t[tI]=r.servername,t[wi]?.destroy(new f6r("servername changed"),()=>{t[wi]=null,dCe(t)})}if(t[TD])return;if(!t[wi]){rgt(t);return}if(t[wi].destroyed||t[wi].busy(r))return;!r.aborted&&t[wi].write(r)?t[$d]++:t[Zd].splice(t[$d],1)}}ngt.exports=lCe});var hCe=f((TGn,sgt)=>{"use strict";var dV=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)}};sgt.exports=class{constructor(){this.head=this.tail=new dV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dV),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 hV=f((kGn,hgt)=>{"use strict";var{PoolStats:Y6r}=iEe(),J6r=ID(),V6r=hCe(),{kConnected:gCe,kSize:igt,kRunning:ogt,kPending:agt,kQueued:Sv,kBusy:W6r,kFree:z6r,kUrl:j6r,kClose:K6r,kDestroy:X6r,kDispatch:Z6r}=Mn(),Do=Symbol("clients"),cA=Symbol("needDrain"),Rv=Symbol("queue"),fCe=Symbol("closed resolve"),pCe=Symbol("onDrain"),Agt=Symbol("onConnect"),cgt=Symbol("onDisconnect"),ugt=Symbol("onConnectionError"),mCe=Symbol("get dispatcher"),lgt=Symbol("add client"),dgt=Symbol("remove client"),ECe=class extends J6r{[Rv]=new V6r;[Sv]=0;[Do]=[];[cA]=!1;[pCe](e,r,n){let s=this[Rv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[b7])throw new bg;process.emitWarning(new bg)}e[Wr].timeout&&e[Wr].timeoutType===BE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[qd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Yd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};Vbe.exports=fbt});var tQe=E((gbr,eQe)=>{"use strict";var la=b("node:assert"),{pipeline:wbt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:D7,RequestAbortedError:Sbt,SocketError:oQ,InformationalError:Vd,InvalidArgumentError:Nbt}=Ke(),{kUrl:iQ,kReset:Xk,kClient:no,kRunning:aQ,kPending:Tbt,kQueue:Wd,kPendingIdx:v7,kRunningIdx:uc,kError:so,kSocket:Dr,kStrictContentLength:xbt,kOnError:bE,kMaxConcurrentStreams:Kk,kPingInterval:Jbe,kHTTP2Session:ol,kHTTP2InitialWindowSize:Rbt,kHTTP2ConnectionWindowSize:Dbt,kResume:NA,kSize:kbt,kHTTPContext:_7,kClosed:k7,kBodyTimeout:vbt,kEnableConnectProtocol:nQ,kRemoteSettings:sQ,kHTTP2Stream:jk,kHTTP2SessionState:F7}=Kt(),{channels:zbe}=Od(),ua=Symbol("open streams"),jbe,$k;try{$k=b("node:http2")}catch{$k={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_bt,HTTP2_HEADER_METHOD:Kbe,HTTP2_HEADER_PATH:$be,HTTP2_HEADER_SCHEME:T7,HTTP2_HEADER_CONTENT_LENGTH:Fbt,HTTP2_HEADER_EXPECT:Mbt,HTTP2_HEADER_STATUS:x7,HTTP2_HEADER_PROTOCOL:Lbt,NGHTTP2_REFUSED_STREAM:Ubt,NGHTTP2_CANCEL:Pbt}}=$k;function R7(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 Obt(t,e){t[Dr]=e;let r=t[Rbt],n=t[Dbt],s=$k.connect(t[iQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Kk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[F7]={ping:{interval:t[Jbe]===0?null:setInterval(Ybt,t[Jbe],s).unref()}},s[nQ]=!1,s[sQ]=!1,n&&ut.addListener(s,"connect",Gbt.bind(s,n)),ut.addListener(s,"error",Vbt),ut.addListener(s,"frameError",Wbt),ut.addListener(s,"end",Jbt),ut.addListener(s,"goaway",zbt),ut.addListener(s,"close",jbt),ut.addListener(s,"remoteSettings",qbt),s.unref(),t[ol]=s,e[ol]=s,ut.addListener(e,"error",$bt),ut.addListener(e,"end",Xbt),ut.addListener(e,"close",Kbt),e[k7]=!1,e.on("close",Zbt),{version:"h2",defaultPipelining:1/0,write(i){return tQt(t,i)},resume(){Hbt(t)},destroy(i,o){e[k7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[aQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sQ]===!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[sQ]===!1;return!1}}}function Hbt(t){let e=t[Dr];e?.destroyed===!1&&(t[kbt]===0||t[Kk]===0?(e.unref(),t[ol].unref()):(e.ref(),t[ol].ref()))}function Gbt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function qbt(t){if(this[no][Kk]=t.maxConcurrentStreams??this[no][Kk],this[sQ]===!0&&this[nQ]===!0&&t.enableConnectProtocol===!1){let e=new Vd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][bE](e);return}this[nQ]=t.enableConnectProtocol??this[nQ],this[sQ]=!0,this[no][NA]()}function Ybt(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[no],o=this[no];if(n!=null){let a=new Vd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[bE](a)}else i.emit("ping",s)}}function Vbt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][bE](t)}function Wbt(t,e,r){if(r===0){let n=new Vd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][bE](n)}}function Jbt(){let t=new oQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function zbt(t){let e=this[so]||new oQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[_7]=null,this.close(),this[ol]=null,ut.destroy(this[Dr],e),r[uc]<r[Wd].length){let n=r[Wd][r[uc]];r[Wd][r[uc]++]=null,ut.errorRequest(r,n,e),r[v7]=r[uc]}la(r[aQ]===0),r.emit("disconnect",r[iQ],[r],e),r.emit("connectionError",r[iQ],[r],e),r[NA]()}function jbt(){let{[no]:t,[F7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new oQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[_7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[Tbt]===0);let s=t[Wd].splice(t[uc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function Kbt(){let t=this[so]||new oQ("closed",ut.getSocketInfo(this)),e=this[ol][no];e[Dr]=null,e[_7]=null,this[ol]!==null&&this[ol].destroy(t),e[v7]=e[uc],la(e[aQ]===0),e.emit("disconnect",e[iQ],[e],t),e[NA]()}function $bt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][bE](t)}function Xbt(){ut.destroy(this,new oQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;zbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[Mbt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[jk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[jk]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[x7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),R7(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[Wd][t[uc]++]=null,t[NA]()):(m(new Vd("HTTP/2: stream half-closed (remote)")),t[Wd][t[uc]++]=null,t[v7]=t[uc],t[NA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Vd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===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?Xbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Xbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Zbe(m,f,d.stream(),t,e,t[Dr],y,C):nQt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?rQt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?Zbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Xbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Xk]=!0),s.onRequestSent(),n[NA]()}catch(c){t(c)}}function rQt(t,e,r,n,s,i,o,a){la(a!==0||i[aQ]===0,"stream body cannot be pipelined");let c=wbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Xk]=!0),i[NA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function nQt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new D7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Xk]=!0),n[NA]()}catch(c){t(c)}}async function Zbe(t,e,r,n,s,i,o,a){la(o!==0||n[aQ]===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)=>{la(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[Xk]=!0),n[NA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}eQe.exports=Obt});var $d=E((pbr,uQe)=>{"use strict";var al=b("node:assert"),oQe=b("node:net"),cQ=b("node:http"),Qg=Ze(),{ClientStats:sQt}=RV(),{channels:QE}=Od(),iQt=bBe(),oQt=Eg(),{InvalidArgumentError:gr,InformationalError:aQt,ClientDestroyedError:cQt}=Ke(),AQt=Cg(),{kUrl:TA,kServerName:Kd,kClient:uQt,kBusy:M7,kConnect:lQt,kResuming:wg,kRunning:dQ,kPending:hQ,kSize:AQ,kQueue:lc,kConnected:dQt,kConnecting:wE,kNeedDrain:zd,kKeepAliveDefaultTimeout:rQe,kHostHeader:hQt,kPendingIdx:dc,kRunningIdx:cl,kError:fQt,kPipelining:Zk,kKeepAliveTimeoutValue:gQt,kMaxHeadersSize:pQt,kKeepAliveMaxTimeout:mQt,kKeepAliveTimeoutThreshold:EQt,kHeadersTimeout:CQt,kBodyTimeout:IQt,kStrictContentLength:yQt,kConnector:uQ,kMaxRequests:L7,kCounter:BQt,kClose:bQt,kDestroy:QQt,kDispatch:wQt,kLocalAddress:lQ,kMaxResponseSize:SQt,kOnError:NQt,kHTTPContext:nn,kMaxConcurrentStreams:TQt,kHTTP2InitialWindowSize:xQt,kHTTP2ConnectionWindowSize:RQt,kResume:jd,kPingInterval:DQt}=Kt(),kQt=Wbe(),vQt=tQe(),Jd=Symbol("kClosedResolve"),_Qt=cQ&&cQ.maxHeaderSize&&Number.isInteger(cQ.maxHeaderSize)&&cQ.maxHeaderSize>0?()=>cQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},nQe=()=>{};function aQe(t){return t[Zk]??t[nn]?.defaultPipelining??1}var U7=class extends oQt{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[IQt]=a??3e5,this[CQt]=n??3e5,this[yQt]=m??!0,this[L7]=N,this[Jd]=null,this[SQt]=O>-1?O:-1,this[nn]=null,this[TQt]=D??100,this[xQt]=te??262144,this[RQt]=ce??524288,this[DQt]=ge??6e4,this[lc]=[],this[cl]=0,this[dc]=0,this[jd]=De=>P7(this,De),this[NQt]=De=>cQe(this,De)}get pipelining(){return this[Zk]}set pipelining(e){this[Zk]=e,this[jd](!0)}get stats(){return new sQt(this)}get[hQ](){return this[lc].length-this[dc]}get[dQ](){return this[dc]-this[cl]}get[AQ](){return this[lc].length-this[cl]}get[dQt](){return!!this[nn]&&!this[wE]&&!this[nn].destroyed}get[M7](){return!!(this[nn]?.busy(null)||this[AQ]>=(aQe(this)||1)||this[hQ]>0)}[lQt](e){AQe(this),this.once("connect",e)}[wQt](e,r){let n=new iQt(this[TA].origin,e,r);return this[lc].push(n),this[wg]||(Qg.bodyLength(n.body)==null&&Qg.isIterable(n.body)?(this[wg]=1,queueMicrotask(()=>P7(this))):this[jd](!0)),this[wg]&&this[zd]!==2&&this[M7]&&(this[zd]=2),this[zd]<2}[bQt](){return new Promise(e=>{this[AQ]?this[Jd]=e:e(null)})}[QQt](e){return new Promise(r=>{let n=this[lc].splice(this[dc]);for(let i=0;i<n.length;i++){let o=n[i];Qg.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[jd]()})}};function cQe(t,e){if(t[dQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){al(t[dc]===t[cl]);let r=t[lc].splice(t[cl]);for(let n=0;n<r.length;n++){let s=r[n];Qg.errorRequest(t,s,e)}al(t[AQ]===0)}}function AQe(t){al(!t[wE]),al(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[TA];if(r[0]==="["){let i=r.indexOf("]");al(i!==-1);let o=r.substring(1,i);al(oQe.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[Kd],localAddress:t[lQ]},connector:t[uQ]}),t[uQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[lQ]},(i,o)=>{if(i){sQe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[jd]();return}if(t.destroyed){Qg.destroy(o.on("error",nQe),new cQt),t[jd]();return}al(o);try{t[nn]=o.alpnProtocol==="h2"?vQt(t,o):kQt(t,o)}catch(a){o.destroy().on("error",nQe),sQe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[jd]();return}t[wE]=!1,o[BQt]=0,o[L7]=t[L7],o[uQt]=t,o[fQt]=null,QE.connected.hasSubscribers&&QE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Kd],localAddress:t[lQ]},connector:t[uQ],socket:o}),t.emit("connect",t[TA],[t]),t[jd]()})}function sQe(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[Kd],localAddress:t[lQ]},connector:t[uQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(al(t[dQ]===0);t[hQ]>0&&t[lc][t[dc]].servername===t[Kd];){let o=t[lc][t[dc]++];Qg.errorRequest(t,o,e)}else cQe(t,e);t.emit("connectionError",t[TA],[t],e)}}function iQe(t){t[zd]=0,t.emit("drain",t[TA],[t])}function P7(t,e){t[wg]!==2&&(t[wg]=2,FQt(t,e),t[wg]=0,t[cl]>256&&(t[lc].splice(0,t[cl]),t[dc]-=t[cl],t[cl]=0))}function FQt(t,e){for(;;){if(t.destroyed){al(t[hQ]===0);return}if(t[Jd]&&!t[AQ]){t[Jd](),t[Jd]=null;return}if(t[nn]&&t[nn].resume(),t[M7])t[zd]=2;else if(t[zd]===2){e?(t[zd]=1,queueMicrotask(()=>iQe(t))):iQe(t);continue}if(t[hQ]===0||t[dQ]>=(aQe(t)||1))return;let r=t[lc][t[dc]];if(r===null)return;if(t[TA].protocol==="https:"&&t[Kd]!==r.servername){if(t[dQ]>0)return;t[Kd]=r.servername,t[nn]?.destroy(new aQt("servername changed"),()=>{t[nn]=null,P7(t)})}if(t[wE])return;if(!t[nn]){AQe(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)}}uQe.exports=U7});var O7=E((Ebr,lQe)=>{"use strict";var ev=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};lQe.exports=class{constructor(){this.head=this.tail=new ev}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ev),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var tv=E((Cbr,IQe)=>{"use strict";var{PoolStats:MQt}=RV(),LQt=Eg(),UQt=O7(),{kConnected:H7,kSize:dQe,kRunning:hQe,kPending:fQe,kQueued:fQ,kBusy:PQt,kFree:OQt,kUrl:HQt,kClose:GQt,kDestroy:qQt,kDispatch:YQt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),gQ=Symbol("queue"),G7=Symbol("closed resolve"),q7=Symbol("onDrain"),gQe=Symbol("onConnect"),pQe=Symbol("onDisconnect"),mQe=Symbol("onConnectionError"),Y7=Symbol("get dispatcher"),EQe=Symbol("add client"),CQe=Symbol("remove client"),V7=class extends LQt{[gQ]=new UQt;[fQ]=0;[Vn]=[];[Ps]=!1;[q7](e,r,n){let s=this[gQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";var{InvalidArgumentError:TVr}=or(),{runtimeFeatures:kVr}=sm();function FVr(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 ypt=kVr.has("crypto")?B("node:crypto"):null,MVr=ypt?.hash?t=>ypt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wpt(t){return Array.isArray(t)&&(t.length&1)===0}function vVr(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 LVr(t){let e={};if(!t)return e;if(wpt(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 bpt=["record","playback","update"];function UVr(t){if(!bpt.includes(t))throw new TVr(`Invalid snapshot mode: ${t}. Must be one of: ${bpt.join(", ")}`)}Npt.exports={createHeaderFilters:FVr,hashId:MVr,isUndiciHeaders:wpt,normalizeHeaders:LVr,isUrlExcludedFactory:vVr,validateSnapshotMode:UVr}});var vpt=f((a8n,Mpt)=>{"use strict";var{writeFile:PVr,readFile:_Vr,mkdir:OVr}=B("node:fs/promises"),{dirname:HVr,resolve:Spt}=B("node:path"),{setTimeout:qVr,clearTimeout:Rpt}=B("node:timers"),{InvalidArgumentError:Dpt,UndiciError:GVr}=or(),{hashId:YVr,isUrlExcludedFactory:JVr,normalizeHeaders:xpt,createHeaderFilters:Tpt}=kIe();function Ov(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||xpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kpt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kpt(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 Fpt(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 Hv(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 YVr(r)}var FIe=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=Tpt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=JVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Ov(e,this.#a,this.matchOptions),s=Hv(n),i=xpt(r.headers),o={statusCode:r.statusCode,headers:Fpt(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 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.#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=Ov(e,this.#a,this.matchOptions),n=Hv(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 Dpt("Snapshot path is required");try{let n=await _Vr(Spt(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 GVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Dpt("Snapshot path is required");let n=Spt(r);await OVr(HVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await PVr(n,JS Line truncated
${e.format(r)}`.trim())}};G1e.exports=oJ});var cJ=E((Kbr,W1e)=>{"use strict";var{InvalidArgumentError:HSt}=Ke(),{runtimeFeatures:GSt}=sl();function qSt(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 q1e=GSt.has("crypto")?b("node:crypto"):null,YSt=q1e?.hash?t=>q1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function V1e(t){return Array.isArray(t)&&(t.length&1)===0}function VSt(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 WSt(t){let e={};if(!t)return e;if(V1e(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 Y1e=["record","playback","update"];function JSt(t){if(!Y1e.includes(t))throw new HSt(`Invalid snapshot mode: ${t}. Must be one of: ${Y1e.join(", ")}`)}W1e.exports={createHeaderFilters:qSt,hashId:YSt,isUndiciHeaders:V1e,normalizeHeaders:WSt,isUrlExcludedFactory:VSt,validateSnapshotMode:JSt}});var tSe=E(($br,eSe)=>{"use strict";var{writeFile:zSt,readFile:jSt,mkdir:KSt}=b("node:fs/promises"),{dirname:$St,resolve:J1e}=b("node:path"),{setTimeout:XSt,clearTimeout:z1e}=b("node:timers"),{InvalidArgumentError:j1e,UndiciError:ZSt}=Ke(),{hashId:eNt,isUrlExcludedFactory:tNt,normalizeHeaders:K1e,createHeaderFilters:$1e}=cJ();function xQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||K1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:X1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function X1e(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 Z1e(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 RQ(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 eNt(r)}var AJ=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=$1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=tNt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=xQ(e,this.#a,this.matchOptions),s=RQ(n),i=K1e(r.headers),o={statusCode:r.statusCode,headers:Z1e(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=xQ(e,this.#a,this.matchOptions),n=RQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new j1e("Snapshot path is required");try{let n=await jSt(J1e(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 ZSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new j1e("Snapshot path is required");let n=J1e(r);await KSt($St(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await zSt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${du} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,8 +133,8 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_getValuesQuery ON cacheInterceptorV${du}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_deleteByUrlQuery ON cacheInterceptorV${du}(deleteAt);
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);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -317,7 +168,7 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -331,46 +182,105 @@ ${e.format(r)}`.trim())}};Qpt.exports=xIe});var kIe=f((o8n,Npt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${du}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${du}
`),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}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){tBe(e);let r=this.#g(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){tBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(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){tBe(e),wzr(r);let n=0,s=[],i=this;return new bzr({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.#h(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}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(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)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Nzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function Nzr(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 HQ=f((D8n,Omt)=>{"use strict";var{kConstruct:Szr}=Mn(),{kEnumerableProperty:VD}=Wt(),{iteratorMixin:Rzr,isValidHeaderName:Jv,isValidHeaderValue:vmt}=au(),{webidl:Pr}=Ko(),nBe=B("node:assert"),YV=B("node:util");function Mmt(t){return t===10||t===13||t===9||t===32}function Lmt(t){let e=0,r=t.length;for(;r>e&&Mmt(t.charCodeAt(r-1));)--r;for(;r>e&&Mmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Umt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});sBe(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)sBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function sBe(t,e,r){if(r=Lmt(r),Jv(e)){if(!vmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(_mt(t)==="immutable")throw new TypeError("immutable");return VV(t).append(e,r,!1)}function Dzr(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 A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function Pmt(t,e){return t[0]<e[0]?-1:1}var JV=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.headersMa Line truncated
${i}`;break;case"retry":VCt(i)&&(r[s]=i);break;case"id":WCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&VCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&WCt(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}}};zCt.exports={EventSourceStream:OBe}});var nIt=f((e3n,rIt)=>{"use strict";var{pipeline:JXr}=B("node:stream"),{fetching:VXr}=Kv(),{makeRequest:WXr}=zD(),{webidl:lA}=Ko(),{EventSourceStream:zXr}=jCt(),{parseMIMEType:jXr}=Ll(),{createFastMessageEvent:KXr}=mW(),{isNetworkError:KCt}=Wv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:XCt}=au(),ZCt=!1,$Ct=3e3,rL=0,eIt=1,nL=2,XXr="anonymous",ZXr="use-credentials",sx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=rL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),ZCt||(ZCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=XCt,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=XXr;r.withCredentials===!0&&(o=ZXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=XCt.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=WXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===nL)return;this.#r=rL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!KCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(KCt(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?jXr(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=eIt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KXr(A.type,A.options))}});JXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=VXr(e)}#c(){this.#r!==nL&&(this.#r=rL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===rL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==nL&&(this.#r=nL,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=lA.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=lA.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=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},tIt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:rL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:eIt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1}};Object.defineProperties(sx,tIt);Object.defineProperties(sx.prototype,tIt);Object.defineProperties(sx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>$Ct},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);rIt.exports={EventSource:sx,defaultReconnectionTime:$Ct}});var cIt=f((t3n,Oe)=>{"use strict";var $Xr=rI(),iIt=nv(),eZr=kD(),tZr=Bgt(),rZr=wgt(),nZr=MQ(),sZr=vCe(),iZr=jgt(),oZr=tft(),aZr=sft(),oIt=or(),TW=Wt(),{InvalidArgumentError:xW}=oIt,ix=_ft(),AZr=BD(),cZr=CIe(),{MockCallHistory:uZr,Mock Line truncated
`)}close(){this.#n.close()}get(e){DJ(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){DJ(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){DJ(e),HTt(r);let n=0,s=[],i=this;return new OTt({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(!GTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function GTt(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 Pg=E((CQr,cNe)=>{"use strict";var{kConstruct:qTt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:YTt,isValidHeaderName:_Q,isValidHeaderValue:nNe}=ro(),{webidl:wt}=es(),vJ=b("node:assert"),kv=b("node:util");function rNe(t){return t===10||t===13||t===9||t===32}function sNe(t){let e=0,r=t.length;for(;r>e&&rNe(t.charCodeAt(r-1));)--r;for(;r>e&&rNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function iNe(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}.`});_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 wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function _J(t,e,r){if(r=sNe(r),_Q(e)){if(!nNe(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(aNe(t)==="immutable")throw new TypeError("immutable");return _v(t).append(e,r,!1)}function VTt(t){let e=_v(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 oNe(t,e){return t[0]<e[0]?-1:1}var vv=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":gxe(i)&&(r[s]=i);break;case"id":pxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&gxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&pxe(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}}};mxe.exports={EventSourceStream:mz}});var Sxe=E((YQr,wxe)=>{"use strict";var{pipeline:ckt}=b("node:stream"),{fetching:Akt}=PQ(),{makeRequest:ukt}=GE(),{webidl:Hs}=es(),{EventSourceStream:lkt}=Exe(),{parseMIMEType:dkt}=oa(),{createFastMessageEvent:hkt}=i_(),{isNetworkError:Cxe}=MQ(),{kEnumerableProperty:Jg}=Ze(),{environmentSettingsObject:Ixe}=ro(),yxe=!1,Bxe=3e3,WQ=0,bxe=1,JQ=2,fkt="anonymous",gkt="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=WQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),yxe||(yxe=!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=Ixe,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=fkt;r.withCredentials===!0&&(o=gkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ixe.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=ukt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===JQ)return;this.#r=WQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!Cxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Cxe(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?dkt(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=bxe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new lkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(hkt(c.type,c.options))}});ckt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Akt(e)}#A(){this.#r!==JQ&&(this.#r=WQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===WQ&&(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!==JQ&&(this.#r=JQ,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}},Qxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:WQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bxe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:JQ,writable:!1}};Object.defineProperties(XE,Qxe);Object.defineProperties(XE.prototype,Qxe);Object.defineProperties(XE.prototype,{close:Jg,onerror:Jg,onmessage:Jg,onopen:Jg,readyState:Jg,url:Jg,withCredentials:Jg});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:()=>Bxe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);wxe.exports={EventSource:XE,defaultReconnectionTime:Bxe}});var kxe=E((VQr,pe)=>{"use strict";var pkt=$d(),Txe=Vb(),mkt=Sg(),Ekt=TQe(),Ckt=kQe(),Ikt=xg(),ykt=lW(),Bkt=aW(),bkt=gwe(),Qkt=ywe(),wkt=Qwe(),xxe=Ke(),E_=Ze(),{InvalidArgumentError:m_}=xxe,ZE=i1e(),Skt=Cg(),Nkt=jW(),{MockCallHistory:Tk Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return BZr(e,r).catch(n=>{throw sIt?AIt(n,sIt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=HQ().Headers;Oe.exports.Response=Wv().Response;Oe.exports.Request=zD().Request;Oe.exports.FormData=$J().FormData;var{setGlobalOrigin:QZr,getGlobalOrigin:yZr}=yEe();Oe.exports.setGlobalOrigin=QZr;Oe.exports.getGlobalOrigin=yZr;var{CacheStorage:bZr}=GEt(),{kConstruct:wZr}=Mn();Oe.exports.caches=new bZr(wZr);var{deleteCookie:NZr,getCookies:SZr,getSetCookies:RZr,setCookie:DZr,parseCookie:xZr}=rCt();Oe.exports.deleteCookie=NZr;Oe.exports.getCookies=SZr;Oe.exports.getSetCookies=RZr;Oe.exports.setCookie=DZr;Oe.exports.parseCookie=xZr;var{parseMIMEType:TZr,serializeAMimeType:kZr}=Ll();Oe.exports.parseMIMEType=TZr;Oe.exports.serializeAMimeType=kZr;var{CloseEvent:FZr,ErrorEvent:MZr,MessageEvent:vZr}=mW(),{WebSocket:LZr,ping:UZr}=vCt();Oe.exports.WebSocket=LZr;Oe.exports.CloseEvent=FZr;Oe.exports.ErrorEvent=MZr;Oe.exports.MessageEvent=vZr;Oe.exports.ping=UZr;Oe.exports.WebSocketStream=GCt().WebSocketStream;Oe.exports.WebSocketError=vBe().WebSocketError;Oe.exports.request=sL(ix.request);Oe.exports.stream=sL(ix.stream);Oe.exports.pipeline=sL(ix.pipeline);Oe.exports.connect=sL(ix.connect);Oe.exports.upgrade=sL(ix.upgrade);Oe.exports.MockClient=cZr;Oe.exports.MockCallHistory=uZr;Oe.exports.MockCallHistoryLog=lZr;Oe.exports.MockPool=hZr;Oe.exports.MockAgent=dZr;Oe.exports.SnapshotAgent=gZr;Oe.exports.mockErrors=fZr;var{EventSource:PZr}=nIt();Oe.exports.EventSource=PZr;function _Zr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=_Zr});var iL=f(lI=>{"use strict";lI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lI.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 lIt=f((s3n,uIt)=>{"use strict";var{asciiLowercase:kW,solelyContainsHTTPTokenCodePoints:OZr,soleyContainsHTTPQuotedStringTokenCodePoints:HZr}=iL();uIt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=kW(String(e)),this._map.get(e)}has(e){return e=kW(String(e)),this._map.has(e)}set(e,r){if(e=kW(String(e)),r=String(r),!OZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!HZr(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=kW(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 gIt=f((i3n,hIt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:qZr,removeTrailingHTTPWhitespace:dIt,isHTTPWhitespaceChar:GZr,solelyContainsHTTPTokenCodePoints:HBe,soleyContainsHTTPQuotedStringTokenCodePoints:YZr,asciiLowercase:qBe,collectAnHTTPQuotedString:JZr}=iL();hIt.exports=t=>{t=qZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!HBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=dIt(n),n.length===0||!HBe(n))return null;let s={type:qBe(r),subtype:qBe(n),parameters:new Map};for(;e<t.length;){for(++e;GZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=qBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=JZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=dIt(o),o==="")continue}i.length>0&&HBe(i)&&YZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var pIt=f((o3n,fIt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:VZr}=iL();fIt.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+="=",(!VZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var IIt=f((A3n,CIt)=>{"use strict";var WZr=lIt(),zZr=gIt(),jZr=pIt(),{asciiLowercase:mIt,solelyContainsHTTPTokenCodePoints:EIt}=iL();CIt.exports=class{constructor(e){e=String(e);let r=zZr(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 WZr(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=mIt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!EIt(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=mIt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!EIt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return jZr(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 JIt=f((f4n,C$r)=>{C$r.exports={name:"@actions/artifact",version:"6.1.0",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 inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return Oyt(this.pattern,this.options)}parse(e,r){Lj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return uh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=PNe,i=!0;break;case"?":s+=HNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;Uyt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:Lyt[c].open,close:Lyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+$in(Xin(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),Uyt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,_Ne),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?PNe:g.type==="?"?HNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=zin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==_Ne?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===_Ne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Kin(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_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?PNe:r.dot?Vin:Win,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Zin(a):a===uh?uh:a._src).reduce((a,A)=>(a[a.length-1]===uh&&A===uh||a.push(A),a),[]),o.forEach((a,A)=>{a!==uh||o[A-1]===uh||(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]=uh))}),o.filter(a=>a!==uh).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;ONe.sep!=="/"&&(e=e.split(ONe.sep).join("/")),e=e.split(Pyt),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 Qu.defaults(e).Minimatch}};Qu.Minimatch=Rx});var Vyt=f((uns,Jyt)=>{Jyt.exports=Yyt;var YNe=B("fs"),{EventEmitter:eon}=B("events"),{Minimatch:GNe}=Hyt(),{resolve:ton}=B("path");function ron(t,e){return new Promise((r,n)=>{YNe.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 qyt(t,e){return new Promise((r,n)=>{(e?YNe.stat:YNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?qyt(t,!1):null):r(null):r(o)})})}async function*Gyt(t,e,r,n,s,i){let o=await ron(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 qyt(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*Gyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*non(t,e,r,n){yield*Gyt("",t,e,r,n,!0)}function son(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 Uj=class extends eon{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=son(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 GNe(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 GNe(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 GNe(i,{dot:!0}))}this.iterator=non(ton(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)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Hm(D){let S=KI(D.toString()),T=S.match(zI);if(T||(T=S.match(yT)),!T)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Pkt(e,r).catch(n=>{throw Nxe?Dxe(n,Nxe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Pg().Headers;pe.exports.Response=MQ().Response;pe.exports.Request=GE().Request;pe.exports.FormData=Hk().FormData;var{setGlobalOrigin:Okt,getGlobalOrigin:Hkt}=KV();pe.exports.setGlobalOrigin=Okt;pe.exports.getGlobalOrigin=Hkt;var{CacheStorage:Gkt}=lTe(),{kConstruct:qkt}=Kt();pe.exports.caches=new Gkt(qkt);var{deleteCookie:Ykt,getCookies:Vkt,getSetCookies:Wkt,setCookie:Jkt,parseCookie:zkt}=QTe();pe.exports.deleteCookie=Ykt;pe.exports.getCookies=Vkt;pe.exports.getSetCookies=Wkt;pe.exports.setCookie=Jkt;pe.exports.parseCookie=zkt;var{parseMIMEType:jkt,serializeAMimeType:Kkt}=oa();pe.exports.parseMIMEType=jkt;pe.exports.serializeAMimeType=Kkt;var{CloseEvent:$kt,ErrorEvent:Xkt,MessageEvent:Zkt}=i_(),{WebSocket:evt,ping:tvt}=sxe();pe.exports.WebSocket=evt;pe.exports.CloseEvent=$kt;pe.exports.ErrorEvent=Xkt;pe.exports.MessageEvent=Zkt;pe.exports.ping=tvt;pe.exports.WebSocketStream=dxe().WebSocketStream;pe.exports.WebSocketError=dz().WebSocketError;pe.exports.request=zQ(ZE.request);pe.exports.stream=zQ(ZE.stream);pe.exports.pipeline=zQ(ZE.pipeline);pe.exports.connect=zQ(ZE.connect);pe.exports.upgrade=zQ(ZE.upgrade);pe.exports.MockClient=Nkt;pe.exports.MockCallHistory=Tkt;pe.exports.MockCallHistoryLog=xkt;pe.exports.MockPool=Dkt;pe.exports.MockAgent=Rkt;pe.exports.SnapshotAgent=kkt;pe.exports.mockErrors=vkt;var{EventSource:rvt}=Sxe();pe.exports.EventSource=rvt;function nvt(){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=nvt});var jQ=E(uh=>{"use strict";uh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");uh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");uh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";uh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);uh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);uh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());uh.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 _xe=E((zQr,vxe)=>{"use strict";var{asciiLowercase:C_,solelyContainsHTTPTokenCodePoints:svt,soleyContainsHTTPQuotedStringTokenCodePoints:ivt}=jQ();vxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=C_(String(e)),this._map.get(e)}has(e){return e=C_(String(e)),this._map.has(e)}set(e,r){if(e=C_(String(e)),r=String(r),!svt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!ivt(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=C_(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 Lxe=E((jQr,Mxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:ovt,removeTrailingHTTPWhitespace:Fxe,isHTTPWhitespaceChar:avt,solelyContainsHTTPTokenCodePoints:Ez,soleyContainsHTTPQuotedStringTokenCodePoints:cvt,asciiLowercase:Cz,collectAnHTTPQuotedString:Avt}=jQ();Mxe.exports=t=>{t=ovt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Ez(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Fxe(n),n.length===0||!Ez(n))return null;let s={type:Cz(r),subtype:Cz(n),parameters:new Map};for(;e<t.length;){for(++e;avt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Cz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Avt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Fxe(o),o==="")continue}i.length>0&&Ez(i)&&cvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Pxe=E((KQr,Uxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:uvt}=jQ();Uxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!uvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var qxe=E((XQr,Gxe)=>{"use strict";var lvt=_xe(),dvt=Lxe(),hvt=Pxe(),{asciiLowercase:Oxe,solelyContainsHTTPTokenCodePoints:Hxe}=jQ();Gxe.exports=class{constructor(e){e=String(e);let r=dvt(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 lvt(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=Oxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Hxe(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=Oxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Hxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return hvt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var aRe=E(Qn=>{"use strict";var Sz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mvt=Sz(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==="*"?mj:f.type==="?"?Ij:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=P_t[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!==Ej?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Ej)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return H_t(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?mj:r.dot?L_t:U_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?q_t(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;Cj.sep!=="/"&&(e=e.split(Cj.sep).join("/")),e=e.split(RDe),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 UDe=E((K1r,LDe)=>{LDe.exports=MDe;var bj=b("fs"),{EventEmitter:V_t}=b("events"),{Minimatch:Bj}=vDe(),{resolve:W_t}=b("path");function J_t(t,e){return new Promise((r,n)=>{bj.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 _De(t,e){return new Promise((r,n)=>{(e?bj.stat:bj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?_De(t,!1):null):r(null):r(o)})})}async function*FDe(t,e,r,n,s,i){let o=await J_t(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 _De(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*FDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*z_t(t,e,r,n){yield*FDe("",t,e,r,n,!0)}function j_t(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 V_t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=j_t(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 Bj(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 Bj(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 Bj(i,{dot:!0}))}this.iterator=z_t(W_t(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 oI(Q){let B=iI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(jI).map(te=>te.replace(Om,"").trim())}function XI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Hm(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),Ic(T,S)}class ZI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):$I(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):$I(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function $I(D,S){D.length=1,D.head=D.tail=S}function qm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,so;function Du(nB,...RT){if(nB)return Nt?so(nB):fs();if(RT.length<=1)return fs(RT[0]);fs(RT)}var $y=Xr._createTaskItem(wt,Nt?Du:Or||Du);if(tt?Xr._tasks.unshift($y):Xr._tasks.push($y),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((nB,RT)=>{fs=nB,so=RT})}function Ru(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var so=wt[Or],Du=se.indexOf(so);Du===0?se.shift():Du>0&&se.splice(Du,1),so.callback(tt,...Nt),tt!=null&&vr("error",tt,so.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Zy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let rB=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,so)=>{if(fs)return Or(fs);Nt(so)})});nt(wt),de(wt,tt)};var ST=!1,Xr={_tasks:new ZI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Zy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!ST){for(ST=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var so=Z(Ru(wt));G(tt,so)}ST=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:rB("saturated")},unsaturated:{writable:!1,value:rB("unsaturated")},empty:{writable:!1,value:rB("empty")},drain:{writable:!1,value:rB("drain")},error:{writable:!1,value:rB("error")}}),Xr}function eB(D,S){return qm(D,1,S)}function Pf(D,S,T){return qm(D,S,T)}function BA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var QA=m(BA,4);function Gm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),QA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function tB(...D){return Gm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Hs[Zo]||(rbt=global[Zo]||[],sbt(Hs,rbt),Hs.close=(function(t){function e(r,n){return t.call(Hs,r,function(s){s||nbt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,qj,{value:t}),e})(Hs.close),Hs.closeSync=(function(t){function e(r){t.apply(Hs,arguments),nbt()}return Object.defineProperty(e,qj,{value:t}),e})(Hs.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){By(Hs[Zo]),B("assert").equal(Hs[Zo].length,0)}));var rbt;global[Zo]||sbt(global,Hs[Zo]);zNe.exports=VNe(hon(Hs));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Hs.__patched&&(zNe.exports=VNe(Hs),Hs.__patched=!0);function VNe(t){lon(t),t.gracefulify=VNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?Dx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?Dx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=don(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Dx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function Dx(t){By("ENQUEUE",t[0].name,t[1]),Hs[Zo].push(t),WNe()}var Hj;function nbt(){for(var t=Date.now(),e=0;e<Hs[Zo].length;++e)Hs[Zo][e].length>2&&(Hs[Zo][e][3]=t,Hs[Zo][e][4]=t);WNe()}function WNe(){if(clearTimeout(Hj),Hj=void 0,Hs[Zo].length!==0){var t=Hs[Zo].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)By("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){By("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?(By("RETRY",e.name,r),e.apply(null,r.concat([s]))):Hs[Zo].push(t)}Hj===void 0&&(Hj=setTimeout(WNe,0))}}});var Gj=f((fns,ibt)=>{"use strict";var bf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";bf.writable=t=>bf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};UNt.exports={AggregateError:xSe,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 TSe=f((wss,PNt)=>{"use strict";PNt.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 va=f((Nss,HNt)=>{"use strict";var{format:Uun,inspect:A7}=TSe(),{AggregateError:Pun}=xs(),_un=globalThis.AggregateError||Pun,Oun=Symbol("kIsNodeError"),Hun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qun=/^([A-Z][a-z0-9]*)+$/,Gun="__node_internal_",c7={};function by(t,e){if(!t)throw new c7.ERR_INTERNAL_ASSERTION(e)}function _Nt(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 Yun(t,e,r){if(typeof e=="function")return by(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 by(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:Uun(e,...r)}function ea(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Yun(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[Oun]=!0,c7[t]=n}function ONt(t){let e=Gun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Jun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _un([e,t],e.message);return r.code=e.code,r}return t||e}var kSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new c7.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ea("ERR_ASSERTION","%s",Error);ea("ERR_INVALID_ARG_TYPE",(t,e,r)=>{by(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)by(typeof A=="string","All expected entries have to be of type string"),Hun.includes(A)?s.push(A.toLowerCase()):qun.test(A)?i.push(A):(by(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;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,X7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(ECn))?s=r.dot?ICn:CCn:(n=e.match(ACn))?s=(r.nocase?r.dot?dCn:lCn:r.dot?uCn:cCn)(n[1]):(n=e.match(BCn))?s=(r.nocase?r.dot?yCn:QCn:r.dot?bCn:wCn)(n):(n=e.match(hCn))?s=r.dot?fCn:gCn:(n=e.match(pCn))&&(s=mCn);let i=jTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}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?SCn:r.dot?RCn:DCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?vCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Ly;var LCn=rDe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return LCn.AST}});var UCn=nDe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return UCn.escape}});var PCn=V7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return PCn.unescape}});et.minimatch.AST=jTt.AST;et.minimatch.Minimatch=Ly;et.minimatch.escape=iCn.escape;et.minimatch.unescape=oCn.unescape});var n1t=f($7=>{"use strict";Object.defineProperty($7,"__esModule",{value:!0});$7.LRUCache=void 0;var nT=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e1t=new Set,sDe=typeof process=="object"&&process?process:{},t1t=(t,e,r,n)=>{typeof sDe.emitWarning=="function"?sDe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},Z7=globalThis.AbortController,$Tt=globalThis.AbortSignal;if(typeof Z7>"u"){$Tt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},Z7=class{constructor(){e()}signal=new $Tt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=sDe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,t1t("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var _Cn=t=>!e1t.has(t),kI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),r1t=t=>kI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?sT:null:null,sT=class extends Array{constructor(e){super(e),this.fill(0)}},iDe=class t{heap;length;static#e=!1;static create(e){let r=r1t(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},oDe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=uxe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=uxe(" "+s+"="+n[s]+`
`);return jr.from(r)};pT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(jr.toString(e.subarray(0,n)),10);if(!s)return r;let i=jr.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};pT.encode=function(e){let r=jr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),jr.byteLength(n)!==n.length)return null;for(;jr.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 jr.byteLength(n)>100||jr.byteLength(s)>155||e.linkname&&jr.byteLength(e.linkname)>100?null:(jr.write(r,n),jr.write(r,OI(e.mode&$0n,6),100),jr.write(r,OI(e.uid,6),108),jr.write(r,OI(e.gid,6),116),oQn(e.size,r,124),jr.write(r,OI(e.mtime.getTime()/1e3|0,11),136),r[156]=LK+sQn(e.type),e.linkname&&jr.write(r,e.linkname,157),jr.copy(A2t,r,lP),jr.copy(K0n,r,lxe),e.uname&&jr.write(r,e.uname,265),e.gname&&jr.write(r,e.gname,297),jr.write(r,OI(e.devmajor||0,6),329),jr.write(r,OI(e.devminor||0,6),337),s&&jr.write(r,s,345),jr.write(r,OI(u2t(r),6),148),r)};pT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-LK,i=fT(e,0,100,r),o=_I(e,100,8),a=_I(e,108,8),A=_I(e,116,8),c=_I(e,124,12),u=_I(e,136,12),l=nQn(s),d=e[157]===0?null:fT(e,157,100,r),h=fT(e,265,32),g=fT(e,297,32),p=_I(e,329,8),C=_I(e,337,8),m=u2t(e);if(m===256)return null;if(m!==_I(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(eQn(e))e[345]&&(i=fT(e,345,155,r)+"/"+i);else if(!tQn(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,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:g,devmajor:p,devminor:C,pax:null}};function eQn(t){return jr.equals(A2t,t.subarray(lP,lP+6))}function tQn(t){return jr.equals(X0n,t.subarray(lP,lP+6))&&jr.equals(Z0n,t.subarray(lxe,lxe+2))}function rQn(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function nQn(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 sQn(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 c2t(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function u2t(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 OI(t,e){return t=t.toString(8),t.length>e?j0n.slice(0,e)+" ":z0n.slice(0,e-t.length)+t+" "}function iQn(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function oQn(t,e,r){t.toString(8).length>11?iQn(t,e,r):jr.write(e,OI(t,11),r)}function aQn(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 _I(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return aQn(t);{for(;e<t.length&&t[e]===32;)e++;let n=rQn(c2t(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(jr.toString(t.subarray(e,n)),8)}}function fT(t,e,r,n){return jr.toString(t.subarray(e,c2t(t,0,e,e+r)),n)}function uxe(t){let e=jr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var f2t=f((Zos,g2t)=>{var{Writable:AQn,Readable:cQn,getStreamError:l2t}=cxe(),uQn=zDe(),d2t=uT(),mT=dxe(),lQn=d2t.alloc(0),gxe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new uQn,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 lQn;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 d2t.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)}},fxe=class extends cQn{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(l2t(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=h2t(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},pxe=class extends A Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function aPe(t,e){if(process.env.GITHUB_OUTPUT||"")return DT("OUTPUT",_P(t,e));process.stdout.write(xee.EOL),ad("set-output",{name:t},Eh(e))}function lE(t){process.exitCode=Dee.Failure,F1(t)}function DB(){return process.env.RUNNER_DEBUG==="1"}function Te(t){ad("debug",{},t)}function F1(t,e={}){ad("error",LP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){ad("warning",LP(e),t instanceof Error?t.toString():t)}function APe(t,e={}){ad("notice",LP(e),t instanceof Error?t.toString():t)}function fe(t){process.stdout.write(t+xee.EOL)}function b5t(t){XK("group",t)}function w5t(){XK("endgroup")}function tp(t,e){return y5t(this,void 0,void 0,function*(){b5t(t);let r;try{r=yield e()}finally{w5t()}return r})}function DA(t,e){if(process.env.GITHUB_STATE||"")return DT("STATE",_P(t,e));ad("save-state",{name:t},Eh(e))}function xB(t){return process.env[`STATE_${t}`]||""}import*as WBe from"fs";import*as zBe from"path";import*as vW from"os";var zje=Xe(Z2(),1),DBr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",xBr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",TBr="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",kBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.",jje="[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.",Vje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",FBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Wje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.";var CY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=DBr;this.cacheCleanupMessage=Wje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return zje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=xBr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Vje}setDisabled(e=TBr){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Vje}setWriteOnly(e=kBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=FBr}setCacheCleanupDisabled(e=Wje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new IY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new IY(i.entryName),i)}return r}},IY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};import*as JS from"fs";function Oue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Te(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Te(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Te(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Te(`omitBrokenSymbolicLine truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(I1).map(q=>q.replace(y1,"").trim())}function aI(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=oI(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)}}),sI(w,B)}class cI{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):AI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):AI(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 AI(Q,B){Q.length=1,Q.head=Q.tail=B}function vp(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(Ph,...pI){if(Ph)return Pe?xn(Ph):Ir();if(pI.length<=1)return Ir(pI[0]);Ir(pI)}var Lp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Lp):Mt._tasks.push(Lp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Ph,pI)=>{Ir=Ph,xn=pI})}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 Mp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Uh=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 gI=!1,Mt={_tasks:new cI,_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)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Mp(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)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!gI){for(gI=!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)}gI=!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:Uh("saturated")},unsaturated:{writable:!1,value:Uh("unsaturated")},empty:{writable:!1,value:Uh("empty")},drain:{writable:!1,value:Uh("drain")},error:{writable:!1,value:Uh("error")}}),Mt}function uI(Q,B){return vp(Q,1,B)}function _p(Q,B,w){return vp(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 Sa=m(Io,4);function Fp(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[ou]}}function B1(...Q){return Fp(...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]||(zDe=global[rs]||[],KDe(vr,zDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||jDe(),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),jDe()}return Object.defineProperty(e,U_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var zDe;global[rs]||KDe(global,vr[rs]);Nj.exports=wj(sFt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(Nj.exports=wj(vr),vr.__patched=!0);function wj(t){rFt(t),t.gracefulify=wj,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=nFt(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){tp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),Sj()}var L_;function jDe(){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);Sj()}function Sj(){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)tp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){tp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(tp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}L_===void 0&&(L_=setTimeout(Sj,0))}}});var P_=E((tSr,$De)=>{"use strict";var WA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";WA.writable=t=>WA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";WA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};xve.exports={AggregateError:AK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var uK=E((lNr,Rve)=>{"use strict";Rve.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((dNr,vve)=>{"use strict";var{format:NPt,inspect:sF}=uK(),{AggregateError:TPt}=Tr(),xPt=globalThis.AggregateError||TPt,RPt=Symbol("kIsNodeError"),DPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],kPt=/^([A-Z][a-z0-9]*)+$/,vPt="__node_internal_",iF={};function sp(t,e){if(!t)throw new iF.ERR_INTERNAL_ASSERTION(e)}function Dve(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 _Pt(t,e,r){if(typeof e=="function")return sp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return sp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:NPt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(_Pt(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[RPt]=!0,iF[t]=n}function kve(t){let e=vPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function FPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new xPt([e,t],e.message);return r.code=e.code,r}return t||e}var lK=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)=>{sp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)sp(typeof c=="string","All expected entries have to be of type string"),DPt.includes(c)?s.push(c.toLowerCase()):kPt.test(c)?i.push(c):(sp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=qX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=qX(" "+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,Rh(e.mode&WVt,6),100),kt.write(r,Rh(e.uid,6),108),kt.write(r,Rh(e.gid,6),116),ZVt(e.size,r,124),kt.write(r,Rh(e.mtime.getTime()/1e3|0,11),136),r[156]=vM+$Vt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(t3e,r,l1),kt.copy(qVt,r,YX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Rh(e.devmajor||0,6),329),kt.write(r,Rh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Rh(n3e(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=xh(e,100,8),a=xh(e,108,8),c=xh(e,116,8),A=xh(e,124,12),u=xh(e,136,12),l=KVt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),p=xh(e,329,8),I=xh(e,337,8),m=n3e(e);if(m===256)return null;if(m!==xh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(JVt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!zVt(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 JVt(t){return kt.equals(t3e,t.subarray(l1,l1+6))}function zVt(t){return kt.equals(YVt,t.subarray(l1,l1+6))&&kt.equals(VVt,t.subarray(YX,YX+2))}function jVt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function KVt(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 $Vt(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 r3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function n3e(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 Rh(t,e){return t=t.toString(8),t.length>e?GVt.slice(0,e)+" ":HVt.slice(0,e-t.length)+t+" "}function XVt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function ZVt(t,e,r){t.toString(8).length>11?XVt(t,e,r):kt.write(e,Rh(t,11),r)}function e7t(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 xh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return e7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=jVt(r3e(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,r3e(t,0,e,e+r)),n)}function qX(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 c3e=E((Uxr,a3e)=>{var{Writable:t7t,Readable:r7t,getStreamError:s3e}=GX(),n7t=NX(),i3e=GC(),jC=VX(),s7t=i3e.alloc(0),JX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new n7t,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 s7t;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 i3e.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)}},zX=class extends r7t{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(s3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=o3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},jX=class extends t7t{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 mI("OUTPUT",V1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},Bc(e))}function $l(t){process.exitCode=kO.Failure,Pi(t)}function Ha(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",G1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Ta("warning",G1(e),t instanceof Error?t.toString():t)}function Yce(t,e={}){Ta("notice",G1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+vO.EOL)}function SKe(t){ZM("group",t)}function NKe(){ZM("endgroup")}function KN(t,e){return wKe(this,void 0,void 0,function*(){SKe(t);let r;try{r=yield e()}finally{NKe()}return r})}function Qu(t,e){if(process.env.GITHUB_STATE||"")return mI("STATE",V1(t,e));Ta("save-state",{name:t},Bc(e))}function _m(t){return process.env[`STATE_${t}`]||""}import*as Qz from"fs";import*as wz from"path";import*as B_ from"os";import{readFileSync as TKe,existsSync as xKe}from"fs";import{EOL as RKe}from"os";var Fm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(xKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(TKe(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${RKe}`)}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=Ae(jce(),1),Kce=Ae(HN(),1),qKe=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 $ce(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 Xce(t){return new UO.HttpClient().getAgent(t)}function YKe(t){return new UO.HttpClient().getAgentDispatcher(t)}function Zce(t){let e=YKe(t);return(n,s)=>qKe(this,void 0,void 0,function*(){return(0,Kce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function eAe(){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 nT(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function sT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>sT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function tAe(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 rAe(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 nAe=Function.bind,sAe=nAe.bind(nAe);function iAe(t,e,r){let n=sAe(rAe,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]=sAe(tAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var G$e=class extends Error{constructor(t,e,r){super(H$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},q$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Y$e=["query","method","url"],DAe=/\/api\/v3\/?$/;function V$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(Y$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)=>q$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 DAe.test(i)&&(s.url=i.replace(DAe,"/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 G$e(s,a,o.data)}return o.data.data})}function ZO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>V$e(r,s,i),{defaults:ZO.bind(null,r),endpoint:r.endpoint})}var kjt=ZO(kAe.request,{headers:{"user-agent":`octokit-graphql.js/${O$e} ${nT()}`},method:"POST",url:"/graphql"});function vAe(t){return ZO(t,{method:"POST",url:"/graphql"})}var e3="(?:[a-zA-Z0-9_-]+)",_Ae="\\.",FAe=new RegExp(`^${e3}${_Ae}${e3}${_Ae}${e3}$`),W$e=FAe.test.bind(FAe);async function J$e(t){let e=W$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 z$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function j$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=z$e(t),e(s)}var MAe=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(J$e.bind(null,e),{hook:j$e.bind(null,e)})};var t3="7.0.6";var LAe=()=>{},K$e=console.warn.bind(console),$$e=console.error.bind(console);function X$e(t={}){return typeof t.debug!="function"&&(t.debug=LAe),typeof t.info!="function"&&(t.info=LAe),typeof t.warn!="function"&&(t.warn=K$e),typeof t.error!="function"&&(t.error=$$e),t}var UAe=`octokit-core.js/${t3} ${nT()}`,aT=class{static VERSION=t3;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 oAe.Collection,n={baseUrl:r3.request.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} ${UAe}`:UAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=r3.request.defaults(n),this.graphql=vAe(this.request).defaults(n),this.log=X$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=MAe(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 n3="17.0.0";var Z$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 rF(i));return n.searchPaths.push(...que(n.patterns)),n})}static stat(e,r,n){return Gue(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield JS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Te(`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 JS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield JS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Te(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as Yue from"crypto";import*as bY from"fs";import*as t7e from"stream";import*as r7e from"util";import*as n7e from"path";var HBr=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())})},qBr=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 s7e(t,e){return HBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?fe:Te,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=Yue.createHash("sha256"),g=0;try{for(var p=!0,C=qBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${n7e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(bY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=Yue.createHash("sha256");yield r7e.promisify(t7e.pipeline)(bY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var i7e=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 aC(t,e){return i7e(this,void 0,void 0,function*(){return yield QY.create(t,e)})}function o7e(t){return i7e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield aC(e,{followSymbolicLinks:i});return s7e(o,r,s)})}import Vp from"path";import ic from"fs";import{readFileSync as GBr,existsSync as YBr}from"fs";import{EOL as JBr}from"os";var VS=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(YBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(GBr(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${JBr}`)}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 gge=Xe(Mnt(),1),vnt=Xe(uge(),1),d2r=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 Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var lFr=class extends Error{constructor(t,e,r){super(uFr(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},dFr=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hFr=["query","method","url"],pst=/\/api\/v3\/?$/;function gFr(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(hFr.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)=>dFr.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 pst.test(i)&&(s.url=i.replace(pst,"/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 lFr(s,a,o.data)}return o.data.data})}function Rge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>gFr(r,s,i),{defaults:Rge.bind(null,r),endpoint:r.endpoint})}var gvn=Rge(mst.request,{headers:{"user-agent":`octokit-graphql.js/${cFr} ${N6()}`},method:"POST",url:"/graphql"});function Est(t){return Rge(t,{method:"POST",url:"/graphql"})}var Dge="(?:[a-zA-Z0-9_-]+)",Cst="\\.",Ist=new RegExp(`^${Dge}${Cst}${Dge}${Cst}${Dge}$`),fFr=Ist.test.bind(Ist);async function pFr(t){let e=fFr(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 mFr(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function EFr(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=mFr(t),e(s)}var Bst=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(pFr.bind(null,e),{hook:EFr.bind(null,e)})};var xge="7.0.6";var Qst=()=>{},CFr=console.warn.bind(console),IFr=console.error.bind(console);function BFr(t={}){return typeof t.debug!="function"&&(t.debug=Qst),typeof t.info!="function"&&(t.info=Qst),typeof t.warn!="function"&&(t.warn=CFr),typeof t.error!="function"&&(t.error=IFr),t}var yst=`octokit-core.js/${xge} ${N6()}`,x6=class{static VERSION=xge;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 Jnt.Collection,n={baseUrl:Tge.request.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} ${yst}`:yst,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Tge.request.defaults(n),this.graphql=Est(this.request).defaults(n),this.log=BFr(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=Bst(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 kge="17.0.0";var QFr={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 Line truncated
See ${r.getDocumentationLink()}`;vst.push(n),lE(n)}function Ust(){DA("deprecation-collector_deprecations",JSON.stringify(Pge)),DA("deprecation-collector_errors",JSON.stringify(vst))}import*as F6 from"path";var _st="GRADLE_ACTION_ID";var oQ=".setup-gradle",M6=class t{getDependencyGraphOption(){let e=Es("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 yg("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Es("artifact-retention-days");return PFr("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Qo.workflow,Qo.job,Oge())}getReportDirectory(){let e=Es("dependency-graph-report-dir");return F6.resolve(Gp(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return iQ("dependency-graph-exclude-projects")}getIncludeProjects(){return iQ("dependency-graph-include-projects")}getExcludeConfigurations(){return iQ("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return iQ("dependency-graph-include-configurations")}getPluginRepository(){return new v6}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){Te(`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 YR=class{isCacheDisabled(){return Pst.isFeatureAvailable()?yg("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&yg("cache-read-only")}isCacheWriteOnly(){return yg("cache-write-only")}isCacheOverwriteExisting(){return yg("cache-overwrite-existing")}isCacheStrictMatch(){return yg("gradle-home-cache-strict-match")}isCacheCleanupEnabled(){if(this.isCacheReadOnly())return!1;let e=this.getCacheCleanupOption();return e==="always"||e==="on-success"}shouldPerformCacheCleanup(e){let r=this.getCacheCleanupOption();return r==="always"?!0:r==="on-success"?!e:!1}getCacheCleanupOption(){let e=oM("gradle-home-cache-cleanup");if(e!==void 0)return k6("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always":"never";let r=Es("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always";case"on-success":return"on-success";case"never":return"never"}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Es("cache-encryption-key")}getCacheIncludes(){return Tee("gradle-home-cache-includes")}getCacheExcludes(){return Tee("gradle-home-cache-excludes")}};var qd=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return yg("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return Es("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return Es("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Es("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Es("develocity-token-expiry")}getDevelocityInjectionEnabled(){return oM("develocity-injection-enabled")}getDevelocityUrl(){return Es("develocity-url")}getDevelocityAllowUntrustedServer(){return oM("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return oM("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return oM("develocity-enforce-url")}getDevelocityPluginVersion(){return Es("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Es("develocity-ccud-plugin-version")}getPluginRepository(){return new v6}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(tr("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},v6=class{getUrl(){return iQ("gradle-plugin-repository-url")}getUsername(){return iQ("gradle-plugin-repository-username")}getPassword(){return iQ("gradle-plugin-repository-password")}},L6=class{getGradleVersion(){return Es("gradle-version")}getBuildRootDirectory(){let e=Gp(),r=Es("build-root-directory");return r===""?F6.re Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await qFr()}`),n;zo(`Attempt to delete ${t} failed. Will try again.`),await HFr(1e3)}}}async function HFr(t){return new Promise(e=>setTimeout(e,t))}async function qFr(){return(await ep("jps",["-lm"])).stdout}var GFr="v1",YFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",JFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",VFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",WFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",zFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",H6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function qge(t,e){let s=`${`${process.env[YFr]||""}${q6(t,GFr)}`}|${jFr()}`,i=`${s}|${KFr()}`,o=`${i}[${XFr()}]`,a=`${o}-${ZFr()}`;return e.isCacheStrictMatch()?new H6(a,[o]):new H6(a,[o,i,s])}function q6(t,e){return`gradle-${t}-${e}`}function jFr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[JFr]||`${t}-${e}`}function KFr(){return process.env[VFr]||Qo.job}function XFr(){let t=process.env[WFr];if(t)return t;let e=Qo.workflow,r=Oge();return Hge([e,r])}function ZFr(){return process.env[zFr]||Qo.sha}import WR from"path";import IM from"fs";import*as Gd from"fs";import*as Jp from"path";var Qat=Xe(iit(),1),uQ=Xe(t9(),1);import*as VR from"fs";import*as gat from"os";import*as DC from"path";var c9=Xe(Z2(),1);import{ok as fUr}from"assert";import*as wg from"path";import*as r9 from"fs";import*as RC from"path";var oUr=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())})},{chmod:aUr,copyFile:AUr,lstat:cUr,mkdir:jot,open:_Ln,readdir:Kot,rename:uUr,rm:Xot,rmdir:OLn,stat:cfe,symlink:lUr,unlink:dUr}=r9.promises,SC=process.platform==="win32";var HLn=r9.constants.O_RDONLY;function Zot(t){if(t=hUr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return SC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function ufe(t,e){return oUr(this,void 0,void 0,function*(){let r;try{r=yield cfe(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(SC){let s=RC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(zot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield cfe(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(SC){try{let i=RC.dirname(t),o=RC.basename(t).toUpperCase();for(let a of yield Kot(i))if(o===a.toUpperCase()){t=RC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(zot(r))return t}}return""})}function hUr(t){return t=t||"",SC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function zot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var n9=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 $ot(t){return n9(this,void 0,void 0,function*(){if(SC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Xot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function lfe(t){return n9(this,void 0,void 0,function*(){fUr(t,"a path argument must be provided"),yield jot(t,{recursive:!0})})}function mM(t,e){return n9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield mM(t,!1);if(!n)throw SC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield pUr(t);return r&&r.length>0?r[0]:""})}function pUr(t){return n9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(SC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(wg.delimiter))s&&e.push(s);if(Zot(t)){let s=yield ufe(t,e);return s?[s]:[]}if(t.includes(wg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(wg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield ufe(wg.join(s,t),e)Line truncated
`),r,[],s)?new BM(e,n,r):(fe(`Did not restore ${e} with key ${r} to ${n}`),new BM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await aC(a,{implicitDescendants:!1})).glob();if(c.length===0){zo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(zo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await O6(n.split(`
`),a,o);for(let c of e)cM(c);return new BM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>WR.relative(this.gradleUserHome,i)),s=Gst(n);return zo(`Generating cache key for ${e} from file names: ${n}`),`${q6(e,bat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await o7e(r);return zo(`Generating cache key for ${e} from files matching: ${r}`),`${q6(e,bat)}-${n}`}async awaitForDebugging(e){return aM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!IM.existsSync(e))return[];let r=IM.readFileSync(e,"utf-8");return zo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new Ife;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);zo(`Saving cache metadata for ${this.extractorName}: ${n}`),IM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=WR.resolve(this.gradleUserHome,oQ);return IM.mkdirSync(e,{recursive:!0}),WR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},QM=class extends h9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=WR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await aC(e,{implicitDescendants:!1});for(let n of await r.glob())zo(`Deleting wrapper zip: ${n}`),await cM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=WR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new d9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},yM=class extends h9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){fe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){fe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new d9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!xC(i.gradleVersion,"8.6.0"))&&(fe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return Cfe().results.reduce((e,r)=>{let n=WR.resolve(r.rootProjectDir,".gradle/configuration-cache");return IM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import wat from"path";import WUr from"fs";import{fileURLToPath as zUr}from"url";function Nat(...t){let e=wat.dirname(zUr(import.meta.url)),r=wat.resolve(e,"..","..","..","sources","src","resources",...t);return WUr.readFileSync(r,"utf8")}function Sat(){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"?>
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xy(i));return n.searchPaths.push(...l3(n.patterns)),n})}static stat(e,r,n){return p3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Hm.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 Hm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Hm.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 HXe=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 yue(t,e){return HXe(this,void 0,void 0,function*(){return yield hT.create(t,e)})}var hde=Ae(My(),1);import*as xT from"crypto";import*as Vm from"fs";import*as Ef from"path";import*as fde from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));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 NT=2,TT=5e3,L3=5e3,U3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,dde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",P3="manifest.txt",E$t=10*Math.pow(1024,3);var Ym=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())})},$tt=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)}},Xtt="1.0";function Py(){return Ym(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=Ef.join(n,"actions","temp")}let r=Ef.join(e,xT.randomUUID());return yield uf(r),r})}function Lc(t){return Vm.statSync(t).size}function O3(t){return Ym(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 yue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=$tt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ef.relative(a,s).replace(new RegExp(`\\${Ef.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 Oy(t){return Ym(this,void 0,void 0,function*(){return fde.promisify(Vm.unlink)(t)})}function gde(t){return Ym(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Oa(`${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 Hy(){return Ym(this,void 0,void 0,function*(){let t=yield gde("zstd",["--quiet"]),e=hde.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function rd(t){return t===Rs.Gzip?Ly.Gzip:Ly.Zstd}function pde(){return Ym(this,void 0,void 0,function*(){return Vm.existsSync(U3)?U3:(yield gde("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function H3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Wm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Xtt),xT.createHash("sha256").update(n.join("|")).digest("hex")}function mde(){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 GAt}from"url";var Uc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Ztt}from"node:os";import ert from"node:util";import trt from"node:process";function Ede(t,...e){trt.stderr.write(`${ert.format(t,...e)}${Ztt}`)}import Gy from"node:process";function DT(t){return Gy.env[t]}var Cde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,Ide=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,kT=!0;var yde=DT("DEBUG"),bde,G3=[],q3=[],vT=[];yde&&Y3(yde);var Qde=Object.assign(t=>wde(t),{enable:Y3,enabled:V3,disable:rrt,log:Ede});function Y3(t){bde=t,G3=[],q3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q3.push(r.substring(1)):G3.push(r);for(let r of vT)r.enabled=V3(r.namespace)}function V3(t){if(t.endsWith("*"))return!0;for(let e of q3)if(Bde(t,e))return!1;for(let e of G3)if(Bde(t,e))return!0;return!1}function Bde(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 rrt(){let t=bde||"";return Y3(""),t}function wde(t){let e=Object.assign(r,{enabled:V3(t),destroy:nrt,log:Qde.log,namespace:t,extend:srt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return vT.push(e),e}function nrt(){let t=vT.indexOf(this);return t>=0?(vT.splice(t,1),!0):!1}function srt(t){let e=wde(`${this.namespace}:${t}`);return e.log=this.log,e}var Jm=Qde;var W3=["verbose","info","warning","error"],Sde={verbose:400,info:300,warning:200,error:100};function Nde(t,e){e.log=(...r)=>{t.log(...r)}}function Tde(t){return W3.includes(t)}function irt(t){let e=new Set,r=DT(t.logLevelEnvVarName),n,s=Jm(t.namespace);s.log=(...u)=>{Jm.log(...u)};function i(u){if(u&&!Tde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${W3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Jm.enable(l.join(","))}r&&(Tde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${W3.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(Nde(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 Nde(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 xde=irt({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),ort=xde.logger;function qy(t){return xde.createClientLogger(t)}function _T(t){return t.toLowerCase()}function art(t){return String(t).trim().replace(/[\r\n]/g,"")}function*crt(t){for(let e of t.values())yield[e.name,e.value]}var J3=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(_T(e),{name:e,value:art(r)})}get(e){return this._headersMap.get(_T(e))?.value}has(e){return this Line truncated
${drt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function zm(t){return t instanceof Ds?!0:If(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import $3 from"node:http";import X3 from"node:https";import kde from"node:zlib";import{Transform as hrt}from"node:stream";var si=qy("ts-http-runtime");var frt={};function Yy(t){return t&&typeof t.pipe=="function"}function vde(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 _de(t){return t&&typeof t.byteLength=="number"}var LT=class extends hrt{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}},Z3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Uc("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 Va;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=Ert(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new LT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Yy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=grt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?prt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new LT(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 mrt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=vde(a));let u=Promise.resolve();Yy(c)&&(u=vde(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?$3.request(a,c):X3.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 Uc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Yy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):_de(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?$3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new $3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return X3.globalAgent;let s=e.tlsSettings??frt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new X3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function grt(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 prt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=kde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=kde.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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Ert(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:_de(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Fde(){return new Z3}function UT(){return Fde()}var e8="logPolicy";function PT(t={}){let e=t.logger??si.info,r=new Va({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:e8,asy Line truncated
`;return e}function Pnt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function Ont(t){let e=0;for(let r of t){let n=Pnt(r);if(n===void 0)return;e+=n}return e}async function Hnt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Unt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=Ont(n);s&&t.headers.set("Content-Length",s),t.body=await Nhe(n)}var zy="multipartPolicy",Gnt=70,qnt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ynt(t){if(t.length>Gnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!qnt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ax(){return{name:zy,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Ynt(r):r=Lnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Hnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cx(){return MT()}import{EOL as Wnt}from"node:os";import Jnt from"node:util";import*as The from"node:process";function xhe(t,...e){The.stderr.write(`${Jnt.format(t,...e)}${Wnt}`)}var Rhe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Dhe,E8=[],C8=[],Ax=[];Rhe&&I8(Rhe);var khe=Object.assign(t=>vhe(t),{enable:I8,enabled:y8,disable:znt,log:xhe});function I8(t){Dhe=t,E8=[],C8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?C8.push(new RegExp(`^${n.substr(1)}$`)):E8.push(new RegExp(`^${n}$`));for(let n of Ax)n.enabled=y8(n.namespace)}function y8(t){if(t.endsWith("*"))return!0;for(let e of C8)if(e.test(t))return!1;for(let e of E8)if(e.test(t))return!0;return!1}function znt(){let t=Dhe||"";return I8(""),t}function vhe(t){let e=Object.assign(r,{enabled:y8(t),destroy:jnt,log:khe.log,namespace:t,extend:Knt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return Ax.push(e),e}function jnt(){let t=Ax.indexOf(this);return t>=0?(Ax.splice(t,1),!0):!1}function Knt(t){let e=vhe(`${this.namespace}:${t}`);return e.log=this.log,e}var e0=khe;var Fhe=new Set,ux=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,B8,b8=e0("azure");b8.log=(...t)=>{e0.log(...t)};var Q8=["verbose","info","warning","error"];ux&&(Uhe(ux)?$nt(ux):console.error(`AZURE_LOG_LEVEL set to unknown log level '${ux}'; logging is not enabled. Acceptable values: ${Q8.join(", ")}.`));function $nt(t){if(t&&!Uhe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Q8.join(",")}`);B8=t;let e=[];for(let r of Fhe)Lhe(r)&&e.push(r.namespace);e0.enable(e.join(","))}var _he={verbose:400,info:300,warning:200,error:100};function Mo(t){let e=b8.extend(t);return Mhe(b8,e),{error:lx(e,"error"),warning:lx(e,"warning"),info:lx(e,"info"),verbose:lx(e,"verbose")}}function Mhe(t,e){e.log=(...r)=>{t.log(...r)}}function lx(t,e){let r=Object.assign(t.extend(e),{level:e});if(Mhe(t,r),Lhe(r)){let n=e0.disable();e0.enable(n+","+r.namespace)}return Fhe.add(r),r}function Lhe(t){return!!(B8&&_he[t.level]<=_he[B8])}function Uhe(t){return Q8.includes(t)}var Oc=Mo("core-rest-pipeline");function w8(t={}){return PT({logger:Oc.info,...t})}var S8=ix;function N8(t={}){return ox(t)}import T8 from"node:os";import id from"node:process";function Phe(){return"User-Agent"}async function Ohe(t){if(id&&id.versions){let e=`${T8.type()} ${T8.release()}; ${T8.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 dx="1.24.0";function sst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Hhe(){return Phe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await Ohe(e);let r=sst(e);return t?`${t} ${r}`:r}var Ghe=Hhe(),qhe="userAgentPolicy";function x8(t={}){let e=hx(t.userAgentPrefix);return{name:qhe,async sendRequest(r,n){return r.headers.has(Ghe)||r.headers.set(Ghe,await e),n(r)}}}var Yhe=Symbol("rawContent");function R8(t){return typeof t[Yhe]=="function"}function Vhe(t){return R8(t)?t[Yhe]():t}var fx=zy;function D8(){let t=ax();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)R8(n.body)&&(n.body=Vhe(n.body));return t.sendRequest(e,r)}}}var k8=nx;function v8(){return sx()}function _8(t={}){return GT(t)}function F8(){return qT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function M8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new jy(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var 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--),!Lit(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=kit(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=Dfe(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=Dfe(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=Rfe(t,i);continue}else if(t[i+1]==="?"){if(i=xfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Fit(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Tfe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Tfe(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 Tfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function xfe(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 Rfe(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 Rit='"',Dit="'";function kit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Rit||t[e]===Dit)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 vit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Dfe(t,e){let r=wx(t,vit),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(!Mit(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 _it(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 Fit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,_it(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 Mit(t){return o4(t)}function Lit(t){return o4(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 kfe={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"},vfe={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"},_fe={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 uB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=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=f4(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=g4(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=g4(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}=f4(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=Aot(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=cot(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}=f4(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 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 pot(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 mot(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 Eot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Cot(t,e,r=">"){Line truncated
`;function Not(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(y4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function oge(t,e,r,n,s){return!r.sanitizeName||Nf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function I4(t,e){let r="";e.format&&(r=Sot);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=Not(t,e),i=new qc;return age(t,e,r,i,n,s)}function age(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=C4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=y4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:oge(u,!1,e,n,i),h=Tot(A[":@"],e);n.push(d,h);let f=Rot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=C4(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=ige(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=ige(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=cge(A[u],e):C=age(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 Tot(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 cge(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=y4(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=xot(s[":@"],e),a=cge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function xot(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 y4(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 ige(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:oge(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=C4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ud(A)}"`}return i}function Rot(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 C4(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 B4(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 Dot={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({},Dot,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
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function kot(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 b4(t,e,r,n,s){return!r.sanitizeName||Nf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return I4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new qc,r=kot(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:b4(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=b4(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=b4(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 vot(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.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 Rf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gB(e,r,this)}computeHMACSHA256(e){return Vot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Df=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 dd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Wot=new Df("The operation was aborted."),pB=class extends Yc{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=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ld(s.url,ku.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,Wot)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var Jot="storageBrowserPolicy";function hge(){return{name:Jot,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ld(t.url,ku.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var zot="StorageCorrectContentLengthPolicy";function fge(){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:zot,async sendRequest(e,r){return t(e),r(e)}}}var jot="storageRetryPolicy",l0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],$ot=new Df("The operation was aborted.");function gge(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 En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Kot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Xot("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:Zot,async sendRequest(i,o){return e(i),o(i)}}}var eat="storageRequestFailureDetailsParserPolicy";function pge(){return{name:eat,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 tat}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 tat("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",vu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Wa="",x4="*",rat=1*1024*1024;var nat=4*rat;var mge="AES256",Ege="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Cge=["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"],Ige=["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"],yge="BlobUsesCustomerSpecifiedEncryption",Bge="BlobDoesNotUseCustomerSpecifiedEncryption",bge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _u(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var EB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new EB([],e);return r._credential=t,r}function sat(t){let e=[iat,Qge,oat,aat,cat,Aat,lat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>uat(s));return{wrappedPolicies:s4(r),afterRetry:n}}}}function R4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?i4(e):N4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eB({...r,loggingOptions:{additionalAllowedHeaderNames:Cge,additionalAllowedQueryParameters:Ige,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:w4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:k8}),s.addPolicy(fge()),s.addPolicy(gge(r.retryOptions),{phase:"Retry"}),s.addPolicy(pge()),s.addPolicy(hge());let a=sat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=D4(t);Yi(c)?s.addPolicy(s0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new $a(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 iAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(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 $a(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 oAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(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 $a(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 aAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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?Ka(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 $a(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 cAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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?Ka(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 $a(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 AAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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?Ka(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 $a(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 uAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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?Ka(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 $a(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 Pf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Of(t){let e=t.version?t.version:Kx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var RB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=r0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||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!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||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!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||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!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||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 qf=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"}};qf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var vAt=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())})},s9=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 Lpe(t,e,r){return vAt(this,void 0,void 0,function*(){var n;let s=new Xa(t),i=s.getBlockBlobClient(),o=new s9((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 Ppe from"buffer";import*as AA from"fs";import*as Ope from"stream";import*as Hpe 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 _At(t){return t?t>=500:!0}function FAt(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function MAt(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Upe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=NT,a=TT,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),!_At(d)))return l;if(d&&(h=FAt(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 MAt(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return WR(this,arguments,void 0,function*(r,n,s=NT,i=TT){return yield Upe(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=NT,i=TT){return yield Upe(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 LAt(t,e){return Go(this,void 0,void 0,function*(){yield Hpe.promisify(Ope.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 c9(t,e,r){return di(this,void 0,void 0,function*(){let n=new GAt(t),s=Vpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield qpe(t,e,s):s.concurrentBlobDownloads?yield Gpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Xpe(t,e,r){return di(this,void 0,void 0,function*(){let n=a9(),s=Wm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Kpe(t,e){return`bytes ${t}-${e}/*`}function WAt(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: ${Kpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Kpe(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 JAt(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Lc(r),i=HB(`caches/${e.toString()}`),o=b0.openSync(r,"r"),a=i9(n),c=H3("uploadConcurrency",a.uploadConcurrency),A=H3("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 WAt(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 zAt(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function A9(t,e,r,n){return di(this,void 0,void 0,function*(){if(i9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Lpe(r,e,n)}else{let i=a9();H("Upload cache"),yield JAt(i,t,e,n),H("Commiting cache");let o=Lc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield zAt(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var Vme=Ae(eG(),1),rn=Ae(At(),1),ji=Ae(At(),1),zf=Ae(At(),1),jf=Ae(At(),1),Kf=Ae(At(),1);var sG=Ae(At(),1),iG=Ae(At(),1),Gme=Ae(At(),1),qme=Ae(At(),1),Yme=Ae(At(),1);var tG=Ae(At(),1),rG=Ae(At(),1),Pme=Ae(At(),1),Ome=Ae(At(),1),Hme=Ae(At(),1),nG=class extends Hme.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,Ome.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Pme.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?rG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,tG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?rG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new nG;var oG=class extends Yme.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,qme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Gme.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?iG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,sG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,sG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?iG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield yG(r,"create");yield BG(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)}},PD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function jme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function wG(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 Kme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OD(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();return H(`Cache service version: ${A}`),jme(s),A==="v2"?yield ldt(s,i,o,a,c):yield udt(s,i,o,a,c)})}function udt(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)wG(d);let u=yield Hy(),l="";try{let d=yield $pe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=nb.join(yield Py(),rd(u)),H(`Archive Path: ${l}`),yield c9(d.archiveLocation,l,a),Ha()&&(yield rb(l,u));let h=Lc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield bG(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 Oy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function ldt(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)wG(l);let u="";try{let l=IG(),d=yield Hy(),h={key:i,restoreKeys:o,version:Wm(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=nb.join(yield Py(),rd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield c9(f.signedDownloadUrl,u,a);let I=Lc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Ha()&&(yield rb(u,d)),yield bG(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 Oy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function HD(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();return H(`Cache service version: ${a}`),jme(n),wG(s),a==="v2"?yield hdt(n,s,i,o):yield ddt(n,s,i,o)})}function ddt(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Hy(),h=-1,f=yield O3(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 Py(),I=nb.join(p,rd(d));H(`Archive Path: ${I}`);try{yield QG(p,f,d),Ha()&&(yield rb(I,d));let m=10*1024*1024*1024,C=Lc(I);if(H(`File Size: ${C}`),C>m&&!o9())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 Xpe(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 A9(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===yd.name Line truncated
See ${r.getDocumentationLink()}`;$me.push(n),$l(n)}function Zme(){Qu("deprecation-collector_deprecations",JSON.stringify(NG)),Qu("deprecation-collector_errors",JSON.stringify($me))}import*as YD from"path";var e0e="GRADLE_ACTION_ID";var jD=".setup-gradle",VD=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 gA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return mdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,pdt())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return YD.resolve(qu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return $f("dependency-graph-exclude-projects")}getIncludeProjects(){return $f("dependency-graph-include-projects")}getExcludeConfigurations(){return $f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return $f("dependency-graph-include-configurations")}getPluginRepository(){return new WD}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 Kme()?gA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&gA("cache-read-only")}isCacheWriteOnly(){return gA("cache-write-only")}isCacheOverwriteExisting(){return gA("cache-overwrite-existing")}isCacheStrictMatch(){return gA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=sb("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")}isCacheLicenseAccepted(){let e=new Wo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}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 Wo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return gA("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 sb("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return sb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return sb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return sb("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new WD}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)}},WD=class{getUrl(){return $f("gradle-plugin-repository-url")}getUsername(){return $f("gradle-plugin-repository 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 lb(i));return n.searchPaths.push(...kG(n.patterns)),n})}static stat(e,r,n){return PG(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 OG from"crypto";import*as r2 from"fs";import*as T0e from"stream";import*as x0e from"util";import*as R0e from"path";var kht=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())})},vht=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 D0e(t,e){return kht(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=OG.createHash("sha256"),f=0;try{for(var p=!0,I=vht(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}${R0e.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(r2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=OG.createHash("sha256");yield x0e.promisify(T0e.pipeline)(r2.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 k0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function HG(t,e){return k0e(this,void 0,void 0,function*(){return yield e2.create(t,e)})}function v0e(t){return k0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield HG(e,{followSymbolicLinks:i});return D0e(o,r,s)})}import*as qG from"path";var F0e="BASIC_CACHE_PRIMARY_KEY",GG="BASIC_CACHE_RESTORED_KEY",_ht="setup-java",M0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],n2=class{async restore(e,r){let n=L0e(e),s=await Fht();Qu(F0e,s);try{let i=await OD(n,s);i?(Qu(GG,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){if(n.readOnly){let a=_m(GG);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=_m(F0e);if(_m(GG)===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=L0e(e);try{return await HD(o,s),$(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function L0e(t){return[qG.join(t,"caches"),qG.join(t,"wrapper")]}async function Fht(){let t=await v0e(M0e.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${M0e}], make sure you have checked out the target repository`);return`${_ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Lht=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,Uht="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.",Pht=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,Oht="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: 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.",Hht=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,VG=class{async restore(e,r){}async save(e,r,n){return Lht}},s2=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function O0e(t){if(t.isCacheDisabled())return YG("Cache is disabled: will not restore state from previous builds."),new VG;if(t.getCacheProvider()==="basic")return YG(Oht),new s2(new n2,Hht);YG(Uht);let e=await Ght();return t.isCacheLicenseAccepted()?e:new s2(e,Pht)}async function Ght(){let t=qht();return await import(Mht(t).href)}function qht(){let t=import.meta.dirname,e=P0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(U0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function YG(t){console.info(t)}import i2 from"fs";import H0e from"path";var o2=class{constructor(e){this.cacheFile=H0e.resolve(e,jD,"valid-wrappers.json")}load(){if(i2.existsSync(this.cacheFile))try{return JSON.parse(i2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];i2.mkdirSync(H0e.dirname(this.cacheFile),{recursive:!0}),i2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var J0e=Ae(V0e(),1);import*as W0e from"util";import*as a2 from"path";import*as c2 from"fs";var jht=W0e.promisify(c2.readdir);async function z0e(t){return(await j0e(t)).filter(r=>(0,J0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>a2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function j0e(t){let e=await jht(t),r=await Promise.all(e.map(async n=>{let s=a2.resolve(t,n),i=c2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?j0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var $ht={_useHtmlParser2:!1};function Y0(t,e){if(!t)return e??$ht;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 gq={};Na(gq,{contains:()=>b2,extract:()=>Vft,html:()=>Hft,merge:()=>EEe,parseHTML:()=>qft,root:()=>Yft,text:()=>cg,xml:()=>Gft});var Rd={};Na(Rd,{DocumentPosition:()=>Ko,append:()=>bft,appendChild:()=>Bft,compareDocumentPosition:()=>fEe,existsOne:()=>dEe,filter:()=>j0,find:()=>C2,findAll:()=>Nft,findOne:()=>I2,findOneChild:()=>Sft,getAttributeValue:()=>Eft,getChildren:()=>z0,getElementById:()=>Dft,getElements:()=>Rft,getElementsByClassName:()=>kft,getElementsByTagName:()=>ag,getElementsByTagType:()=>vft,getFeed:()=>fq,getInnerHTML:()=>mft,getName:()=>Ift,getOuterHTML:()=>uEe,getParent:()=>lEe,getSiblings:()=>dq,getText:()=>p2,hasAttrib:()=>Cft,hasChildren:()=>tr,innerText:()=>mb,isCDATA:()=>V0,isComment:()=>og,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>m2,prepend:()=>wft,prependChild:()=>Qft,prevElementSibling:()=>E2,removeElement:()=>ju,removeSubsets:()=>_ft,replaceElement:()=>yft,testElement:()=>xft,textContent:()=>zu,uniqueSort:()=>Td});var zo={};Na(zo,{CDATA:()=>eq,Comment:()=>KG,Directive:()=>jG,Doctype:()=>tq,ElementType:()=>bt,Root:()=>JG,Script:()=>$G,Style:()=>XG,Tag:()=>ZG,Text:()=>zG,isTag:()=>WG});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 WG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var JG=bt.Root,zG=bt.Text,jG=bt.Directive,KG=bt.Comment,$G=bt.Script,XG=bt.Style,ZG=bt.Tag,eq=bt.CDATA,tq=bt.Doctype;var A2=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)}},hb=class extends A2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},mA=class extends hb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},ng=class extends hb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},sg=class extends hb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},fb=class extends A2{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}},gb=class extends fb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends fb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},ig=class extends fb{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 Line truncated
`:p2(t.children):V0(t)?p2(t.children):pi(t)?t.data:""}function zu(t){return Array.isArray(t)?t.map(zu).join(""):tr(t)&&!og(t)?zu(t.children):pi(t)?t.data:""}function mb(t){return Array.isArray(t)?t.map(mb).join(""):tr(t)&&(t.type===bt.Tag||V0(t))?mb(t.children):pi(t)?t.data:""}function z0(t){return tr(t)?t.children:[]}function lEe(t){return t.parent||null}function dq(t){let e=lEe(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 Eft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Cft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ift(t){return t.name}function m2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function E2(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 yft(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 Bft(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 bft(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 Qft(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 wft(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 C2(t,Array.isArray(e)?e:[e],r,n)}function C2(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 Sft(t,e){return e.find(t)}function I2(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=I2(t,i.children,!0);if(o)return o}}return null}function dEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&dEe(t,r.children))}function Nft(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 y2={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 hq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Tft(t,e){return r=>t(r)||e(r)}function hEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(y2,r)?y2[r](n):hq(r,n)});return e.length===0?null:e.reduce(Tft)}function xft(t,e){let r=hEe(t);return r?r(e):!0}function Rft(t,e,r,n=1/0){let s=hEe(t);return s?j0(s,e,r,n):[]}function Dft(t,e,r=!0){return Array.isArray(e)||(e=[e]),I2(hq("id",t),e,r)}function ag(t,e,r=!0,n=1/0){return j0(y2.tag_name(t),e,r,n)}function kft(t,e,r=!0,n=1/0){return j0(hq("class",t),e,r,n)}function vft(t,e,r=!0,n=1/0){return j0(y2.tag_type(t),e,r,n)}function _ft(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 Ko;(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"})(Ko||(Ko={}));function fEe(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 Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function Td(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=fEe(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function fq(t){let e=B2(Pft,t);return e?e.name==="feed"?Fft(e):Mft(e):null}function Fft(t){var e;let r=t.children,n={type:"atom",items:ag("entry",r).map(o=>{var a;let{children:c}=o,A={media:gEe(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=xd("summary",c)||xd("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=Ae(Dd(),1);var Dq={};function kq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function vq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function Rq(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 xq=(t,e,r,n,s)=>{let i=s(e,Rq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},F2={is:xq,matches:xq,where:xq,not(t,e,r,n,s){let i=s(e,Rq(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=Rq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Qb))?[Dq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=kq(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,...vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function nCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in F2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return F2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:_2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,rCe.parse)(A);return F2.is(t,u,r,n,s)}if(typeof c=="function")return Tq(c,o,a,1),u=>c(u,a)&&t(u);if(o in sE)return sE[o](t,a,r,n);if(o in Sb){let u=Sb[o];return Tq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=Ae(rE(),1);function _q(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function sCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.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()),XEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return nCe(t,e,r,n,s);case ea.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 ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=_q(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=_q(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=_q(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.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 ea.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 ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function iCe(t,e,r){let n=M2(t,e,r);return kq(n,e.adapter)}function M2(t,e,r){let n=typeof t=="string"?(0,sc.parse)(t):t;return L2(n,e,r)}function oCe(t){return t.type===sc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(oCe)))}var Rgt={type:sc.SelectorType.Descendant},Dgt={type:"_flexibleDescendant"},kgt={type:sc.SelectorType.Pseudo,name:"scope",data:null};function vgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Dq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(BCe,`\r
`)}}).toArray()}var Kq={};Na(Kq,{extract:()=>zpt});function Jpt(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 zpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Jpt(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 _d=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}}};_d.prototype.cheerio="[cheerio object]";_d.prototype.splice=Array.prototype.splice;_d.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_d.prototype,bq,Wq,Jq,zq,jq,Kq);function bCe(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 _d{_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&&$o(u))return u;let f=Y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Eb(u)?t(u,f,!1,null).children:jpt(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"?Eb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,gq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function jpt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Kpt=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 q2(t){return t>=55296&&t<=57343}function QCe(t){return t>=56320&&t<=57343}function wCe(t,e){return(t-55296)*1024+9216+e}function Y2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function V2(t){return t>=64976&&t<=65007||Kpt.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
${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(`
`)}`}},y_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var zg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function $xe(t){if(t instanceof AggregateError){$l("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof zg?($l(String(t)),t.stack&&$(t.stack)):($l(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function Xxe(t,e,r){if(!t.doValidateWrappers())return;let n=new o2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Kxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await KN("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new zg(`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 jg from"path";function Zxe(t,e,r){let n=jg.resolve(e,jD);ho.mkdirSync(n,{recursive:!0}),Svt(e),Nvt(t),Ha()&&Tvt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function Svt(t){let e=jg.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=xvt("init-scripts",n),i=jg.resolve(e,n);ho.writeFileSync(i,s)}}function Nvt(t){let e=Rvt();if(e==null)return;let r=jg.resolve(t,".m2"),n=jg.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=Dvt(s,e);ho.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function Tvt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=jg.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 xvt(...t){let e=import.meta.dirname,r=jg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function Rvt(){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>
@@ -384,128 +294,61 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Rat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Dat="restored-cache-key",g9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&mi("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Vp.resolve(this.gradleUserHome,"caches");return ic.existsSync(e)?(zo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=qge(this.cacheName,this.cacheConfig);zo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await _6(s,n.key,n.restoreKeys,r);if(!i){fe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}DA(Dat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new QM(this.gradleUserHome,this.cacheConfig).restore(e),await new yM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=qge(this.cacheName,this.cacheConfig).key,n=xB(Dat),s=e.entry(this.cacheDescription);if(n&&r===n){fe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await O6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new QM(this.gradleUserHome,this.cacheConfig).extract(e),new yM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Vp.resolve(this.gradleUserHome,n));for(let n of r){zo(`Removing excluded path: ${n}`);let s=await aC(n,{implicitDescendants:!1});for(let i of await s.glob())zo(`Removing excluded file: ${i}`),await cM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(oQ);let r=e.map(n=>this.resolveCachePath(n));return zo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Vp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Vp.resolve(this.gradleUserHome,oQ);ic.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),DB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Vp.resolve(this.gradleUserHome,"init.d");ic.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=Nat("init-scripts",n),i=Vp.resolve(e,n);ic.writeFileSync(i,s)}}registerToolchains(){let e=Sat();if(e==null)return;let r=Vp.resolve(this.userHome,".m2"),n=Vp.resolve(r,"toolchains.xml");if(!ic.existsSync(n))ic.mkdirSync(r,{recursive:!0}),ic.writeFileSync(n,e),fe(`Wrote default JDK locations to ${n}`);else{let s=ic.readFileSync(n,"utf8"),i=Rat(s,e);ic.writeFileSync(n,i),fe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Vp.resolve(this.gradleUserHome,"gradle.properties");if(ic.existsSync(r)){fe(`Merged --info and --stacktrace into existing ${r} file`);let n=ic.readFileSync(r,"utf-8");ic.writeFileSync(r,`${e}
${n}`)}else fe(`Created a new ${r} with --info and --stacktrace`),ic.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!aM()&&!DB()||!ic.existsSync(this.gradleUserHome))return;let r=await ep("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});fe(`Gradle User Home (directories >5M): ${e}`),fe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),fe("-----------------------")}};import f9 from"fs";import bM from"path";var p9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return DA("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=xB("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&xC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await ffe(r,n)}catch{fe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await ffe("8.11")}findGradleWrapperScript(e){try{let r=A9(e.rootProjectDir);return bM.resolve(e.rootProjectDir,r)}catch(r){return Te(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=bM.resolve(this.tmpDir,"dummy-cleanup-project");f9.mkdirSync(n,{recursive:!0}),f9.writeFileSync(bM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),f9.writeFileSync(bM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
`}function Dvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var bz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",kvt="GRADLE_USER_HOME";async function eRe(t,e,r){let n=await tRe(),s=await _vt();return process.env[bz]?($("Gradle setup only performed on first gradle/actions step in workflow."),!1):(pn(bz,!0),Qu(bz,!0),Qu(kvt,s),Zxe(n,s,t.getCacheEncryptionKey()),await(await O0e(t)).restore(s,vvt(t)),await Xxe(r,qu(),s),await s0e(e),!0)}function vvt(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 _vt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=qu();return wz.resolve(r,t)}let e=wz.resolve(await tRe(),".gradle");if(Qz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(B_.platform()==="win32"&&e.startsWith("C:\\")&&Qz.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 tRe(){let t=await yy("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()."),B_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}var GRe=Ae(mRe(),1),Rz=Ae(My(),1);import*as eC from"fs";import*as _Re from"os";import*as lh from"path";import*as Tz from"crypto";import*as $g from"fs";var zvt=Ae(My(),1);import*as KQ from"path";var w_=Ae(My(),1);import*as CRe from"stream";import*as IRe from"util";import{ok as Kvt}from"assert";var ERe=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 ERe(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 ERe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Kg=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 extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},$vt=process.platform==="win32",Gwr=process.platform==="darwin",Xvt="actions/tool-cache";function yRe(t,e,r,n){return Kg(this,void 0,void 0,function*(){e=e||KQ.join(bRe(),Tz.randomUUID()),yield uf(KQ.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=Nz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Nz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new b_(s,i,o).execute(()=>Kg(this,void 0,void 0,function*(){return yield Zvt(t,e||"",r,n)}),c=>!(c instanceof Q_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Zvt(t,e,r,n){return Kg(this,void 0,void 0,function*(){if($g.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Xvt,[],{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 Q_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=IRe.promisify(CRe.pipeline),c=Nz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,$g.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield vce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function BRe(t,e){return Kg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield r_t(e),$vt?yield e_t(t,e):yield t_t(t,e),e})}function e_t(t,e){return Kg(this,void 0,void 0,function*(){let r= Line truncated
`," Line feed \\n"]]),tDe=new Map([...dj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function rDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of tDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
settings.caches {
cleanup = Cleanup.ALWAYS
Invalid characters include: ${Array.from(tDe.values()).toString()}
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),f9.writeFileSync(bM.resolve(n,"build.gradle"),'task("noop") {}'),await tp("Executing Gradle to clean up caches",async()=>{fe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await Th(e,n,{cwd:r})}};var Bfe="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function xat(t,e,r,n){if(process.env[Bfe]){fe("Cache only restored on first action step.");return}mi(Bfe,!0);let s=new g9(t,e,n);if(n.isCacheDisabled()){fe("Cache is disabled: will not restore state from previous builds."),s.init(),r.setDisabled();return}if(s.cacheOutputExists()){if(!n.isCacheOverwriteExisting()){fe("Gradle User Home already exists: will not restore from cache."),s.init(),r.setDisabled(jje);return}fe("Gradle User Home already exists: will overwrite with cached contents.")}if(s.init(),DA(Bfe,!0),n.isCacheCleanupEnabled()&&(fe("Preparing cache for cleanup."),await new p9(e,process.env.RUNNER_TEMP).prepare()),n.isCacheWriteOnly()){fe("Cache is write-only: will not restore from cache."),r.setWriteOnly();return}await tp("Restore Gradle state from cache",async()=>{await s.restore(r)})}async function kat(t,e,r){if(t)try{Te("Fetching short-lived token...");let n=await ZUr(t,e,r);if(n!=null&&!n.isEmpty()){Te("Got token(s), setting the access key env vars");let s=n.raw();Kb(s),XUr(s)}else Tat()}catch(n){Tat(),tr(`Failed to fetch short-lived token, reason: ${n}`)}}function XUr(t){[qd.DevelocityAccessKeyEnvVar,qd.GradleEnterpriseAccessKeyEnvVar].forEach(e=>mi(e,t))}function Tat(){tr("Failed to fetch short-lived token for Develocity"),process.env[qd.GradleEnterpriseAccessKeyEnvVar]&&k6(`The ${qd.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`),process.env[qd.DevelocityAccessKeyEnvVar]&&tr(`The ${qd.DevelocityAccessKeyEnvVar} env var should be mapped to a short-lived token`)}async function ZUr(t,e,r){let n=new Promise(a=>a(null)),s=m9.parse(t),i=new Qfe(e);if(s==null)return n;let o=new Array;for(let a of s.keys)try{fe(`Requesting short-lived Develocity access token for ${a.hostname}`);let A=await i.fetchToken(`https://${a.hostname}`,a,r);o.push(A)}catch(A){fe(`Failed to obtain short-lived Develocity access token for ${a.hostname}: ${A}`)}return o.length>0?m9.of(o):n}var Qfe=class{constructor(e){this.maxRetries=3;this.retryInterval=1e3;this.httpc=new Ga("gradle/actions/setup-gradle",void 0,{ignoreSslError:e})}async fetchToken(e,r,n){let s=n?`?expiresInHours=${n}`:"",i=e.endsWith("/")?e:`${e}/`,o={"Content-Type":"application/json",Authorization:`Bearer ${r.key}`},a=0;for(;a<this.maxRetries;){try{let A=`${i}api/auth/token${s}`;Te(`Attempt ${a} to fetch short lived token at ${A}`);let c=await this.httpc.post(A,"",o);if(c.message.statusCode===200){let u=await c.readBody();return new Promise(l=>l({hostname:r.hostname,key:u}))}if(a++,a===this.maxRetries)return new Promise((u,l)=>l(new Error(`Develocity short lived token request failed ${e} with status code ${c.message.statusCode}`)))}catch(A){if(a++,a===this.maxRetries)return new Promise((c,u)=>u(A))}await new Promise(A=>setTimeout(A,this.retryInterval))}return new Promise((A,c)=>c(new Error("Illegal state")))}},m9=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)}};async function Fat(t){return TC("DEVELOCITY_INJECTION_INIT_SCRIPT_NAME","gradle-actions.inject-develocity.init.gradle"),TC("DEVELOCITY_INJECTION_CUSTOM_VALUE","gradle-actions"),Ng("DEVELOCITY_INJECTION_ENABLED",t.getDevelocityInjectionEnabled()),Ng("DEVELOCITY_INJECTION_URL",t.getDevelocityUrl()),Ng("DEVELOCITY_INJECTION_ALLOW_UNTRUSTED_SERVER",t.getDevelocityAllowUntrustedServer()),Ng("DEVELOCITY_INJECTION_CAPTURE_FILE_FINGERPRINTS",t.getDevelocityCaptureFileFingerprints()),Ng("DEVELOCITY_INJECTION_ENFORCE_URL",t.getDevelocityEnforceUrl()),Ng("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION",t.getDevelocityPluginVersion()),Ng("DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION",t.getDevelocityCcudPluginVersion()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ng("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword()),t.getBuildScanPublishEnabled()&&(TC("DEVELOCITY_INJECTION_ENABLED","true"),TC("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION","4.3.2"),TC("DEV Line truncated
`:D9(t.children):jR(t)?D9(t.children):oc(t)?t.data:""}function zp(t){return Array.isArray(t)?t.map(zp).join(""):kn(t)&&!gQ(t)?zp(t.children):oc(t)?t.data:""}function DM(t){return Array.isArray(t)?t.map(DM).join(""):kn(t)&&(t.type===Lr.Tag||jR(t))?DM(t.children):oc(t)?t.data:""}function ZR(t){return kn(t)?t.children:[]}function sAt(t){return t.parent||null}function Gfe(t){let e=sAt(t);if(e!=null)return ZR(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 RPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function DPr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function xPr(t){return t.name}function x9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function T9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function jp(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 TPr(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 kPr(t,e){if(jp(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 FPr(t,e){jp(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 MPr(t,e){if(jp(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 vPr(t,e){jp(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 $R(t,e,r=!0,n=1/0){return k9(t,Array.isArray(e)?e:[e],r,n)}function k9(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&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function LPr(t,e){return e.find(t)}function F9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=F9(t,i.children,!0);if(o)return o}}return null}function iAt(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&iAt(t,r.children))}function UPr(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]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var M9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(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=>oc(e)&&t(e.data):e=>oc(e)&&e.data===t}};function Yfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function PPr(t,e){return r=>t(r)||e(r)}function oAt(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(M9,r)?M9[r](n):Yfe(r,n)});return e.length===0?null:e.reduce(PPr)}function _Pr(t,e){let r=oAt(t);return r?r(e):!0}function OPr(t,e,r,n=1/0){let s=oAt(t);return s?$R(s,e,r,n):[]}function HPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),F9(Yfe("id",t),e,r)}function fQ(t,e,r=!0,n=1/0){return $R(M9.tag_name(t),e,r,n)}function qPr(t,e,r=!0,n=1/0){return $R(Yfe("class",t),e,r,n)}function GPr(t,e,r=!0,n=1/0){return $R(M9.tag_type(t),e,r,n)}function YPr(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 Nl;(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"})(Nl||(Nl={}));function aAt(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(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 Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function FC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=aAt(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Jfe(t){let e=v9(jPr,t);return e?e.name==="feed"?JPr(e):VPr(e):null}function JPr(t){var e;let r=t.children,n={type:"atom",items:fQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:AAt(A)};ac(c,"id","id",A),ac(c,"title","title",A);let u=(a=v9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=MC("summary",A)||MC(" 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 Dl=Xe(LC(),1);var Ape={};function cpe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function upe(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 ape(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 ope=(t,e,r,n,s)=>{let i=s(e,ape(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},z9={is:ope,matches:ope,where:ope,not(t,e,r,n,s){let i=s(e,ape(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=ape(r);o.relativeSelector=!0;let a=e.some(u=>u.some(LM))?[Ape]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=cpe(A,i);if(a&&A!==Dl.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,...upe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function KAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in z9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return z9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:W9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jAt.parse)(c);return z9.is(t,u,r,n,s)}if(typeof A=="function")return ipe(A,o,a,1),u=>A(u,a)&&t(u);if(o in AD)return AD[o](t,a,r,n);if(o in PM){let u=PM[o];return ipe(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe(oD(),1);function lpe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function XAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.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()),JAt[e.action](t,e,r)}case xl.SelectorType.Pseudo:return KAt(t,e,r,n,s);case xl.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 xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=lpe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=lpe(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=lpe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.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 xl.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 xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ZAt(t,e,r){let n=j9(t,e,r);return cpe(n,e.adapter)}function j9(t,e,r){let n=typeof t=="string"?(0,Jd.parse)(t):t;return K9(n,e,r)}function $At(t){return t.type===Jd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some($At)))}var O_r={type:Jd.SelectorType.Descendant},H_r={type:"_flexibleDescendant"},q_r={type:Jd.SelectorType.Pseudo,name:"scope",data:null};function G_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===A Line truncated
`)})):{name:s,value:i.replace(fct,`\r
`)}}).toArray()}var Spe={};xu(Spe,{extract:()=>sHr});function nHr(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 sHr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=nHr(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 _C=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}}};_C.prototype.cheerio="[cheerio object]";_C.prototype.splice=Array.prototype.splice;_C.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_C.prototype,epe,ype,bpe,wpe,Npe,Spe);function pct(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=zR(s),a=t(n,o,i,null);class A extends _C{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=zR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&xM(u)?t(u,g,!1,null).children:iHr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?xM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,Vfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function iHr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var oHr=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]),Zn="\uFFFD",k;(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"})(k||(k={}));var aA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function rJ(t){return t>=55296&&t<=57343}function mct(t){return t>=56320&&t<=57343}function Ect(t,e){return(t-55296)*1024+9216+e}function nJ(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function sJ(t){return t>=64976&&t<=65007||oHr.has(t)}var Ae;(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-pu 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(`
`)}`}},MW=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var KQ=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function RIt(t){if(t instanceof AggregateError){lE("Multiple errors returned");for(let e of t.errors)F1(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&fe(e.stack)}else t instanceof KQ?(lE(String(t)),t.stack&&fe(t.stack)):(lE(String(t)),t instanceof Error&&t.stack&&fe(t.stack))}async function DIt(t,e,r){if(!t.doValidateWrappers())return;let n=new C9(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await SIt(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await tp("All Gradle Wrapper jars are valid",async()=>{Te(`Loaded previously validated checksums from cache: ${i.join(", ")}`),fe(o.toDisplayString())});else throw fe(o.toDisplayString()),new KQ(`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))}var VBe="GRADLE_BUILD_ACTION_SETUP_COMPLETED",A$r="USER_HOME",c$r="GRADLE_USER_HOME",u$r="CACHE_LISTENER";async function xIt(t,e,r){let n=await TIt(),s=await l$r();if(process.env[VBe])return fe("Gradle setup only performed on first gradle/actions step in workflow."),!1;mi(VBe,!0),DA(VBe,!0),DA(A$r,n),DA(c$r,s);let i=new CY;return await xat(n,s,i,t),DA(u$r,i.stringify()),await DIt(r,Gp(),s),await Fat(e),!0}async function l$r(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Gp();return zBe.resolve(r,t)}let e=zBe.resolve(await TIt(),".gradle");if(WBe.existsSync(e))return fe(`Gradle User Home already exists at ${e}`),mi("GRADLE_USER_HOME",e),e;if(vW.platform()==="win32"&&e.startsWith("C:\\")&&WBe.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return fe(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),mi("GRADLE_USER_HOME",r),r}return mi("GRADLE_USER_HOME",e),e}async function TIt(){let t=await ep("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return fe("Could not determine user.home from java -version output. Using os.homedir()."),vW.homedir();let n=r[1];return Te(`Determined user.home from java -version output: '${n}'`),n}import h$r from"os";function oL(){return 8*1024*1024}function LW(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function kIt(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function ox(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}function FIt(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function MIt(){let t=h$r.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(fe("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(fe(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function vIt(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function LIt(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var jBe=Xe(lr(),1),KBe=Xe(lr(),1),UIt=Xe(lr(),1),PIt=Xe(lr(),1),_It=Xe(lr(),1),ax=Xe(lr(),1),OIt=Xe(lr(),1),XBe=class extends OIt.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=ax.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(ax.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=ax.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=ax.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let i=(e.nanos+1e9).toString().substring(1);i.substring(3)==="000000"?s="."+i.substring(0,3)+"Z":i.substring(6)==="000"?s="."+i.substring(0,6)+"Z":s="."+i+"Z"}return new Date(n).toISOString().replace(".000Z",s)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,_It.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let i=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(i))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ax.PbLong.from(i/1e3).toString(),n.nanos=0,s[7]&&(n.nanos=parseInt("1"+s[7]+"0".repeat Line truncated
`," Line feed \\n"]]),GIt=new Map([...M0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function YIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of GIt)if(t.includes(e))throw new Error(`The artifact name 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.`);$("Artifact name is valid!")}function hj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of dj)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(GIt.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.`);fe("Artifact name is valid!")}function v0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of M0e)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(M0e.values()).toString()}
Invalid characters include: ${Array.from(dj.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 zIt=Xe(WIt(),1);function Xg(){return`@actions/artifact-${zIt.version}`}var PW=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"}},hm=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},gm=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},dI=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"}},fm=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"}};fm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var XQ=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};XQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ZQ=class extends Error{};ZQ.prototype.name="InvalidTokenError";function B$r(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 Q$r(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 B$r(e)}catch{return atob(e)}}function jIt(t,e){if(typeof t!="string")throw new ZQ("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 ZQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=Q$r(n)}catch(i){throw new ZQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ZQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var _W=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Zg(){let t=LW(),e=jIt(t);if(!e.scp)throw _W;let r=e.scp.split(" ");if(r.length===0)throw _W;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw _W;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return Te(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Te(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw _W}function KIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Kb(r),Kb(encodeURIComponent(r)))}catch(e){Te(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XIt(t){if(typeof t!="object"||t===null){Te("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&KIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&KIt(t.signed_url)}var OW=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())})},L0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=LW();this.baseUrl=kIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ga(e,[new T1(i)])}request(e,r,n,s){return OW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Te(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>OW(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 OW(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(),Te(`[Response] - ${a.message.statusCode}`),Te(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(XIt(c),Te(`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(XQ.isUsageErrorMessage(c.msg))throw new XQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Te(`Raw Body: ${s}`),a instanceof XQ)throw a;if(fm.isNetworkErrorCode(a?.code))throw new fm(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);fe(`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?[ao.BadGateway,ao.GatewayTimeout,ao.InternalServerError,ao.ServiceUnavailable,ao.TooManyRequests].includes(e):!1}sleep(e){return OW(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 $g(t){let e=new L0e(Xg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new UW(e)}import*as cx from"fs";import{normalize as ZIt,resolve as $It}from"path";function eBt(t){if(!cx.existsSync Line truncated
${v$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function JW(t){return t instanceof dA?!0:ey(t)&&t.name==="RestError"}function mc(t,e){return Buffer.from(t,e)}import V0e from"node:http";import W0e from"node:https";import gBt from"node:zlib";import{Transform as L$r}from"node:stream";var Vl=AL("ts-http-runtime");var U$r={};function cL(t){return t&&typeof t.pipe=="function"}function fBt(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 pBt(t){return t&&typeof t.byteLength=="number"}var VW=class extends L$r{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}},z0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ef("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 rh;Vl.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=H$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new VW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),cL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=P$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?_$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new VW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await O$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();cL(a)&&(c=fBt(a));let u=Promise.resolve();cL(A)&&(u=fBt(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.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?V0e.request(a,A):W0e.request(a,A);u.once("error",l=>{c(new dA(l.message,{code:l.code??dA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ef("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&cL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):pBt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new dA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W0e.globalAgent;let s=e.tlsSettings??U$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new W0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function P$r(t){let e=mu();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 _$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=gBt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=gBt.createInflate();return t.pipe(n),n}return t}function O$r(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 dA(`Error reading response as text: ${s.message}`,{code:dA.PARSE_ERROR}))})})}function H$r(t){return t?Buffer.isBuffer(t)?t.length:cL(t)?null:pBt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function mBt(){return new z0e}function WW(){return mBt()}var j0e="logPolicy";function zW(t={}){let e=t.logger??Vl.info,r=new rh({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:j0e,async sendRequest Line truncated
`;return e}function len(t){return t instanceof Uint8Array?t.byteLength:az(t)?t.size===-1?void 0:t.size:void 0}function den(t){let e=0;for(let r of t){let n=len(r);if(n===void 0)return;e+=n}return e}async function hen(t,e,r){let n=[mc(`--${r}`,"utf-8"),...e.flatMap(i=>[mc(`\r
`,"utf-8"),mc(uen(i.headers),"utf-8"),mc(`\r
`,"utf-8"),i.body,mc(`\r
--${r}`,"utf-8")]),mc(`--\r
\r
`,"utf-8")],s=den(n);s&&t.headers.set("Content-Length",s),t.body=await OBt(n)}var lL="multipartPolicy",gen=70,fen=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pen(t){if(t.length>gen)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!fen.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Az(){return{name:lL,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?pen(r):r=cen(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await hen(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cz(){return YW()}import{EOL as Een}from"node:os";import Cen from"node:util";import*as HBt from"node:process";function qBt(t,...e){HBt.stderr.write(`${Cen.format(t,...e)}${Een}`)}var GBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,YBt,aQe=[],AQe=[],uz=[];GBt&&cQe(GBt);var JBt=Object.assign(t=>VBt(t),{enable:cQe,enabled:uQe,disable:Ien,log:qBt});function cQe(t){YBt=t,aQe=[],AQe=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?AQe.push(new RegExp(`^${n.substr(1)}$`)):aQe.push(new RegExp(`^${n}$`));for(let n of uz)n.enabled=uQe(n.namespace)}function uQe(t){if(t.endsWith("*"))return!0;for(let e of AQe)if(e.test(t))return!1;for(let e of aQe)if(e.test(t))return!0;return!1}function Ien(){let t=YBt||"";return cQe(""),t}function VBt(t){let e=Object.assign(r,{enabled:uQe(t),destroy:Ben,log:JBt.log,namespace:t,extend:Qen});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return uz.push(e),e}function Ben(){let t=uz.indexOf(this);return t>=0?(uz.splice(t,1),!0):!1}function Qen(t){let e=VBt(`${this.namespace}:${t}`);return e.log=this.log,e}var dx=JBt;var zBt=new Set,lz=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,lQe,dQe=dx("azure");dQe.log=(...t)=>{dx.log(...t)};var hQe=["verbose","info","warning","error"];lz&&(XBt(lz)?yen(lz):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lz}'; logging is not enabled. Acceptable values: ${hQe.join(", ")}.`));function yen(t){if(t&&!XBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${hQe.join(",")}`);lQe=t;let e=[];for(let r of zBt)KBt(r)&&e.push(r.namespace);dx.enable(e.join(","))}var WBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=dQe.extend(t);return jBt(dQe,e),{error:dz(e,"error"),warning:dz(e,"warning"),info:dz(e,"info"),verbose:dz(e,"verbose")}}function jBt(t,e){e.log=(...r)=>{t.log(...r)}}function dz(t,e){let r=Object.assign(t.extend(e),{level:e});if(jBt(t,r),KBt(r)){let n=dx.disable();dx.enable(n+","+r.namespace)}return zBt.add(r),r}function KBt(t){return!!(lQe&&WBt[t.level]<=WBt[lQe])}function XBt(t){return hQe.includes(t)}var tf=Wl("core-rest-pipeline");function gQe(t={}){return zW({logger:tf.info,...t})}var fQe=jW;function pQe(t={}){return KW(t)}import mQe from"node:os";import EQe from"node:process";function ZBt(){return"User-Agent"}async function $Bt(t){if(EQe&&EQe.versions){let e=`${mQe.type()} ${mQe.release()}; ${mQe.arch()}`,r=EQe.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var hz="1.22.2";function xen(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function e0t(){return ZBt()}async function gz(t){let e=new Map;e.set("core-rest-pipeline",hz),await $Bt(e);let r=xen(e);return t?`${t} ${r}`:r}var t0t=e0t(),r0t="userAgentPolicy";function CQe(t={}){let e=gz(t.userAgentPrefix);return{name:r0t,async sendRequest(r,n){return r.headers.has(t0t)||r.headers.set(t0t,await e),n(r)}}}var dL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function IQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new dL(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 ven="The delay was aborted.";function hx(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return IQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ven})}function hI(t){if(ey(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 n0t(t){return ey(t)}fun 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--),!irn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Ni("InvalidTag",l,hA(t,i))}let c=ern(t,i);if(c===!1)return Ni("InvalidAttr","Attributes for '"+A+"' have open quote.",hA(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=q0t(u,e);if(d===!0)n=!0;else return Ni(d.err.code,d.err.msg,hA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Ni("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",hA(t,o));if(r.length===0)return Ni("InvalidTag","Closing tag '"+A+"' has not been opened.",hA(t,o));{let l=r.pop();if(A!==l.tagName){let d=hA(t,l.tagStartPos);return Ni("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",hA(t,o))}r.length==0&&(s=!0)}}else return Ni("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",hA(t,i));else{let l=q0t(u,e);if(l!==!0)return Ni(l.err.code,l.err.msg,hA(t,i-u.length+l.err.line));if(s===!0)return Ni("InvalidXml","Multiple possible root nodes found.",hA(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=H0t(t,i);continue}else if(t[i+1]==="?"){if(i=O0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=nrn(t,i);if(l==-1)return Ni("InvalidChar","char '&' is not expected.",hA(t,i));i=l}else if(s===!0&&!_0t(t[i]))return Ni("InvalidXml","Extra text at the end",hA(t,i));t[i]==="<"&&i--}}else{if(_0t(t[i]))continue;return Ni("InvalidChar","char '"+t[i]+"' is not expected.",hA(t,i))}if(n){if(r.length==1)return Ni("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hA(t,r[0].tagStartPos));if(r.length>0)return Ni("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ni("InvalidXml","Start tag expected.",1);return!0}function _0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function O0t(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 Ni("InvalidXml","XML declaration allowed only at the start of the document.",hA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function H0t(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 Ztn='"',$tn="'";function ern(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Ztn||t[e]===$tn)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 trn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function q0t(t,e){let r=bz(t,trn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ni("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ni("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ni("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bL(r[s]));let i=r[s][2];if(!srn(i))return Ni("InvalidAttr","Attribute '"+i+"' is an invalid name.",bL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return Ni("InvalidAttr","Attribute '"+i+"' is repeated.",bL(r[s]))}return!0}function rrn(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 nrn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,rrn(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 Ni(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function srn(t){return yL(t)}function irn(t){return yL(t)}function hA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bL(t){return t.startIndex+t[1].length}var orn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1},G0t=function(t){return Object.assign({},orn,t)};var Nz;typeof Symbol!="function"?Nz="@@xmlMetadata":Nz=Symbol("XML Node Metadata");var Iu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][Nz]={startIndex:r})}static getMetaDataSymbol(){return Nz}};function KQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&crn(t,e)){e+=7;let a,A;[a,A,e]=arn(t,e+1),A.indexOf("&")===-1&&(r[hrn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&urn(t,e))e+=8;else if(s&&lrn(t,e))e+=8;else if(s&&drn(t,e))e+=9;else if(Arn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function arn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Arn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function crn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function urn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function lrn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function drn(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new Iu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=oy(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=ZQe(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Iu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=oy(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=KQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=oy(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=ZQe(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let m=this.readStopNodeData(t,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);i=m.i,p=m.tagContent}let C=new Iu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new Iu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new Iu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function wrn(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var Nrn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function Srn(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 Rrn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function Drn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function oy(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function ZQe(t,e,r,n=">"){let s=Drn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function xrn(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=oy(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),V0t(t,e,"",r)}function V0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=Mrn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];vrn(c,e)||(g=e.tagValueProcessor(A,g),g=W0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=J0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=J0t(a[":@"],e),d=n+`<${A}${l}`,h=V0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function Mrn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function J0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=W0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function vrn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function W0t(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}var Lrn={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};function nh(t){this.options=Object.assign({},Lrn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=wL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=_rn),this.processTextOrObjNode=Urn,this.options.format?(this.indentate=Prn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}nh.prototype.build=function(t){return this.options.preserveOrder?rye(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};nh.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};nh.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function Urn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}nh.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};nh.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};nh.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};nh.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function Prn(t){return this.options.indentBy.repeat(t)}function _rn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var z0t={validate:wz};function X0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Orn(t={}){var e,r;return Object.assign(Object.assign({},X0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Hrn(t={}){return Object.assign(Object.assign({},X0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function Sz(t,e={}){let r=Orn(e),n=new nh(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function nye(t,e={}){if(!t)throw new Error("Document is empty");let r=z0t.validate(t);if(r!==!0)throw r;let s=new Ex(Hrn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Uz(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=Mz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=vz(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 ci=class extends Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new xL(e,r,this)}computeHMACSHA256(e){return jrn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};var $i=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var EI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Krn=new cy("The operation was aborted."),TL=class extends sf{retryOptions;constructor(e,r,n=EI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:EI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):EI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:EI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:EI.maxRetryDelayInMs):EI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:EI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:EI.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=Fz(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=mI(s.url,Cm.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if($i.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($i.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 $i.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 $i.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 $i.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return $i.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?($i.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $i.info(`RetryPolicy: Delay for ${s}ms`),Lz(s,n,Krn)}};var kL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new TL(e,r,this.retryOptions)}};var Xrn="storageBrowserPolicy";function Z0t(){return{name:Xrn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=mI(t.url,Cm.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Zrn="StorageCorrectContentLengthPolicy";function $0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Zrn,async sendRequest(e,r){return t(e),r(e)}}}var $rn="storageRetryPolicy",Cx={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},enn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],tnn=new cy("The operation was aborted.");function eQt(t={}){let e=t.retryPolicyType??Cx.retryPolicyType,r=t.maxTries??Cx.maxTries,n=t.retryDelayInMs??Cx.retryDelayInMs,s=t.maxRetryDelayInMs??Cx.maxRetryDelayInMs,i=t.secondaryHost??Cx.secondaryHost,o=t.tryTimeoutInMs??Cx.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return $i.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of enn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=rnn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Uz(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=Mz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=vz(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:nnn,async sendRequest(i,o){return e(i),o(i)}}}var snn="storageRequestFailureDetailsParserPolicy";function tQt(){return{name:snn,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 inn}from"node:crypto";var Pz=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return inn("sha256",this.key).update(e,"utf8").digest("base64")}};var _z="12.31.0",Oz="2026-02-06";var Hz="https://storage.azure.com/.default",Im={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sh="",aye="*",onn=1*1024*1024;var ann=4*onn;var rQt="AES256",nQt="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sQt=["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"],iQt=["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"],oQt="BlobUsesCustomerSpecifiedEncryption",aQt="BlobDoesNotUseCustomerSpecifiedEncryption",AQt=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bm(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 FL=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Si(t,e={}){t||(t=new Rs);let r=new FL([],e);return r._credential=t,r}function Ann(t){let e=[cnn,cQt,unn,lnn,dnn,hnn,fnn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>gnn(s));return{wrappedPolicies:zQe(r),afterRetry:n}}}}function Aye(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?jQe(e):iye(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${_z}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=mL({...r,loggingOptions:{additionalAllowedHeaderNames:sQt,additionalAllowedQueryParameters:iQt,logger:Rz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Sz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:nye,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:bQe}),s.addPolicy($0t()),s.addPolicy(eQt(r.retryOptions),{phase:"Retry"}),s.addPolicy(tQt()),s.addPolicy(Z0t());let a=Ann(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=cye(t);Eu(A)?s.addPolicy(px({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ch(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 cin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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 ch(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 uin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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 ch(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 lin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ah(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 ch(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 din(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(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 ch(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 hin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(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 ch(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 gin(t,e){if(t=Ey(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=Qf.parse(t.permissions.toString()).toString():s=yf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ah(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 ch(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 my(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ey(t){let e=t.version?t.version:Oz;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 JL=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=gx()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("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);fe(`Redirecting to blob download url: ${wFt(u)}`);try{fe(`Starting download of artifact to: ${r}`);let l=yield NFt(u,r,e?.skipDecompress);fe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,Te(`Computed digest: ${l.sha256Digest}`),Te(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function DFt(){return BT(this,arguments,void 0,function*(t=FIt()){return(yield Ayn(t))?Te(`Artifact destination folder already exists: ${t}`):(Te(`Artifact destination folder does not exist, creating: ${t}`),yield IFt.mkdir(t,{recursive:!0})),t})}var uyn=5,lyn=[400,401,403,404,422];function QT(t,e=uyn,r=lyn){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 Te(`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 xFt="6.0.0";function jy(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})})}jy.VERSION=xFt;var FFt=Xe(TFt(),1),MFt=Xe(yge(),1),dyn="0.0.0-development";async function kFt(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 hyn(t,e,r,n){let s=new FFt.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(gyn.bind(null,t,e,r),n)}async function gyn(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 MFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return kFt(t,e,i,n)}return s}function Ky(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",kFt.bind(null,r,t)),t.hook.wrap("request",hyn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Ky.VERSION=dyn;var vFt=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 OK(t,e,r,n,s){return vFt(this,void 0,void 0,function*(){var i;let[o,a]=QT(sQ),A={log:void 0,userAgent:Xg(),previews:void 0,retry:o,request:a},u=yield Hd(s,A,Ky,jy).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 hm(`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 gm(`Artifact not found for name: ${t}
`)}var oDe=Ae(iDe(),1);function qA(){return`@actions/artifact-${oDe.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"}},dh=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 Zg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ep=class extends Error{};ep.prototype.name="InvalidTokenError";function S_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 N_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 S_t(e)}catch{return atob(e)}}function aDe(t,e){if(typeof t!="string")throw new ep("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ep(`Invalid token specified: missing part #${r+1}`);let s;try{s=N_t(n)}catch(i){throw new ep(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ep(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var R_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function YA(){let t=T_(),e=aDe(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 cDe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Pa(r),Pa(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function ADe(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"&&cDe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&cDe(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())})},fj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=T_();this.baseUrl=YRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new bu(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(ADe(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(Zg.isUsageErrorMessage(A.msg))throw new Zg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof Zg)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);$(`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 VA(t){let e=new fj(qA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new x_(e)}import*as iC from"fs";import{normalize as uDe,resolve as lDe}from"path";function dDe(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&&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: ${b8e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield Q8e(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 N8e(){return ZC(this,arguments,void 0,function*(t=VRe()){return(yield sWt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield E8e.mkdir(t,{recursive:!0})),t})}var oWt=5,aWt=[400,401,403,404,422];function eI(t,e=oWt,r=aWt){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 T8e="6.0.0";function xp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}xp.VERSION=T8e;var D8e=Ae(x8e(),1),k8e=Ae(zO(),1),cWt="0.0.0-development";async function R8e(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 AWt(t,e,r,n){let s=new D8e.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(uWt.bind(null,t,e,r),n)}async function uWt(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 k8e.RequestError(s.data.errors[0].message,500,{request:n,response:s});return R8e(t,e,i,n)}return s}function Rp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",R8e.bind(null,r,t)),t.hook.wrap("request",AWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=cWt;var v8e=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 v8e(this,void 0,void 0,function*(){var i;let[o,a]=eI(df),c={log:void 0,userAgent:qA(),previews:void 0,retry:o,request:a},u=yield Ga(s,c,Rp,xp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new 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}
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],Te(`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 LFt(t){return vFt(this,void 0,void 0,function*(){var e;let r=$g(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Zg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Da.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new gm(`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],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 _8e(t){return v8e(this,void 0,void 0,function*(){var e;let r=VA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=YA(),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}
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((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],Te(`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?Ra.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}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())})};function PFt(t,e,r,n,s){return UFt(this,void 0,void 0,function*(){var i;let[o,a]=QT(sQ),A={log:void 0,userAgent:Xg(),previews:void 0,retry:o,request:a},c=Hd(s,A,Ky,jy),u=yield OK(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 hm(`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 _Ft(t){return UFt(this,void 0,void 0,function*(){let e=$g(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Zg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Da.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new gm(`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],Te(`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 fe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var OFt=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())})},HK=LIt(),qK=100,fyn=Math.ceil(HK/qK);function HFt(t,e,r,n){return OFt(this,arguments,void 0,function*(s,i,o,a,A=!1){fe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=QT(sQ),d={log:void 0,userAgent:Xg(),previews:void 0,retry:u,request:l},h=Hd(a,d,Ky,jy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:qK,page:g}),C=Math.ceil(p.total_count/qK),m=p.total_count;m>HK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${HK}. Results will be incomplete as only the first ${HK} artifacts will be returned`),C=fyn);for(let I of p.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(g++,g;g<=C;g++){Te(`Fetching page ${g} 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:qK,page:g});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=GFt(c)),fe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function qFt(){return OFt(this,arguments,void 0,function*(t=!1){let e=$g(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Zg(),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?Ra.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=GFt(o)),fe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function GFt(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 mP=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())})},pyn=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},Xy=class{uploadArtifact(e,r,n,s){return mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;return _2t(e,r,n,s)}catch(i){throw tr(`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],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 F8e=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 M8e(t,e,r,n,s){return F8e(this,void 0,void 0,function*(){var i;let[o,a]=eI(df),c={log:void 0,userAgent:qA(),previews:void 0,retry:o,request:a},A=Ga(s,c,Rp,xp),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 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 L8e(t){return F8e(this,void 0,void 0,function*(){let e=VA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=YA(),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 $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var U8e=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=zRe(),OM=100,lWt=Math.ceil(PM/OM);function P8e(t,e,r,n){return U8e(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]=eI(df),d={log:void 0,userAgent:qA(),previews:void 0,retry:u,request:l},h=Ga(a,d,Rp,xp),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=lWt);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=H8e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function O8e(){return U8e(this,arguments,void 0,function*(t=!1){let e=VA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=YA(),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=H8e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function H8e(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 E1=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())})},dWt=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},Dp=class{uploadArtifact(e,r,n,s){return E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;return L3e(e,r,n,s)}catch(i){throw Ve(`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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=pyn(r,["findBy"]);return SFt(e,n,s,i,o)}return RFt(e,r)}catch(n){throw tr(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=dWt(r,["findBy"]);return w8e(e,n,s,i,o)}return S8e(e,r)}catch(n){throw Ve(`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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return HFt(r,n,s,i,e?.latest)}return qFt(e?.latest)}catch(r){throw tr(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return P8e(r,n,s,i,e?.latest)}return O8e(e?.latest)}catch(r){throw Ve(`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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return OK(e,n,s,i,o)}return LFt(e)}catch(n){throw tr(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UM(e,n,s,i,o)}return _8e(e)}catch(n){throw Ve(`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 mP(this,void 0,void 0,function*(){try{if(ox())throw new dI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return PFt(e,i,n,s,o)}return _Ft(e)}catch(n){throw tr(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return M8e(e,i,n,s,o)}return L8e(e)}catch(n){throw Ve(`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 GAs=new Xy;import*as GK from"path";import kxe from"fs";var JFt="dependency-graph_";async function VFt(t){let e=t.getDependencyGraphOption();if(e==="disabled"){mi("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await Eyn(t);return}fe("Enabling dependency graph generation"),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),IA("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Qo.runId.toString()),IA("GITHUB_DEPENDENCY_GRAPH_REF",Qo.ref),IA("GITHUB_DEPENDENCY_GRAPH_SHA",Syn()),IA("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Gp()),IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),IA("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),IA("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),IA("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),IA("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),IA("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),IA("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),IA("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function IA(t,e){process.env[t]||e!==void 0&&mi(t,e)}async function WFt(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await YFt(t,!1);return;case"generate-submit-and-upload":await YFt(t,!0);return;case"generate-and-upload":await Cyn(t)}}catch(r){jFt(t,e,r)}}async function Eyn(t){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}try{await zFt(await Iyn(t))}catch(e){jFt(t,"download-and-submit",e)}}async function YFt(t,e){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}let r=await Fxe();try{await zFt(r)}catch(n){try{await Txe(r,t)}catch(s){fe(String(s))}throw n}e&&await Txe(r,t)}async function Cyn(t){if(vxe()){fe("Dependency graph not supported in the ACT environment.");return}await Txe(await Fxe(),t)}async function Iyn(t){let e=Qo.payload.workflow_run?{token:P6(),workflowRunId:Qo.payload.workflow_run.id,repositoryName:Qo.repo.repo,repositoryOwner:Qo.repo.owner}:void 0,r=new Xy,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(JFt)),s=t.getDownloadArtifactName();s&&(fe(`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});fe(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Fxe()}async function Fxe(){let r=(await(await aC(`${yyn()}/**/*.json`)).glob()).filter(n=>!byn(n));return r.forEach(wyn),fe(`Found dependency graph files: ${r.join(", ")}`),r}async function Txe(t,e){if(t.length===0){fe("No dependency graph files found to upload.");return}let r=Gp(),n=new Xy;for(let s of t){let i=Mxe(s);fe(`Uploading dependency graph file: ${i}`);let o=`${JFt}${GK.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zFt(t){if(t.length===0){fe("No dependency graph files found to submit.");return}for(let e of t)try{await Qyn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Byn(e,r)),r}}function Byn(t,e){let n=`Dependency submission failed for ${Mxe(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 MDr=new Dp;import*as HM from"path";import uZ from"fs";var q8e="dependency-graph_";async function Y8e(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 fWt(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",bWt()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",qu()),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 V8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await G8e(t,!1);return;case"generate-submit-and-upload":await G8e(t,!0);return;case"generate-and-upload":await gWt(t)}}catch(r){J8e(t,e,r)}}async function fWt(t){if(hZ()){$("Dependency graph not supported in the ACT environment.");return}try{await W8e(await pWt(t))}catch(e){J8e(t,"download-and-submit",e)}}async function G8e(t,e){if(hZ()){$("Dependency graph not supported in the ACT environment.");return}let r=await lZ();try{await W8e(r)}catch(n){try{await AZ(r,t)}catch(s){$(String(s))}throw n}e&&await AZ(r,t)}async function gWt(t){if(hZ()){$("Dependency graph not supported in the ACT environment.");return}await AZ(await lZ(),t)}async function pWt(t){let e=ri.payload.workflow_run?{token:KD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new Dp,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(q8e)),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 lZ()}async function lZ(){let r=(await(await HG(`${CWt()}/**/*.json`)).glob()).filter(n=>!IWt(n));return r.forEach(yWt),$(`Found dependency graph files: ${r.join(", ")}`),r}async function AZ(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=qu(),n=new Dp;for(let s of t){let i=dZ(s);$(`Uploading dependency graph file: ${i}`);let o=`${q8e}${HM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function W8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await EWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=mWt(e,r)),r}}function mWt(t,e){let n=`Dependency submission failed for ${dZ(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 Qyn(t){let e=Nyn(),r=kxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Qo.repo.owner,n.repo=Qo.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Mxe(t);APe(`Submitted ${i}: ${s.data.message}`)}function yyn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function byn(t){let e=`${t}.processed`;return kxe.existsSync(e)}function wyn(t){let e=`${t}.processed`;kxe.writeFileSync(e,"")}function jFt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new KQ(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function Nyn(){return Hd(P6())}function Mxe(t){let e=Gp();return GK.relative(e,t)}function Syn(){let t=Qo;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 vxe(){return process.env.ACT!==void 0}function Lxe(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(Dyn(o[1],o[6],o[0]));while(o!==null);return i}function Dyn(){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}}async function xyn(){try{Ost("gradle/actions/dependency-submission"),await xIt(new YR,new qd,new U6);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new M6;if(await VFt(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new L6,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function EWt(t){let e=BWt(),r=uZ.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=dZ(t);Yce(`Submitted ${i}: ${s.data.message}`)}function CWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function IWt(t){let e=`${t}.processed`;return uZ.existsSync(e)}function yWt(t){let e=`${t}.processed`;uZ.writeFileSync(e,"")}function J8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new zg(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function BWt(){return Ga(KD())}function dZ(t){let e=qu();return HM.relative(e,t)}function bWt(){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 hZ(){return process.env.ACT!==void 0}function fZ(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(wWt(o[1],o[6],o[0]));while(o!==null);return i}function wWt(){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 SWt(t=process.platform){return t==="win32"?50:0}async function z8e(t=process.platform){let e=SWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function NWt(){try{t0e("gradle/actions/dependency-submission"),await eRe(new O0,new Wo,new zD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new VD;if(await Y8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new JD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
${n}
${s}
`,o=Lxe(i);await yat(r.getGradleVersion(),r.getBuildRootDirectory(),o),await WFt(e),mi("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Ust()}catch(t){RIt(t)}process.exit()}xyn();export{xyn as run};
`,o=fZ(i);await qRe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await V8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Zme()}catch(t){$xe(t)}await z8e()}NWt();export{NWt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,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", "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", "handler", "rState", "err", "i", "processHeader", "headeLine 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": ";s1BAAA,IAAAA,IAAAC,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,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,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,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 -346
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var p7e=Object.create;var $S=Object.defineProperty;var m7e=Object.getOwnPropertyDescriptor;var y7e=Object.getOwnPropertyNames;var b7e=Object.getPrototypeOf,w7e=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 D7e=(t,e)=>()=>(t&&(e=t(t=0)),e);var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nc=(t,e)=>{for(var r in e)$S(t,r,{get:e[r],enumerable:!0})},Oie=(t,e,r,A)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y7e(e))!w7e.call(t,s)&&s!==r&&$S(t,s,{get:()=>e[s],enumerable:!(A=m7e(e,s))||A.enumerable});return t};var zt=(t,e,r)=>(r=t!=null?p7e(b7e(t)):{},Oie(e||!t||!t.__esModule?$S(r,"default",{value:t,enumerable:!0}):r,t)),_r=t=>Oie($S({},"__esModule",{value:!0}),t);var Wie=h(pI=>{"use strict";var Dpr=B("net"),F7e=B("tls"),zG=B("http"),qie=B("https"),x7e=B("events"),Npr=B("assert"),U7e=B("util");pI.httpOverHttp=M7e;pI.httpsOverHttp=L7e;pI.httpOverHttps=v7e;pI.httpsOverHttps=_7e;function M7e(t){var e=new Rl(t);return e.request=zG.request,e}function L7e(t){var e=new Rl(t);return e.request=zG.request,e.createSocket=Jie,e.defaultPort=443,e}function v7e(t){var e=new Rl(t);return e.request=qie.request,e}function _7e(t){var e=new Rl(t);return e.request=qie.request,e.createSocket=Jie,e.defaultPort=443,e}function Rl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||zG.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(A,s,n,i){for(var o=Vie(s,n,i),a=0,c=e.requests.length;a<c;++a){var u=e.requests[a];if(u.host===o.host&&u.port===o.port){e.requests.splice(a,1),u.request.onSocket(A);return}}A.destroy(),e.removeSocket(A)})}U7e.inherits(Rl,x7e.EventEmitter);Rl.prototype.addRequest=function(e,r,A,s){var n=this,i=jG({request:e},n.options,Vie(r,A,s));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return}n.createSocket(i,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),e.onSocket(o);function a(){n.emit("free",o,i)}function c(u){n.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};Rl.prototype.createSocket=function(e,r){var A=this,s={};A.sockets.push(s);var n=jG({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),sd("making CONNECT request");var i=A.request(n);i.useChunkedEncodingByDefault=!1,i.once("response",o),i.once("upgrade",a),i.once("connect",c),i.once("error",u),i.end();function o(l){l.upgrade=!0}function a(l,g,d){process.nextTick(function(){c(l,g,d)})}function c(l,g,d){if(i.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){sd("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var E=new Error("tunneling socket could not be established, statusCode="+l.statusCode);E.code="ECONNRESET",e.request.emit("error",E),A.removeSocket(s);return}if(d.length>0){sd("got illegal response body from proxy"),g.destroy();var E=new Error("got illegal response body from proxy");E.code="ECONNRESET",e.request.emit("error",E),A.removeSocket(s);return}return sd("tunneling connection has established"),A.sockets[A.sockets.indexOf(s)]=g,r(g)}function u(l){i.removeAllListeners(),sd(`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),A.removeSocket(s)}};Rl.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var A=this.requests.shift();A&&this.createSocket(A,function(s){A.request.onSocket(s)})}};function Jie(t,e){var r=this;Rl.prototype.createSocket.call(r,t,function(A){var s=t.request.getHeader("host"),n=jG({},r.options,{socket:A,servername:s?s.replace(/:.*$/,""):t.host}),i=F7e.connect(0,n);r.sockets[r.sockets.indexOf(A)]=i,e(i)})}function Vie(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function jG(t){for(var e=1,r=arguments.length;e<r;++e){var A=arguments[e];if(typeof A=="object")for(var s=Object.keys(A),n=0,i=s.length;n<i;++n){var o=s[n];A[o]!==void 0&&(t[o]=A[o])}}return t}var sd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sd=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)}:sd=function(){};pI.debug=sd});var A1=h((Spr,zie)=>{zie.exports=Wie()});var Xr=h((Tpr,jie)=>{jie.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 Xt=h((kpr,Boe)=>{"use strict";var Kie=Symbol.for("undici.error.UND_ERR"),cA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Kie]===!0}[Kie]=!0},Xie=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),KG=class extends cA{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[Xie]===!0}[Xie]=!0},Zie=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),XG=class extends cA{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[Zie]===!0}[Zie]=!0},$ie=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),ZG=class extends cA{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[$ie]===!0}[$ie]=!0},eoe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),$G=class extends cA{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[eoe]===!0}[eoe]=!0},toe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),e8=class extends cA{constructor(e,r,A,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 eZe(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(_Xe.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function tZe(){return"allowed"}function rZe(){return"success"}function AZe(){return"success"}function sZe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function nZe(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&&Y8(t.origin)&&!Y8(Ly(t))&&(e=null);break;case"same-origin":b1(t,Ly(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function kI(t,e){return t}function iZe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:kI(t.domainLookupStartTime,r),domainLookupEndTime:kI(t.domainLookupEndTime,r),connectionStartTime:kI(t.connectionStartTime,r),connectionEndTime:kI(t.connectionEndTime,r),secureConnectionStartTime:kI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function oZe(t){return kI(YXe.now(),t)}function aZe(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 cZe(t){return{referrerPolicy:t.referrerPolicy}}function uZe(t){let e=t.referrerPolicy;SE(e);let r=null;if(t.referrer==="client"){let o=Rae();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=G8(r),s=G8(r,!0);A.toString().length>4096&&(A=s);let n=b1(t,A),i=My(A)&&!My(t.url);switch(e){case"origin":return s??G8(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=Ly(t);return b1(A,o)?A:My(A)&&!My(o)?"no-referrer":s}default:return i?"no-referrer":s}}function G8(t,e){return SE(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 My(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function lZe(t,e){if(y1===void 0)return!0;let r=Mae(e);if(r==="no metadata"||r.length===0)return!0;let A=dZe(r),s=hZe(r,A);for(let n of s){let i=n.algo,o=n.hash,a=y1.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),EZe(a,o))return!0}return!1}var gZe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Mae(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=gZe.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Tae.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function dZe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function hZe(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function EZe(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 fZe(t){}function b1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function CZe(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function IZe(t){return t.controller.state==="aborted"}function BZe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function QZe(t){return VXe[t.toLowerCase()]??t}function pZe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return SE(typeof e=="string"),e}var mZe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lae(t,e,r=0,A=1){class s{ Line truncated
`);function ZZe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function $Ze(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function e$e(t,e){D1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&N1(t,KZe,n)||n.position===t.length-4&&N1(t,XZe,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=t$e(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let E=t.indexOf(A.subarray(2),n.position);if(E===-1)return"failure";g=t.subarray(n.position,E-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",ZZe(u)||(u=""),d=new zZe([g],c,{type:u})):d=YZe(Buffer.from(g)),D1(zae(a)),D1(typeof d=="string"&&zae(d)||JZe(d)),s.push(VZe(a,d,c))}}function t$e(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=xI(o=>o!==10&&o!==13&&o!==58,t,e);if(i=K8(i,!0,!0,o=>o===9||o===32),!qZe.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,xI(o=>o===32||o===9,t,e),GZe(i)){case"content-disposition":{if(r=A=null,!N1(t,jZe,e)||(e.position+=17,r=Xae(t,e),r===null))return"failure";if(N1(t,Kae,e)){let o=e.position+Kae.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=Xae(t,e),A===null))return"failure"}break}case"content-type":{let o=xI(a=>a!==10&&a!==13,t,e);o=K8(o,!1,!0,a=>a===9||a===32),s=jae(o);break}case"content-transfer-encoding":{let o=xI(a=>a!==10&&a!==13,t,e);o=K8(o,!1,!0,a=>a===9||a===32),n=jae(o);break}default:xI(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Xae(t,e){D1(t[e.position-1]===34);let r=xI(A=>A!==10&&A!==13&&A!==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 xI(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function K8(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function N1(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}Zae.exports={multipartFormDataParser:e$e,validateBoundary:$Ze}});var LI=h((r0r,cce)=>{"use strict";var Py=bt(),{ReadableStreamFrom:r$e,isBlobLike:ece,isReadableStreamLike:A$e,readableStreamClose:s$e,createDeferredPromise:n$e,fullyReadBody:i$e,extractMimeType:o$e,utf8DecodeBytes:Ace}=Hi(),{FormData:tce}=_y(),{kState:MI}=nd(),{webidl:a$e}=Ps(),{Blob:c$e}=B("node:buffer"),X8=B("node:assert"),{isErrored:sce,isDisturbed:u$e}=B("node:stream"),{isArrayBuffer:l$e}=B("node:util/types"),{serializeAMimeType:g$e}=zn(),{multipartFormDataParser:d$e}=$ae(),Z8;try{let t=B("node:crypto");Z8=e=>t.randomInt(0,e)}catch{Z8=t=>Math.floor(Math.random(t))}var R1=new TextEncoder;function h$e(){}var nce=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ice;nce&&(ice=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!u$e(e)&&!sce(e)&&e.cancel("Response object has been garbage collected").catch(h$e)}));function oce(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ece(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?R1.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>s$e(a))},start(){},type:"bytes"}),X8(A$e(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(l$e(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(Py.isFormDataLike(t)){let a=`----formdata-undici-0${`${Z8(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let E=!1;for(let[Q,I]of t)if(typeof I=="string"){let p=R1.encode(c+`; name="${u(l(Q))}"\r
var rpe=Object.create;var bS=Object.defineProperty;var spe=Object.getOwnPropertyDescriptor;var npe=Object.getOwnPropertyNames;var ipe=Object.getPrototypeOf,ope=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),pi=(t,e)=>{for(var r in e)bS(t,r,{get:e[r],enumerable:!0})},ape=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of npe(e))!ope.call(t,n)&&n!==r&&bS(t,n,{get:()=>e[n],enumerable:!(s=spe(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?rpe(ipe(t)):{},ape(e||!t||!t.__esModule?bS(r,"default",{value:t,enumerable:!0}):r,t));var u5=E(fd=>{"use strict";var Not=w("net"),hpe=w("tls"),TS=w("http"),a5=w("https"),gpe=w("events"),Sot=w("assert"),fpe=w("util");fd.httpOverHttp=ppe;fd.httpsOverHttp=mpe;fd.httpOverHttps=Epe;fd.httpsOverHttps=Cpe;function ppe(t){var e=new ga(t);return e.request=TS.request,e}function mpe(t){var e=new ga(t);return e.request=TS.request,e.createSocket=A5,e.defaultPort=443,e}function Epe(t){var e=new ga(t);return e.request=a5.request,e}function Cpe(t){var e=new ga(t);return e.request=a5.request,e.createSocket=A5,e.defaultPort=443,e}function ga(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||TS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=c5(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)})}fpe.inherits(ga,gpe.EventEmitter);ga.prototype.addRequest=function(e,r,s,n){var i=this,o=xS({request:e},i.options,c5(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)}})};ga.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=xS({},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")),yA("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){yA("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){yA("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 yA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),yA(`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)}};ga.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 A5(t,e){var r=this;ga.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=xS({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=hpe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function c5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function xS(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 yA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?yA=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)}:yA=function(){};fd.debug=yA});var DS=E((xot,l5)=>{l5.exports=u5()});var mt=E((Dot,d5)=>{d5.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((Rot,v5)=>{"use strict";var h5=Symbol.for("undici.error.UND_ERR"),Et=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[h5]===!0}[h5]=!0},g5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),RS=class extends Et{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[g5]===!0}[g5]=!0},f5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),kS=class extends Et{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[f5]===!0}[f5]=!0},p5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FS=class extends Et{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[p5]===!0}[p5]=!0},m5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),MS=class extends Et{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[m5]===!0}[m5]=!0},E5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),US=class extends Et{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function U0e(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(C0e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function L0e(){return"allowed"}function v0e(){return"success"}function P0e(){return"success"}function O0e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _0e(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&&NT(t.origin)&&!NT(Of(t))&&(e=null);break;case"same-origin":DC(t,Of(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function wd(t,e){return t}function H0e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:wd(t.domainLookupStartTime,r),domainLookupEndTime:wd(t.domainLookupEndTime,r),connectionStartTime:wd(t.connectionStartTime,r),connectionEndTime:wd(t.connectionEndTime,r),secureConnectionStartTime:wd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function G0e(t){return wd(b0e.now(),t)}function Y0e(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 XH(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function q0e(t){return{referrerPolicy:t.referrerPolicy}}function V0e(t){let e=t.referrerPolicy;au(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=wT(r),n=wT(r,!0);s.toString().length>4096&&(s=n);let i=DC(t,s),o=Pf(s)&&!Pf(t.url);switch(e){case"origin":return n??wT(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=Of(t);return DC(s,a)?s:Pf(s)&&!Pf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function wT(t,e){return au(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 Pf(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 J0e(t,e){if(xC===void 0)return!0;let r=ZH(e);if(r==="no metadata"||r.length===0)return!0;let s=z0e(r),n=K0e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=xC.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)),j0e(A,a))return!0}return!1}var W0e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ZH(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=W0e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();WH.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function z0e(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 K0e(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 j0e(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 X0e(t){}function DC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Z0e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function $0e(t){return t.controller.state==="aborted"}function eEe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function tEe(t){return S0e[t.toLowerCase()]??t}function rEe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return au(typeof e=="string"),e}var sEe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function $H(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function FEe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function MEe(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 UEe(t,e){kC(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&&FC(t,REe,i)||i.position===t.length-4&&FC(t,kEe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=LEe(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",FEe(u)||(u=""),h=new xEe([d],c,{type:u})):h=bEe(Buffer.from(d)),kC(l9(A)),kC(typeof h=="string"&&l9(h)||NEe(h)),n.push(SEe(A,h,c))}}function LEe(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=Sd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=FT(o,!0,!0,a=>a===9||a===32),!wEe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sd(a=>a===32||a===9,t,e),QEe(o)){case"content-disposition":{if(r=s=null,!FC(t,DEe,e)||(e.position+=17,r=g9(t,e),r===null))return"failure";if(FC(t,h9,e)){let a=e.position+h9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=g9(t,e),s===null))return"failure"}break}case"content-type":{let a=Sd(A=>A!==10&&A!==13,t,e);a=FT(a,!1,!0,A=>A===9||A===32),n=d9(a);break}case"content-transfer-encoding":{let a=Sd(A=>A!==10&&A!==13,t,e);a=FT(a,!1,!0,A=>A===9||A===32),i=d9(a);break}default:Sd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function g9(t,e){kC(t[e.position-1]===34);let r=Sd(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 Sd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function FT(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 FC(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}f9.exports={multipartFormDataParser:UEe,validateBoundary:MEe}});var Dd=E((rat,N9)=>{"use strict";var Gf=De(),{ReadableStreamFrom:vEe,isBlobLike:m9,isReadableStreamLike:PEe,readableStreamClose:OEe,createDeferredPromise:_Ee,fullyReadBody:HEe,extractMimeType:GEe,utf8DecodeBytes:I9}=_s(),{FormData:E9}=Hf(),{kState:xd}=QA(),{webidl:YEe}=Sr(),{Blob:qEe}=w("node:buffer"),MT=w("node:assert"),{isErrored:B9,isDisturbed:VEe}=w("node:stream"),{isArrayBuffer:JEe}=w("node:util/types"),{serializeAMimeType:WEe}=cs(),{multipartFormDataParser:zEe}=p9(),UT;try{let t=w("node:crypto");UT=e=>t.randomInt(0,e)}catch{UT=t=>Math.floor(Math.random(t))}var MC=new TextEncoder;function KEe(){}var y9=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Q9;y9&&(Q9=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!VEe(e)&&!B9(e)&&e.cancel("Response object has been garbage collected").catch(KEe)}));function b9(t,e=!1){let r=null;t instanceof ReadableStream?r=t:m9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?MC.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>OEe(A))},start(){},type:"bytes"}),MT(PEe(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(JEe(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(Gf.isFormDataLike(t)){let A=`----formdata-undici-0${`${UT(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=MC.encode(c+`; name="${u(l(I))}"\r
\r
${l(I)}\r
`);g.push(p),n+=p.byteLength}else{let p=R1.encode(`${c}; name="${u(l(Q))}"`+(I.name?`; filename="${u(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=MC.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);g.push(p,I,d),typeof I.size=="number"?n+=p.byteLength+I.size+d.byteLength:E=!0}let C=R1.encode(`--${a}--\r
`);g.push(C),n+=C.byteLength,E&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(ece(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Py.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:r$e(t)}if((typeof s=="string"||Py.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(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(!sce(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:s,length:n},i]}function E$e(t,e=!1){return t instanceof ReadableStream&&(X8(!Py.isDisturbed(t),"The body has already been consumed."),X8(!t.locked,"The stream is locked.")),oce(t,e)}function f$e(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function C$e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function I$e(t){return{blob(){return UI(this,r=>{let A=rce(this);return A===null?A="":A&&(A=g$e(A)),new c$e([r],{type:A})},t)},arrayBuffer(){return UI(this,r=>new Uint8Array(r).buffer,t)},text(){return UI(this,Ace,t)},json(){return UI(this,Q$e,t)},formData(){return UI(this,r=>{let A=rce(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=d$e(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new tce;return n[MI]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new tce;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return UI(this,r=>new Uint8Array(r),t)}}}function B$e(t){Object.assign(t.prototype,I$e(t))}async function UI(t,e,r){if(a$e.brandCheck(t,r),ace(t))throw new TypeError("Body is unusable: Body has already been read");C$e(t[MI]);let A=n$e(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[MI].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await i$e(t[MI].body,n,s),A.promise)}function ace(t){let e=t[MI].body;return e!=null&&(e.stream.locked||Py.isDisturbed(e.stream))}function Q$e(t){return JSON.parse(Ace(t))}function rce(t){let e=t[MI].headersList,r=o$e(e);return r==="failure"?null:r}cce.exports={extractBody:oce,safelyExtractBody:E$e,cloneBody:f$e,mixinBody:B$e,streamRegistry:ice,hasFinalizationRegistry:nce,bodyUnusable:ace}});var Qce=h((A0r,Bce)=>{"use strict";var ze=B("node:assert"),ot=bt(),{channels:uce}=yI(),$8=U8(),{RequestContentLengthMismatchError:TE,ResponseContentLengthMismatchError:p$e,RequestAbortedError:fce,HeadersTimeoutError:m$e,HeadersOverflowError:y$e,SocketError:U1,InformationalError:vI,BodyTimeoutError:b$e,HTTPParserError:w$e,ResponseExceededMaxSizeError:D$e}=Xt(),{kUrl:Cce,kReset:jn,kClient:A3,kParser:IA,kBlocking:Gy,kRunning:Zs,kPending:N$e,kSize:lce,kWriting:od,kQueue:ic,kNoRef:Oy,kKeepAliveDefaultTimeout:R$e,kHostHeader:S$e,kPendingIdx:T$e,kRunningIdx:Ho,kError:Go,kPipelining:F1,kSocket:_I,kKeepAliveTimeoutValue:M1,kMaxHeadersSize:e3,kKeepAliveMaxTimeout:k$e,kKeepAliveTimeoutThreshold:F$e,kHeadersTimeout:x$e,kBodyTimeout:U$e,kStrictContentLength:s3,kMaxRequests:gce,kCounter:M$e,kMaxResponseSize:L$e,kOnError:v$e,kResume:id,kHTTPContext:Ice}=Xr(),ru=iae(),_$e=Buffer.alloc(0),S1=Buffer[Symbol.species],T1=ot.addListener,P$e=ot.removeAllListeners,t3;async function O$e(){let t=process.env.JEST_WORKER_ID?v8():void 0,e;try{e=await WebAssembly.compile(cae())}catch{e=await WebAssembly.compile(t||v8())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onStatus(new S1(Au.buffer,n,s))||0},wasm_on_message_begin:r=>(ze(as.ptr===r),as.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onHeaderField(new S1(Au.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onHeaderValue(new S1(Au.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(ze(as.ptr===r),as.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{ze(as.ptr===r);let n=A-su+Au.byteOffset;return as.onBody(new S1(Au.buffer,n,s))||0},wasm_on_message_complete:r=>(ze(as.ptr===r),as.onMessageComplete()||0)}})}var r3=null,n3=O$e();n3.catch();var as=null,Au=null,k1=0,su=null,H$e=0,Hy=1,PI=2|Hy,x1=4|Hy,i3=8|H$e,o3=class{constructor(e,r,{exports:A}){ze(Number.isFinite(e[e3])&&e[e3]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(ru.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"?C+=`host: ${s}\r
`:C+=t[S$e],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:t[F1]&&!d[jn]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let I=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)C+=`${I}: ${p[w]}\r
`;else C+=`${I}: ${p}\r
`}return uce.sendHeaders.hasSubscribers&&uce.sendHeaders.publish({request:e,headers:C,socket:d}),!a||g===0?hce(E,null,t,e,d,u,C,l):ot.isBuffer(a)?hce(E,a,t,e,d,u,C,l):ot.isBlobLike(a)?typeof a.stream=="function"?Ece(E,a.stream(),t,e,d,u,C,l):W$e(E,a,t,e,d,u,C,l):ot.isStream(a)?V$e(E,a,t,e,d,u,C,l):ot.isIterable(a)?Ece(E,a,t,e,d,u,C,l):ze(!1),!0}function V$e(t,e,r,A,s,n,i,o){ze(n!==0||r[Zs]===0,"stream body cannot be pipelined");let a=!1,c=new L1({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ot.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let E=new fce;queueMicrotask(()=>d(E))}},d=function(E){if(!a){if(a=!0,ze(s.destroyed||s[od]&&r[Zs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ot.destroy(e,E):ot.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function hce(t,e,r,A,s,n,i,o){try{e?ot.isBuffer(e)&&(ze(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[jn]=!0)):n===0?s.write(`${i}content-length: 0\r
\r
`,"latin1"):(ze(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[id]()}catch(a){t(a)}}async function W$e(t,e,r,A,s,n,i,o){ze(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new TE;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[jn]=!0),r[id]()}catch(a){t(a)}}async function Ece(t,e,r,A,s,n,i,o){ze(n!==0||r[Zs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{ze(a===null),s[Go]?d(s[Go]):a=g});s.on("close",c).on("drain",c);let l=new L1({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Go])throw s[Go];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var L1=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[od]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[s3])throw new TE;process.emitWarning(new TE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[jn]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[IA].timeout&&r[IA].timeoutType===PI&&r[IA].timeout.refresh&&r[IA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[od]=!1,e[Go])throw e[Go];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[s3])throw new TE;process.emitWarning(new TE)}e[IA].timeout&&e[IA].timeoutType===PI&&e[IA].timeout.refresh&&e[IA].timeout.refresh(),A[id]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[od]=!1,e&&(ze(A[Zs]<=1,"pipeline should only contain this request"),s(e))}};Bce.exports=G$e});var Rce=h((s0r,Nce)=>{"use strict";var Yo=B("node:assert"),{pipeline:z$e}=B("node:stream"),Tt=bt(),{RequestContentLengthMismatchError:a3,RequestAbortedError:pce,SocketError:Yy,InformationalError:c3}=Xt(),{kUrl:v1,kReset:P1,kClient:OI,kRunning:O1,kPending:j$e,kQueue:ad,kPendingIdx:u3,kRunningIdx:oc,kError:cc,kSocket:Is,kStrictContentLength:K$e,kOnError:l3,kMaxConcurrentStreams:Dce,kHTTP2Session:ac,kResume:cd,kSize:X$e,kHTTPContext:Z$e}=Xr(),Ul=Symbol("open streams"),mce,yce=!1,_1;try{_1=B("node:http2")}catch{_1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$$e,HTTP2_HEADER_METHOD:eet,HTTP2_HEADER_PATH:tet,HTTP2_HEADER_SCHEME:ret,HTTP2_HEADER_CONTENT_LENGTH:Aet,HTTP2_HEADER_EXPECT:set,HTTP2_HEADER_STATUS:net}}=_1;function iet(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function oet(t,e){t[Is]=e,yce||(yce=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_1.connect(t[v1],{createConnection:()=>e,peerMaxConcurrentStreams:t[Dce]});r[Ul]=0,r[OI]=t,r[Is]=e,Tt.addListener(r,"error",cet),Tt.addListener(r,"frameError",uet),Tt.addListener(r,"end",get),Tt.addListener(r,"goaway",det),Tt.addListener(r,"close",function(){let{[OI]:s}=this,{[Is]:n}=s,i=this[Is][cc]||this[cc]||new Yy("closed",Tt.getSocketInfo(n));if(s[ac]=null,s.destroyed){Yo(s[j$e]===0);let o=s[ad].splice(s[oc]);for(let a=0;a<o.length;a++){let c=o[a];Tt.errorRequest(s,c,i)}}}),r.unref(),t[ac]=r,e[ac]=r,Tt.addListener(e,"error",function(s){Yo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cc]=s,this[OI][l3](s)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Yy("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let s=this[cc]||new Yy("closed",Tt.getSocketInfo(this));t[Is]=null,this[ac]!=null&&this[ac].destroy(s),t[u3]=t[oc],Yo(t[O1]===0),t.emit("disconnect",t[v1],[t],s),t[cd]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Eet(t,...s)},resume(){aet(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function aet(t){let e=t[Is];e?.destroyed===!1&&(t[X$e]===0&&t[Dce]===0?(e.unref(),t[ac].unref()):(e.ref(),t[ac].ref()))}function cet(t){Yo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Is][cc]=t,this[OI][l3](t)}function uet(t,e,r){if(r===0){let A=new c3(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Is][cc]=A,this[OI][l3](A)}}function get(){let t=new Yy("other side closed",Tt.getSocketInfo(this[Is]));this.destroy(t),Tt.destroy(this[Is],t)}function det(t){let e=this[cc]||new Yy(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[OI];if(r[Is]=null,r[Z$e]=null,this[ac]!=null&&(this[ac].destroy(e),this[ac]=null),Tt.destroy(this[Is],e),r[oc]<r[ad].length){let A=r[ad][r[oc]];r[ad][r[oc]++]=null,Tt.errorRequest(r,A,e),r[u3]=r[oc]}Yo(r[O1]===0),r.emit("disconnect",r[v1],[r],e),r[cd]()}function het(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Eet(t,e){let r=t[ac],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:E}=t[v1];l[$$e]=n||`${d}${E?`:${E}`:""}`,l[eet]=A;let C=k=>{e.aborted||e.completed||(k=k||new pce,Tt.errorRequest(t,e,k),g!=null&&Tt.destroy(g,k),Tt.destroy(u,k),t[ad][t[oc]++]=null,t[cd]())};try{e.onConnect(C)}catch(k){Tt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[Ul],t[ad][t[oc]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[Ul],t[ad][t[oc]++]=null}),g.once("close",()=>{r[Ul]-=1,r[Ul]===0&&r.unref()}),!0;l[tet]=s,l[ret]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let I=Tt.bodyLength(u);if(Tt.isFormDataLike(u)){mce??=LI().extractBody;let[k,J]=mce(u);l["content-type"]=J,u=k.stream,I=k.length}if(I==null&&(I=e.contentLength),(I===0||!Q)&&(I=null),het(A)&&I>0&&e.contentLength!=null&&e.contentLength!==I){if(t[K$e])return Tt.errorRequest(t,e,new a3),!1;process.emitWarning(new a3)}I!=null&&(Yo(u,"no body must not have content length"),l[Aet]=`${I}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[set]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[Get]=a??3e5,this[Het]=s??3e5,this[Yet]=p??!0,this[qet]=k,this[E3]=j,this[ld]=null,this[jet]=$>-1?$:-1,this[Xet]=Ne??100,this[_A]=null,this[uc]=[],this[Ll]=0,this[lc]=0,this[Wy]=le=>C3(this,le),this[Ket]=le=>Oce(this,le)}get pipelining(){return this[q1]}set pipelining(e){this[q1]=e,this[Wy](!0)}get[Ky](){return this[uc].length-this[lc]}get[jy](){return this[lc]-this[Ll]}get[zy](){return this[uc].length-this[Ll]}get[Uet](){return!!this[_A]&&!this[GI]&&!this[_A].destroyed}get[h3](){return!!(this[_A]?.busy(null)||this[zy]>=(Pce(this)||1)||this[Ky]>0)}[xet](e){Hce(this),this.once("connect",e)}[zet](e,r){let A=e.origin||this[iu].origin,s=new Det(A,e,r);return this[uc].push(s),this[FE]||(kE.bodyLength(s.body)==null&&kE.isIterable(s.body)?(this[FE]=1,queueMicrotask(()=>C3(this))):this[Wy](!0)),this[FE]&&this[gd]!==2&&this[h3]&&(this[gd]=2),this[gd]<2}async[Vet](){return new Promise(e=>{this[zy]?this[ld]=e:e(null)})}async[Wet](e){return new Promise(r=>{let A=this[uc].splice(this[lc]);for(let n=0;n<A.length;n++){let i=A[n];kE.errorRequest(this,i,e)}let s=()=>{this[ld]&&(this[ld](),this[ld]=null),r(null)};this[_A]?(this[_A].destroy(e,s),this[_A]=null):queueMicrotask(s),this[Wy]()})}},ett=Y1();function Oce(t,e){if(t[jy]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ml(t[lc]===t[Ll]);let r=t[uc].splice(t[Ll]);for(let A=0;A<r.length;A++){let s=r[A];kE.errorRequest(t,s,e)}Ml(t[zy]===0)}}async function Hce(t){Ml(!t[GI]),Ml(!t[_A]);let{host:e,hostname:r,protocol:A,port:s}=t[iu];if(r[0]==="["){let n=r.indexOf("]");Ml(n!==-1);let i=r.substring(1,n);Ml(_ce.isIP(i)),r=i}t[GI]=!0,HI.beforeConnect.hasSubscribers&&HI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[_A]?.version,servername:t[ud],localAddress:t[Vy]},connector:t[Jy]});try{let n=await new Promise((i,o)=>{t[Jy]({host:e,hostname:r,protocol:A,port:s,servername:t[ud],localAddress:t[Vy]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){kE.destroy(n.on("error",Lce),new Tet);return}Ml(n);try{t[_A]=n.alpnProtocol==="h2"?await $et(t,n):await Zet(t,n)}catch(i){throw n.destroy().on("error",Lce),i}t[GI]=!1,n[Jet]=0,n[E3]=t[E3],n[Fet]=t,n[Let]=null,HI.connected.hasSubscribers&&HI.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[_A]?.version,servername:t[ud],localAddress:t[Vy]},connector:t[Jy],socket:n}),t.emit("connect",t[iu],[t])}catch(n){if(t.destroyed)return;if(t[GI]=!1,HI.connectError.hasSubscribers&&HI.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[_A]?.version,servername:t[ud],localAddress:t[Vy]},connector:t[Jy],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ml(t[jy]===0);t[Ky]>0&&t[uc][t[lc]].servername===t[ud];){let i=t[uc][t[lc]++];kE.errorRequest(t,i,n)}else Oce(t,n);t.emit("connectionError",t[iu],[t],n)}t[Wy]()}function vce(t){t[gd]=0,t.emit("drain",t[iu],[t])}function C3(t,e){t[FE]!==2&&(t[FE]=2,ttt(t,e),t[FE]=0,t[Ll]>256&&(t[uc].splice(0,t[Ll]),t[lc]-=t[Ll],t[Ll]=0))}function ttt(t,e){for(;;){if(t.destroyed){Ml(t[Ky]===0);return}if(t[ld]&&!t[zy]){t[ld](),t[ld]=null;return}if(t[_A]&&t[_A].resume(),t[h3])t[gd]=2;else if(t[gd]===2){e?(t[gd]=1,queueMicrotask(()=>vce(t))):vce(t);continue}if(t[Ky]===0||t[jy]>=(Pce(t)||1))return;let r=t[uc][t[lc]];if(t[iu].protocol==="https:"&&t[ud]!==r.servername){if(t[jy]>0)return;t[ud]=r.servername,t[_A]?.destroy(new Ret("servername changed"),()=>{t[_A]=null,C3(t)})}if(t[GI])return;if(!t[_A]){Hce(t);return}if(t[_A].destroyed||t[_A].busy(r))return;!r.aborted&&t[_A].write(r)?t[lc]++:t[uc].splice(t[lc],1)}}Gce.exports=f3});var I3=h((c0r,Yce)=>{"use strict";var J1=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)}};Yce.exports=class{constructor(){this.head=this.tail=new J1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new J1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Jce=h((u0r,qce)=>{var{kFree:rtt,kConnected:Att,kPending:stt,kQueued:ntt,kRunning:itt,kSize:ott}=Xr(),xE=Symbol("pool"),B3=class{constructor(e){this[xE]=e}get connected(){return this[xE][Att]}get free(){return this[xE][rtt]}get pending(){return this[xE][stt]}get queued(){return this[xE][ntt]}get running(){return this[xE][itt]}get size(){return this[xE][ott]}};qce.exports=B3});var w3=h((l0r,tue)=>{"use strict";var att=NI(),ctt=I3(),{kConnected:Q3,kSize:Vce,kRunning:Wce,kPending:zce,kQueued:Xy,kBusy:utt,kFree:ltt,kUrl:gtt,kClose:dtt,kDestroy:htt,kDispatch:Ett}=Xr(),ftt=Jce(),Kn=Symbol("clients"),bn=Symbol("needDrain"),Zy=Symbol("queue"),p3=Symbol("closed resolve"),m3=Symbol("onDrain"),jce=Symbol("onConnect"),Kce=Symbol("onDisconnect"),Xce=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};oge.exports=wY});var cT=h((P0r,gge)=>{"use strict";var cge=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:GAt}=Xt(),YAt=JI();lge()===void 0&&uge(new YAt);function uge(t){if(!t||typeof t.dispatch!="function")throw new GAt("Argument agent must implement Agent");Object.defineProperty(globalThis,cge,{value:t,writable:!0,enumerable:!1,configurable:!1})}function lge(){return globalThis[cge]}gge.exports={setGlobalDispatcher:uge,getGlobalDispatcher:lge}});var uT=h((H0r,dge)=>{"use strict";dge.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 Ege=h((G0r,hge)=>{"use strict";var qAt=G1();hge.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new qAt(r,i,s,n);return r(o,a)}}});var Cge=h((Y0r,fge)=>{"use strict";var JAt=$1();fge.exports=t=>e=>function(A,s){return e(A,new JAt({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var Bge=h((q0r,Ige)=>{"use strict";var VAt=bt(),{InvalidArgumentError:WAt,RequestAbortedError:zAt}=Xt(),jAt=uT(),DY=class extends jAt{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new WAt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=VAt.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new zAt(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function KAt({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new DY({maxSize:n},s);return e(A,i)}}Ige.exports=KAt});var mge=h((J0r,pge)=>{"use strict";var{isIP:XAt}=B("node:net"),{lookup:ZAt}=B("node:dns"),$At=uT(),{InvalidArgumentError:tB,InformationalError:est}=Xt(),Qge=Math.pow(2,31)-1,NY=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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new est("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){ZAt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===Qge?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===Qge?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new RY(this,e,r)}},RY=class extends $At{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":tEe(n)&&(r[s]=n);break;case"id":rEe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&tEe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&rEe(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}}};AEe.exports={EventSourceStream:d4}});var gEe=h((mmr,lEe)=>{"use strict";var{pipeline:aat}=B("node:stream"),{fetching:cat}=lb(),{makeRequest:uat}=sB(),{webidl:Hl}=Ps(),{EventSourceStream:lat}=sEe(),{parseMIMEType:gat}=zn(),{createFastMessageEvent:dat}=uB(),{isNetworkError:nEe}=cb(),{delay:hat}=l4(),{kEnumerableProperty:zE}=bt(),{environmentSettingsObject:iEe}=Hi(),oEe=!1,aEe=3e3,yb=0,cEe=1,bb=2,Eat="anonymous",fat="use-credentials",EB=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=yb;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Hl.util.markAsUncloneable(this);let A="EventSource constructor";Hl.argumentLengthCheck(arguments,1,A),oEe||(oEe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hl.converters.USVString(e,A,"url"),r=Hl.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:aEe};let s=iEe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Eat;r.withCredentials&&(i=fat,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=iEe.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=uat(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===bb)return;this.#A=yb;let e={request:this.#s,dispatcher:this.#o},r=A=>{nEe(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(nEe(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?gat(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=cEe,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new lat({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(dat(a.type,a.options))}});aat(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=cat(e)}async#c(){this.#A!==bb&&(this.#A=yb,this.dispatchEvent(new Event("error")),await hat(this.#i.reconnectionTime),this.#A===yb&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){Hl.brandCheck(this,t),this.#A!==bb&&(this.#A=bb,this.#n.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}},uEe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:yb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:cEe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bb,writable:!1}};Object.defineProperties(EB,uEe);Object.defineProperties(EB.prototype,uEe);Object.defineProperties(EB.prototype,{close:zE,onerror:zE,onmessage:zE,onopen:zE,readyState:zE,url:zE,withCredentials:zE});Hl.converters.EventSourceInitDict=Hl.dictionaryConverter([{key:"withCredentials",converter:Hl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hl.converters.any}]);lEe.exports={EventSource:EB,defaultReconnectionTime:aEe}});var fEe=h((ymr,Ze)=>{"use strict";var Cat=YI(),dEe=Sy(),Iat=qI(),Bat=uue(),Qat=JI(),pat=_3(),mat=Uue(),yat=Oue(),hEe=Xt(),ZT=bt(),{InvalidArgumentError:XT}=hEe,fB=Dle(),bat=ky(),wat=BY(),Dat=age(),Nat=mY(),Rat=iY(),Sat=$1(),{getGlobalDispatcher:EEe,setGlobalDispatcher:Tat}=cT(),kat=uT(),Fat=G1(),xat=Y1();Object.assign(dEe.prototype,fB);Ze.exports.Dispatcher=dEe;Ze.exports.Client=Cat;Ze.exports.Pool=Iat;Ze.exports.BalancedPool=Bat;Ze.exports.Agent=Qat;Ze.exports.ProxyAgent=pat;Ze.exports.EnvHttpProxyAgent=mat;Ze.export Line truncated
\r
`),wut=/\r\n/g,Dut=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function QB(t){dfe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=gfe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=gfe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new yut(but),this.ss.on("info",function(r,A,s,n){A&&!e.maxed&&(e.nread+n-s>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-s,e.buffer+=A.toString("binary",s,n)),r&&e._finish()})}mut(QB,dfe);QB.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};QB.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};QB.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};QB.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(wut),e=t.length,r,A;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&A){this.header[A][this.header[A].length-1]+=t[s];continue}let n=t[s].indexOf(":");if(n===-1||n===0)return;if(r=Dut.exec(t[s]),A=r[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};hfe.exports=QB});var tq=h((Eyr,Cfe)=>{"use strict";var eq=B("node:stream").Writable,Nut=B("node:util").inherits,Rut=Z4(),ffe=ufe(),Sut=Efe(),Tut=45,kut=Buffer.from("-"),Fut=Buffer.from(`\r
`),xut=function(){};function fc(t){if(!(this instanceof fc))return new fc(t);if(eq.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Sut(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}Nut(fc,eq);fc.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else eq.prototype.emit.apply(this,arguments)};fc.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new ffe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let A=this._hparser.push(t);if(!this._inHeader&&A!==void 0&&A<t.length)t=t.slice(A);else return r()}this._firstWrite&&(this._bparser.push(Fut),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};fc.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};fc.prototype.setBoundary=function(t){let e=this;this._bparser=new Rut(`\r
--`+t),this._bparser.on("info",function(r,A,s,n){e._oninfo(r,A,s,n)})};fc.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",xut),this._part.resume())};fc.prototype._oninfo=function(t,e,r,A){let s,n=this,i=0,o,a=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+i<A;)if(e[r+i]===Tut)++i,++this._dashes;else{this._dashes&&(s=kut),this._dashes=0;break}if(this._dashes===2&&(r+i<A&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+i,A)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new ffe(this._partOpts),this._part._read=function(c){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<A&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(a=this._part.push(s)),a=this._part.push(e.slice(r,A)),a||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),o=this._hparser.push(e.slice(r,A)),!this._inHeader&&o!==void 0&&o<A&&this._oninfo(!1,e,r+o,A))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==A&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};fc.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Cfe.exports=fc});var dk=h((rq,Qfe)=>{"use strict";var Ife=new TextDecoder("utf-8"),Bfe=new Map([["utf-8",Ife],["utf8",Ife]]);function Uut(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return Tb.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return Tb.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return Tb.utf16le;case"base64":return Tb.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return Tb.other.bind(t)}}var Tb={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),Bfe.has(rq.toString()))try{return Bfe.get(rq).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function Mut(t,e,r){return t&&Uut(r)(t,e)}Qfe.exports=Mut});var sq=h((fyr,wfe)=>{"use strict";var hk=dk(),pfe=/%[a-fA-F0-9][a-fA-F0-9]/g,Lut={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function Mlt(t,e){let{headersList:r}=e,A=(r.get("referrer-policy")??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(plt.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function Llt(){return"allowed"}function vlt(){return"success"}function _lt(){return"success"}function Plt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function Olt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&gq(t.origin)&&!gq(xb(t))&&(e=null);break;case"same-origin":Bk(t,xb(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function Hlt(t){return blt.now()}function Glt(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 Ylt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function qlt(t){return{referrerPolicy:t.referrerPolicy}}function Jlt(t){let e=t.referrerPolicy;wB(e);let r=null;if(t.referrer==="client"){let o=ylt();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=uq(r),s=uq(r,!0);A.toString().length>4096&&(A=s);let n=Bk(t,A),i=Fb(A)&&!Fb(t.url);switch(e){case"origin":return s??uq(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=xb(t);return Bk(A,o)?A:Fb(A)&&!Fb(o)?"no-referrer":s}default:return i?"no-referrer":s}}function uq(t,e){return wB(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Fb(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function Vlt(t,e){if(Ik===void 0)return!0;let r=Zfe(e);if(r==="no metadata"||r.length===0)return!0;let A=zlt(r),s=jlt(r,A);for(let n of s){let i=n.algo,o=n.hash,a=Ik.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),Klt(a,o))return!0}return!1}var Wlt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Zfe(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=Wlt.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();zfe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function zlt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function jlt(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function Klt(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 Xlt(t){}function Bk(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Zlt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function $lt(t){return t.controller.state==="aborted"}function egt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var dq={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(dq,null);function tgt(t){return dq[t.toLowerCase()]??t}function rgt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wB(typeof e=="string"),e}var Agt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function sgt(t,e,r){let A={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:i,target:o}=A,a=o(),c=a.length;if(n>=c)return{value:void 0,done:!0};let u=a[n];return A.index=n+1,ngt(u,i)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,Agt),Object.setPrototypeOf({},s)}function ngt(t,e){let r;switch(e){case"key":{r=t[0];break}case"va Line truncated
`||t===" "||t===" "}function hq(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&nCe(t[A]);A++);if(r)for(;s>0&&nCe(t[s]);s--);return t.slice(A,s+1)}function iCe(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function bgt(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&iCe(t[A]);A++);if(r)for(;s>0&&iCe(t[s]);s--);return t.slice(A,s+1)}uCe.exports={dataURLProcessor:Qgt,URLSerializer:oCe,collectASequenceOfCodePoints:mk,collectASequenceOfCodePointsFast:DB,stringPercentDecode:aCe,parseMIMEType:Eq,collectAnHTTPQuotedString:cCe,serializeAMimeType:ygt}});var yk=h((Ryr,ECe)=>{"use strict";var{Blob:dCe,File:lCe}=B("buffer"),{types:fq}=B("util"),{kState:ji}=ql(),{isBlobLike:hCe}=Zo(),{webidl:nr}=Dn(),{parseMIMEType:wgt,serializeAMimeType:Dgt}=Cc(),{kEnumerableProperty:gCe}=Yt(),Ngt=new TextEncoder,Ub=class t extends dCe{constructor(e,r,A={}){nr.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=nr.converters["sequence<BlobPart>"](e),r=nr.converters.USVString(r),A=nr.converters.FilePropertyBag(A);let s=r,n=A.type,i;e:{if(n){if(n=wgt(n),n==="failure"){n="";break e}n=Dgt(n).toLowerCase()}i=A.lastModified}super(Rgt(e,A),{type:n}),this[ji]={name:s,lastModified:i,type:n}}get name(){return nr.brandCheck(this,t),this[ji].name}get lastModified(){return nr.brandCheck(this,t),this[ji].lastModified}get type(){return nr.brandCheck(this,t),this[ji].type}},Cq=class t{constructor(e,r,A={}){let s=r,n=A.type,i=A.lastModified??Date.now();this[ji]={blobLike:e,name:s,type:n,lastModified:i}}stream(...e){return nr.brandCheck(this,t),this[ji].blobLike.stream(...e)}arrayBuffer(...e){return nr.brandCheck(this,t),this[ji].blobLike.arrayBuffer(...e)}slice(...e){return nr.brandCheck(this,t),this[ji].blobLike.slice(...e)}text(...e){return nr.brandCheck(this,t),this[ji].blobLike.text(...e)}get size(){return nr.brandCheck(this,t),this[ji].blobLike.size}get type(){return nr.brandCheck(this,t),this[ji].blobLike.type}get name(){return nr.brandCheck(this,t),this[ji].name}get lastModified(){return nr.brandCheck(this,t),this[ji].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(Ub.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:gCe,lastModified:gCe});nr.converters.Blob=nr.interfaceConverter(dCe);nr.converters.BlobPart=function(t,e){if(nr.util.Type(t)==="Object"){if(hCe(t))return nr.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||fq.isAnyArrayBuffer(t))return nr.converters.BufferSource(t,e)}return nr.converters.USVString(t,e)};nr.converters["sequence<BlobPart>"]=nr.sequenceConverter(nr.converters.BlobPart);nr.converters.FilePropertyBag=nr.dictionaryConverter([{key:"lastModified",converter:nr.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:nr.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=nr.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Rgt(t,e){let r=[];for(let A of t)if(typeof A=="string"){let s=A;e.endings==="native"&&(s=Sgt(s)),r.push(Ngt.encode(s))}else fq.isAnyArrayBuffer(A)||fq.isTypedArray(A)?A.buffer?r.push(new Uint8Array(A.buffer,A.byteOffset,A.byteLength)):r.push(new Uint8Array(A)):hCe(A)&&r.push(A);return r}function Sgt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function Tgt(t){return lCe&&t instanceof lCe||t instanceof Ub||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}ECe.exports={File:Ub,FileLike:Cq,isFileLike:Tgt}});var wk=h((Syr,QCe)=>{"use strict";var{isBlobLike:bk,toUSVString:kgt,makeIterator:Iq}=Zo(),{kState:tn}=ql(),{File:BCe,FileLike:fCe,isFileLike:Fgt}=yk(),{webidl:hr}=Dn(),{Blob:xgt,File:Bq}=B("buffer"),CCe=Bq??BCe,NB=class t{constructor(e){if(e!==void 0)throw hr.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[tn]=[]}append(e,r,A=void 0){if(hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!bk(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=hr.converters.USVString(e),r=bk(r)?hr.converters.Blob(r,{strict:!1}):hr.converters.USVString(r),A=arguments.length===3?hr.converters.USVString(A):void 0;let s=ICe(e,r,A);this[tn].push(s)}delete(e){hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=hr.converters.USVString(e),this[tn]=this[tn].filter(r=>r.name!==e)}get(e){hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=hr.converters.USVString(e);let r=this[tn].findIndex(A=>A.name===e);return r===-1?null:this[tn][r].value}getAll(e){return hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=hr.converters.USVString(e),this[tn].filter(r=>r.name===e).map(r=>r.value)}has(e){return hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=hr.converters.USVString(e),this[tn].findIndex(r=>r.name===e)!==-1}set(e,r,A=void 0){if(hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!bk(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=hr.converters.USVString(e),r=bk(r)?hr.converters.Blob(r,{strict:!1}):hr.converters.USVString(r),A=arguments.length===3?kgt(A):void 0;let s=ICe(e,r,A),n=this[tn].findIndex(i=>i.name===e);n!==-1?this[tn]=[...this[tn].slice(0,n),s,...this[tn].slice(n+1).filter(i=>i.name!==e)]:this[tn].push(s)}entries(){return hr.brandCheck(this,t),Iq(()=>this[tn].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return hr.brandCheck(this,t),Iq(()=>this[tn].map(e=>[e.name,e.value]),"FormData","key")}values(){return hr.brandCheck(this,t),Iq(()=>this[tn].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(hr.brandCheck(this,t),hr.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[A,s]of this)e.apply(r,[s,A,this])}};NB.prototype[Symbol.iterator]=NB.prototype.entries;Object.defineProperties(NB.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function ICe(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(Fgt(e)||(e=e instanceof xgt?new CCe([e],"blob",{type:e.type}):new fCe(e,"blob",{type:e.type})),r!==void 0){let A={type:e.type,lastModified:e.lastModified};e=Bq&&e instanceof Bq||e instanceof BCe?new CCe([e],r,A):new fCe(e,r,A)}return{name:t,value:e}}QCe.exports={FormData:NB}});var Mb=h((Tyr,SCe)=>{"use strict";var Ugt=_fe(),RB=Yt(),{ReadableStreamFrom:Mgt,isBlobLike:pCe,isReadableStreamLike:Lgt,readableStreamClose:vgt,createDeferredPromise:_gt,fullyReadBody:Pgt}=Zo(),{FormData:mCe}=wk(),{kState:Vl}=ql(),{webidl:Qq}=Dn(),{DOMException:wCe,structuredClone:Ogt}=Sd(),{Blob:Hgt,File:Ggt}=B("buffer"),{kBodyUsed:Ygt}=Or(),pq=B("assert"),{isErrored:qgt}=Yt(),{isUint8Array:DCe,isArrayBuffer:Jgt}=B("util/types"),{File:Vgt}=yk(),{parseMIMEType:Wgt,serializeAMimeType:zgt}=Cc(),mq;try{let t=B("node:crypto");mq=e=>t.randomInt(0,e)}catch{mq=t=>Math.floor(Math.random(t))}var Jl=globalThis.ReadableStream,yCe=Ggt??Vgt,Dk=new TextEncoder,jgt=new TextDecoder;function NCe(t,e=!1){Jl||(Jl=B("stream/web").ReadableStream);let r=null;t instanceof Jl?r=t:pCe(t)?r=t.stream():r=new Jl({async pull(a){a.enqueue(typeof s=="string"?Dk.encode(s):s),queueMicrotask(()=>vgt(a))},start(){},type:void 0}),pq(Lgt(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(Jgt(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(RB.isFormDataLike(t)){let a=`----formdata-undici-0${`${mq(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let E=!1;for(let[Q,I]of t)if(typeof I=="string"){let p=Dk.encode(c+`; name="${u(l(Q))}"\r
\r
${l(I)}\r
`);g.push(p),n+=p.byteLength}else{let p=Dk.encode(`${c}; name="${u(l(Q))}"`+(I.name?`; filename="${u(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);g.push(p,I,d),typeof I.size=="number"?n+=p.byteLength+I.size+d.byteLength:E=!0}let C=Dk.encode(`--${a}--`);g.push(C),n+=C.byteLength,E&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i="multipart/form-data; boundary="+a}else if(pCe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof Jl?t:Mgt(t)}if((typeof s=="string"||RB.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new Jl({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();return l?queueMicrotask(()=>{c.close()}):qgt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await a.return()},type:void 0})}return[{stream:r,source:s,length:n},i]}function Kgt(t,e=!1){return Jl||(Jl=B("stream/web").ReadableStream),t instanceof Jl&&(pq(!RB.isDisturbed(t),"The body has already been consumed."),pq(!t.locked,"The stream is locked.")),NCe(t,e)}function Xgt(t){let[e,r]=t.stream.tee(),A=Ogt(r,{transfer:[r]}),[,s]=A.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*bCe(t){if(t)if(DCe(t))yield t;else{let e=t.stream;if(RB.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[Ygt]=!0,yield*e}}function yq(t){if(t.aborted)throw new wCe("The operation was aborted.","AbortError")}function Zgt(t){return{blob(){return Nk(this,r=>{let A=rdt(this);return A==="failure"?A="":A&&(A=zgt(A)),new Hgt([r],{type:A})},t)},arrayBuffer(){return Nk(this,r=>new Uint8Array(r).buffer,t)},text(){return Nk(this,RCe,t)},json(){return Nk(this,tdt,t)},async formData(){Qq.brandCheck(this,t),yq(this[Vl]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let A={};for(let[o,a]of this.headers)A[o.toLowerCase()]=a;let s=new mCe,n;try{n=new Ugt({headers:A,preservePath:!0})}catch(o){throw new wCe(`${o}`,"AbortError")}n.on("field",(o,a)=>{s.append(o,a)}),n.on("file",(o,a,c,u,l)=>{let g=[];if(u==="base64"||u.toLowerCase()==="base64"){let d="";a.on("data",E=>{d+=E.toString().replace(/[\r\n]/gm,"");let C=d.length-d.length%4;g.push(Buffer.from(d.slice(0,C),"base64")),d=d.slice(C)}),a.on("end",()=>{g.push(Buffer.from(d,"base64")),s.append(o,new yCe(g,c,{type:l}))})}else a.on("data",d=>{g.push(d)}),a.on("end",()=>{s.append(o,new yCe(g,c,{type:l}))})});let i=new Promise((o,a)=>{n.on("finish",o),n.on("error",c=>a(new TypeError(c)))});if(this.body!==null)for await(let o of bCe(this[Vl].body))n.write(o);return n.end(),await i,s}else if(/application\/x-www-form-urlencoded/.test(r)){let A;try{let n="",i=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of bCe(this[Vl].body)){if(!DCe(o))throw new TypeError("Expected Uint8Array chunk");n+=i.decode(o,{stream:!0})}n+=i.decode(),A=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let s=new mCe;for(let[n,i]of A)s.append(n,i);return s}else throw await Promise.resolve(),yq(this[Vl]),Qq.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function $gt(t){Object.assign(t.prototype,Zgt(t))}async function Nk(t,e,r){if(Qq.brandCheck(t,r),yq(t[Vl]),edt(t[Vl].body))throw new TypeError("Body is unusable");let A=_gt(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[Vl].body==null?(n(new Uint8Array),A.promise):(await Pgt(t[Vl].body,n,s),A.promise)}function edt(t){return t!=null&&(t.stream.locked||RB.isDisturbed(t.stream))}function RCe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),jgt.decode(t))}function tdt(t){return JSON.parse(RCe(t))}function rdt(t){let{headersList:e}=t[Vl],r=e.get("content-type");return r===null?"failure":Wgt(r)}SCe.exports={extractBody:NCe,safelyExtractBody:Kgt,cloneBody:Xgt,mixinBody:$gt}});var xCe=h((kyr,FCe)=>{"use strict";var{InvalidArgumentError:Sr,NotSupportedError:Adt}=br(),Wl=B("assert"),{kHTTP2BuildRequest:sdt,kHTTP2CopyHeaders:ndt,kHTTP1BuildRequest:idt}=Or(),ei=Yt(),TCe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,kCe=/[^\t\x20-\x7e\x80-\xff]/,odt=/[^\u0021-\u00ff]/,Ic=Symbol("handler"),ZA={},bq;try{let t=B("diagnostics_channel");ZA.create=t.channel("undici:request:create"),ZA.bodySent=t.channel("undici:request:bodySent"),ZA.headers=t.channel("undici:request:headers"),ZA.trailers=t.channel("undici:request:trailers"),ZA.error=t.channel("undici:request:error")}catch{ZA.create={hasSubscribers:!1},ZA.bodySent={hasSubscribers:!1},ZA.headers={hasSubscribers:!1},ZA.trailers={hasSubscribers:!1},ZA.error={hasSubscribers:!1}}var wq=class t{constructor(e,{path:r,method:A,body:s,headers:n,query:i,idempotent:o,blocking:a,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:g,throwOnError:d,expectContinue:E},C){if(typeof r!="string")throw new Sr("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("httpsLine truncated
`),this.body=Q.stream,this.contentLength=Q.length}else ei.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);ei.validateHandler(C,A,c),this.servername=ei.getServerName(this.host),this[Ic]=C,ZA.create.hasSubscribers&&ZA.create.publish({request:this})}onBodySent(e){if(this[Ic].onBodySent)try{return this[Ic].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(ZA.bodySent.hasSubscribers&&ZA.bodySent.publish({request:this}),this[Ic].onRequestSent)try{return this[Ic].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(Wl(!this.aborted),Wl(!this.completed),this.error)e(this.error);else return this.abort=e,this[Ic].onConnect(e)}onHeaders(e,r,A,s){Wl(!this.aborted),Wl(!this.completed),ZA.headers.hasSubscribers&&ZA.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Ic].onHeaders(e,r,A,s)}catch(n){this.abort(n)}}onData(e){Wl(!this.aborted),Wl(!this.completed);try{return this[Ic].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,A){return Wl(!this.aborted),Wl(!this.completed),this[Ic].onUpgrade(e,r,A)}onComplete(e){this.onFinally(),Wl(!this.aborted),this.completed=!0,ZA.trailers.hasSubscribers&&ZA.trailers.publish({request:this,trailers:e});try{return this[Ic].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),ZA.error.hasSubscribers&&ZA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Ic].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return Lb(this,e,r),this}static[idt](e,r,A){return new t(e,r,A)}static[sdt](e,r,A){let s=r.headers;r={...r,headers:null};let n=new t(e,r,A);if(n.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Sr("headers array must be even");for(let i=0;i<s.length;i+=2)Lb(n,s[i],s[i+1],!0)}else if(s&&typeof s=="object"){let i=Object.keys(s);for(let o=0;o<i.length;o++){let a=i[o];Lb(n,a,s[a],!0)}}else if(s!=null)throw new Sr("headers must be an object or an array");return n}static[ndt](e){let r=e.split(`\r
`),A={};for(let s of r){let[n,i]=s.split(": ");i==null||i.length===0||(A[n]?A[n]+=`,${i}`:A[n]=i)}return A}};function Af(t,e,r){if(e&&typeof e=="object")throw new Sr(`invalid ${t} header`);if(e=e!=null?`${e}`:"",kCe.exec(e)!==null)throw new Sr(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function Lb(t,e,r,A=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Sr(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(kCe.exec(r)!==null)throw new Sr(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Sr("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,A?t.headers[e]=Af(e,r,A):t.headers+=Af(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Sr("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Sr("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Sr("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Sr("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new Adt("expect header not supported");if(TCe.exec(e)===null)throw new Sr("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)A?t.headers[e]?t.headers[e]+=`,${Af(e,r[s],A)}`:t.headers[e]=Af(e,r[s],A):t.headers+=Af(e,r[s]);else A?t.headers[e]=Af(e,r,A):t.headers+=Af(e,r)}}}FCe.exports=wq});var Rk=h((Fyr,UCe)=>{"use strict";var adt=B("events"),Dq=class extends adt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};UCe.exports=Dq});var _b=h((xyr,MCe)=>{"use strict";var cdt=Rk(),{ClientDestroyedError:Nq,ClientClosedError:udt,InvalidArgumentError:SB}=br(),{kDestroy:ldt,kClose:gdt,kDispatch:Rq,kInterceptors:sf}=Or(),TB=Symbol("destroyed"),vb=Symbol("closed"),zl=Symbol("onDestroyed"),kB=Symbol("onClosed"),Sk=Symbol("Intercepted Dispatch"),Sq=class extends cdt{constructor(){super(),this[TB]=!1,this[zl]=null,this[vb]=!1,this[kB]=[]}get destroyed(){return this[TB]}get closed(){return this[vb]}get interceptors(){return this[sf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[sf][r]!="function")throw new SB("interceptor must be an function")}this[sf]=e}close(e){if(e===void 0)return new Promise((A,s)=>{this.close((n,i)=>n?s(n):A(i))});if(typeof e!="function")throw new SB("invalid callback");if(this[TB]){queueMicrotask(()=>e(new Nq,null));return}if(this[vb]){this[kB]?this[kB].push(e):queueMicrotask(()=>e(null,null));return}this[vb]=!0,this[kB].push(e);let r=()=>{let A=this[kB];this[kB]=null;for(let s=0;s<A.length;s++)A[s](null,null)};this[gdt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,n)=>{this.destroy(e,(i,o)=>i?n(i):s(o))});if(typeof r!="function")throw new SB("invalid callback");if(this[TB]){this[zl]?this[zl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Nq),this[TB]=!0,this[zl]=this[zl]||[],this[zl].push(r);let A=()=>{let s=this[zl];this[zl]=null;for(let n=0;n<s.length;n++)s[n](null,null)};this[ldt](e).then(()=>{queueMicrotask(A)})}[Sk](e,r){if(!this[sf]||this[sf].length===0)return this[Sk]=this[Rq],this[Rq](e,r);let A=this[Rq].bind(this);for(let s=this[sf].length-1;s>=0;s--)A=this[sf][s](A);return this[Sk]=A,A(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new SB("handler must be an object");try{if(!e||typeof e!="object")throw new SB("opts must be an object.");if(this[TB]||this[zl])throw new Nq;if(this[vb])throw new udt;return this[Sk](e,r)}catch(A){if(typeof r.onError!="function")throw new SB("invalid onError method");return r.onError(A),!1}}};MCe.exports=Sq});var Pb=h((Lyr,_Ce)=>{"use strict";var ddt=B("net"),LCe=B("assert"),vCe=Yt(),{InvalidArgumentError:hdt,ConnectTimeoutError:Edt}=br(),Tq,kq;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?kq=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let A=this._sessionCache.get(r);A!==void 0&&A.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:kq=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:A}=this._sessionCache.keys().next();this._sessionCache.delete(A)}this._sessionCache.set(e,r)}}};function fdt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:A,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new hdt("maxCachedSessions must be a positive integer or zero");let n={path:r,...s},i=new kq(e??100);return A=A??1e4,t=t??!1,function({h Line truncated
`,this[tIe]=a??3e5,this[eIe]=s??3e5,this[Jb]=p??!0,this[Vdt]=k,this[Vb]=j,this[kd]=null,this[AIe]=$>-1?$:-1,this[Bu]="h1",this[Xi]=null,this[vk]=Ne?{openStreams:0,maxConcurrentStreams:K??100}:null,this[sIe]=`${this[Gs].hostname}${this[Gs].port?`:${this[Gs].port}`:""}`,this[Hr]=[],this[Gr]=0,this[Ki]=0}get pipelining(){return this[xd]}set pipelining(e){this[xd]=e,Zi(this,!0)}get[af](){return this[Hr].length-this[Ki]}get[lA](){return this[Ki]-this[Gr]}get[of](){return this[Hr].length-this[Gr]}get[Jdt](){return!!this[pA]&&!this[xB]&&!this[pA].destroyed}get[Pq](){let e=this[pA];return e&&(e[Nn]||e[Xl]||e[MB])||this[of]>=(this[xd]||1)||this[af]>0}[qdt](e){aIe(this),this.once("connect",e)}[jdt](e,r){let A=e.origin||this[Gs].origin,s=this[Bu]==="h2"?_q[Xdt](A,e,r):_q[$dt](A,e,r);return this[Hr].push(s),this[nf]||(ve.bodyLength(s.body)==null&&ve.isIterable(s.body)?(this[nf]=1,process.nextTick(Zi,this)):Zi(this,!0)),this[nf]&&this[Fd]!==2&&this[Pq]&&(this[Fd]=2),this[Fd]<2}async[Wdt](){return new Promise(e=>{this[of]?this[kd]=e:e(null)})}async[zdt](e){return new Promise(r=>{let A=this[Hr].splice(this[Ki]);for(let n=0;n<A.length;n++){let i=A[n];Rn(this,i,e)}let s=()=>{this[kd]&&(this[kd](),this[kd]=null),r()};this[Xi]!=null&&(ve.destroy(this[Xi],e),this[Xi]=null,this[vk]=null),this[pA]?ve.destroy(this[pA].on("close",s),e):queueMicrotask(s),Zi(this)})}};function oht(t){Be(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[pA][Ys]=t,Hk(this[Iu],t)}function aht(t,e,r){let A=new Cu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[pA][Ys]=A,Hk(this[Iu],A))}function cht(){ve.destroy(this,new UB("other side closed")),ve.destroy(this[pA],new UB("other side closed"))}function uht(t){let e=this[Iu],r=new Cu(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[pA]=null,e[Xi]=null,e.destroyed){Be(this[af]===0);let A=e[Hr].splice(e[Gr]);for(let s=0;s<A.length;s++){let n=A[s];Rn(this,n,r)}}else if(e[lA]>0){let A=e[Hr][e[Gr]];e[Hr][e[Gr]++]=null,Rn(e,A,r)}e[Ki]=e[Gr],Be(e[lA]===0),e.emit("disconnect",e[Gs],[e],r),Zi(e)}var hu=OCe(),lht=Fk(),ght=Buffer.alloc(0);async function dht(){let t=process.env.JEST_WORKER_ID?Mq():void 0,e;try{e=await WebAssembly.compile(Buffer.from(WCe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Mq(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onStatus(new xk(Eu.buffer,n,s))||0},wasm_on_message_begin:r=>(Be.strictEqual(cs.ptr,r),cs.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onHeaderField(new xk(Eu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onHeaderValue(new xk(Eu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Be.strictEqual(cs.ptr,r),cs.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Be.strictEqual(cs.ptr,r);let n=A-fu+Eu.byteOffset;return cs.onBody(new xk(Eu.buffer,n,s))||0},wasm_on_message_complete:r=>(Be.strictEqual(cs.ptr,r),cs.onMessageComplete()||0)}})}var vq=null,Gq=dht();Gq.catch();var cs=null,Eu=null,Uk=0,fu=null,LB=1,Lk=2,Yq=3,qq=class{constructor(e,r,{exports:A}){Be(Number.isFinite(e[Mk])&&e[Mk]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(hu.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.headersMaxSize=e[Mk],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[AIe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(Lq.clearTimeout(this.timeout),e?(this.timeout=Lq.setTimeout(hht,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Be(this.ptr!=null),Be(cs==null),this.llhttp.llhttp_resume(this.ptr),Be(this.timeoutType===Lk),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||ght),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Be(this.ptr!=null),Be(cs==null),Be(!this.paused);let{socket:r,llhttp:A}=this;e.length>Uk&&(fu&&A.free(fu),Uk=Math.ceil(e.length/4096)*4096,fu=A.malloc(Uk)),new Uint8Array(A.memory.buffer,fu,Uk).set(e);try{let s;try{Eu=e,cs=this,s=A.llhttp_execute(this.ptr,fu,e.length)}catch(i){throw i}finally{cs=null,Eu=null}let n=A.llhttp_get_error_pos(this.ptr)-fu;if(s===hu.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(s===hu.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(n));else if(s!==hu.ERROR.OK){let i=A.llhttp_get_error_reason(this.ptr),o="";if(i){let a=new Uint8Array(A.memory.buffer,i).indexOf(0);o="Response does not match Line truncated
`;return typeof n=="string"?E+=`host: ${n}\r
`:E+=t[XCe],i?E+=`connection: upgrade\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=MC.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(m9(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(Gf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vEe(t)}if((typeof n=="string"||Gf.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(!B9(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 jEe(t,e=!1){return t instanceof ReadableStream&&(MT(!Gf.isDisturbed(t),"The body has already been consumed."),MT(!t.locked,"The stream is locked.")),b9(t,e)}function XEe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function ZEe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $Ee(t){return{blob(){return Td(this,r=>{let s=C9(this);return s===null?s="":s&&(s=WEe(s)),new qEe([r],{type:s})},t)},arrayBuffer(){return Td(this,r=>new Uint8Array(r).buffer,t)},text(){return Td(this,I9,t)},json(){return Td(this,tCe,t)},formData(){return Td(this,r=>{let s=C9(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=zEe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new E9;return i[xd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new E9;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 Td(this,r=>new Uint8Array(r),t)}}}function eCe(t){Object.assign(t.prototype,$Ee(t))}async function Td(t,e,r){if(YEe.brandCheck(t,r),w9(t))throw new TypeError("Body is unusable: Body has already been read");ZEe(t[xd]);let s=_Ee(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[xd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await HEe(t[xd].body,i,n),s.promise)}function w9(t){let e=t[xd].body;return e!=null&&(e.stream.locked||Gf.isDisturbed(e.stream))}function tCe(t){return JSON.parse(I9(t))}function C9(t){let e=t[xd].headersList,r=GEe(e);return r==="failure"?null:r}N9.exports={extractBody:b9,safelyExtractBody:jEe,cloneBody:XEe,mixinBody:eCe,streamRegistry:Q9,hasFinalizationRegistry:y9,bodyUnusable:w9}});var v9=E((sat,L9)=>{"use strict";var ce=w("node:assert"),Ce=De(),{channels:S9}=md(),LT=mT(),{RequestContentLengthMismatchError:Au,ResponseContentLengthMismatchError:rCe,RequestAbortedError:F9,HeadersTimeoutError:sCe,HeadersOverflowError:nCe,SocketError:_C,InformationalError:Rd,BodyTimeoutError:iCe,HTTPParserError:oCe,ResponseExceededMaxSizeError:aCe}=qe(),{kUrl:M9,kReset:us,kClient:_T,kParser:Tt,kBlocking:Vf,kRunning:Mr,kPending:ACe,kSize:T9,kWriting:wA,kQueue:mi,kNoRef:Yf,kKeepAliveDefaultTimeout:cCe,kHostHeader:uCe,kPendingIdx:lCe,kRunningIdx:bn,kError:wn,kPipelining:PC,kSocket:kd,kKeepAliveTimeoutValue:HC,kMaxHeadersSize:vT,kKeepAliveMaxTimeout:dCe,kKeepAliveTimeoutThreshold:hCe,kHeadersTimeout:gCe,kBodyTimeout:fCe,kStrictContentLength:HT,kMaxRequests:x9,kCounter:pCe,kMaxResponseSize:mCe,kOnError:ECe,kResume:bA,kHTTPContext:U9}=mt(),ro=QH(),CCe=Buffer.alloc(0),UC=Buffer[Symbol.species],LC=Ce.addListener,ICe=Ce.removeAllListeners,PT;async function BCe(){let t=process.env.JEST_WORKER_ID?IT():void 0,e;try{e=await WebAssembly.compile(NH())}catch{e=await WebAssembly.compile(t||IT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ce(sr.ptr===r);let i=s-no+so.byteOffset;return sr.onStatus(new UC(so.buffer,i,n))||0},wasm_on_message_begin:r=>(ce(sr.ptr===r),sr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ce(sr.ptr===r);let i=s-no+so.byteOffset;return sr.onHeaderField(new UC(so.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ce(sr.ptr===r);let i=s-no+so.byteOffset;return sr.onHeaderValue(new UC(so.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ce(sr.ptr===r),sr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ce(sr.ptr===r);let i=s-no+so.byteOffset;return sr.onBody(new UC(so.buffer,i,n))||0},wasm_on_message_complete:r=>(ce(sr.ptr===r),sr.onMessageComplete()||0)}})}var OT=null,GT=BCe();GT.catch();var sr=null,so=null,vC=0,no=null,yCe=0,qf=1,Fd=2|qf,OC=4|qf,YT=8|yCe,qT=class{constructor(e,r,{exports:s}){ce(Number.isFinite(e[vT])&&e[vT]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ro.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"?p+=`host: ${n}\r
`:p+=t[uCe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[xd]&&!d[Nn]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,o&&(E+=o),rn.sendHeaders.hasSubscribers&&rn.sendHeaders.publish({request:e,headers:E,socket:d}),!r||l===0?(g===0?d.write(`${E}content-length: 0\r
`:t[PC]&&!h[us]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return S9.sendHeaders.hasSubscribers&&S9.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?R9(f,null,t,e,h,u,p,l):Ce.isBuffer(A)?R9(f,A,t,e,h,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?k9(f,A.stream(),t,e,h,u,p,l):TCe(f,A,t,e,h,u,p,l):Ce.isStream(A)?SCe(f,A,t,e,h,u,p,l):Ce.isIterable(A)?k9(f,A,t,e,h,u,p,l):ce(!1),!0}function SCe(t,e,r,s,n,i,o,a){ce(i!==0||r[Mr]===0,"stream body cannot be pipelined");let A=!1,c=new GC({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 F9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ce(n.destroyed||n[wA]&&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 R9(t,e,r,s,n,i,o,a){try{e?Ce.isBuffer(e)&&(ce(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"):(Be(g===null,"no body must not have content length"),d.write(`${E}\r
`,"latin1")),e.onRequestSent()):ve.isBuffer(r)?(Be(g===r.byteLength,"buffer body must have content length"),d.cork(),d.write(`${E}content-length: ${g}\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
\r
`,"latin1"),d.write(r),d.uncork(),e.onBodySent(r),e.onRequestSent(),u||(d[Nn]=!0)):ve.isBlobLike(r)?typeof r.stream=="function"?Pk({body:r.stream(),client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):lIe({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):ve.isStream(r)?uIe({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):ve.isIterable(r)?Pk({body:r,client:t,request:e,socket:d,contentLength:g,header:E,expectsPayload:u}):Be(!1),!0}function Cht(t,e,r){let{body:A,method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=r,l;if(typeof u=="string"?l=_q[Zdt](u.trim()):l=u,o)return Rn(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(p=>{r.aborted||r.completed||Rn(t,r,p||new Vq)})}catch(p){Rn(t,r,p)}if(r.aborted)return!1;let g,d=t[vk];if(l[eht]=i||t[sIe],l[tht]=s,s==="CONNECT")return e.ref(),g=e.request(l,{endStream:!1,signal:c}),g.id&&!g.pending?(r.onUpgrade(null,null,g),++d.openStreams):g.once("ready",()=>{r.onUpgrade(null,null,g),++d.openStreams}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),!0;l[rht]=n,l[Aht]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let C=ve.bodyLength(A);if(C==null&&(C=r.contentLength),(C===0||!E)&&(C=null),cIe(s)&&C>0&&r.contentLength!=null&&r.contentLength!==C){if(t[Jb])return Rn(t,r,new Kl),!1;process.emitWarning(new Kl)}C!=null&&(Be(A,"no body must not have content length"),l[sht]=`${C}`),e.ref();let Q=s==="GET"||s==="HEAD";return a?(l[nht]="100-continue",g=e.request(l,{endStream:Q,signal:c}),g.once("continue",I)):(g=e.request(l,{endStream:Q,signal:c}),I()),++d.openStreams,g.once("response",p=>{let{[iht]:w,...k}=p;r.onHeaders(Number(w),k,g.resume.bind(g),"")===!1&&g.pause()}),g.once("end",()=>{r.onComplete([])}),g.on("data",p=>{r.onData(p)===!1&&g.pause()}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),g.once("error",function(p){t[Xi]&&!t[Xi].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,ve.destroy(g,p))}),g.once("frameError",(p,w)=>{let k=new Cu(`HTTP/2: "frameError" received - type ${p}, code ${w}`);Rn(t,r,k),t[Xi]&&!t[Xi].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,ve.destroy(g,k))}),!0;function I(){A?ve.isBuffer(A)?(Be(C===A.byteLength,"buffer body must have content length"),g.cork(),g.write(A),g.uncork(),g.end(),r.onBodySent(A),r.onRequestSent()):ve.isBlobLike(A)?typeof A.stream=="function"?Pk({client:t,request:r,contentLength:C,h2stream:g,expectsPayload:E,body:A.stream(),socket:t[pA],header:""}):lIe({body:A,client:t,request:r,contentLength:C,expectsPayload:E,h2stream:g,header:"",socket:t[pA]}):ve.isStream(A)?uIe({body:A,client:t,request:r,contentLength:C,expectsPayload:E,socket:t[pA],h2stream:g,header:""}):ve.isIterable(A)?Pk({body:A,client:t,request:r,contentLength:C,expectsPayload:E,header:"",h2stream:g,socket:t[pA]}):Be(!1):r.onRequestSent()}}function uIe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){if(Be(n!==0||r[lA]===0,"stream body cannot be pipelined"),r[Bu]==="h2"){let C=function(Q){A.onBodySent(Q)},E=Udt(e,t,Q=>{Q?(ve.destroy(e,Q),ve.destroy(t,Q)):A.onRequestSent()});E.on("data",C),E.once("end",()=>{E.removeListener("data",C),ve.destroy(E)});return}let a=!1,c=new Ok({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ve.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(a)return;let E=new Vq;queueMicrotask(()=>d(E))},d=function(E){if(!a){if(a=!0,Be(s.destroyed||s[Xl]&&r[lA]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("error",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ve.destroy(e,E):ve.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d)}async function lIe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Be(n===e.size,"blob body must have content length");let a=r[Bu]==="h2";try{if(n!=null&&n!==e.size)throw new Kl;let c=Buffer.from(await e.arrayBuffer());a?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(ce(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[bA]()}catch(A){t(A)}}async function TCe(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 Au;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),A.onBodySent(c),A.onRequestSent(),o||(s[Nn]=!0),Zi(r)}catch(c){ve.destroy(a?t:s,c)}}async function Pk({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Be(n!==0||r[lA]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Be(a===null),s[Ys]?d(s[Ys]):a=g});if(r[Bu]==="h2"){t.on("close",c).on("drain",c);try{for await(let g of e){if(s[Ys])throw s[Ys];let d=t.write(g);A.onBodySent(g),d||await u()}}catch(g){t.destroy(g)}finally{A.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new Ok({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Ys])throw s[Ys];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var Ok=class{constructor({socket:e,request:r,contentLength:A,client:s,expectsPayload:n,header:i}){this.socket=e,this.request=r,this.contentLength=A,this.client=s,this.bytesWritten=0,this.expectsPayload=n,this.header=i,e[Xl]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Ys])throw r[Ys];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[Jb])throw new Kl;process.emitWarning(new Kl)}r.cork(),i===0&&(o||(r[Nn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[us]=!0),r[bA]()}catch(A){t(A)}}async function k9(t,e,r,s,n,i,o,a){ce(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)=>{ce(A===null),n[wn]?h(n[wn]):A=d});n.on("close",c).on("drain",c);let l=new GC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[wn])throw n[wn];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var GC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[wA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[wn])throw r[wn];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[HT])throw new Au;process.emitWarning(new Au)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[us]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[QA].timeout&&r[QA].timeoutType===LB&&r[QA].timeout.refresh&&r[QA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[Xl]=!1,e[Ys])throw e[Ys];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Tt].timeout&&r[Tt].timeoutType===Fd&&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[wA]=!1,e[wn])throw e[wn];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[Jb])throw new Kl;process.emitWarning(new Kl)}e[QA].timeout&&e[QA].timeoutType===LB&&e[QA].timeout.refresh&&e[QA].timeout.refresh(),Zi(A)}}destroy(e){let{socket:r,client:A}=this;r[Xl]=!1,e&&(Be(A[lA]<=1,"pipeline should only contain this request"),ve.destroy(r,e))}};function Rn(t,e,r){try{e.onError(r),Be(e.aborted)}catch(A){t.emit("error",A)}}gIe.exports=Hq});var hIe=h((Jyr,dIe)=>{"use strict";var Gk=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)}};dIe.exports=class{constructor(){this.head=this.tail=new Gk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Gk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var fIe=h((Vyr,EIe)=>{var{kFree:Iht,kConnected:Bht,kPending:Qht,kQueued:pht,kRunning:mht,kSize:yht}=Or(),cf=Symbol("pool"),Wq=class{constructor(e){this[cf]=e}get connected(){return this[cf][Bht]}get free(){return this[cf][Iht]}get pending(){return this[cf][Qht]}get queued(){return this[cf][pht]}get running(){return this[cf][mht]}get size(){return this[cf][yht]}};EIe.exports=Wq});var $q=h((Wyr,DIe)=>{"use strict";var bht=_b(),wht=hIe(),{kConnected:zq,kSize:CIe,kRunning:IIe,kPending:BIe,kQueued:zb,kBusy:Dht,kFree:Nht,kUrl:Rht,kClose:Sht,kDestroy:Tht,kDispatch:kht}=Or(),Fht=fIe(),ti=Symbol("clients"),Sn=Symbol("needDrain"),jb=Symbol("queue"),jq=Symbol("closed resolve"),Kq=Symbol("onDrain"),QIe=Symbol("onConnect"),pIe=Symbol("onDisconnect"),mIe=Symbol("onConnectionError"),Xq=Symbol("get dispatcher"),bIe=Symbol("add client"),wIe=Symbol("remove client"),yIe=Symbol("stats"),Zq=class extends bht{constructor(){super(),this[jb]=new wht,this[ti]=[],this[zb]=0;let e=this;this[Kq]=function(A,s){let n=e[jb],i=!1;for(;!i;){let o=n.shift();if(!o)break;e[zb]--,i=!this.dispatch(o.opts,o.handler)}this[Sn]=i,!this[Sn]&&e[Sn]&&(e[Sn]=!1,e.emit("drain",A,[e,...s])),e[jq]&&n.isEmpty()&&Promise.all(e[ti].map(o=>o.close())).then(e[jq])},this[QIe]=(r,A)=>{e.emit("connect",r,[e,...A])},this[pIe]=(r,A,s)=>{e.emit("disconnect",r,[e,...A],s)},this[mIe]=(r,A,s)=>{e.emit("connectionError",r,[e,...A],s)},this[yIe]=new Fht(this)}get[Dht](){return this[Sn]}get[zq](){return this[ti].filter(e=>e[zq]).length}get[Nht](){return this[ti].filter(e=>e[zq]&&!e[Sn]).length}get[BIe](){let e=this[zb];for(let{[BIe]:r}of this[ti])e+=r;return e}get[IIe](){let e=0;for(let{[IIe]:r}of this[ti])e+=r;return e}get[CIe](){let e=this[zb];for(let{[CIe]:r}of this[ti])e+=r;return e}get stats(){return this[yIe]}async[Sht](){return this[jb].isEmpty()?Promise.all(this[ti].map(e=>e.close())):new Promise(e=>{this[jq]=e})}async[Tht](e){for(;;){let r=this[jb].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[ti].map(r=>r.destroy(e)))}[kht](e,r){let A=this[Xq]();return A?A.dispatch(e,r)||(A[Sn]=!0,this[Sn]=!this[Xq]()):(this[Sn]=!0,this[jb].push({opts:e,handler:r}),this[zb]++),!this[Sn]}[bIe](e){return e.on("drain",this[Kq]).on("connect",this[QIe]).on("disconnect",this[pIe]).on("connectionError",this[mIe]),this[ti].push(e),this[Sn]&&process.nextTick(()=>{this[Sn]&&this[Kq](e[Rht],[this,e])}),this}[wIe](e){e.close(()=>{let r=this[ti].indexOf(e);r!==-1&&this[ti].splice(r,1)}),this[Sn]=this[ti].some(r=>!r[Sn]&&r.closed!==!0&&r.destroyed!==!0)}};DIe.exports={PoolBase:Zq,kClients:ti,kNeedDrain:Sn,kAddClient:bIe,kRemoveClient:wIe,kGetDispatcher:Xq}});var vB=h((zyr,SIe)=>{"use strict";var{PoolBase:xht,kClients:Yk,kNeedDrain:Uht,kAddClient:Mht,kGetDispatcher:Lht}=$q(),vht=Wb(),{InvalidArgumentError:e5}=br(),t5=Yt(),{kUrl:NIe,kInterceptors:_ht}=Or(),Pht=Pb(),r5=Symbol("options"),A5=Symbol("connections"),RIe=Symbol("factory");function Oht(t,e){return new vht(t,e)}var s5=class extends xht{constructor(e,{connections:r,factory:A=Oht,connect:s,connectTimeout:n,tls:i,maxCachedSessions:o,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...g}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new e5("invalid connections");if(typeof A!="function")throw new e5("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new e5("connect must be a function or an object");typeof s!="function"&&(s=Pht({...i,maxCachedSessions:o,allowH2:l,socketPath:a,timeout:n,...t5.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[_ht]=g.interceptors&&g.interceptors.Pool&&Array.isArray(g.interceptors.Pool)?g.interceptors.Pool:[],this[A5]=r||null,this[NIe]=t5.parseOrigin(e),this[r5]={...t5.deepClone(g),connect:s,allowH2:l},this[r5].interceptors=g.interceptors?{...g.interceptors}:void 0,this[RIe]=A,this.on("connectionError",(d,E,C)=>{for(let Q of Line truncated
${A.count} ${A.noun} ${A.is} pending:
`,"latin1"),r!==null&&n!==r){if(s[HT])throw new Au;process.emitWarning(new Au)}e[Tt].timeout&&e[Tt].timeoutType===Fd&&e[Tt].timeout.refresh&&e[Tt].timeout.refresh(),s[bA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[wA]=!1,e&&(ce(s[Mr]<=1,"pipeline should only contain this request"),n(e))}};L9.exports=QCe});var V9=E((nat,q9)=>{"use strict";var Nn=w("node:assert"),{pipeline:xCe}=w("node:stream"),Fe=De(),{RequestContentLengthMismatchError:VT,RequestAbortedError:P9,SocketError:Jf,InformationalError:JT}=qe(),{kUrl:YC,kReset:VC,kClient:Md,kRunning:JC,kPending:DCe,kQueue:NA,kPendingIdx:WT,kRunningIdx:Ei,kError:Ii,kSocket:dr,kStrictContentLength:RCe,kOnError:zT,kMaxConcurrentStreams:Y9,kHTTP2Session:Ci,kResume:SA,kSize:kCe,kHTTPContext:FCe}=mt(),Ia=Symbol("open streams"),O9,_9=!1,qC;try{qC=w("node:http2")}catch{qC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:MCe,HTTP2_HEADER_METHOD:UCe,HTTP2_HEADER_PATH:LCe,HTTP2_HEADER_SCHEME:vCe,HTTP2_HEADER_CONTENT_LENGTH:PCe,HTTP2_HEADER_EXPECT:OCe,HTTP2_HEADER_STATUS:_Ce}}=qC;function HCe(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 GCe(t,e){t[dr]=e,_9||(_9=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=qC.connect(t[YC],{createConnection:()=>e,peerMaxConcurrentStreams:t[Y9]});r[Ia]=0,r[Md]=t,r[dr]=e,Fe.addListener(r,"error",qCe),Fe.addListener(r,"frameError",VCe),Fe.addListener(r,"end",JCe),Fe.addListener(r,"goaway",WCe),Fe.addListener(r,"close",function(){let{[Md]:n}=this,{[dr]:i}=n,o=this[dr][Ii]||this[Ii]||new Jf("closed",Fe.getSocketInfo(i));if(n[Ci]=null,n.destroyed){Nn(n[DCe]===0);let a=n[NA].splice(n[Ei]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[Ci]=r,e[Ci]=r,Fe.addListener(e,"error",function(n){Nn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ii]=n,this[Md][zT](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new Jf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[Ii]||new Jf("closed",Fe.getSocketInfo(this));t[dr]=null,this[Ci]!=null&&this[Ci].destroy(n),t[WT]=t[Ei],Nn(t[JC]===0),t.emit("disconnect",t[YC],[t],n),t[SA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return KCe(t,...n)},resume(){YCe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function YCe(t){let e=t[dr];e?.destroyed===!1&&(t[kCe]===0&&t[Y9]===0?(e.unref(),t[Ci].unref()):(e.ref(),t[Ci].ref()))}function qCe(t){Nn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][Ii]=t,this[Md][zT](t)}function VCe(t,e,r){if(r===0){let s=new JT(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][Ii]=s,this[Md][zT](s)}}function JCe(){let t=new Jf("other side closed",Fe.getSocketInfo(this[dr]));this.destroy(t),Fe.destroy(this[dr],t)}function WCe(t){let e=this[Ii]||new Jf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[Md];if(r[dr]=null,r[FCe]=null,this[Ci]!=null&&(this[Ci].destroy(e),this[Ci]=null),Fe.destroy(this[dr],e),r[Ei]<r[NA].length){let s=r[NA][r[Ei]];r[NA][r[Ei]++]=null,Fe.errorRequest(r,s,e),r[WT]=r[Ei]}Nn(r[JC]===0),r.emit("disconnect",r[YC],[r],e),r[SA]()}function zCe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function KCe(t,e){let r=t[Ci],{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[YC];l[MCe]=i||`${h}${f?`:${f}`:""}`,l[UCe]=s;let p=T=>{e.aborted||e.completed||(T=T||new P9,Fe.errorRequest(t,e,T),d!=null&&Fe.destroy(d,T),Fe.destroy(u,T),t[NA][t[Ei]++]=null,t[SA]())};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[Ia],t[NA][t[Ei]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ia],t[NA][t[Ei]++]=null}),d.once("close",()=>{r[Ia]-=1,r[Ia]===0&&r.unref()}),!0;l[LCe]=n,l[vCe]="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)){O9??=Dd().extractBody;let[T,R]=O9(u);l["content-type"]=R,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),zCe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[RCe])return Fe.errorRequest(t,e,new VT),!1;process.emitWarning(new VT)}m!=null&&(Nn(u,"no body must not have content length"),l[PCe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[OCe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[BIe]=A??3e5,this[IIe]=n??3e5,this[yIe]=C??!0,this[QIe]=T,this[ZT]=M,this[xA]=null,this[TIe]=_>-1?_:-1,this[DIe]=at??100,this[Gt]=null,this[Bi]=[],this[ya]=0,this[yi]=0,this[jf]=xe=>ex(this,xe),this[xIe]=xe=>sG(this,xe)}get pipelining(){return this[jC]}set pipelining(e){this[jC]=e,this[jf](!0)}get[$f](){return this[Bi].length-this[yi]}get[Zf](){return this[yi]-this[ya]}get[Xf](){return this[Bi].length-this[ya]}get[hIe](){return!!this[Gt]&&!this[Ld]&&!this[Gt].destroyed}get[XT](){return!!(this[Gt]?.busy(null)||this[Xf]>=(rG(this)||1)||this[$f]>0)}[dIe](e){nG(this),this.once("connect",e)}[SIe](e,r){let s=e.origin||this[oo].origin,n=new oIe(s,e,r);return this[Bi].push(n),this[uu]||(cu.bodyLength(n.body)==null&&cu.isIterable(n.body)?(this[uu]=1,queueMicrotask(()=>ex(this))):this[jf](!0)),this[uu]&&this[DA]!==2&&this[XT]&&(this[DA]=2),this[DA]<2}async[wIe](){return new Promise(e=>{this[Xf]?this[xA]=e:e(null)})}async[NIe](e){return new Promise(r=>{let s=this[Bi].splice(this[yi]);for(let i=0;i<s.length;i++){let o=s[i];cu.errorRequest(this,o,e)}let n=()=>{this[xA]&&(this[xA](),this[xA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[jf]()})}},FIe=KC();function sG(t,e){if(t[Zf]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ba(t[yi]===t[ya]);let r=t[Bi].splice(t[ya]);for(let s=0;s<r.length;s++){let n=r[s];cu.errorRequest(t,n,e)}Ba(t[Xf]===0)}}async function nG(t){Ba(!t[Ld]),Ba(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[oo];if(r[0]==="["){let i=r.indexOf("]");Ba(i!==-1);let o=r.substring(1,i);Ba(tG.isIP(o)),r=o}t[Ld]=!0,Ud.beforeConnect.hasSubscribers&&Ud.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[TA],localAddress:t[Kf]},connector:t[zf]});try{let i=await new Promise((o,a)=>{t[zf]({host:e,hostname:r,protocol:s,port:n,servername:t[TA],localAddress:t[Kf]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){cu.destroy(i.on("error",$9),new cIe);return}Ba(i);try{t[Gt]=i.alpnProtocol==="h2"?await kIe(t,i):await RIe(t,i)}catch(o){throw i.destroy().on("error",$9),o}t[Ld]=!1,i[bIe]=0,i[ZT]=t[ZT],i[lIe]=t,i[fIe]=null,Ud.connected.hasSubscribers&&Ud.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[TA],localAddress:t[Kf]},connector:t[zf],socket:i}),t.emit("connect",t[oo],[t])}catch(i){if(t.destroyed)return;if(t[Ld]=!1,Ud.connectError.hasSubscribers&&Ud.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[TA],localAddress:t[Kf]},connector:t[zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ba(t[Zf]===0);t[$f]>0&&t[Bi][t[yi]].servername===t[TA];){let o=t[Bi][t[yi]++];cu.errorRequest(t,o,i)}else sG(t,i);t.emit("connectionError",t[oo],[t],i)}t[jf]()}function eG(t){t[DA]=0,t.emit("drain",t[oo],[t])}function ex(t,e){t[uu]!==2&&(t[uu]=2,MIe(t,e),t[uu]=0,t[ya]>256&&(t[Bi].splice(0,t[ya]),t[yi]-=t[ya],t[ya]=0))}function MIe(t,e){for(;;){if(t.destroyed){Ba(t[$f]===0);return}if(t[xA]&&!t[Xf]){t[xA](),t[xA]=null;return}if(t[Gt]&&t[Gt].resume(),t[XT])t[DA]=2;else if(t[DA]===2){e?(t[DA]=1,queueMicrotask(()=>eG(t))):eG(t);continue}if(t[$f]===0||t[Zf]>=(rG(t)||1))return;let r=t[Bi][t[yi]];if(t[oo].protocol==="https:"&&t[TA]!==r.servername){if(t[Zf]>0)return;t[TA]=r.servername,t[Gt]?.destroy(new AIe("servername changed"),()=>{t[Gt]=null,ex(t)})}if(t[Ld])return;if(!t[Gt]){nG(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[yi]++:t[Bi].splice(t[yi],1)}}iG.exports=$T});var tx=E((cat,oG)=>{"use strict";var XC=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)}};oG.exports=class{constructor(){this.head=this.tail=new XC}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new XC),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var AG=E((uat,aG)=>{var{kFree:UIe,kConnected:LIe,kPending:vIe,kQueued:PIe,kRunning:OIe,kSize:_Ie}=mt(),lu=Symbol("pool"),rx=class{constructor(e){this[lu]=e}get connected(){return this[lu][LIe]}get free(){return this[lu][UIe]}get pending(){return this[lu][vIe]}get queued(){return this[lu][PIe]}get running(){return this[lu][OIe]}get size(){return this[lu][_Ie]}};aG.exports=rx});var Ax=E((lat,EG)=>{"use strict";var HIe=Bd(),GIe=tx(),{kConnected:sx,kSize:cG,kRunning:uG,kPending:lG,kQueued:ep,kBusy:YIe,kFree:qIe,kUrl:VIe,kClose:JIe,kDestroy:WIe,kDispatch:zIe}=mt(),KIe=AG(),ls=Symbol("clients"),Jr=Symbol("needDrain"),tp=Symbol("queue"),nx=Symbol("closed resolve"),ix=Symbol("onDrain"),dG=Symbol("onConnect"),hG=Symbol("onDisconnect"),gG=Symbol("onConnectionError"),ox=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};oQe.exports=G5});var hQe=h((Bbr,dQe)=>{"use strict";var{kProxy:Hft,kClose:Gft,kDestroy:Yft,kInterceptors:qft}=Or(),{URL:cQe}=B("url"),uQe=Xb(),Jft=vB(),Vft=_b(),{InvalidArgumentError:rw,RequestAbortedError:Wft}=br(),lQe=Pb(),ew=Symbol("proxy agent"),uF=Symbol("proxy client"),tw=Symbol("proxy headers"),Y5=Symbol("request tls settings"),zft=Symbol("proxy tls settings"),gQe=Symbol("connect endpoint function");function jft(t){return t==="https:"?443:80}function Kft(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new rw("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Xft(t,e){return new Jft(t,e)}var q5=class extends Vft{constructor(e){if(super(e),this[Hft]=Kft(e),this[ew]=new uQe(e),this[qft]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new rw("Proxy opts.uri is mandatory");let{clientFactory:r=Xft}=e;if(typeof r!="function")throw new rw("Proxy opts.clientFactory must be a function.");this[Y5]=e.requestTls,this[zft]=e.proxyTls,this[tw]=e.headers||{};let A=new cQe(e.uri),{origin:s,port:n,host:i,username:o,password:a}=A;if(e.auth&&e.token)throw new rw("opts.auth cannot be used in combination with opts.token");e.auth?this[tw]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[tw]["proxy-authorization"]=e.token:o&&a&&(this[tw]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(a)}`).toString("base64")}`);let c=lQe({...e.proxyTls});this[gQe]=lQe({...e.requestTls}),this[uF]=r(A,{connect:c}),this[ew]=new uQe({...e,connect:async(u,l)=>{let g=u.host;u.port||(g+=`:${jft(u.protocol)}`);try{let{socket:d,statusCode:E}=await this[uF].connect({origin:s,port:n,path:g,signal:u.signal,headers:{...this[tw],host:i}});if(E!==200&&(d.on("error",()=>{}).destroy(),l(new Wft(`Proxy response (${E}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,d);return}let C;this[Y5]?C=this[Y5].servername:C=u.servername,this[gQe]({...u,servername:C,httpSocket:d},l)}catch(d){l(d)}}})}dispatch(e,r){let{host:A}=new cQe(e.origin),s=Zft(e.headers);return $ft(s),this[ew].dispatch({...e,headers:{...s,host:A}},r)}async[Gft](){await this[ew].close(),await this[uF].close()}async[Yft](){await this[ew].destroy(),await this[uF].destroy()}};function Zft(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function $ft(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new rw("Proxy-Authorization should be sent in ProxyAgent constructor")}dQe.exports=q5});var BQe=h((Qbr,IQe)=>{var Ef=B("assert"),{kRetryHandlerDefaultRetry:EQe}=Or(),{RequestRetryError:lF}=br(),{isDisturbed:fQe,parseHeaders:eCt,parseRangeHeader:CQe}=Yt();function tCt(t){let e=Date.now();return new Date(t).getTime()-e}var J5=class t{constructor(e,r){let{retryOptions:A,...s}=e,{retry:n,maxRetries:i,maxTimeout:o,minTimeout:a,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:g,statusCodes:d}=A??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[EQe],retryAfter:g??!0,maxTimeout:o??30*1e3,timeout:a??500,timeoutFactor:c??2,maxRetries:i??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:d??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(E=>{this.aborted=!0,this.abort?this.abort(E):this.reason=E})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,A){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,A)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[EQe](e,{state:r,opts:A},s){let{statusCode:n,code:i,headers:o}=e,{method:a,retryOptions:c}=A,{maxRetries:u,timeout:l,maxTimeout:g,timeoutFactor:d,statusCodes:E,errorCodes:C,methods:Q}=c,{counter:I,currentTimeout:p}=r;if(p=p!=null&&p>0?p:l,i&&i!=="UND_ERR_REQ_RETRY"&&i!=="UND_ERR_SOCKET"&&!C.includes(i)){s(e);return}if(Array.isArray(Q)&&!Q.includes(a)){s(e);return}if(n!=null&&Array.isArray(E)&&!E.includes(n)){s(e);return}if(I>u){s(e);return}let w=o!=null&&o["retry-after"];w&&(w=Number(w),w=isNaN(w)?tCt(w):w*1e3);let k=w>0?Math.min(w,g):Math.min(p*d**I,g);r.currentTimeout=k,setTimeout(()=>s(null),k)}onHeaders(e,r,A,s){let n=eCt(r);if(this.retryCount+=1,e>=300)return this.abort(new lF("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=CQe(n["content-range"]);if(!o)return this.abort(new lF("Content-Range mismatch",e,{headers:n,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==n.etag)return this.abort(new lF("ETag mismatch",e,{headers:n,count:this.retryCount})),!1;let{start:a,size:c,end:u=c}=o Line truncated
Error Code : ${i.statusCode}
Error Message: ${i.message}`)})).result)===null||r===void 0?void 0:r.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return R0e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,S0e.debug)(`ID token url is ${r}`);let A=yield t.getCall(r);return(0,S0e.setSecret)(A),A}catch(r){throw new Error(`Error message: ${r.message}`)}})}};aQ.OidcClient=U9});var _9=h(ii=>{"use strict";var M9=ii&&ii.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(ii,"__esModule",{value:!0});ii.summary=ii.markdownSummary=ii.SUMMARY_DOCS_URL=ii.SUMMARY_ENV_VAR=void 0;var JQt=B("os"),L9=B("fs"),{access:VQt,appendFile:WQt,writeFile:zQt}=L9.promises;ii.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";ii.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var v9=class{constructor(){this._buffer=""}filePath(){return M9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ii.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${ii.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield VQt(e,L9.constants.R_OK|L9.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,A={}){let s=Object.entries(A).map(([n,i])=>` ${n}="${i}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return M9(this,void 0,void 0,function*(){let r=!!e?.overwrite,A=yield this.filePath();return yield(r?zQt:WQt)(A,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return M9(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(JQt.EOL)}addCodeBlock(e,r){let A=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,r=!1){let A=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),n=this.wrap(A,s);return this.addRaw(n).addEOL()}addTable(e){let r=e.map(s=>{let n=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:o,data:a,colspan:c,rowspan:u}=i,l=o?"th":"td",g=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,a,g)}).join("");return this.wrap("tr",n)}).join(""),A=this.wrap("table",r);return this.addRaw(A).addEOL()}addDetails(e,r){let A=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(A).addEOL()}addImage(e,r,A){let{width:s,height:n}=A||{},i=Object.assign(Object.assign({},s&&{width:s}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:r},i));return this.addRaw(o).addEOL()}addHeading(e,r){let A=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1",n=this.wrap(s,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let A=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,r){let A=this.wrap("a",e,{href:r});return this.addRaw(A).addEOL()}},k0e=new v9;ii.markdownSummary=k0e;ii.summary=k0e});var F0e=h(oi=>{"use strict";var jQt=oi&&oi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),KQt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XQt=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)&&jQt(e,t,r);return KQt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.toPlatformPath=oi.toWin32Path=oi.toPosixPath=void 0;var ZQt=XQt(B("path"));function $Qt(t){return t.replace(/[\\]/g,"/")}oi.toPosixPath=$Qt;function ept(t){return t.replace(/[/]/g,"\\")}oi.toWin32Path=ept;function tpt(t){return t.replace(/[/\\]/g,ZQt.sep)}oi.toPlatformPath=tpt});var O9=h(be=>{"use strict";var rpt=be&&be.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),ALine truncated
`);return{name:e,version:r}});qt.platform=K0e.default.platform();qt.arch=K0e.default.arch();qt.isWindows=qt.platform==="win32";qt.isMacOS=qt.platform==="darwin";qt.isLinux=qt.platform==="linux";function Upt(){return o2(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield qt.isWindows?kpt():qt.isMacOS?Fpt():xpt()),{platform:qt.platform,arch:qt.arch,isWindows:qt.isWindows,isMacOS:qt.isMacOS,isLinux:qt.isLinux})})}qt.getDetails=Upt});var no=h(Qe=>{"use strict";var Mpt=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),Lpt=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J9=Qe&&Qe.__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)&&Mpt(e,t,r);return Lpt(e,t),e},Z0e=Qe&&Qe.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.platform=Qe.toPlatformPath=Qe.toWin32Path=Qe.toPosixPath=Qe.markdownSummary=Qe.summary=Qe.getIDToken=Qe.getState=Qe.saveState=Qe.group=Qe.endGroup=Qe.startGroup=Qe.info=Qe.notice=Qe.warning=Qe.error=Qe.debug=Qe.isDebug=Qe.setFailed=Qe.setCommandEcho=Qe.setOutput=Qe.getBooleanInput=Qe.getMultilineInput=Qe.getInput=Qe.addPath=Qe.setSecret=Qe.exportVariable=Qe.ExitCode=void 0;var na=vEe(),yf=OEe(),uQ=ik(),$0e=J9(B("os")),vpt=J9(B("path")),_pt=T0e(),q9;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(q9||(Qe.ExitCode=q9={}));function Ppt(t,e){let r=(0,uQ.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,yf.issueFileCommand)("ENV",(0,yf.prepareKeyValueMessage)(t,e));(0,na.issueCommand)("set-env",{name:t},r)}Qe.exportVariable=Ppt;function Opt(t){(0,na.issueCommand)("add-mask",{},t)}Qe.setSecret=Opt;function Hpt(t){process.env.GITHUB_PATH||""?(0,yf.issueFileCommand)("PATH",t):(0,na.issueCommand)("add-path",{},t),process.env.PATH=`${t}${vpt.delimiter}${process.env.PATH}`}Qe.addPath=Hpt;function V9(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}Qe.getInput=V9;function Gpt(t,e){let r=V9(t,e).split(`
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}Qe.getMultilineInput=Gpt;function Ypt(t,e){let r=["true","True","TRUE"],A=["false","False","FALSE"],s=V9(t,e);if(r.includes(s))return!0;if(A.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Qe.getBooleanInput=Ypt;function qpt(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,yf.issueFileCommand)("OUTPUT",(0,yf.prepareKeyValueMessage)(t,e));process.stdout.write($0e.EOL),(0,na.issueCommand)("set-output",{name:t},(0,uQ.toCommandValue)(e))}Qe.setOutput=qpt;function Jpt(t){(0,na.issue)("echo",t?"on":"off")}Qe.setCommandEcho=Jpt;function Vpt(t){process.exitCode=q9.Failure,eme(t)}Qe.setFailed=Vpt;function Wpt(){return process.env.RUNNER_DEBUG==="1"}Qe.isDebug=Wpt;function zpt(t){(0,na.issueCommand)("debug",{},t)}Qe.debug=zpt;function eme(t,e={}){(0,na.issueCommand)("error",(0,uQ.toCommandProperties)(e),t instanceof Error?t.toString():t)}Qe.error=eme;function jpt(t,e={}){(0,na.issueCommand)("warning",(0,uQ.toCommandProperties)(e),t instanceof Error?t.toString():t)}Qe.warning=jpt;function Kpt(t,e={}){(0,na.issueCommand)("notice",(0,uQ.toCommandProperties)(e),t instanceof Error?t.toString():t)}Qe.notice=Kpt;function Xpt(t){process.stdout.write(t+$0e.EOL)}Qe.info=Xpt;function tme(t){(0,na.issue)("group",t)}Qe.startGroup=tme;function rme(){(0,na.issue)("endgroup")}Qe.endGroup=rme;function Zpt(t,e){return Z0e(this,void 0,void 0,function*(){tme(t);let r;try{r=yield e()}finally{rme()}return r})}Qe.group=Zpt;function $pt(t,e){if(process.env.GITHUB_STATE||"")return(0,yf.issueFileCommand)("STATE",(0,yf.prepareKeyValueMessage)(t,e));(0,na.issueCommand)("save-state",{name:t},(0,uQ.toCommandValue)(e))}Qe.saveState=$pt;function e0t(t){return process.env[`STATE_${t}`]||""}Qe.getState=e0t;function t0t(t){return Z0e(this,void 0,void 0,function*(){return yield _pt.OidcClient.getIDToken(t)})}Qe.getIDToken=t0t;var r0t=_9();Object.defineProperty(Qe,"summary",{enumerable:!0,get:function(){return r0t.summary}});var A0t=_9();Object.defineProperty(Qe,"markdownSummary",{enumerable:!0,get:function(){return A0t.markdownSummary}});var W9=F0e();Object.defineProperty(Qe,"toPosixPath",{enumerable:!0,get:function(){return W9.toPosixPath}});Object.defineProperty(Qe,"toWin32Path",{enumerable:!0,get:function(){return W9.toWin32Path}});Object.defineProperty(Qe,"toPlatformPath",{enumerable:!0,get:function(){return W9.toPlatformPath}});Qe.platform=J9(X0e())});var Ame=h(Nu=>{"use strict";var s0t=Nu&&Nu.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),n0t=Nu&&Nu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i0t=Nu&&Nu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&s0t(e,t,r);return n0t(e,t),e};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.getOptions=void 0;var z9=i0t(no());function o0t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,z9.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,z9.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,z9.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Nu.getOptions=o0t});var c2=h(yA=>{"use strict";var a0t=yA&&yA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),c0t=yA&&yA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),u0t=yA&&yA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&a0t(e,t,r);return c0t(e,t),e},l0t=yA&&yA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yA,"__esModule",{value:!0});yA.safeTrimTrailingSeparator=yA.normalizeSeparators=yA.hasRoot=yA.hasAbsoluteRoot=yA.ensureAbsoluteRoot=yA.dirname=void 0;var a2=u0t(B("path")),bf=l0t(B("assert")),Hd=process.platform==="win32";function g0t(t){if(t=K9(t),Hd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=a2.dirname(t);return Hd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=K9(e)),e}yA.dirname=g0t;function d0t(t,e){if(bf.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),bf.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),j9(e))return e;if(Hd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return bf.default(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+Line truncated
%s`,J,J,p,A);var j=p.type==="*"?eJ:p.type==="?"?$9:"\\"+p.type;s=!0,A=A.slice(0,p.reStart)+j+"\\("+J}E(),n&&(A+="\\\\");var H=!1;switch(A.charAt(0)){case"[":case".":case"(":H=!0}for(var $=o.length-1;$>-1;$--){var oe=o[$],pe=A.slice(0,oe.reStart),Ne=A.slice(oe.reStart,oe.reEnd-8),K=A.slice(oe.reEnd-8,oe.reEnd),le=A.slice(oe.reEnd);K+=le;var Pe=pe.split("(").length-1,Wt=le;for(C=0;C<Pe;C++)Wt=Wt.replace(/\)[+*?]?/,"");le=Wt;var Ht="";le===""&&e!==l2&&(Ht="$");var $g=pe+Ne+le+Ht+K;A=$g}if(A!==""&&s&&(A="(?=.)"+A),H&&(A=g+A),e===l2)return[A,s];if(!s)return G0t(t);var ed=r.nocase?"i":"";try{var vo=new RegExp("^"+A+"$",ed)}catch{return new RegExp("$.")}return vo._glob=t,vo._src=A,vo}io.makeRe=function(t,e){return new Js(t,e||{}).makeRe()};Js.prototype.makeRe=H0t;function H0t(){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?eJ:e.dot?x0t:U0t,A=e.nocase?"i":"",s=t.map(function(n){return n.map(function(i){return i===tJ?r:typeof i=="string"?Y0t(i):i._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,A)}catch{this.regexp=!1}return this.regexp}io.match=function(t,e,r){r=r||{};var A=new Js(e,r);return t=t.filter(function(s){return A.match(s)}),A.options.nonull&&!t.length&&t.push(e),t};Js.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 A=this.options;Iw.sep!=="/"&&(e=e.split(Iw.sep).join("/")),e=e.split(bme),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,i;for(i=e.length-1;i>=0&&(n=e[i],!n);i--);for(i=0;i<s.length;i++){var o=s[i],a=e;A.matchBase&&o.length===1&&(a=[n]);var c=this.matchOne(a,o,r);if(c)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate};Js.prototype.matchOne=function(t,e,r){var A=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,i=t.length,o=e.length;s<i&&n<o;s++,n++){this.debug("matchOne loop");var a=e[n],c=t[s];if(this.debug(e,a,c),a===!1)return!1;if(a===tJ){this.debug("GLOBSTAR",[e,a,c]);var u=s,l=n+1;if(l===o){for(this.debug("** at the end");s<i;s++)if(t[s]==="."||t[s]===".."||!A.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<i;){var g=t[u];if(this.debug(`
globstar while`,t,u,e,l,g),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,i,g),!0;if(g==="."||g===".."||!A.dot&&g.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===i))}var d;if(typeof a=="string"?(d=c===a,this.debug("string match",a,c,d)):(d=c.match(a),this.debug("pattern match",a,c,d)),!d)return!1}if(s===i&&n===o)return!0;if(s===i)return r;if(n===o)return s===i-1&&t[s]==="";throw new Error("wtf?")};function G0t(t){return t.replace(/\\(.)/g,"$1")}function Y0t(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Rme=h(ia=>{"use strict";var q0t=ia&&ia.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),J0t=ia&&ia.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nme=ia&&ia.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&q0t(e,t,r);return J0t(e,t),e},V0t=ia&&ia.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ia,"__esModule",{value:!0});ia.Path=void 0;var Bw=Nme(B("path")),Yd=Nme(c2()),Qw=V0t(B("assert")),W0t=process.platform==="win32",AJ=class{constructor(e){if(this.segments=[],typeof e=="string")if(Qw.default(e,"Parameter 'itemPath' must not be empty"),e=Yd.safeTrimTrailingSeparator(e),!Yd.hasRoot(e))this.segments=e.split(Bw.sep);else{let r=e,A=Yd.dirname(r);for(;A!==r;){let s=Bw.basename(r);this.segments.unshift(s),r=A,A=Yd.dirname(r)}this.segments.unshift(r)}else{Qw.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let A=e[r];Qw.default(A,"Parameter 'itemPath' must not contain any empty segments"),A=Yd.normalizeSeparators(e[r]),r===0&&Yd.hasRoot(A)?(A=Yd.safeTrimTrailingSeparator(A),Qw.default(A===Yd.dirname(A),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(A)):(Qw.default(!A.includes(Bw.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(A))}}}toString(){let e=this.segments[0],r=e.endsWith(Bw.sep)||W0t&&/^[A-Z]:$/i.test(e);for(let A=1;A<this.segments.length;A++)r?r=!1:e+=Bw.sep,e+=this.segments[A];return e}};ia.Path=AJ});var Sme=h(oa=>{"use strict";var z0t=oa&&oa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),j0t=oa&&oa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iJ=oa&&oa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&z0t(e,t,r);return j0t(e,t),e},K0t=oa&&oa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oa,"__esModule",{value:!0});oa.Pattern=void 0;var X0t=iJ(B("os")),pw=iJ(B("path")),gi=iJ(c2()),wf=K0t(B("assert")),Z0t=rJ(),sJ=u2(),d2=Rme(),rg=process.platform==="win32",nJ=class t{constructor(e,r=!1,A,s){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{A=A||[],wf.default(A.length,"Parameter 'segments' must not empty");let c=t.getLiteral(A[0]);wf.default(c&&gi.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),n=new d2.Path(A).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,s),this.segments=new d2.Path(n).segments,this.trailingSeparator=gi.normalizeSeparators(n).endsWith(pw.sep),n=gi.safeTrimTrailingSeparator(n);let i=!1,o=this.segments.map(c=>t.getLiteral(c)).filter(c=>!i&&!(i=c===""));this.searchPath=new d2.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),rg?"i":""),this.isImplicitPattern=r;let a={dot:!0,nobrace:!0,nocase:rg,nocomment:!0,noext:!0,nonegate:!0};n=rg?n.replace(/\\/g,"/"):n,this.minimatch=new Z0t.Minimatch(n,a)}match(e){return this.segments[this.segments.length-1]==="**"?(e=gi.normalizeSeparators(e),!e.endsWith(pw.sep)&&this.isImplicitPattern===!1&&(e=`${e}${pw.sep}`)):e=gi.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?sJ.MatchKind.Directory:sJ.MatchKind.All:sJ.MatchKind.None}partialMatch(e){return e=gi.safeTrimTrailingSeparator(e),gi.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(rg?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(rg?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){wf.default(e,"pattern cannot be empty");let A=new d2.Path(e).segments.map(s=>t.getLiteral(s));if(wf.default(A.every((s,n)=>(s!=="."||n===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),wf.default(!gi.hasRoot(e)||A[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=gi.normalizeSeparators(e),e==="."||e.startsWith(`.${pw.sep}`))e=t.globEscape(process.cw Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||A.patterns.push(new xme.Pattern(n));return A.searchPaths.push(...E2.getSearchPaths(A.patterns)),A})}static stat(e,r,A){return aJ(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mw.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){cJ.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield mw.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield mw.promises.realpath(e.path);for(;A.length>=e.level;)A.pop();if(A.some(i=>i===n)){cJ.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}A.push(n)}return s})}};Qs.DefaultGlobber=uJ});var Lme=h(gQ=>{"use strict";var nmt=gQ&&gQ.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(gQ,"__esModule",{value:!0});gQ.create=void 0;var imt=Mme();function omt(t,e){return nmt(this,void 0,void 0,function*(){return yield imt.DefaultGlobber.create(t,e)})}gQ.create=omt});var Gme=h((nt,Hme)=>{nt=Hme.exports=Qt;var ar;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?ar=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:ar=function(){};nt.SEMVER_SPEC_VERSION="2.0.0";var bw=256,f2=Number.MAX_SAFE_INTEGER||9007199254740991,lJ=16,amt=bw-6,dQ=nt.re=[],or=nt.safeRe=[],X=nt.src=[],Y=nt.tokens={},Pme=0;function wt(t){Y[t]=Pme++}var dJ="[a-zA-Z0-9-]",gJ=[["\\s",1],["\\d",bw],[dJ,amt]];function Dw(t){for(var e=0;e<gJ.length;e++){var r=gJ[e][0],A=gJ[e][1];t=t.split(r+"*").join(r+"{0,"+A+"}").split(r+"+").join(r+"{1,"+A+"}")}return t}wt("NUMERICIDENTIFIER");X[Y.NUMERICIDENTIFIER]="0|[1-9]\\d*";wt("NUMERICIDENTIFIERLOOSE");X[Y.NUMERICIDENTIFIERLOOSE]="\\d+";wt("NONNUMERICIDENTIFIER");X[Y.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+dJ+"*";wt("MAINVERSION");X[Y.MAINVERSION]="("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")";wt("MAINVERSIONLOOSE");X[Y.MAINVERSIONLOOSE]="("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")";wt("PRERELEASEIDENTIFIER");X[Y.PRERELEASEIDENTIFIER]="(?:"+X[Y.NUMERICIDENTIFIER]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";wt("PRERELEASEIDENTIFIERLOOSE");X[Y.PRERELEASEIDENTIFIERLOOSE]="(?:"+X[Y.NUMERICIDENTIFIERLOOSE]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";wt("PRERELEASE");X[Y.PRERELEASE]="(?:-("+X[Y.PRERELEASEIDENTIFIER]+"(?:\\."+X[Y.PRERELEASEIDENTIFIER]+")*))";wt("PRERELEASELOOSE");X[Y.PRERELEASELOOSE]="(?:-?("+X[Y.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+X[Y.PRERELEASEIDENTIFIERLOOSE]+")*))";wt("BUILDIDENTIFIER");X[Y.BUILDIDENTIFIER]=dJ+"+";wt("BUILD");X[Y.BUILD]="(?:\\+("+X[Y.BUILDIDENTIFIER]+"(?:\\."+X[Y.BUILDIDENTIFIER]+")*))";wt("FULL");wt("FULLPLAIN");X[Y.FULLPLAIN]="v?"+X[Y.MAINVERSION]+X[Y.PRERELEASE]+"?"+X[Y.BUILD]+"?";X[Y.FULL]="^"+X[Y.FULLPLAIN]+"$";wt("LOOSEPLAIN");X[Y.LOOSEPLAIN]="[v=\\s]*"+X[Y.MAINVERSIONLOOSE]+X[Y.PRERELEASELOOSE]+"?"+X[Y.BUILD]+"?";wt("LOOSE");X[Y.LOOSE]="^"+X[Y.LOOSEPLAIN]+"$";wt("GTLT");X[Y.GTLT]="((?:<|>)?=?)";wt("XRANGEIDENTIFIERLOOSE");X[Y.XRANGEIDENTIFIERLOOSE]=X[Y.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";wt("XRANGEIDENTIFIER");X[Y.XRANGEIDENTIFIER]=X[Y.NUMERICIDENTIFIER]+"|x|X|\\*";wt("XRANGEPLAIN");X[Y.XRANGEPLAIN]="[v=\\s]*("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:"+X[Y.PRERELEASE]+")?"+X[Y.BUILD]+"?)?)?";wt("XRANGEPLAINLOOSE");X[Y.XRANGEPLAINLOOSE]="[v=\\s]*("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:"+X[Y.PRERELEASELOOSE]+")?"+X[Y.BUILD]+"?)?)?";wt("XRANGE");X[Y.XRANGE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAIN]+"$";wt("XRANGELOOSE");X[Y.XRANGELOOSE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAINLOOSE]+"$";wt("COERCE");X[Y.COERCE]="(^|[^\\d])(\\d{1,"+lJ+"})(?:\\.(\\d{1,"+lJ+"}))?(?:\\.(\\d{1,"+lJ+"}))?(?:$|[^\\d])";wt("COERCERTL");dQ[Y.COERCERTL]=new RegExp(X[Y.COERCE],"g");or[Y.COERCERTL]=new RegExp(Dw(X[Y.COERCE]),"g");wt("LONETILDE");X[Y.LONETILDE]="(?:~>?)";wt("TILDETRIM");X[Y.TILDETRIM]="(\\s*)"+X[Y.LONETILDE]+"\\s+";dQ[Y.TILDETRIM]=new RegExp(X[Y.TILDETRIM],"g");or[Y.TILDETRIM]=new RegExp(Dw(X[Y.TILDETRIM]),"g");var cmt="$1~";wt("TILDE");X[Y.TILDE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAIN]+"$";wt("TILDELOOSE");X[Y.TILDELOOSE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAINLOOSE]+"$";wt("LONECARET");X[Y.LONECARET]="(?:\\^)";wt("CARETTRIM");X[Y.CARETTRIM]="(\\s*)"+X[Y.LONECARET]+"\\s+";dQ[Y.CARETTRIM]=new RegExp(X[Y.CARETTRIM],"g");or[Y.CARETTRIM]=new RegExp(Dw(X[Y.CARETTRIM]),"g");var umt="$1^";wt("CARET");X[Y.C Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=Wmt(a.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let g=s,d=Q2.relative(o,g).replace(new RegExp(`\\${Q2.sep}`,"g"),"/");Nw.debug(`Matched: ${d}`),d===""?i.push("."):i.push(`${d}`)}}catch(g){r={error:g}}finally{try{!c&&!e&&(A=u.return)&&(yield A.call(u))}finally{if(r)throw r.error}}return i})}Kt.resolvePaths=tyt;function ryt(t){return fQ(this,void 0,void 0,function*(){return Xmt.promisify(IJ.unlink)(t)})}Kt.unlinkFile=ryt;function zme(t,e=[]){return fQ(this,void 0,void 0,function*(){let r="";e.push("--version"),Nw.debug(`Checking ${t} ${e.join(" ")}`);try{yield zmt.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:A=>r+=A.toString(),stderr:A=>r+=A.toString()}})}catch(A){Nw.debug(A.message)}return r=r.trim(),Nw.debug(r),r})}function Ayt(){return fQ(this,void 0,void 0,function*(){let t=yield zme("zstd",["--quiet"]),e=Kmt.clean(t);return Nw.debug(`zstd version: ${e}`),t===""?Rf.CompressionMethod.Gzip:Rf.CompressionMethod.ZstdWithoutLong})}Kt.getCompressionMethod=Ayt;function syt(t){return t===Rf.CompressionMethod.Gzip?Rf.CacheFilename.Gzip:Rf.CacheFilename.Zstd}Kt.getCacheFileName=syt;function nyt(){return fQ(this,void 0,void 0,function*(){return IJ.existsSync(Rf.GnuTarPathOnWindows)?Rf.GnuTarPathOnWindows:(yield zme("tar")).toLowerCase().includes("gnu tar")?Vme.which("tar"):""})}Kt.getGnuTarPathOnWindows=nyt;function iyt(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Kt.assertDefined=iyt;function oyt(t,e,r=!1){let A=t.slice();return e&&A.push(e),process.platform==="win32"&&!r&&A.push("windows-only"),A.push(Zmt),Wme.createHash("sha256").update(A.join("|")).digest("hex")}Kt.getCacheVersion=oyt;function ayt(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Kt.getRuntimeToken=ayt});var kr={};nc(kr,{__addDisposableResource:()=>Bye,__assign:()=>p2,__asyncDelegator:()=>lye,__asyncGenerator:()=>uye,__asyncValues:()=>gye,__await:()=>IQ,__awaiter:()=>sye,__classPrivateFieldGet:()=>fye,__classPrivateFieldIn:()=>Iye,__classPrivateFieldSet:()=>Cye,__createBinding:()=>y2,__decorate:()=>Xme,__disposeResources:()=>Qye,__esDecorate:()=>$me,__exportStar:()=>iye,__extends:()=>jme,__generator:()=>nye,__importDefault:()=>Eye,__importStar:()=>hye,__makeTemplateObject:()=>dye,__metadata:()=>Aye,__param:()=>Zme,__propKey:()=>tye,__read:()=>pJ,__rest:()=>Kme,__rewriteRelativeImportExtension:()=>pye,__runInitializers:()=>eye,__setFunctionName:()=>rye,__spread:()=>oye,__spreadArray:()=>cye,__spreadArrays:()=>aye,__values:()=>m2,default:()=>lyt});function jme(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");BJ(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Kme(t,e){var r={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(r[A]=t[A]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,A=Object.getOwnPropertySymbols(t);s<A.length;s++)e.indexOf(A[s])<0&&Object.prototype.propertyIsEnumerable.call(t,A[s])&&(r[A[s]]=t[A[s]]);return r}function Xme(t,e,r,A){var s=arguments.length,n=s<3?e:A===null?A=Object.getOwnPropertyDescriptor(e,r):A,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,A);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(s<3?i(n):s>3?i(e,r,n):i(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n}function Zme(t,e){return function(r,A){e(r,A,t)}}function $me(t,e,r,A,s,n){function i(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}for(var o=A.kind,a=o==="getter"?"get":o==="setter"?"set":"value",c=!e&&t?A.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,A.name):{}),l,g=!1,d=r.length-1;d>=0;d--){var E={};for(var C in A)E[C]=C==="access"?{}:A[C];for(var C in A.access)E.access[C]=A.access[C];E.addInitializer=function(I){if(g)throw new TypeError("Cannot add initializers after decoration has completed");n.push(i(I||null))};var Q=(0,r[d])(o==="accessor"?{get:u.get,set:u.set}:u[a],E);if(o==="accessor"){if(Q===void 0)continue;if(Q===null||typeof Q!="object")throw new TypeError("Object expected");(l=i(Q.get))&&(u.get=l),(l=i(Q.set))&&(u.set=l),(l=i(Q.init))&&s.unshift(l)}else(l=i(Q))&&(o==="field"?s.unshift(l):u[a]=l)}c&&Object.defineProperty(c,A.name,u),g=!0}function eye(t,e,r){for(var A=arguments.length>2,s=0;s<e.length;s++)r=A?e[s].call(t,r):e[s].call(t);return A?r:void 0}function tye(t){return typeof t=="symbol"?t:"".concat(t)}function rye(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function Aye(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function sye(t,e,r,A){function s(n){return Line truncated
${Hyt.sanitize({...this,request:{...this.request,agent:A},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};kw.RestError=x2;function Gyt(t){return t instanceof x2?!0:(0,_yt.isError)(t)&&t.name==="RestError"}});var Sf=h(U2=>{"use strict";Object.defineProperty(U2,"__esModule",{value:!0});U2.uint8ArrayToString=Yyt;U2.stringToUint8Array=qyt;function Yyt(t,e){return Buffer.from(t).toString(e)}function qyt(t,e){return Buffer.from(t,e)}});var Fw=h(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0});M2.logger=void 0;var Jyt=N2();M2.logger=(0,Jyt.createClientLogger)("ts-http-runtime")});var Jye=h(v2=>{"use strict";Object.defineProperty(v2,"__esModule",{value:!0});v2.getBodyLength=qye;v2.createNodeHttpClient=$yt;var WJ=(Fr(),_r(kr)),qJ=WJ.__importDefault(B("node:http")),JJ=WJ.__importDefault(B("node:https")),Oye=WJ.__importDefault(B("node:zlib")),Vyt=B("node:stream"),Hye=Rw(),Wyt=Vd(),Uw=BQ(),QQ=Fw(),zyt=Tw(),jyt={};function xw(t){return t&&typeof t.pipe=="function"}function Gye(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 Yye(t){return t&&typeof t.byteLength=="number"}var L2=class extends Vyt.Transform{loadedBytes=0;progressCallback;_transform(e,r,A){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),A()}catch(s){A(s)}}constructor(e){super(),this.progressCallback=e}},VJ=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,A;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hye.AbortError("The operation was aborted. Request has already been canceled.");A=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",A)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new zyt.Sanitizer;QQ.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),i=n?.includes("gzip")||n?.includes("deflate"),o=typeof e.body=="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){let c=qye(o);c!==null&&e.headers.set("Content-Length",c)}let a;try{if(o&&e.onUploadProgress){let E=e.onUploadProgress,C=new L2(E);C.on("error",Q=>{QQ.logger.error("Error in upload progress",Q)}),xw(o)?o.pipe(C):C.end(o),o=C}let c=await this.makeRequest(e,r,o);s!==void 0&&clearTimeout(s);let u=Kyt(c),g={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),g;a=i?Xyt(c,u):c;let d=e.onDownloadProgress;if(d){let E=new L2(d);E.on("error",C=>{QQ.logger.error("Error in download progress",C)}),a.pipe(E),a=E}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(g.status)?g.readableStreamBody=a:g.bodyAsText=await Zyt(a),g}finally{if(e.abortSignal&&A){let c=Promise.resolve();xw(o)&&(c=Gye(o));let u=Promise.resolve();xw(a)&&(u=Gye(a)),Promise.all([c,u]).then(()=>{A&&e.abortSignal?.removeEventListener("abort",A)}).catch(l=>{QQ.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,A){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let o={agent:e.agent??this.getOrCreateAgent(e,n),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=n?qJ.default.request(o,a):JJ.default.request(o,a);u.once("error",l=>{c(new Uw.RestError(l.message,{code:l.code??Uw.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hye.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),A&&xw(A)?A.pipe(u):A?typeof A=="string"||Buffer.isBuffer(A)?u.end(A):Yye(A)?u.end(ArrayBuffer.isView(A)?Buffer.from(A.buffer):Buffer.from(A)):(QQ.logger.error("Unrecognized body type",A),c(new Uw.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let A=e.disableKeepAlive;if(r)return A?qJ.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new qJ.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(A&&!e.tlsSettings)return JJ.default.globalAgent;let s=e.tlsSettings??jyt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!A||(QQ.logger.info("No cached TLS Agent exist, creating a new Agent"),n=new JJ.default.Agent({keepAlive:!A,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function Kyt(t){let e=(0,Wyt.createHttpHeaders)();for(let r of Object.keys(t.headers)){let A=t.headers[r];Array.isArray(A)?A.length>0&&e.set(r,A[0]):A&&e.set(r,A)}return e}function Xyt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let A=Oye.default.createGunzip();return t.pipe(A),A}else if(r==="deflate"){let A=Oye.default.createInflate();return t.p Line truncated
`.trim())}};bq.exports=A2});var fI=E((Oat,xq)=>{"use strict";var Nq=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:BQe}=qe(),yQe=Od();Tq()===void 0&&Sq(new yQe);function Sq(t){if(!t||typeof t.dispatch!="function")throw new BQe("Argument agent must implement Agent");Object.defineProperty(globalThis,Nq,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Tq(){return globalThis[Nq]}xq.exports={setGlobalDispatcher:Sq,getGlobalDispatcher:Tq}});var pI=E((Hat,Dq)=>{"use strict";Dq.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 kq=E((Gat,Rq)=>{"use strict";var QQe=zC();Rq.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 QQe(r,o,n,i);return r(a,A)}}});var Mq=E((Yat,Fq)=>{"use strict";var bQe=iI();Fq.exports=t=>e=>function(s,n){return e(s,new bQe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var Lq=E((qat,Uq)=>{"use strict";var wQe=De(),{InvalidArgumentError:NQe,RequestAbortedError:SQe}=qe(),TQe=pI(),c2=class extends TQe{#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 NQe("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=wQe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new SQe(`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 xQe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new c2({maxSize:i},n);return e(s,o)}}Uq.exports=xQe});var Oq=E((Vat,Pq)=>{"use strict";var{isIP:DQe}=w("node:net"),{lookup:RQe}=w("node:dns"),kQe=pI(),{InvalidArgumentError:Kd,InformationalError:FQe}=qe(),vq=Math.pow(2,31)-1,u2=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 FQe("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){RQe(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===vq?(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===vq?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 l2(this,e,r)}},l2=class extends kQe{#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":E7(i)&&(r[n]=i);break;case"id":C7(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&E7(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&C7(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}}};I7.exports={EventSourceStream:j2}});var x7=E((yAt,T7)=>{"use strict";var{pipeline:YNe}=w("node:stream"),{fetching:qNe}=gp(),{makeRequest:VNe}=Zd(),{webidl:Sa}=Sr(),{EventSourceStream:JNe}=B7(),{parseMIMEType:WNe}=cs(),{createFastMessageEvent:zNe}=nh(),{isNetworkError:y7}=dp(),{delay:KNe}=z2(),{kEnumerableProperty:Nu}=De(),{environmentSettingsObject:Q7}=_s(),b7=!1,w7=3e3,Sp=0,N7=1,Tp=2,jNe="anonymous",XNe="use-credentials",ch=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Sp;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Sa.util.markAsUncloneable(this);let s="EventSource constructor";Sa.argumentLengthCheck(arguments,1,s),b7||(b7=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Sa.converters.USVString(e,s,"url"),r=Sa.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:w7};let n=Q7,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=jNe;r.withCredentials&&(o=XNe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Q7.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=VNe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Tp)return;this.#r=Sp;let e={request:this.#n,dispatcher:this.#a},r=s=>{y7(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(y7(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?WNe(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=N7,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new JNe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(zNe(A.type,A.options))}});YNe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=qNe(e)}async#c(){this.#r!==Tp&&(this.#r=Sp,this.dispatchEvent(new Event("error")),await KNe(this.#o.reconnectionTime),this.#r===Sp&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Sa.brandCheck(this,t),this.#r!==Tp&&(this.#r=Tp,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}},S7={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Sp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:N7,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Tp,writable:!1}};Object.defineProperties(ch,S7);Object.defineProperties(ch.prototype,S7);Object.defineProperties(ch.prototype,{close:Nu,onerror:Nu,onmessage:Nu,onopen:Nu,readyState:Nu,url:Nu,withCredentials:Nu});Sa.converters.EventSourceInitDict=Sa.dictionaryConverter([{key:"withCredentials",converter:Sa.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Sa.converters.any}]);T7.exports={EventSource:ch,defaultReconnectionTime:w7}});var nB=E((QAt,le)=>{"use strict";var ZNe=vd(),D7=kf(),$Ne=Pd(),eSe=SG(),tSe=Od(),rSe=Bx(),sSe=XG(),nSe=sY(),R7=qe(),sB=De(),{InvalidArgumentError:rB}=R7,uh=YY(),iSe=Mf(),oSe=r2(),aSe=wq(),ASe=i2(),cSe=Yx(),uSe=iI(),{getGlobalDispatcher:k7,setGlobalDispatcher:lSe}=fI(),dSe=pI(),hSe=zC(),gSe=KC();Object.assign(D7.prototype,uh);le.exports.Dispatcher=D7;le.exports.Client=ZNe;le.exports.Pool=$Ne;le.exports.BalancedPool=eSe;le.exports.Agent=tSe;le.exports.ProxyAgent=rSe;le.exports.EnvHttpProxyAgent=sSe;le.exports.RetryAgent=nSe;le.exports.RetryHandle Line truncated
%s`,R,R,C,s);var M=C.type==="*"?VD:C.type==="?"?qD:"\\"+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 yn="";xe===""&&e!==bB&&(yn="$");var ru=Ye+at+xe+yn+Be;s=ru}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===bB)return[s,n];if(!n)return u2e(t);var su=r.nocase?"i":"";try{var yS=new RegExp("^"+s+"$",su)}catch{return new RegExp("$.")}return yS._glob=t,yS._src=s,yS}js.makeRe=function(t,e){return new $t(t,e||{}).makeRe()};$t.prototype.makeRe=c2e;function c2e(){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?VD:e.dot?t2e:r2e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Mu?r:typeof o=="string"?l2e(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 $t(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};$t.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;Op.sep!=="/"&&(e=e.split(Op.sep).join("/")),e=e.split(yz),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};$t.prototype.matchOne=function(t,e,r){return e.indexOf(Mu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};$t.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Mu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Mu){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===Mu?(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)};$t.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};$t.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===Mu)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 u2e(t){return t.replace(/\\(.)/g,"$1")}function l2e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Eh=E((Eut,xz)=>{"use strict";var C2e="2.0.0",I2e=Number.MAX_SAFE_INTEGER||9007199254740991,B2e=16,y2e=250,Q2e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];xz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:B2e,MAX_SAFE_BUILD_LENGTH:y2e,MAX_SAFE_INTEGER:I2e,RELEASE_TYPES:Q2e,SEMVER_SPEC_VERSION:C2e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Yp=E((Cut,Dz)=>{"use strict";var b2e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Dz.exports=b2e});var Ch=E((ho,Rz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:WD,MAX_SAFE_BUILD_LENGTH:w2e,MAX_LENGTH:N2e}=Eh(),S2e=Yp();ho=Rz.exports={};var T2e=ho.re=[],x2e=ho.safeRe=[],z=ho.src=[],D2e=ho.safeSrc=[],K=ho.t={},R2e=0,zD="[a-zA-Z0-9-]",k2e=[["\\s",1],["\\d",N2e],[zD,w2e]],F2e=t=>{for(let[e,r]of k2e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+n),t.push(s+"m+"+W2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=uwt()+e+" "+t[0]}function uwt(){return ms.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lwt(...t){return process.stderr.write(V2.formatWithOptions(ms.inspectOpts,...t)+`
`)}function gwt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function dwt(){return process.env.DEBUG}function hwt(t){t.inspectOpts={};let e=Object.keys(ms.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ms.inspectOpts[e[r]]}W2.exports=l6()(ms);var{formatters:hbe}=W2.exports;hbe.o=function(t){return this.inspectOpts.colors=this.useColors,V2.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};hbe.O=function(t){return this.inspectOpts.colors=this.useColors,V2.inspect(t,this.inspectOpts)}});var z2=h((oDr,h6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?h6.exports=abe():h6.exports=Ebe()});var Ibe=h(hi=>{"use strict";var Ewt=hi&&hi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),fwt=hi&&hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fbe=hi&&hi.__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)&&Ewt(e,t,r);return fwt(e,t),e};Object.defineProperty(hi,"__esModule",{value:!0});hi.req=hi.json=hi.toBuffer=void 0;var Cwt=fbe(B("http")),Iwt=fbe(B("https"));async function Cbe(t){let e=0,r=[];for await(let A of t)e+=A.length,r.push(A);return Buffer.concat(r,e)}hi.toBuffer=Cbe;async function Bwt(t){let r=(await Cbe(t)).toString("utf8");try{return JSON.parse(r)}catch(A){let s=A;throw s.message+=` (input: ${r})`,s}}hi.json=Bwt;function Qwt(t,e={}){let A=((typeof t=="string"?t:t.href).startsWith("https:")?Iwt:Cwt).request(t,e),s=new Promise((n,i)=>{A.once("response",n).once("error",i).end()});return A.then=s.then.bind(s),A}hi.req=Qwt});var f6=h(oo=>{"use strict";var Qbe=oo&&oo.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),pwt=oo&&oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pbe=oo&&oo.__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)&&Qbe(e,t,r);return pwt(e,t),e},mwt=oo&&oo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qbe(e,t,r)};Object.defineProperty(oo,"__esModule",{value:!0});oo.Agent=void 0;var ywt=pbe(B("net")),Bbe=pbe(B("http")),bwt=B("https");mwt(Ibe(),oo);var Su=Symbol("AgentBaseInternalState"),E6=class extends Bbe.Agent{constructor(e){super(e),this[Su]={}}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(A=>A.indexOf("(https.js:")!==-1||A.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 ywt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let A=this.sockets[e],s=A.indexOf(r);s!==-1&&(A.splice(s,1),this.totalSocketCount--,A.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?bwt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,A){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),i=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(this.decrementSockets(n,i),o instanceof Bbe.Agent)try{return o.addRequest(e,s)}catch(a){return A(a)}this[Su].currentSocket=o,super.createSocket(e,r,A)},o=>{this.decrementSockets(n,i),A(o)})}createConnection(){let e=this[Su].currentSocket;if(this[Su].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Su].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Su]&&(this[Su].defaultPort=e)}get protocol(){return this[Su].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Su]&&(this[Su].protocol=e)}};oo.Agent=E6});var mbe=h(FQ=>{"use strict";var wwt=FQ&&FQ.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FQ,"__esModule",{value:!0});FQ.parseProxyResponse=void 0;var Dwt=wwt(z2()),j2=(0,Dwt.default)("https-proxy-agent:parse-proxy-response");function Nwt(t){return new Promise((e,r)=>{let A=0,s=[];function n(){let u=t.read();u?c(u):t.once("readable",n)}function i(){t.removeListener("end",o),t.removeListener("error",a),t.removeListener("readable",n)}function o(){i(),j2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function a(u){i(),j2("onerror %o",u),r(u)}function c(u){s.push(u),A+=u.length;let l=Buffer.concat(s,A),g=l.indexOf(`\r
`+i),t.push(n+"m+"+Ay.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=IFe()+e+" "+t[0]}function IFe(){return gr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function BFe(...t){return process.stderr.write(ay.formatWithOptions(gr.inspectOpts,...t)+`
`)}function yFe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function QFe(){return process.env.DEBUG}function bFe(t){t.inspectOpts={};let e=Object.keys(gr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=gr.inspectOpts[e[r]]}Ay.exports=vR()(gr);var{formatters:oX}=Ay.exports;oX.o=function(t){return this.inspectOpts.colors=this.useColors,ay.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};oX.O=function(t){return this.inspectOpts.colors=this.useColors,ay.inspect(t,this.inspectOpts)}});var cy=E((Kdt,_R)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_R.exports=eX():_R.exports=aX()});var uX=E(Es=>{"use strict";var wFe=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]})),NFe=Es&&Es.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AX=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)&&wFe(e,t,r);return NFe(e,t),e};Object.defineProperty(Es,"__esModule",{value:!0});Es.req=Es.json=Es.toBuffer=void 0;var SFe=AX(w("http")),TFe=AX(w("https"));async function cX(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Es.toBuffer=cX;async function xFe(t){let r=(await cX(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Es.json=xFe;function DFe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?TFe:SFe).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=DFe});var GR=E($s=>{"use strict";var dX=$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]})),RFe=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hX=$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)&&dX(e,t,r);return RFe(e,t),e},kFe=$s&&$s.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dX(e,t,r)};Object.defineProperty($s,"__esModule",{value:!0});$s.Agent=void 0;var FFe=hX(w("net")),lX=hX(w("http")),MFe=w("https");kFe(uX(),$s);var po=Symbol("AgentBaseInternalState"),HR=class extends lX.Agent{constructor(e){super(e),this[po]={}}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 FFe.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)?MFe.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 lX.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[po].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[po].currentSocket;if(this[po].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[po].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[po]&&(this[po].defaultPort=e)}get protocol(){return this[po].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[po]&&(this[po].protocol=e)}};$s.Agent=HR});var gX=E(Th=>{"use strict";var UFe=Th&&Th.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Th,"__esModule",{value:!0});Th.parseProxyResponse=void 0;var LFe=UFe(cy()),uy=(0,LFe.default)("https-proxy-agent:parse-proxy-response");function vFe(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(),uy("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),uy("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(g===-1){j2("have not received end of HTTP headers yet..."),n();return}let d=l.slice(0,g).toString("ascii").split(`\r
`),E=d.shift();if(!E)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let C=E.split(" "),Q=+C[1],I=C.slice(2).join(" "),p={};for(let w of d){if(!w)continue;let k=w.indexOf(":");if(k===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let J=w.slice(0,k).toLowerCase(),j=w.slice(k+1).trimStart(),H=p[J];typeof H=="string"?p[J]=[H,j]:Array.isArray(H)?H.push(j):p[J]=j}j2("got proxy server response: %o %o",E,p),i(),e({connect:{statusCode:Q,statusText:I,headers:p},buffered:l})}t.on("error",a),t.on("end",o),n()})}FQ.parseProxyResponse=Nwt});var Rbe=h(ua=>{"use strict";var Rwt=ua&&ua.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),Swt=ua&&ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dbe=ua&&ua.__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)&&Rwt(e,t,r);return Swt(e,t),e},Nbe=ua&&ua.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ua,"__esModule",{value:!0});ua.HttpsProxyAgent=void 0;var K2=Dbe(B("net")),ybe=Dbe(B("tls")),Twt=Nbe(B("assert")),kwt=Nbe(z2()),Fwt=f6(),xwt=B("url"),Uwt=mbe(),vw=(0,kwt.default)("https-proxy-agent"),bbe=t=>t.servername===void 0&&t.host&&!K2.isIP(t.host)?{...t,servername:t.host}:t,X2=class extends Fwt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xwt.URL(e):e,this.proxyHeaders=r?.headers??{},vw("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let A=(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?wbe(r,"headers"):null,host:A,port:s}}async connect(e,r){let{proxy:A}=this;if(!r.host)throw new TypeError('No "host" provided');let s;A.protocol==="https:"?(vw("Creating `tls.Socket`: %o",this.connectOpts),s=ybe.connect(bbe(this.connectOpts))):(vw("Creating `net.Socket`: %o",this.connectOpts),s=K2.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=K2.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(A.username||A.password){let g=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}n.Host=`${i}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(n))o+=`${g}: ${n[g]}\r
`;let a=(0,Uwt.parseProxyResponse)(s);s.write(`${o}\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",Mwt),r.secureEndpoint?(vw("Upgrading socket connection to TLS"),ybe.connect({...wbe(bbe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new K2.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{vw("Replaying proxy buffer for failed request"),(0,Twt.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};X2.protocols=["http","https"];ua.HttpsProxyAgent=X2;function Mwt(t){t.resume()}function wbe(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var kbe=h(la=>{"use strict";var Lwt=la&&la.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),vwt=la&&la.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tbe=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)&&Lwt(e,t,r);return vwt(e,t),e},_wt=la&&la.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(la,"__esModule",{value:!0});la.HttpProxyAgent=void 0;var Pwt=Tbe(B("net")),Owt=Tbe(B("tls")),Hwt=_wt(z2()),Gwt=B("events"),Ywt=f6(),Sbe=B("url"),xQ=(0,Hwt.default)("http-proxy-agent"),Z2=class extends Ywt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Sbe.URL(e):e,this.proxyHeaders=r?.headers??{},xQ("Creating new HttpProxyAgent instance: %o",this.proxy.href);let A=(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?qwt(r,"headers"):null,host:A,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:A}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",i=`${s}//${n}`,o=new Sbe.URL(e.path,i);r.port!==80&&(o.port=String(r.port)),e.path=String(o);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(A.username||A.password){let c=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.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 A,s;xQ("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xQ("Patching connection write() output buffer with updated header"),A=e.outputData[0].data,s=A.indexOf(`\r
`);if(d===-1){uy("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}uy("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()})}Th.parseProxyResponse=vFe});var IX=E(Mn=>{"use strict";var PFe=Mn&&Mn.__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]})),OFe=Mn&&Mn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),EX=Mn&&Mn.__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)&&PFe(e,t,r);return OFe(e,t),e},CX=Mn&&Mn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.HttpsProxyAgent=void 0;var ly=EX(w("net")),fX=EX(w("tls")),_Fe=CX(w("assert")),HFe=CX(cy()),GFe=GR(),YFe=w("url"),qFe=gX(),sm=(0,HFe.default)("https-proxy-agent"),pX=t=>t.servername===void 0&&t.host&&!ly.isIP(t.host)?{...t,servername:t.host}:t,dy=class extends GFe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new YFe.URL(e):e,this.proxyHeaders=r?.headers??{},sm("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?mX(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:"?(sm("Creating `tls.Socket`: %o",this.connectOpts),n=fX.connect(pX(this.connectOpts))):(sm("Creating `net.Socket`: %o",this.connectOpts),n=ly.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=ly.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,qFe.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",VFe),r.secureEndpoint?(sm("Upgrading socket connection to TLS"),fX.connect({...mX(pX(r),"host","path","port"),socket:n})):n;n.destroy();let l=new ly.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{sm("Replaying proxy buffer for failed request"),(0,_Fe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};dy.protocols=["http","https"];Mn.HttpsProxyAgent=dy;function VFe(t){t.resume()}function mX(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var QX=E(Un=>{"use strict";var JFe=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]})),WFe=Un&&Un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yX=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)&&JFe(e,t,r);return WFe(e,t),e},zFe=Un&&Un.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Un,"__esModule",{value:!0});Un.HttpProxyAgent=void 0;var KFe=yX(w("net")),jFe=yX(w("tls")),XFe=zFe(cy()),ZFe=w("events"),$Fe=GR(),BX=w("url"),xh=(0,XFe.default)("http-proxy-agent"),hy=class extends $Fe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new BX.URL(e):e,this.proxyHeaders=r?.headers??{},xh("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?eMe(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 BX.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;xh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xh("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+A.substring(s),xQ("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(xQ("Creating `tls.Socket`: %o",this.connectOpts),n=Owt.connect(this.connectOpts)):(xQ("Creating `net.Socket`: %o",this.connectOpts),n=Pwt.connect(this.connectOpts)),await(0,Gwt.once)(n,"connect"),n}};Z2.protocols=["http","https"];la.HttpProxyAgent=Z2;function qwt(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var C6=h(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.globalNoProxyList=ga.proxyPolicyName=void 0;ga.loadNoProxy=Lbe;ga.getDefaultProxySettings=eDt;ga.proxyPolicy=rDt;var Jwt=Rbe(),Vwt=kbe(),Wwt=Fw(),zwt="HTTPS_PROXY",jwt="HTTP_PROXY",Kwt="ALL_PROXY",Xwt="NO_PROXY";ga.proxyPolicyName="proxyPolicy";ga.globalNoProxyList=[];var Ube=!1,Zwt=new Map;function $2(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function Mbe(){if(!process)return;let t=$2(zwt),e=$2(Kwt),r=$2(jwt);return t||e||r}function $wt(t,e,r){if(e.length===0)return!1;let A=new URL(t).hostname;if(r?.has(A))return r.get(A);let s=!1;for(let n of e)n[0]==="."?(A.endsWith(n)||A.length===n.length-1&&A===n.slice(1))&&(s=!0):A===n&&(s=!0);return r?.set(A,s),s}function Lbe(){let t=$2(Xwt);return Ube=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function eDt(t){if(!t&&(t=Mbe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function tDt(){let t=Mbe();return t?new URL(t):void 0}function Fbe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function xbe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Wwt.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let n=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new Vwt.HttpProxyAgent(r,{headers:n})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Jwt.HttpsProxyAgent(r,{headers:n})),t.agent=e.httpsProxyAgent)}function rDt(t,e){Ube||ga.globalNoProxyList.push(...Lbe());let r=t?Fbe(t):tDt(),A={};return{name:ga.proxyPolicyName,async sendRequest(s,n){return!s.proxySettings&&r&&!$wt(s.url,e?.customNoProxyList??ga.globalNoProxyList,e?.customNoProxyList?void 0:Zwt)?xbe(s,A,r):s.proxySettings&&xbe(s,A,Fbe(s.proxySettings)),n(s)}}}});var I6=h(UQ=>{"use strict";Object.defineProperty(UQ,"__esModule",{value:!0});UQ.agentPolicyName=void 0;UQ.agentPolicy=ADt;UQ.agentPolicyName="agentPolicy";function ADt(t){return{name:UQ.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var B6=h(MQ=>{"use strict";Object.defineProperty(MQ,"__esModule",{value:!0});MQ.tlsPolicyName=void 0;MQ.tlsPolicy=sDt;MQ.tlsPolicyName="tlsPolicy";function sDt(t){return{name:MQ.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var _w=h(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.isNodeReadableStream=vbe;Ff.isWebReadableStream=_be;Ff.isBinaryBody=nDt;Ff.isReadableStream=Pbe;Ff.isBlob=iDt;function vbe(t){return!!(t&&typeof t.pipe=="function")}function _be(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function nDt(t){return t!==void 0&&(t instanceof Uint8Array||Pbe(t)||typeof t=="function"||t instanceof Blob)}function Pbe(t){return vbe(t)||_be(t)}function iDt(t){return typeof t.stream=="function"}});var Gbe=h(p6=>{"use strict";Object.defineProperty(p6,"__esModule",{value:!0});p6.concat=uDt;var Q6=B("stream"),oDt=_w();async function*Obe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function aDt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=Obe.bind(t)),t.values||(t.values=Obe.bind(t))}function Hbe(t){return t instanceof ReadableStream?(aDt(t),Q6.Readable.fromWeb(t)):t}function cDt(t){return t instanceof Uint8Array?Q6.Readable.from(Buffer.from(t)):(0,oDt.isBlob)(t)?Hbe(t.stream()):Hbe(t)}async function uDt(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(cDt);return Q6.Readable.from((async function*(){for(let r of e)for await(let A of r)yield A})())}}});var m6=h(vQ=>{"use strict";Object.defineProperty(vQ,"__esModule",{value:!0});vQ.multipartPolicyName=void 0;vQ.multipartPolicy=mDt;var LQ=Sf(),lDt=_w(),gDt=S2(),dDt=Gbe();function hDt(){return`----AzSDKFormBoundary${(0,gDt.randomUUID)()}`}function EDt(t){let e="";for(let[r,A]of t)e+=`${r}: ${A}\r
`;return e}function fDt(t){return t instanceof Uint8Array?t.byteLength:(0,lDt.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function CDt(t){let e=0;for(let r of t){let A=fDt(r);if(A===void 0)return;e+=A}return e}async function IDt(t,e,r){let A=[(0,LQ.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(n=>[(0,LQ.stringToUint8Array)(`\r
`,"utf-8"),(0,LQ.stringToUint8Array)(EDt(n.headers),"utf-8"),(0,LQ.stringToUint8Array)(`\r
`,"utf-8"),n.body,(0,LQ.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,LQ.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=CDt(A);s&&t.headers.set("Content-Length",s),t.body=await(0,dDt.concat)(A)}vQ.multipartPolicyName="multipartPolicy";var BDt=70,QDt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pDt(t){if(t.length>BDt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!QDt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function mDt(){return{name:vQ.multipartPolicyName,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,A=t.headers.get("Content-Type")??"multipart/mixed",s=A.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${A}`);let[,n,i]=s;if(i&&r&&i!==r)throw new Error(`Multipart boundary was specified as ${i} in the header, but got ${r} in the request body`);return r??=i,r?pDt(r):r=hDt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await IDt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var Jbe=h(y6=>{"use strict";Object.defineProperty(y6,"__esModule",{value:!0});y6.createPipelineFromOptions=xDt;var yDt=KJ(),bDt=_J(),wDt=XJ(),DDt=e6(),NDt=t6(),RDt=c6(),SDt=u6(),Ybe=Lw(),TDt=C6(),kDt=I6(),FDt=B6(),qbe=m6();function xDt(t){let e=(0,bDt.createEmptyPipeline)();return Ybe.isNodeLike&&(t.agent&&e.addPolicy((0,kDt.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,FDt.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,TDt.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,NDt.decompressResponsePolicy)())),e.addPolicy((0,SDt.formDataPolicy)(),{beforePolicies:[qbe.multipartPolicyName]}),e.addPolicy((0,DDt.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,qbe.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,RDt.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),Ybe.isNodeLike&&e.addPolicy((0,wDt.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,yDt.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var Vbe=h(_Q=>{"use strict";Object.defineProperty(_Q,"__esModule",{value:!0});_Q.apiVersionPolicyName=void 0;_Q.apiVersionPolicy=UDt;_Q.apiVersionPolicyName="ApiVersionPolicy";function UDt(t){return{name:_Q.apiVersionPolicyName,sendRequest:(e,r)=>{let A=new URL(e.url);return!A.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(A.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var Wbe=h(PQ=>{"use strict";Object.defineProperty(PQ,"__esModule",{value:!0});PQ.isOAuth2TokenCredential=MDt;PQ.isBearerTokenCredential=LDt;PQ.isBasicCredential=vDt;PQ.isApiKeyCredential=_Dt;function MDt(t){return"getOAuth2Token"in t}function LDt(t){return"getBearerToken"in t}function vDt(t){return"username"in t&&"password"in t}function _Dt(t){return"key"in t}});var Pw=h(b6=>{"use strict";Object.defineProperty(b6,"__esModule",{value:!0});b6.ensureSecureConnection=GDt;var PDt=Fw(),zbe=!1;function ODt(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function HDt(){let t="Sending token over insecure transport. Assume any token issued is compromised.";PDt.logger.warning(t),typeof process?.emitWarning=="function"&&!zbe&&(zbe=!0,process.emitWarning(t))}function GDt(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(ODt(t,e))HDt();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var jbe=h(OQ=>{"use strict";Object.defineProperty(OQ,"__esModule",{value:!0});OQ.apiKeyAuthenticationPolicyName=void 0;OQ.apiKeyAuthenticationPolicy=qDt;var YDt=Pw();OQ.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function qDt(t){return{name:OQ.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,YDt.ensureSecureConnection)(e,t);let A=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!A)return r(e);if(A.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${A.apiKeyLocation}`);return e.headers.set(A.name,t.credential.key),r(e)}}}});var Xbe=h(HQ=>{"use strict";Object.defineProperty(HQ,"__esModule",{value:!0});HQ.basicAuthenticationPolicyName=void 0;HQ.basicAuthenticationPolicy=VDt;var Kbe=Sf(),JDt=Pw();HQ.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function VDt(t){return{name:HQ.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,JDt.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(o=>o.kind==="http"&&o.scheme==="basic"))return r(e);let{username:s,password:n}=t.credential,i=(0,Kbe.uint8ArrayToString)((0,Kbe.stringToUint8Array)(`${s}:${n}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${i}`),r(e)}}}});var Zbe=h(GQ=>{"use strict";Object.defineProperty(GQ,"__esModule",{value:!0});GQ.bearerAuthenticationPolicyName=void 0;GQ.bearerA Line truncated
`).join(""))}return e(t)}}}});var VDe=h(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.auxiliaryAuthenticationHeaderPolicyName=void 0;Lf.auxiliaryAuthenticationHeaderPolicy=S1t;var D1t=DV(),N1t=Gw();Lf.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var JDe="x-ms-authorization-auxiliary";async function R1t(t){let{scopes:e,getAccessToken:r,request:A}=t,s={abortSignal:A.abortSignal,tracingOptions:A.tracingOptions};return(await r(e,s))?.token??""}function S1t(t){let{credentials:e,scopes:r}=t,A=t.logger||N1t.logger,s=new WeakMap;return{name:Lf.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(n,i){if(!n.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return A.info(`${Lf.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),i(n);let o=[];for(let c of e){let u=s.get(c);u||(u=(0,D1t.createTokenCycler)(c),s.set(c,u)),o.push(R1t({scopes:Array.isArray(r)?r:[r],request:n,getAccessToken:u,logger:A}))}let a=(await Promise.all(o)).filter(c=>!!c);return a.length===0?(A.warning(`None of the auxiliary tokens are valid. ${JDe} header will not be set.`),i(n)):(n.headers.set(JDe,a.map(c=>`Bearer ${c}`).join(", ")),i(n))}}}});var ls=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.createFileFromStream=Ae.createFile=Ae.agentPolicyName=Ae.agentPolicy=Ae.auxiliaryAuthenticationHeaderPolicyName=Ae.auxiliaryAuthenticationHeaderPolicy=Ae.ndJsonPolicyName=Ae.ndJsonPolicy=Ae.bearerTokenAuthenticationPolicyName=Ae.bearerTokenAuthenticationPolicy=Ae.formDataPolicyName=Ae.formDataPolicy=Ae.tlsPolicyName=Ae.tlsPolicy=Ae.userAgentPolicyName=Ae.userAgentPolicy=Ae.defaultRetryPolicy=Ae.tracingPolicyName=Ae.tracingPolicy=Ae.retryPolicy=Ae.throttlingRetryPolicyName=Ae.throttlingRetryPolicy=Ae.systemErrorRetryPolicyName=Ae.systemErrorRetryPolicy=Ae.redirectPolicyName=Ae.redirectPolicy=Ae.getDefaultProxySettings=Ae.proxyPolicyName=Ae.proxyPolicy=Ae.multipartPolicyName=Ae.multipartPolicy=Ae.logPolicyName=Ae.logPolicy=Ae.setClientRequestIdPolicyName=Ae.setClientRequestIdPolicy=Ae.exponentialRetryPolicyName=Ae.exponentialRetryPolicy=Ae.decompressResponsePolicyName=Ae.decompressResponsePolicy=Ae.isRestError=Ae.RestError=Ae.createPipelineRequest=Ae.createHttpHeaders=Ae.createDefaultHttpClient=Ae.createPipelineFromOptions=Ae.createEmptyPipeline=void 0;var T1t=M6();Object.defineProperty(Ae,"createEmptyPipeline",{enumerable:!0,get:function(){return T1t.createEmptyPipeline}});var k1t=RDe();Object.defineProperty(Ae,"createPipelineFromOptions",{enumerable:!0,get:function(){return k1t.createPipelineFromOptions}});var F1t=SDe();Object.defineProperty(Ae,"createDefaultHttpClient",{enumerable:!0,get:function(){return F1t.createDefaultHttpClient}});var x1t=TDe();Object.defineProperty(Ae,"createHttpHeaders",{enumerable:!0,get:function(){return x1t.createHttpHeaders}});var U1t=kDe();Object.defineProperty(Ae,"createPipelineRequest",{enumerable:!0,get:function(){return U1t.createPipelineRequest}});var WDe=px();Object.defineProperty(Ae,"RestError",{enumerable:!0,get:function(){return WDe.RestError}});Object.defineProperty(Ae,"isRestError",{enumerable:!0,get:function(){return WDe.isRestError}});var zDe=nV();Object.defineProperty(Ae,"decompressResponsePolicy",{enumerable:!0,get:function(){return zDe.decompressResponsePolicy}});Object.defineProperty(Ae,"decompressResponsePolicyName",{enumerable:!0,get:function(){return zDe.decompressResponsePolicyName}});var jDe=xDe();Object.defineProperty(Ae,"exponentialRetryPolicy",{enumerable:!0,get:function(){return jDe.exponentialRetryPolicy}});Object.defineProperty(Ae,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return jDe.exponentialRetryPolicyName}});var KDe=uV();Object.defineProperty(Ae,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return KDe.setClientRequestIdPolicy}});Object.defineProperty(Ae,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return KDe.setClientRequestIdPolicyName}});var XDe=q6();Object.defineProperty(Ae,"logPolicy",{enumerable:!0,get:function(){return XDe.logPolicy}});Object.defineProperty(Ae,"logPolicyName",{enumerable:!0,get:function(){return XDe.logPolicyName}});var ZDe=sV();Object.defineProperty(Ae,"multipartPolicy",{enumerable:!0,get:function(){return ZDe.multipartPolicy}});Object.defineProperty(Ae,"multipartPolicyName",{enumerable:!0,get:function(){return ZDe.multipartPolicyName}});var NV=cV();Object.defineProperty(Ae,"proxyPolicy",{enumerable:!0,get:function(){return NV.proxyPolicy}});Object.defineProperty(Ae,"proxyPolicyName",{enumerable:!0,get:function(){return NV.proxyPolicyName}});Object.defineProperty(Ae,"getDefaultProxySettings",{enumerable:!0,get:function(){return NV.getDefaultProxySettings}});var $De=J6();Object.defineProperty(Ae,"redirectPolicy",{enumerable:!0,get:function(){return $De.redirectPolicy Line truncated
`&&m[v]!=="\r";v++)Z+=m[v];if(Z=Z.trim(),Z[Z.length-1]==="/"&&(Z=Z.substring(0,Z.length-1),v--),!n(Z)){let tt;return tt=Z.trim().length===0?"Invalid space after '<'.":"Tag '"+Z+"' is an invalid name.",I("InvalidTag",tt,w(m,v))}let he=d(m,v);if(he===!1)return I("InvalidAttr","Attributes for '"+Z+"' have open quote.",w(m,v));let It=he.value;if(v=he.index,It[It.length-1]==="/"){let tt=v-It.length;It=It.substring(0,It.length-1);let St=C(It,y);if(St!==!0)return I(St.err.code,St.err.msg,w(m,tt+St.err.line));G=!0}else if(V){if(!he.tagClosed)return I("InvalidTag","Closing tag '"+Z+"' doesn't have proper closing.",w(m,v));if(It.trim().length>0)return I("InvalidTag","Closing tag '"+Z+"' can't have attributes or invalid starting.",w(m,W));if(x.length===0)return I("InvalidTag","Closing tag '"+Z+"' has not been opened.",w(m,W));{let tt=x.pop();if(Z!==tt.tagName){let St=w(m,tt.tagStartPos);return I("InvalidTag","Expected closing tag '"+tt.tagName+"' (opened in line "+St.line+", col "+St.col+") instead of closing tag '"+Z+"'.",w(m,W))}x.length==0&&(U=!0)}}else{let tt=C(It,y);if(tt!==!0)return I(tt.err.code,tt.err.msg,w(m,v-It.length+tt.err.line));if(U===!0)return I("InvalidXml","Multiple possible root nodes found.",w(m,v));y.unpairedTags.indexOf(Z)!==-1||x.push({tagName:Z,tagStartPos:W}),G=!0}for(v++;v<m.length;v++)if(m[v]==="<"){if(m[v+1]==="!"){v++,v=u(m,v);continue}if(m[v+1]!=="?")break;if(v=c(m,++v),v.err)return v}else if(m[v]==="&"){let tt=Q(m,v);if(tt==-1)return I("InvalidChar","char '&' is not expected.",w(m,v));v=tt}else if(U===!0&&!a(m[v]))return I("InvalidXml","Extra text at the end",w(m,v));m[v]==="<"&&v--}}}return G?x.length==1?I("InvalidTag","Unclosed tag '"+x[0].tagName+"'.",w(m,x[0].tagStartPos)):!(x.length>0)||I("InvalidXml","Invalid '"+JSON.stringify(x.map((v=>v.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):I("InvalidXml","Start tag expected.",1)}function a(m){return m===" "||m===" "||m===`
`||m==="\r"}function c(m,y){let x=y;for(;y<m.length;y++)if(!(m[y]!="?"&&m[y]!=" ")){let G=m.substr(x,y-x);if(y>5&&G==="xml")return I("InvalidXml","XML declaration allowed only at the start of the document.",w(m,y));if(m[y]=="?"&&m[y+1]==">"){y++;break}}return y}function u(m,y){if(m.length>y+5&&m[y+1]==="-"&&m[y+2]==="-"){for(y+=3;y<m.length;y++)if(m[y]==="-"&&m[y+1]==="-"&&m[y+2]===">"){y+=2;break}}else if(m.length>y+8&&m[y+1]==="D"&&m[y+2]==="O"&&m[y+3]==="C"&&m[y+4]==="T"&&m[y+5]==="Y"&&m[y+6]==="P"&&m[y+7]==="E"){let x=1;for(y+=8;y<m.length;y++)if(m[y]==="<")x++;else if(m[y]===">"&&(x--,x===0))break}else if(m.length>y+9&&m[y+1]==="["&&m[y+2]==="C"&&m[y+3]==="D"&&m[y+4]==="A"&&m[y+5]==="T"&&m[y+6]==="A"&&m[y+7]==="["){for(y+=8;y<m.length;y++)if(m[y]==="]"&&m[y+1]==="]"&&m[y+2]===">"){y+=2;break}}return y}let l='"',g="'";function d(m,y){let x="",G="",U=!1;for(;y<m.length;y++){if(m[y]===l||m[y]===g)G===""?G=m[y]:G!==m[y]||(G="");else if(m[y]===">"&&G===""){U=!0;break}x+=m[y]}return G===""&&{value:x,index:y,tagClosed:U}}let E=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function C(m,y){let x=s(m,E),G={};for(let U=0;U<x.length;U++){if(x[U][1].length===0)return I("InvalidAttr","Attribute '"+x[U][2]+"' has no space in starting.",k(x[U]));if(x[U][3]!==void 0&&x[U][4]===void 0)return I("InvalidAttr","Attribute '"+x[U][2]+"' is without value.",k(x[U]));if(x[U][3]===void 0&&!y.allowBooleanAttributes)return I("InvalidAttr","boolean attribute '"+x[U][2]+"' is not allowed.",k(x[U]));let v=x[U][2];if(!p(v))return I("InvalidAttr","Attribute '"+v+"' is an invalid name.",k(x[U]));if(G.hasOwnProperty(v))return I("InvalidAttr","Attribute '"+v+"' is repeated.",k(x[U]));G[v]=1}return!0}function Q(m,y){if(m[++y]===";")return-1;if(m[y]==="#")return(function(G,U){let v=/\d/;for(G[U]==="x"&&(U++,v=/[\da-fA-F]/);U<G.length;U++){if(G[U]===";")return U;if(!G[U].match(v))break}return-1})(m,++y);let x=0;for(;y<m.length;y++,x++)if(!(m[y].match(/\w/)&&x<20)){if(m[y]===";")break;return-1}return y}function I(m,y,x){return{err:{code:m,msg:y,line:x.line||x,col:x.col}}}function p(m){return n(m)}function w(m,y){let x=m.substring(0,y).split(/\r?\n/);return{line:x.length,col:x[x.length-1].length+1}}function k(m){return m.startIndex+m[1].length}let J={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(m,y,x){return m},captureMetaData:!1},j;j=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class H{constructor(y){this.tagname=y,this.child=[],this[":@"]={}}add(y,x){y==="__proto__"&&(y="#__proto__"),this.child.push({[y]:x})}addChild(y,x){y.tagname==="__proto__"&&(y.tagname="#__proto__"),y[":@"]&&Object.keys(y[":@"]).length>0?this.child.push({[y.tagname]:y.child,":@":y[":@"]}):this.child.push({[y.tagname]:y.child}),x!==void 0&&(this.child[this.child.length-1][j]={startIndex:x})}static getMetaDataSymbol(){return j}}function $(m,y){let x={};if(m[y+3]!=="O"||m[y+4]!=="C"||m[y+5]!=="T"||m[y+6]!=="Y"||m[y+7]!=="P"||m[y+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{y+=9;let G=1,U=!1,v=!1,W="";for(;y<m.length;y++)if(m[y]!=="<"||v)if(m[y]===">"){if(v?m[y-1]==="-"&&m[y-2]==="-"&&(v=!1,G--):G--,G===0)break}else m[y]==="["?U=!0:W+=m[y];else{if(U&&Ne(m,y)){let V,Z;y+=7,[V,Z,y]=oe(m,y+1),Z.indexOf("&")===-1&&(x[Wt(V)]={regx:RegExp(`&${V};`,"g"),val:Z})}else if(U&&K(m,y))y+=8;else if(U&&le(m,y))y+=8;else if(U&&Pe(m,y))y+=9;else{if(!pe)throw new Error("Invalid DOCTYPE");v=!0}G++,W=""}if(G!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:y}}function oe(m,y){let x="";for(;y<m.length&&m[y]!=="'"&&m[y]!=='"';y++)x+=m[y];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");let G=m[y++],U="";for(;y<m.length&&m[y]!==G;y++)U+=m[y];return[x,U,y]}function pe(m,y){return m[y+1]==="!"&&m[y+2]==="-"&&m[y+3]==="-"}function Ne(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="N"&&m[y+4]==="T"&&m[y+5]==="I"&&m[y+6]==="T"&&m[y+7]==="Y"}function K(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="L"&&m[y+4]==="E"&&m[y+5]==="M"&&m[y+6]==="E"&&m[y+7]==="N"&&m[y+8]==="T"}function le(m,y){return m[y+1]==="!"&&m[y+2]==="A"&&m[y+3]==="T"&&m[y+4]==="T"&&m[y+5]==="L"&&m[y+6]==="I"&&m[y+7]==="S"&&m[y+8]==="T"}function Pe(m,y){return m[y+1]==="!"&&m[y+2]==="N"&&m[y+3]==="O"&&m[y+4]==="T"&&m[y+5]==="A"&&m[y+6]==="T"&&m[y+7]==="I"&&m[y+8]==="O"&&m[y+9]==="N"}function Wt(m){if(n(m))return m;throw new Error(`Invalid entity name ${m}`)}let Ht=/^[-+]?0x[a-fA-Line truncated
`);let y=new H("!xml"),x=y,G="",U="";for(let v=0;v<m.length;v++)if(m[v]==="<")if(m[v+1]==="/"){let W=bE(m,">",v,"Closing Tag is not closed."),V=m.substring(v+2,W).trim();if(this.options.removeNSPrefix){let It=V.indexOf(":");It!==-1&&(V=V.substr(It+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&(G=this.saveTextToParentTag(G,x,U));let Z=U.substring(U.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${V}>`);let he=0;Z&&this.options.unpairedTags.indexOf(Z)!==-1?(he=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop()):he=U.lastIndexOf("."),U=U.substring(0,he),x=this.tagsNodeStack.pop(),G="",v=W}else if(m[v+1]==="?"){let W=OG(m,v,!1,"?>");if(!W)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,x,U),!(this.options.ignoreDeclaration&&W.tagName==="?xml"||this.options.ignorePiTags)){let V=new H(W.tagName);V.add(this.options.textNodeName,""),W.tagName!==W.tagExp&&W.attrExpPresent&&(V[":@"]=this.buildAttributesMap(W.tagExp,U,W.tagName)),this.addChild(x,V,U,v)}v=W.closeIndex+1}else if(m.substr(v+1,3)==="!--"){let W=bE(m,"-->",v+4,"Comment is not closed.");if(this.options.commentPropName){let V=m.substring(v+4,W-2);G=this.saveTextToParentTag(G,x,U),x.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}v=W}else if(m.substr(v+1,2)==="!D"){let W=$(m,v);this.docTypeEntities=W.entities,v=W.i}else if(m.substr(v+1,2)==="!["){let W=bE(m,"]]>",v,"CDATA is not closed.")-2,V=m.substring(v+9,W);G=this.saveTextToParentTag(G,x,U);let Z=this.parseTextData(V,x.tagname,U,!0,!1,!0,!0);Z==null&&(Z=""),this.options.cdataPropName?x.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):x.add(this.options.textNodeName,Z),v=W+2}else{let W=OG(m,v,this.options.removeNSPrefix),V=W.tagName,Z=W.rawTagName,he=W.tagExp,It=W.attrExpPresent,tt=W.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&G&&x.tagname!=="!xml"&&(G=this.saveTextToParentTag(G,x,U,!1));let St=x;St&&this.options.unpairedTags.indexOf(St.tagname)!==-1&&(x=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."))),V!==y.tagname&&(U+=U?"."+V:V);let Kr=v;if(this.isItStopNode(this.options.stopNodes,U,V)){let os="";if(he.length>0&&he.lastIndexOf("/")===he.length-1)V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),v=W.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)v=W.closeIndex;else{let Zc=this.readStopNodeData(m,Z,tt+1);if(!Zc)throw new Error(`Unexpected end of ${Z}`);v=Zc.i,os=Zc.tagContent}let Po=new H(V);V!==he&&It&&(Po[":@"]=this.buildAttributesMap(he,U,V)),os&&(os=this.parseTextData(os,V,U,!0,It,!0,!0)),U=U.substr(0,U.lastIndexOf(".")),Po.add(this.options.textNodeName,os),this.addChild(x,Po,U,Kr)}else{if(he.length>0&&he.lastIndexOf("/")===he.length-1){V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));let os=new H(V);V!==he&&It&&(os[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,os,U,Kr),U=U.substr(0,U.lastIndexOf("."))}else{let os=new H(V);this.tagsNodeStack.push(x),V!==he&&It&&(os[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,os,U,Kr),x=os}G="",v=tt}}else G+=m[v];return y.child};function A7e(m,y,x,G){this.options.captureMetaData||(G=void 0);let U=this.options.updateTag(y.tagname,x,y[":@"]);U===!1||(typeof U=="string"&&(y.tagname=U),m.addChild(y,G))}let s7e=function(m){if(this.options.processEntities){for(let y in this.docTypeEntities){let x=this.docTypeEntities[y];m=m.replace(x.regx,x.val)}for(let y in this.lastEntities){let x=this.lastEntities[y];m=m.replace(x.regex,x.val)}if(this.options.htmlEntities)for(let y in this.htmlEntities){let x=this.htmlEntities[y];m=m.replace(x.regex,x.val)}m=m.replace(this.ampEntity.regex,this.ampEntity.val)}return m};function n7e(m,y,x,G){return m&&(G===void 0&&(G=y.child.length===0),(m=this.parseTextData(m,y.tagname,x,!1,!!y[":@"]&&Object.keys(y[":@"]).length!==0,G))!==void 0&&m!==""&&y.add(this.options.textNodeName,m),m=""),m}function i7e(m,y,x){let G="*."+x;for(let U in m){let v=m[U];if(G===v||y===v)return!0}return!1}function bE(m,y,x,G){let U=m.indexOf(y,x);if(U===-1)throw new Error(G);return U+y.length-1}function OG(m,y,x,G=">"){let U=(function(tt,St,Kr=">"){let os,Po="";for(let Zc=St;Zc<tt.length;Zc++){let Ad=tt[Zc];if(os)Ad===os&&(os="");else if(Ad==='"'||Ad==="'")os=Ad;else if(Ad===Kr[0]){if(!Kr[1])return{data:Po,index:Zc};if(tt[Zc+1]===Kr[1])return{data:Po,index:Zc}}else Ad===" "&&(Ad=" ");Po+=Ad}})(m,y+1,G);if(!U)return;let v=U.data,W=U.index,V=v.search(/\s/),Z=v,he=!0;V!==-1&&(Z=v.substring(0,V),v=v.substring(V+1).trimStart());let It=Z;if(x){let tt=Z.indexOf(":");tt!==-1&&(Z=Z.substr(tt+1),he=Z!==U.data.substr(tt+1))}return{tagName:Z,tagExp:v,closeIndex:W,attrExpPresent:he,rawTagName:It}}function o7e(m,y,x){let G=x,U=1;for(;x<m.leLine truncated
`),vie(m,y,"",x)}function vie(m,y,x,G){let U="",v=!1;for(let W=0;W<m.length;W++){let V=m[W],Z=h7e(V);if(Z===void 0)continue;let he="";if(he=x.length===0?Z:`${x}.${Z}`,Z===y.textNodeName){let Kr=V[Z];E7e(he,y)||(Kr=y.tagValueProcessor(Z,Kr),Kr=Pie(Kr,y)),v&&(U+=G),U+=Kr,v=!1;continue}if(Z===y.cdataPropName){v&&(U+=G),U+=`<![CDATA[${V[Z][0][y.textNodeName]}]]>`,v=!1;continue}if(Z===y.commentPropName){U+=G+`<!--${V[Z][0][y.textNodeName]}-->`,v=!0;continue}if(Z[0]==="?"){let Kr=_ie(V[":@"],y),os=Z==="?xml"?"":G,Po=V[Z][0][y.textNodeName];Po=Po.length!==0?" "+Po:"",U+=os+`<${Z}${Po}${Kr}?>`,v=!0;continue}let It=G;It!==""&&(It+=y.indentBy);let tt=G+`<${Z}${_ie(V[":@"],y)}`,St=vie(V[Z],y,he,It);y.unpairedTags.indexOf(Z)!==-1?y.suppressUnpairedNode?U+=tt+">":U+=tt+"/>":St&&St.length!==0||!y.suppressEmptyNode?St&&St.endsWith(">")?U+=tt+`>${St}${G}</${Z}>`:(U+=tt+">",St&&G!==""&&(St.includes("/>")||St.includes("</"))?U+=G+y.indentBy+St+G:U+=St,U+=`</${Z}>`):U+=tt+"/>",v=!0}return U}function h7e(m){let y=Object.keys(m);for(let x=0;x<y.length;x++){let G=y[x];if(m.hasOwnProperty(G)&&G!==":@")return G}}function _ie(m,y){let x="";if(m&&!y.ignoreAttributes)for(let G in m){if(!m.hasOwnProperty(G))continue;let U=y.attributeValueProcessor(G,m[G]);U=Pie(U,y),U===!0&&y.suppressBooleanAttributes?x+=` ${G.substr(y.attributeNamePrefix.length)}`:x+=` ${G.substr(y.attributeNamePrefix.length)}="${U}"`}return x}function E7e(m,y){let x=(m=m.substr(0,m.length-y.textNodeName.length-1)).substr(m.lastIndexOf(".")+1);for(let G in y.stopNodes)if(y.stopNodes[G]===m||y.stopNodes[G]==="*."+x)return!0;return!1}function Pie(m,y){if(m&&m.length>0&&y.processEntities)for(let x=0;x<y.entities.length;x++){let G=y.entities[x];m=m.replace(G.regex,G.val)}return m}let f7e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},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};function rd(m){this.options=Object.assign({},f7e,m),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=vo(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=B7e),this.processTextOrObjNode=C7e,this.options.format?(this.indentate=I7e,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function C7e(m,y,x,G){let U=this.j2x(m,x+1,G.concat(y));return m[this.options.textNodeName]!==void 0&&Object.keys(m).length===1?this.buildTextValNode(m[this.options.textNodeName],y,U.attrStr,x):this.buildObjectNode(U.val,y,U.attrStr,x)}function I7e(m){return this.options.indentBy.repeat(m)}function B7e(m){return!(!m.startsWith(this.options.attributeNamePrefix)||m===this.options.textNodeName)&&m.substr(this.attrPrefixLen)}rd.prototype.build=function(m){return this.options.preserveOrder?d7e(m,this.options):(Array.isArray(m)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(m={[this.options.arrayNodeName]:m}),this.j2x(m,0,[]).val)},rd.prototype.j2x=function(m,y,x){let G="",U="",v=x.join(".");for(let W in m)if(Object.prototype.hasOwnProperty.call(m,W))if(m[W]===void 0)this.isAttribute(W)&&(U+="");else if(m[W]===null)this.isAttribute(W)||W===this.options.cdataPropName?U+="":W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(m[W]instanceof Date)U+=this.buildTextValNode(m[W],W,"",y);else if(typeof m[W]!="object"){let V=this.isAttribute(W);if(V&&!this.ignoreAttributesFn(V,v))G+=this.buildAttrPairStr(V,""+m[W]);else if(!V)if(W===this.options.textNodeName){let Z=this.options.tagValueProcessor(W,""+m[W]);U+=this.replaceEntitiesValue(Z)}else U+=this.buildTextValNode(m[W],W,"",y)}else if(Array.isArray(m[W])){let V=m[W].length,Z="",he="";for(let It=0;It<V;It++){let tt=m[W][It];if(tt!==void 0)if(tt===null)W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(typeof tt=="object")if(this.options.oneListGroup){let St=this.j2x(tt,y+1,x.concat(W));Z+=St.val,this.options.attributesGroupName&&tt.hasOwnProperty(this.options.attributesGroupName)&&(he+=St.attrStr)}else Z+=this.processTextOrObjNode(tt,W,y,x);else if(this.options.oneListGroup){let St=this.options.tagValueProcessor(W,tt);St=this.replaceEntitiesValue(St),Z+=St}else Z+=this.buildTextValNode(tt,W,"",y)}this.options.oneListGroup&&(Z=this.buildObjectNode(Z,W,he,y)),U+=Z}else if(this.options.attributesGroupName&&W===this.options.attributesGroupName){let V=Object.keys(m[W]),Z=V.length;for(let he=0;he<Z;he++)G+=this.buildAttrPairStr(V[he],""+m[W][V[he]])}else U+=this.processTextOrObjNode(m[W],W,y,x);return{attrStr:G,val:U}},rd.prototype.buildAttrPairStr=function(m,y){return y=this.options.attributeValueProcessor(m,""+y),y=this.replaceEntitiesValue(y),this.options.suppressBooleanAttributes&&y==="true"?" "+m:" "+m+'="'+y+'"'},rd.prototype.buildObjectNode=function(m,y,x,G){if(m==="")return y[0]==="?"?this.indentate(G)+"<"+y+x+"?"+this.tagEndChar:this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar;{let U="</"+y+this.tagEndChar,v="";return y[0]==="?"&&(v="?",U=""),!x&&x!==""||m.indexOf("<")!==-1?this.options.commentPropName!==!1&&y===this.options.commentPropName&&v.length===0?this.indentate(G)+`<!--${m}-->`+this.newLine:this.indentate(G)+"<"+y+x+v+this.tagEndChar+m+this.indentate(G)+U:this.indentate(G)+"<"+y+x+v+">"+m+U}},rd.prototype.closeTag=function(m){let y="";return this.options.unpairedTags.indexOf(m)!==-1?this.options.suppressUnpairedNode||(y="/"):y=this.options.suppressEmptyNode?"/":`></${m}`,y},rd.prototype.buildTextValNode=function(m,y,x,G){if(this.options.cdataPropName!==!1&&y===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${m}]]>`+this.newLine;if(this.options.commentPropName!==!1&&y===this.options.commentPropName)return this.indentate(G)+`<!--${m}-->`+this.newLine;if(y[0]==="?")return this.indentate(G)+"<"+y+x+"?"+this.tagEndChar;{let U=this.options.tagValueProcessor(y,m);return U=this.replaceEntitiesValue(U),U===""?this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar:this.indentate(G)+"<"+y+x+">"+U+"</"+y+this.tagEndChar}},rd.prototype.replaceEntitiesValue=function(m){if(m&&m.length>0&&this.options.processEntities)for(let y=0;y<this.options.entities.length;y++){let x=this.options.entities[y];m=m.replace(x.regex,x.val)}return m};let Q7e={validate:o};cRe.exports=e})()});var $V=h(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.XML_CHARKEY=up.XML_ATTRKEY=void 0;up.XML_ATTRKEY="$";up.XML_CHARKEY="_"});var dRe=h(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});Yx.stringifyXML=Jkt;Yx.parseXML=Vkt;var eW=uRe(),lRe=$V();function gRe(t){var e;return{attributesGroupName:lRe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:lRe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Ykt(t={}){var e,r;return Object.assign(Object.assign({},gRe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function qkt(t={}){return Object.assign(Object.assign({},gRe(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodesLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),A=this.factory.computeHMACSHA256(r);return e.headers.set(an.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${A}`),e}getHeaderValueToSign(e,r){let A=e.headers.get(r);return!A||r===an.HeaderConstants.CONTENT_LENGTH&&A==="0"?"":A}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(an.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,n)=>(0,vFt.compareHeader)(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,i)=>!(n>0&&s.name.toLowerCase()===i[n-1].name.toLowerCase()));let A="";return r.forEach(s=>{A+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),A}getCanonicalizedResourceString(e){let r=(0,URe.getURLPath)(e.url)||"/",A="";A+=`/${this.factory.accountName}${r}`;let s=(0,URe.getURLQueries)(e.url),n={};if(s){let i=[];for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o)){let a=o.toLowerCase();n[a]=s[o],i.push(a)}i.sort();for(let o of i)A+=`
${o}:${decodeURIComponent(n[o])}`}return A}};sU.StorageSharedKeyCredentialPolicy=IW});var MRe=h(nU=>{"use strict";Object.defineProperty(nU,"__esModule",{value:!0});nU.StorageSharedKeyCredential=void 0;var _Ft=B("node:crypto"),PFt=BW(),OFt=rU(),QW=class extends OFt.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new PFt.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,_Ft.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};nU.StorageSharedKeyCredential=QW});var LRe=h(iU=>{"use strict";Object.defineProperty(iU,"__esModule",{value:!0});iU.AbortError=void 0;var pW=class extends Error{constructor(e){super(e),this.name="AbortError"}};iU.AbortError=pW});var mW=h(oU=>{"use strict";Object.defineProperty(oU,"__esModule",{value:!0});oU.AbortError=void 0;var HFt=LRe();Object.defineProperty(oU,"AbortError",{enumerable:!0,get:function(){return HFt.AbortError}})});var yW=h(aU=>{"use strict";Object.defineProperty(aU,"__esModule",{value:!0});aU.logger=void 0;var GFt=xf();aU.logger=(0,GFt.createClientLogger)("storage-common")});var bW=h(cU=>{"use strict";Object.defineProperty(cU,"__esModule",{value:!0});cU.StorageRetryPolicyType=void 0;var vRe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(vRe||(cU.StorageRetryPolicyType=vRe={}))});var PRe=h(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.StorageRetryPolicy=void 0;ED.NewRetryPolicyFactory=JFt;var YFt=mW(),qFt=hD(),_Re=ig(),wW=_f(),$d=yW(),DW=bW();function JFt(t){return{create:(e,r)=>new uU(e,r,t)}}var eh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:DW.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},VFt=new YFt.AbortError("The operation was aborted."),uU=class extends qFt.BaseRequestPolicy{retryOptions;constructor(e,r,A=eh){super(e,r),this.retryOptions={retryPolicyType:A.retryPolicyType?A.retryPolicyType:eh.retryPolicyType,maxTries:A.maxTries&&A.maxTries>=1?Math.floor(A.maxTries):eh.maxTries,tryTimeoutInMs:A.tryTimeoutInMs&&A.tryTimeoutInMs>=0?A.tryTimeoutInMs:eh.tryTimeoutInMs,retryDelayInMs:A.retryDelayInMs&&A.retryDelayInMs>=0?Math.min(A.retryDelayInMs,A.maxRetryDelayInMs?A.maxRetryDelayInMs:eh.maxRetryDelayInMs):eh.retryDelayInMs,maxRetryDelayInMs:A.maxRetryDelayInMs&&A.maxRetryDelayInMs>=0?A.maxRetryDelayInMs:eh.maxRetryDelayInMs,secondaryHost:A.secondaryHost?A.secondaryHost:eh.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,A){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||A%2===1;n||(s.url=(0,wW.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,wW.setURLParameter)(s.url,_Re.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if($d.logger.info(`RetryPolicy: =====> Try=${A} ${n?"Primary":"Secondary"}`),i=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,A,i))return i;r=r||!n&&i.status===404}catch(o){if($d.logger.error(`RetryPolicy: Caught error, message: ${o.message}, code: ${o.code}`),!this.shouldRetry(n,A,i,o))throw o}return await this.delay(n,A,e.abortSignal),this.attemptSendRequest(e,r,++A)}shouldRetry(e,r,A,s){if(r>=this.retryOptions.maxTries)return $d.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let i of n)if(s.name.toUpperCase().includes(i)||s.message.toUpperCase().includes(i)||s.code&&s.code.toString().toUpperCase()===i)return $d.logger.info(`RetryPolicy: Network error ${i} found, will retry.`),!0}if(A||s){let i=A?A.status:s?s.statusCode:0;if(!e&&i===404)return $d.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return $d.logger.info(`RetryPolicy: Will retry for status code ${i}.`),!0}if(A&&A?.status>=400){let i=A.headers.get(_Re.HeaderConstants.X_MS_CopySourceErrorCode);if(i!==void 0)switch(i){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?($d.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,A){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case DW.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case DW.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $d.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,wW.delay)(s,A,VFt)}};ED.StorageRetryPolicy=uU});var SW=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.StorageRet Line truncated
`)+`
`+A(n)+s(n),o=(0,s2t.createHmac)("sha256",t.accountKey).update(i,"utf8").digest("base64");n.headers.set(cn.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${o}`)}function r(n,i){let o=n.headers.get(i);return!o||i===cn.HeaderConstants.CONTENT_LENGTH&&o==="0"?"":o}function A(n){let i=[];for(let[a,c]of n.headers)a.toLowerCase().startsWith(cn.HeaderConstants.PREFIX_FOR_STORAGE)&&i.push({name:a,value:c});i.sort((a,c)=>(0,n2t.compareHeader)(a.name.toLowerCase(),c.name.toLowerCase())),i=i.filter((a,c,u)=>!(c>0&&a.name.toLowerCase()===u[c-1].name.toLowerCase()));let o="";return i.forEach(a=>{o+=`${a.name.toLowerCase().trimRight()}:${a.value.trimLeft()}
`}),o}function s(n){let i=(0,JRe.getURLPath)(n.url)||"/",o="";o+=`/${t.accountName}${i}`;let a=(0,JRe.getURLQueries)(n.url),c={};if(a){let u=[];for(let l in a)if(Object.prototype.hasOwnProperty.call(a,l)){let g=l.toLowerCase();c[g]=a[l],u.push(g)}u.sort();for(let l of u)o+=`
${l}:${decodeURIComponent(c[l])}`}return o}return{name:Cp.storageSharedKeyCredentialPolicyName,async sendRequest(n,i){return e(n),i(n)}}}});var WRe=h(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.storageRequestFailureDetailsParserPolicyName=void 0;Ip.storageRequestFailureDetailsParserPolicy=o2t;Ip.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function o2t(){return{name:Ip.storageRequestFailureDetailsParserPolicyName,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}});var zRe=h(lU=>{"use strict";Object.defineProperty(lU,"__esModule",{value:!0});lU.UserDelegationKeyCredential=void 0;var a2t=B("node:crypto"),xW=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,a2t.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};lU.UserDelegationKeyCredential=xW});var mc=h(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.BaseRequestPolicy=bA.getCachedDefaultHttpClient=void 0;var un=(Fr(),_r(kr));un.__exportStar(IRe(),bA);var c2t=BRe();Object.defineProperty(bA,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return c2t.getCachedDefaultHttpClient}});un.__exportStar(pRe(),bA);un.__exportStar(FRe(),bA);un.__exportStar(xRe(),bA);un.__exportStar(rU(),bA);un.__exportStar(MRe(),bA);un.__exportStar(SW(),bA);var u2t=hD();Object.defineProperty(bA,"BaseRequestPolicy",{enumerable:!0,get:function(){return u2t.BaseRequestPolicy}});un.__exportStar(dW(),bA);un.__exportStar($x(),bA);un.__exportStar(ORe(),bA);un.__exportStar(HRe(),bA);un.__exportStar(qRe(),bA);un.__exportStar(BW(),bA);un.__exportStar(VRe(),bA);un.__exportStar(WRe(),bA);un.__exportStar(zRe(),bA)});var ao=h(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.PathStylePorts=Te.BlobDoesNotUseCustomerSpecifiedEncryption=Te.BlobUsesCustomerSpecifiedEncryptionMsg=Te.StorageBlobLoggingAllowedQueryParameters=Te.StorageBlobLoggingAllowedHeaderNames=Te.DevelopmentConnectionString=Te.EncryptionAlgorithmAES25=Te.HTTP_VERSION_1_1=Te.HTTP_LINE_ENDING=Te.BATCH_MAX_PAYLOAD_IN_BYTES=Te.BATCH_MAX_REQUEST=Te.SIZE_1_MB=Te.ETagAny=Te.ETagNone=Te.HeaderConstants=Te.HTTPURLConnection=Te.URLConstants=Te.StorageOAuthScopes=Te.REQUEST_TIMEOUT=Te.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=Te.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=Te.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=Te.BLOCK_BLOB_MAX_BLOCKS=Te.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=Te.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=Te.SERVICE_VERSION=Te.SDK_VERSION=void 0;Te.SDK_VERSION="12.31.0";Te.SERVICE_VERSION="2026-02-06";Te.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;Te.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;Te.BLOCK_BLOB_MAX_BLOCKS=5e4;Te.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;Te.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;Te.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;Te.REQUEST_TIMEOUT=100*1e3;Te.StorageOAuthScopes="https://storage.azure.com/.default";Te.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};Te.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};Te.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};Te.ETagNone="";Te.ETagAny="*";Te.SIZE_1_MB=1*1024*1024;Te.BATCH_MAX_REQUEST=256;Te.BATCH_MAX_PAYLOAD_IN_BYTES=4*Te.SIZE_1_MB;Te.HTTP_LINE_ENDING=`\r
`;Te.HTTP_VERSION_1_1="HTTP/1.1";Te.EncryptionAlgorithmAES25="AES256";Te.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";Te.StorageBlobLoggingAllowedHeaderNames=["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"];Te.StorageBlobLoggingAllowedQueryParameters=["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"];Te.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";Te.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";Te.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var th=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.Pipeline=Uu.StorageOAuthScopes=void 0;Uu.isPipelineLike=g2t;Uu.newPipeline=d2t;Uu.getCoreClientOptions=E2t;Uu.getCredentialFromPipeline=$Re;var ZRe=Gx(),jRe=ls(),KRe=ku(),XRe=tW(),UW=np(),l2t=Jx(),co=mc(),fD=ao();Object.defineProperty(Uu,"StorageOAuthScopes",{enumerable:!0,get:function(){return fD.StorageOAuthScopes}});function g2t(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 gU=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};Uu.Pipeline=gU;function d2t(t,e={}){t||(t=new co.AnonymousCredential);let r=new gU([],e);return r._credential=t,r}function h2t(t){let e=[f2t,eSe,C2t,I2t,B2t,Q2t,m2t];if(t.factories.length){let r=t.factories.filter(A=>!e.some(s=>s(A)));if(r.length){let A=r.some(s=>p2t(s));return{wrappedPolicies:(0,ZRe.createRequestPolicyFactoryPolicy)(r),afterRetry:A}}}}function E2t(t){let{httpClient:e,...r}=t.options,A=t._coreHttpClient;A||(A=e?(0,ZRe.convertHttpClient)(e):(0,co.getCachedDefaultHttpClient)(),t._coreHttpClient=A);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${fD.SDK_VERSION}`,i=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=(0,KRe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:fD.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:fD.StorageBlobLoggingAllowedQueryParameters,logger:l2t.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:XRe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializ Line truncated
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new qf.SASQueryParameters(t.version,n,A,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 xUt(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(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 UUt(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(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,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function MUt(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(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,e.userDelegationKey),stringToSign:n}}function LUt(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function vUt(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function _Ut(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=Hf.BlobSASPermissions.parse(t.permissions.toString()).toString():s=Gf.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,wA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,wA.truncatedISO8061Date)(t.expiresOn,!1):"",Jf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,wA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,Yf.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new qf.SASQueryParameters(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function Jf(t,e,r){let A=[`/blob/${t}/${e}`];return r&&A.push(`/${r}`),A.join("")}function Vf(t){let e=t.version?t.version:PSe.SERVICE_VERSION;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 LU=h(MU=>{"use strict";Object.defineProperty(MU,"__esModule",{value:!0});MU.BlobLeaseClient=void 0;var PUt=rA(),Lu=ao(),ID=Of(),UU=ha(),Az=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let A=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=A.container):(this._isContainer=!1,this._containerOrBlobOperation=A.blob),r||(r=(0,PUt.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Lu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Lu.ETagNone||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 ID.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async A=>(0,UU.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:A.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Lu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Lu.ETagNone||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 ID.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async A=>{let s=(0,UU.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:A.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Lu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Lu.ETagNone||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 ID.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,UU.assertResponse)(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!==Lu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.if Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${i1e.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=i(c,r);if(l!==void 0)return{response:await e(l).catch(n1e({state:r,stateProxy:A,isOperationError:o})),status:u}}return{response:c,status:u}}async function dMt(t){let{poll:e,state:r,stateProxy:A,options:s,getOperationStatus:n,getResourceLocation:i,getOperationLocation:o,isOperationError:a,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:g,updateState:d,setDelay:E,isDone:C,setErrorAsResult:Q}=t,{operationLocation:I}=r.config;if(I!==void 0){let{response:p,status:w}=await gMt({poll:e,getOperationStatus:n,state:r,stateProxy:A,operationLocation:I,getResourceLocation:i,isOperationError:a,options:s});if(o1e({status:w,response:p,state:r,stateProxy:A,isDone:C,processResult:l,getError:g,setErrorAsResult:Q}),!i1e.terminalStates.includes(w)){let k=u?.(p);k&&E(k);let J=o?.(p,r);if(J!==void 0){let j=I!==J;r.config.operationLocation=J,c?.(J,j)}else c?.(I,!1)}d?.(r,p)}}ch.pollOperation=dMt});var Dz=h(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.pollHttpOperation=DA.isOperationError=DA.getResourceLocation=DA.getOperationStatus=DA.getOperationLocation=DA.initHttpOperation=DA.getStatusFromInitialResponse=DA.getErrorFromResponse=DA.parseRetryAfter=DA.inferLroMode=void 0;var a1e=jU(),yz=WU();function c1e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function u1e(t){return t.headers.location}function l1e(t){return t.headers["operation-location"]}function g1e(t){return t.headers["azure-asyncoperation"]}function hMt(t){var e;let{location:r,requestMethod:A,requestPath:s,resourceLocationConfig:n}=t;switch(A){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=i())!==null&&e!==void 0?e:s;default:return i()}function i(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function d1e(t){let{rawResponse:e,requestMethod:r,requestPath:A,resourceLocationConfig:s}=t,n=l1e(e),i=g1e(e),o=c1e({operationLocation:n,azureAsyncOperation:i}),a=u1e(e),c=r?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:hMt({requestMethod:c,location:a,requestPath:A,resourceLocationConfig:s})}:a!==void 0?{mode:"ResourceLocation",operationLocation:a}:c==="PUT"&&A?{mode:"Body",operationLocation:A}:void 0}DA.inferLroMode=d1e;function h1e(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return bz(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return yz.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function EMt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return h1e({status:r,statusCode:t.statusCode})}function fMt(t){var e,r;let{properties:A,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=A?.provisioningState)!==null&&r!==void 0?r:s;return h1e({status:n,statusCode:t.statusCode})}function bz(t){return t===202?"running":t<300?"succeeded":"failed"}function E1e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?CMt(new Date(e)):r*1e3}}DA.parseRetryAfter=E1e;function f1e(t){let e=B1e(t,"error");if(!e){yz.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){yz.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}DA.getErrorFromResponse=f1e;function CMt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function C1e(t){let{response:e,state:r,operationLocation:A}=t;function s(){var i;switch((i=r.config.metadata)===null||i===void 0?void 0:i.mode){case void 0:return bz(e.rawResponse.statusCode);case"Body":return wz(e,r);default:return"running"}}let n=s();return n==="running"&&A===void 0?"succeeded":n}DA.getStatusFromInitialResponse=C1e;async function IMt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:A,lro:s,setErrorAsResult:n}=t;return(0,a1e.initOperation)({init:async()=>{let i=await s.sendInitialRequest(),o=d1e({rawResponse:i.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:i,operationLocation:o?.operationLocation,resourceLocation:o?.resourceLocation},o?.mode?{metadata:{mode:o.mode}}:{})},stateProxy:e,processResult:A?({flatResponse:i},o)=>A(i,o):({flatResponse:i})=>i,getOperationStatus:C1e,setErrorAsResult:n})}DA.initHttpOperation=IMt;function I1e({rawResponse:t},e){var r;switch((r=Line truncated
`):i=[e.accountName,A,s,n,t.startsOn?(0,TM.truncatedISO8061Date)(t.startsOn,!1):"",(0,TM.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,W1e.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let o=e.computeHMACSHA256(i);return{sasQueryParameters:new wLt.SASQueryParameters(r,o,A.toString(),s,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}});var $1e=h(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.BlobServiceClient=void 0;var RLt=np(),SLt=ls(),j1e=rA(),mD=th(),TLt=Xz(),FM=ha(),Kf=mc(),Hu=ha(),Gu=Of(),kLt=pM(),FLt=wU(),K1e=DM(),X1e=rj(),Z1e=SM(),Aj=class t extends FLt.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let A=(0,FM.extractConnectionStringParts)(e);if(A.kind==="AccountConnString")if(j1e.isNodeLike){let s=new Kf.StorageSharedKeyCredential(A.accountName,A.accountKey);r.proxyOptions||(r.proxyOptions=(0,SLt.getDefaultProxySettings)(A.proxyUri));let n=(0,mD.newPipeline)(s,r);return new t(A.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(A.kind==="SASConnString"){let s=(0,mD.newPipeline)(new Kf.AnonymousCredential,r);return new t(A.url+"?"+A.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,A){let s;(0,mD.isPipelineLike)(r)?s=r:j1e.isNodeLike&&r instanceof Kf.StorageSharedKeyCredential||r instanceof Kf.AnonymousCredential||(0,RLt.isTokenCredential)(r)?s=(0,mD.newPipeline)(r,A):s=(0,mD.newPipeline)(new Kf.AnonymousCredential,A),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new TLt.ContainerClient((0,FM.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-createContainer",r,async A=>{let s=this.getContainerClient(e),n=await s.create(A);return{containerClient:s,containerCreateResponse:n}})}async deleteContainer(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async A=>this.getContainerClient(e).delete(A))}async undeleteContainer(e,r,A={}){return Gu.tracingClient.withSpan("BlobServiceClient-undeleteContainer",A,async s=>{let n=this.getContainerClient(A.destinationContainerName||e),i=n.storageClientContext.container,o=(0,Hu.assertResponse)(await i.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:n,containerUndeleteResponse:o}})}async getProperties(e={}){return Gu.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,Hu.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-setProperties",r,async A=>(0,Hu.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:A.tracingOptions})))}async getStatistics(e={}){return Gu.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,Hu.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return Gu.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,Hu.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return Gu.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async A=>(0,Hu.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:A.tracingOptions})))}async findBlobsByTagsSegment(e,r,A={}){return Gu.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",A,async s=>{let n=(0,Hu.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:A.abortSignal,where:e,marker:r,maxPageSize:A.maxPageSize,tracingOptions:s.tracingOptions}));return{...n,_response:n._response,blobs:n.blobs.map(o=>{let a="";return o.tags?.blobTagSet.length===1&&(a=o.tags.blobTagSet[0].value),{...o,tags:(0,FM.toTags)(o.tags),tagValue:a}})}})}async*findBlobsByTagsSegments(e,r,A={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,A),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let A;for await(let s of this.findBlobsByTagsSegments(e,A,r))yield*s.blobs}findBlobsByTags(e,r={}){let A={...r},s=this.findBlobsByTagsItems(e,A);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(e,n.continuationToken,{maxPageSize:n.maxPageSize,...A})}}async*listSegments(e,r={}){let A;if(e||e===void 0)do A=await this.listContainersSegment(e,r),A.containerItems=A.containerItems||[],e=A.continuationToken,yield await A;while(e)}async*listItems(e={}){let r;for await(let A of this.listSegments(r,e))yield*A.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.incl 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"}};Ii.NetworkError=vM;vM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var _M=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ii.UsageError=_M;_M.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var sTe=h(Bi=>{"use strict";var vLt=Bi&&Bi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),_Lt=Bi&&Bi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PLt=Bi&&Bi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vLt(e,t,r);return _Lt(e,t),e},OLt=Bi&&Bi.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.uploadCacheArchiveSDK=Bi.UploadProgress=void 0;var uj=PLt(no()),HLt=sj(),GLt=cj(),PM=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),A=Date.now()-this.startTime,s=(e/(1024*1024)/(A/1e3)).toFixed(1);uj.info(`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()}};Bi.UploadProgress=PM;function YLt(t,e,r){var A;return OLt(this,void 0,void 0,function*(){let s=new HLt.BlobClient(t),n=s.getBlockBlobClient(),i=new PM((A=r?.archiveSizeBytes)!==null&&A!==void 0?A:0),o={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:i.onProgress()};try{i.startDisplayTimer(),uj.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let a=yield n.uploadFile(e,o);if(a._response.status>=400)throw new GLt.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${a._response.status}`);return a}catch(a){throw uj.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${a.message}`),a}finally{i.stopDisplayTimer()}})}Bi.uploadCacheArchiveSDK=YLt});var gj=h(RA=>{"use strict";var qLt=RA&&RA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),JLt=RA&&RA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VLt=RA&&RA.__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)&&qLt(e,t,r);return JLt(e,t),e},HM=RA&&RA.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(RA,"__esModule",{value:!0});RA.retryHttpClientResponse=RA.retryTypedResponse=RA.retry=RA.isRetryableStatusCode=RA.isServerErrorStatusCode=RA.isSuccessStatusCode=void 0;var nTe=VLt(no()),OM=mf(),xp=EQ();function WLt(t){return t?t>=200&&t<300:!1}RA.isSuccessStatusCode=WLt;function iTe(t){return t?t>=500:!0}RA.isServerErrorStatusCode=iTe;function oTe(t){return t?[OM.HttpCodes.BadGateway,OM.HttpCodes.ServiceUnavailable,OM.HttpCodes.GatewayTimeout].includes(t):!1}RA.isRetryableStatusCode=oTe;function zLt(t){return HM(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function lj(t,e,r,A=xp.DefaultRetryAttempts,s=xp.DefaultRetryDelay,n=void 0){return HM(this,void 0,void 0,function*(){let i="",o=1;for(;o<=A;){let a,c,u=!1;try{a=yield e()}catch(l){n&&(a=n(l)),u=!0,i=l.message}if(a&&(c=r(a),!iTe(c)))return a;if(c&&(u=oTe(c),i=`Cache service responded with ${c}`),nTe.debug(`${t} - Attempt ${o} of ${A} fai Line truncated
Other caches with similar key:`);for(let o of n?.artifactCaches||[])go.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function kvt(t,e,r){return Qi(this,void 0,void 0,function*(){let A=new yvt.URL(t),s=(0,Bj.getDownloadOptions)(r);A.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,JM.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,JM.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,JM.downloadCacheHttpClient)(t,e):yield(0,JM.downloadCacheHttpClient)(t,e)})}Ns.downloadCache=kvt;function Fvt(t,e,r){return Qi(this,void 0,void 0,function*(){let A=Qj(),s=Lp.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,dh.retryTypedResponse)("reserveCache",()=>Qi(this,void 0,void 0,function*(){return A.postJson(RD("caches"),n)}))})}Ns.reserveCache=Fvt;function BTe(t,e){return`bytes ${t}-${e}/*`}function xvt(t,e,r,A,s){return Qi(this,void 0,void 0,function*(){go.debug(`Uploading chunk of size ${s-A+1} bytes at offset ${A} with content range: ${BTe(A,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":BTe(A,s)},i=yield(0,dh.retryHttpClientResponse)(`uploadChunk (start: ${A}, end: ${s})`,()=>Qi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!(0,dh.isSuccessStatusCode)(i.message.statusCode))throw new Error(`Cache service responded with ${i.message.statusCode} during upload chunk.`)})}function Uvt(t,e,r,A){return Qi(this,void 0,void 0,function*(){let s=Lp.getArchiveFileSizeInBytes(r),n=RD(`caches/${e.toString()}`),i=Cj.openSync(r,"r"),o=(0,Bj.getUploadOptions)(A),a=Lp.assertDefined("uploadConcurrency",o.uploadConcurrency),c=Lp.assertDefined("uploadChunkSize",o.uploadChunkSize),u=[...new Array(a).keys()];go.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Qi(this,void 0,void 0,function*(){for(;l<s;){let g=Math.min(s-l,c),d=l,E=l+g-1;l+=c,yield xvt(t,n,()=>Cj.createReadStream(r,{fd:i,start:d,end:E,autoClose:!1}).on("error",C=>{throw new Error(`Cache upload failed because file read failed with ${C.message}`)}),d,E)}})))}finally{Cj.closeSync(i)}})}function Mvt(t,e,r){return Qi(this,void 0,void 0,function*(){let A={size:r};return yield(0,dh.retryTypedResponse)("commitCache",()=>Qi(this,void 0,void 0,function*(){return t.postJson(RD(`caches/${e.toString()}`),A)}))})}function Lvt(t,e,r,A){return Qi(this,void 0,void 0,function*(){if((0,Bj.getUploadOptions)(A).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,bvt.uploadCacheArchiveSDK)(r,e,A)}else{let n=Qj();go.debug("Upload cache"),yield Uvt(n,t,e,A),go.debug("Commiting cache");let i=Lp.getArchiveFileSizeInBytes(e);go.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let o=yield Mvt(n,t,i);if(!(0,dh.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);go.info("Cache saved successfully")}})}Ns.saveCache=Lvt});var VM=h(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.isJsonObject=vp.typeofJsonValue=void 0;function vvt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}vp.typeofJsonValue=vvt;function _vt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}vp.isJsonObject=_vt});var zM=h(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.base64encode=_p.base64decode=void 0;var ug="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),WM=[];for(let t=0;t<ug.length;t++)WM[ug[t].charCodeAt(0)]=t;WM[45]=ug.indexOf("+");WM[95]=ug.indexOf("/");function Pvt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),A=0,s=0,n,i=0;for(let o=0;o<t.length;o++){if(n=WM[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:i=n,s=1;break;case 1:r[A++]=i<<2|(n&48)>>4,i=n,s=2;break;case 2:r[A++]=(i&15)<<4|(n&60)>>2,i=n,s=3;break;case 3:r[A++]=(i&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,A)}_p.base64decode=Pvt;function Ovt(t){let e="",r=0,A,s=0;for(let n=0;n<t.length;n++)switch(A=t[n],r){case 0:e+=ug[A>>2],s=(A&3)<<4,r=1;break;case 1:e+=ug[s|A>>4],s=(A&15)<<2,r=2;break;case 2:e+=ug[s|A>>6],e+=ug[A&63],r=0;break}return r&&(e+=ug[s],e+="=",r==1&&(e+="=")),e}_p.base64encode=Ovt});var pTe=h(jM=>{"use strict";Object.defineProperty(jM,"__esModule",{value:!0});jM.utf8read=void 0;var pj=t=>String.fromCharCode.apply(String,t);function Hvt(t){if(t.length<1)return"";let e=0,r=[],A=[],s=0,n,i=t.length;for(;e<i;)n=t[e++],n<128?A[s++]=n:n>191&&n<224?A[s++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,A[s++]=55296+(n>>10),A[s++]=56320+(n&1023)):A[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(pj(A)),s=0);return r.length?(s&&r.push(pj(A.slice(0,s))),r.join("")):pj(A.slice(0,s))}jM.utf8read=Hvt});var SD=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.WireType=Yu.mergeBinaryOptions=Yu.UnknownFieldHandler=void 0;var Gvt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,A,s,n,i)=>{(e(A)?A[t.symbol]:A[t.symbol]=[]).push({no:s,wireType:n,data:i})},t.onWrite=(r,A,s)=>{for(let{no:n,wireType:i,data:o}of t.list(A))s.tag(n,i).raw(o)},t.list=(r,A)=>{if(e(r)){let s=r[t.symbol];return A?s.filter(n=>n.no==A):s}return[]},t.last=(r,A)=>t.list(r,A).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Gvt=Yu.UnknownFieldHandler||(Yu.UnknownFieldHandler={}));function Yvt(t,e){return Object.assign(Object.assign({},t),e)}Yu.mergeBinaryOptions=Yvt;var qvt;(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"})(qvt=Yu.WireType||(Yu.WireType={}))});var XM=h(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.varint32read=pi.varint32write=pi.int64toString=pi.int64fromString=pi.varint64write=pi.varint64read=void 0;function Jvt(){let t=0,e=0;for(let A=0;A<28;A+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<A,(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 A=3;A<=31;A+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<A,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}pi.varint64read=Jvt;function Vvt(t,e,r){for(let n=0;n<28;n=n+7){let i=t>>>n,o=!(!(i>>>7)&&e==0),a=(o?i|128:i)&255;if(r.push(a),!o)return}let A=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?A|128:A)&255),!!s){for(let n=3;n<31;n=n+7){let i=e>>>n,o=!!(i>>>7),a=(o?i|128:i)&255;if(r.push(a),!o)return}r.push(e>>>31&1)}}pi.varint64write=Vvt;var KM=65536*65536;function Wvt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,A=0,s=0;function n(i,o){let a=Number(t.slice(i,o));s*=r,A=A*r+a,A>=KM&&(s=s+(A/KM|0),A=A%KM)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,A,s]}pi.int64fromString=Wvt;function zvt(t,e){if(e>>>0<=2097151)return""+(KM*e+(t>>>0));let r=t&16777215,A=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+A*6777216+s*6710656,i=A+s*8147497,o=s*2,a=1e7;n>=a&&(i+=Math.floor(n/a),n%=a),i>=a&&(o+=Math.floor(i/a),i%=a);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(o,0)+c(i,o)+c(n,1)}pi.int64toString=zvt;function jvt(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=jvt;function Kvt(){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=Kvt});var Eh=h(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.PbLong=hh.PbULong=hh.detectBi=void 0;var TD=XM(),Dr;function mTe(){let t=new DataView(new ArrayBuffer(8));Dr=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}hh.detectBi=mTe;mTe();function yTe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var bTe=/^-?[0-9]+$/,$M=4294967296,ZM=2147483648,eL=c Line truncated
`)}};bL.RpcError=zj});var Kj=h(DL=>{"use strict";Object.defineProperty(DL,"__esModule",{value:!0});DL.mergeRpcOptions=void 0;var eke=qA();function IPt(t,e){if(!e)return t;let r={};wL(t,r),wL(e,r);for(let A of Object.keys(e)){let s=e[A];switch(A){case"jsonOptions":r.jsonOptions=eke.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=eke.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wL(t.meta,r.meta),wL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}DL.mergeRpcOptions=IPt;function wL(t,e){if(!t)return;let r=e;for(let[A,s]of Object.entries(t))s instanceof Date?r[A]=new Date(s.getTime()):Array.isArray(s)?r[A]=s.concat():r[A]=s}});var Zj=h($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.Deferred=$f.DeferredState=void 0;var Vu;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vu=$f.DeferredState||($f.DeferredState={}));var Xj=class{constructor(e=!0){this._state=Vu.PENDING,this._promise=new Promise((r,A)=>{this._resolve=r,this._reject=A}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Vu.PENDING)throw new Error(`cannot resolve ${Vu[this.state].toLowerCase()}`);this._resolve(e),this._state=Vu.RESOLVED}reject(e){if(this.state!==Vu.PENDING)throw new Error(`cannot reject ${Vu[this.state].toLowerCase()}`);this._reject(e),this._state=Vu.REJECTED}resolvePending(e){this._state===Vu.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vu.PENDING&&this.reject(e)}};$f.Deferred=Xj});var e7=h(NL=>{"use strict";Object.defineProperty(NL,"__esModule",{value:!0});NL.RpcOutputStreamController=void 0;var tke=Zj(),eC=qA(),$j=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 A=r.indexOf(e);A>=0&&r.splice(A,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,A){eC.assert((e?1:0)+(r?1:0)+(A?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),A&&this.notifyComplete()}notifyMessage(e){eC.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){eC.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(){eC.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;eC.assert(e,"bad state"),eC.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 tke.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let A=r.p;eC.assert(A.state==tke.DeferredState.PENDING,"iterator contract broken"),"value"in e?A.resolve(e):A.reject(e),delete r.p}else r.q.push(e)}};NL.RpcOutputStreamController=$j});var r7=h(Jp=>{"use strict";var BPt=Jp&&Jp.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.UnaryCall=void 0;var t7=class{constructor(e,r,A,s,n,i,o){this.method=e,this.requestHeaders=r,this.request=A,this.headers=s,this.response=n,this.status=i,this.trailers=o}then(e,r){return this.promiseFinished().then(A=>e?Promise.resolve(e(A)):A,A=>r?Promise.resolve(r(A)):Promise.reject(A))}promiseFinished(){return BPt(this,void 0,void 0,function*(){let[e,r,A,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:A,trailers:s}})}};Jp.UnaryCall=t7});var s7=h(Vp=>{"use strict";var QPt=Vp&&Vp.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.ServerStreamingCall=void 0;var A7=class{constructor(e Line truncated
`));let A=yield D7(r,"create");yield N7(A,t)})}ln.createTar=hOt});var WD=h(rs=>{"use strict";var EOt=rs&&rs.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),fOt=rs&&rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JD=rs&&rs.__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)&&EOt(e,t,r);return fOt(e,t),e},a0=rs&&rs.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(rs,"__esModule",{value:!0});rs.saveCache=rs.restoreCache=rs.isFeatureAvailable=rs.ReserveCacheError=rs.ValidationError=void 0;var pt=JD(no()),ML=JD(B("path")),nA=JD(CQ()),i0=JD(QTe()),pke=JD(Cke()),VD=YM(),Ih=Qke(),COt=EQ(),mTr=mf(),Bh=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};rs.ValidationError=Bh;var qD=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};rs.ReserveCacheError=qD;function mke(t){if(!t||t.length===0)throw new Bh("Path Validation Error: At least one directory or file path is required")}function R7(t){if(t.length>512)throw new Bh(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Bh(`Key Validation Error: ${t} cannot contain commas.`)}function IOt(){return(0,VD.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}rs.isFeatureAvailable=IOt;function BOt(t,e,r,A,s=!1){return a0(this,void 0,void 0,function*(){let n=(0,VD.getCacheServiceVersion)();return pt.debug(`Cache service version: ${n}`),mke(t),n==="v2"?yield pOt(t,e,r,A,s):yield QOt(t,e,r,A,s)})}rs.restoreCache=BOt;function QOt(t,e,r,A,s=!1){return a0(this,void 0,void 0,function*(){r=r||[];let n=[e,...r];if(pt.debug("Resolved Keys:"),pt.debug(JSON.stringify(n)),n.length>10)throw new Bh("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of n)R7(a);let i=yield nA.getCompressionMethod(),o="";try{let a=yield i0.getCacheEntry(n,t,{compressionMethod:i,enableCrossOsArchive:s});if(!a?.archiveLocation)return;if(A?.lookupOnly)return pt.info("Lookup only - skipping download"),a.cacheKey;o=ML.join(yield nA.createTempDirectory(),nA.getCacheFileName(i)),pt.debug(`Archive Path: ${o}`),yield i0.downloadCache(a.archiveLocation,o,A),pt.isDebug()&&(yield(0,Ih.listTar)(o,i));let c=nA.getArchiveFileSizeInBytes(o);return pt.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,Ih.extractTar)(o,i),pt.info("Cache restored successfully"),new o0(a.cacheKey,c)}finally{try{yield nA.unlinkFile(o)}catch(a){pt.debug(`Failed to delete archive: ${a}`)}}})}function pOt(t,e,r,A,s=!1){return a0(this,void 0,void 0,function*(){A=Object.assign(Object.assign({},A),{useAzureSdk:!0}),r=r||[];let n=[e,...r];if(pt.debug("Resolved Keys:"),pt.debug(JSON.stringify(n)),n.length>10)throw new Bh("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)R7(o);let i="";try{let o=pke.internalCacheTwirpClient(),a=yield nA.getCompressionMethod(),c={key:e,restoreKeys:r,version:nA.getCacheVersion(t,a,s)},u=yield o.GetCacheEntryDownloadURL(c);if(!u.ok){pt.debug(`Cache not found for version ${c.version} of keys: ${n.join(", ")}`);return}if(c.key!==u.matchedKey?pt.info(`Cache hit for restore-key: ${u.matchedKey}`):pt.info(`Cache hit for: ${u.matchedKey}`),A?.lookupOnly)return pt.info("Lookup only - skipping download"),u.matchedKey;i=ML.join(yield nA.createTempDirectory(),nA.getCacheFileName(a)),pt.debug(`Archive path: ${i}`),pt.debug(`Starting download of archive to: ${i}`),yield i0.downloadCache(u.signedDownloadUrl,i,A);let g=nA.getArchiveFileSizeInBytes(i);return pt.info(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),pt.isDebug()&&(yield(0,Ih.listTar)(i,a)),yield(0,Ih.extractTar)(i,a),pt.info("Cache restored successfully"),new o0(u.matchedKey,g)}finally{try{i&&(yield nA.unlinkFile(i))}catch(o){pt.debug(`Failed to delete archive: ${o}`)}}})}function mOt(t,e,r,A=!1){return a0(this,void 0,void 0,function*(){let s=(0,VD.getCacheServiceVersion)();return pt.debug(`Cache service version: ${s}`),mke(t),R7(e),s==="v2"?yield bOt(t,e,r,A):yield yOt(t,e,r,A)})}rs.saveCache=mOt;function yOt(t,e,r,A=!1){var s,n,i,o,a;return a0(this,void 0,void 0,function*(){let c=yield nA.getCompressionMethod(),u=-1,l=yield nA.resolvePaths(t);if(pt.debug("Cache P Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function c8t(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(WGt.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function u8t(){return"allowed"}function l8t(){return"success"}function g8t(){return"success"}function d8t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function h8t(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&&NK(t.origin)&&!NK(oN(t))&&(e=null);break;case"same-origin":uv(t,oN(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function y0(t,e){return t}function E8t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:y0(t.domainLookupStartTime,r),domainLookupEndTime:y0(t.domainLookupEndTime,r),connectionStartTime:y0(t.connectionStartTime,r),connectionEndTime:y0(t.connectionEndTime,r),secureConnectionStartTime:y0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function f8t(t){return y0(ZGt.now(),t)}function C8t(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 U2e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function I8t(t){return{referrerPolicy:t.referrerPolicy}}function B8t(t){let e=t.referrerPolicy;aC(e);let r=null;if(t.referrer==="client"){let o=R2e();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=DK(r),s=DK(r,!0);A.toString().length>4096&&(A=s);let n=uv(t,A),i=iN(A)&&!iN(t.url);switch(e){case"origin":return s??DK(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=oN(t);return uv(A,o)?A:iN(A)&&!iN(o)?"no-referrer":s}default:return i?"no-referrer":s}}function DK(t,e){return aC(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 iN(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function Q8t(t,e){if(cv===void 0)return!0;let r=M2e(e);if(r==="no metadata"||r.length===0)return!0;let A=m8t(r),s=y8t(r,A);for(let n of s){let i=n.algo,o=n.hash,a=cv.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),b8t(a,o))return!0}return!1}var p8t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function M2e(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=p8t.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();T2e.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function m8t(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function y8t(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function b8t(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 w8t(t){}function uv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function D8t(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function N8t(t){return t.controller.state==="aborted"}function R8t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function S8t(t){return t8t[t.toLowerCase()]??t}function T8t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return aC(typeof e=="string"),e}var k8t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function L2e(t,e,r=0,A=1){class s{ Line truncated
`);function o3t(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function a3t(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function c3t(t,e){gv(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&dv(t,n3t,n)||n.position===t.length-4&&dv(t,i3t,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=u3t(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let E=t.indexOf(A.subarray(2),n.position);if(E===-1)return"failure";g=t.subarray(n.position,E-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",o3t(u)||(u=""),d=new A3t([g],c,{type:u})):d=Z8t(Buffer.from(g)),gv(z2e(a)),gv(typeof d=="string"&&z2e(d)||e3t(d)),s.push(t3t(a,d,c))}}function u3t(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=w0(o=>o!==10&&o!==13&&o!==58,t,e);if(i=UK(i,!0,!0,o=>o===9||o===32),!$8t.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,w0(o=>o===32||o===9,t,e),X8t(i)){case"content-disposition":{if(r=A=null,!dv(t,s3t,e)||(e.position+=17,r=X2e(t,e),r===null))return"failure";if(dv(t,K2e,e)){let o=e.position+K2e.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=X2e(t,e),A===null))return"failure"}break}case"content-type":{let o=w0(a=>a!==10&&a!==13,t,e);o=UK(o,!1,!0,a=>a===9||a===32),s=j2e(o);break}case"content-transfer-encoding":{let o=w0(a=>a!==10&&a!==13,t,e);o=UK(o,!1,!0,a=>a===9||a===32),n=j2e(o);break}default:w0(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function X2e(t,e){gv(t[e.position-1]===34);let r=w0(A=>A!==10&&A!==13&&A!==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 w0(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function UK(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function dv(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}Z2e.exports={multipartFormDataParser:c3t,validateBoundary:a3t}});var R0=h((Ckr,cxe)=>{"use strict";var uN=Nt(),{ReadableStreamFrom:l3t,isBlobLike:exe,isReadableStreamLike:g3t,readableStreamClose:d3t,createDeferredPromise:h3t,fullyReadBody:E3t,extractMimeType:f3t,utf8DecodeBytes:Axe}=Eo(),{FormData:txe}=cN(),{kState:N0}=mh(),{webidl:C3t}=Ws(),{Blob:I3t}=B("node:buffer"),MK=B("node:assert"),{isErrored:sxe,isDisturbed:B3t}=B("node:stream"),{isArrayBuffer:Q3t}=B("node:util/types"),{serializeAMimeType:p3t}=yi(),{multipartFormDataParser:m3t}=$2e(),LK;try{let t=B("node:crypto");LK=e=>t.randomInt(0,e)}catch{LK=t=>Math.floor(Math.random(t))}var hv=new TextEncoder;function y3t(){}var nxe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ixe;nxe&&(ixe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!B3t(e)&&!sxe(e)&&e.cancel("Response object has been garbage collected").catch(y3t)}));function oxe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:exe(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?hv.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>d3t(a))},start(){},type:"bytes"}),MK(g3t(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(Q3t(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(uN.isFormDataLike(t)){let a=`----formdata-undici-0${`${LK(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let E=!1;for(let[Q,I]of t)if(typeof I=="string"){let p=hv.encode(c+`; name="${u(l(Q))}"\r
\r
${l(I)}\r
`);g.push(p),n+=p.byteLength}else{let p=hv.encode(`${c}; name="${u(l(Q))}"`+(I.name?`; filename="${u(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);g.push(p,I,d),typeof I.size=="number"?n+=p.byteLength+I.size+d.byteLength:E=!0}let C=hv.encode(`--${a}--\r
`);g.push(C),n+=C.byteLength,E&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(exe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(uN.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:l3t(t)}if((typeof s=="string"||uN.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(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(!sxe(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:s,length:n},i]}function b3t(t,e=!1){return t instanceof ReadableStream&&(MK(!uN.isDisturbed(t),"The body has already been consumed."),MK(!t.locked,"The stream is locked.")),oxe(t,e)}function w3t(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function D3t(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function N3t(t){return{blob(){return D0(this,r=>{let A=rxe(this);return A===null?A="":A&&(A=p3t(A)),new I3t([r],{type:A})},t)},arrayBuffer(){return D0(this,r=>new Uint8Array(r).buffer,t)},text(){return D0(this,Axe,t)},json(){return D0(this,S3t,t)},formData(){return D0(this,r=>{let A=rxe(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=m3t(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new txe;return n[N0]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new txe;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return D0(this,r=>new Uint8Array(r),t)}}}function R3t(t){Object.assign(t.prototype,N3t(t))}async function D0(t,e,r){if(C3t.brandCheck(t,r),axe(t))throw new TypeError("Body is unusable: Body has already been read");D3t(t[N0]);let A=h3t(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[N0].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await E3t(t[N0].body,n,s),A.promise)}function axe(t){let e=t[N0].body;return e!=null&&(e.stream.locked||uN.isDisturbed(e.stream))}function S3t(t){return JSON.parse(Axe(t))}function rxe(t){let e=t[N0].headersList,r=f3t(e);return r==="failure"?null:r}cxe.exports={extractBody:oxe,safelyExtractBody:b3t,cloneBody:w3t,mixinBody:R3t,streamRegistry:ixe,hasFinalizationRegistry:nxe,bodyUnusable:axe}});var Qxe=h((Ikr,Bxe)=>{"use strict";var Ke=B("node:assert"),ct=Nt(),{channels:uxe}=E0(),vK=IK(),{RequestContentLengthMismatchError:cC,ResponseContentLengthMismatchError:T3t,RequestAbortedError:fxe,HeadersTimeoutError:k3t,HeadersOverflowError:F3t,SocketError:Qv,InformationalError:S0,BodyTimeoutError:x3t,HTTPParserError:U3t,ResponseExceededMaxSizeError:M3t}=er(),{kUrl:Cxe,kReset:bi,kClient:HK,kParser:FA,kBlocking:dN,kRunning:gn,kPending:L3t,kSize:lxe,kWriting:bh,kQueue:Sc,kNoRef:lN,kKeepAliveDefaultTimeout:v3t,kHostHeader:_3t,kPendingIdx:P3t,kRunningIdx:wa,kError:Da,kPipelining:Iv,kSocket:T0,kKeepAliveTimeoutValue:pv,kMaxHeadersSize:_K,kKeepAliveMaxTimeout:O3t,kKeepAliveTimeoutThreshold:H3t,kHeadersTimeout:G3t,kBodyTimeout:Y3t,kStrictContentLength:GK,kMaxRequests:gxe,kCounter:q3t,kMaxResponseSize:J3t,kOnError:V3t,kResume:yh,kHTTPContext:Ixe}=iA(),Ku=i2e(),W3t=Buffer.alloc(0),Ev=Buffer[Symbol.species],fv=ct.addListener,z3t=ct.removeAllListeners,PK;async function j3t(){let t=process.env.JEST_WORKER_ID?pK():void 0,e;try{e=await WebAssembly.compile(c2e())}catch{e=await WebAssembly.compile(t||pK())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onStatus(new Ev(Xu.buffer,n,s))||0},wasm_on_message_begin:r=>(Ke(hs.ptr===r),hs.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onHeaderField(new Ev(Xu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onHeaderValue(new Ev(Xu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Ke(hs.ptr===r),hs.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Ke(hs.ptr===r);let n=A-Zu+Xu.byteOffset;return hs.onBody(new Ev(Xu.buffer,n,s))||0},wasm_on_message_complete:r=>(Ke(hs.ptr===r),hs.onMessageComplete()||0)}})}var OK=null,YK=j3t();YK.catch();var hs=null,Xu=null,Cv=0,Zu=null,K3t=0,gN=1,k0=2|gN,Bv=4|gN,qK=8|K3t,JK=class{constructor(e,r,{exports:A}){Ke(Number.isFinite(e[_K])&&e[_K]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Ku.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"?C+=`host: ${s}\r
`:C+=t[_3t],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:t[Iv]&&!d[bi]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let I=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)C+=`${I}: ${p[w]}\r
`;else C+=`${I}: ${p}\r
`}return uxe.sendHeaders.hasSubscribers&&uxe.sendHeaders.publish({request:e,headers:C,socket:d}),!a||g===0?hxe(E,null,t,e,d,u,C,l):ct.isBuffer(a)?hxe(E,a,t,e,d,u,C,l):ct.isBlobLike(a)?typeof a.stream=="function"?Exe(E,a.stream(),t,e,d,u,C,l):rYt(E,a,t,e,d,u,C,l):ct.isStream(a)?tYt(E,a,t,e,d,u,C,l):ct.isIterable(a)?Exe(E,a,t,e,d,u,C,l):Ke(!1),!0}function tYt(t,e,r,A,s,n,i,o){Ke(n!==0||r[gn]===0,"stream body cannot be pipelined");let a=!1,c=new mv({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){ct.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let E=new fxe;queueMicrotask(()=>d(E))}},d=function(E){if(!a){if(a=!0,Ke(s.destroyed||s[bh]&&r[gn]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?ct.destroy(e,E):ct.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function hxe(t,e,r,A,s,n,i,o){try{e?ct.isBuffer(e)&&(Ke(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[bi]=!0)):n===0?s.write(`${i}content-length: 0\r
\r
`,"latin1"):(Ke(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[yh]()}catch(a){t(a)}}async function rYt(t,e,r,A,s,n,i,o){Ke(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new cC;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[bi]=!0),r[yh]()}catch(a){t(a)}}async function Exe(t,e,r,A,s,n,i,o){Ke(n!==0||r[gn]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ke(a===null),s[Da]?d(s[Da]):a=g});s.on("close",c).on("drain",c);let l=new mv({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Da])throw s[Da];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var mv=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[bh]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Da])throw r[Da];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[GK])throw new cC;process.emitWarning(new cC)}r.cork(),i===0&&(!o&&A.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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[FA].timeout&&r[FA].timeoutType===k0&&r[FA].timeout.refresh&&r[FA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[bh]=!1,e[Da])throw e[Da];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[GK])throw new cC;process.emitWarning(new cC)}e[FA].timeout&&e[FA].timeoutType===k0&&e[FA].timeout.refresh&&e[FA].timeout.refresh(),A[yh]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[bh]=!1,e&&(Ke(A[gn]<=1,"pipeline should only contain this request"),s(e))}};Bxe.exports=X3t});var Rxe=h((Bkr,Nxe)=>{"use strict";var Na=B("node:assert"),{pipeline:AYt}=B("node:stream"),Lt=Nt(),{RequestContentLengthMismatchError:VK,RequestAbortedError:pxe,SocketError:hN,InformationalError:WK}=er(),{kUrl:yv,kReset:wv,kClient:F0,kRunning:Dv,kPending:sYt,kQueue:wh,kPendingIdx:zK,kRunningIdx:Tc,kError:Fc,kSocket:ks,kStrictContentLength:nYt,kOnError:jK,kMaxConcurrentStreams:Dxe,kHTTP2Session:kc,kResume:Dh,kSize:iYt,kHTTPContext:oYt}=iA(),pg=Symbol("open streams"),mxe,yxe=!1,bv;try{bv=B("node:http2")}catch{bv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:aYt,HTTP2_HEADER_METHOD:cYt,HTTP2_HEADER_PATH:uYt,HTTP2_HEADER_SCHEME:lYt,HTTP2_HEADER_CONTENT_LENGTH:gYt,HTTP2_HEADER_EXPECT:dYt,HTTP2_HEADER_STATUS:hYt}}=bv;function EYt(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function fYt(t,e){t[ks]=e,yxe||(yxe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=bv.connect(t[yv],{createConnection:()=>e,peerMaxConcurrentStreams:t[Dxe]});r[pg]=0,r[F0]=t,r[ks]=e,Lt.addListener(r,"error",IYt),Lt.addListener(r,"frameError",BYt),Lt.addListener(r,"end",QYt),Lt.addListener(r,"goaway",pYt),Lt.addListener(r,"close",function(){let{[F0]:s}=this,{[ks]:n}=s,i=this[ks][Fc]||this[Fc]||new hN("closed",Lt.getSocketInfo(n));if(s[kc]=null,s.destroyed){Na(s[sYt]===0);let o=s[wh].splice(s[Tc]);for(let a=0;a<o.length;a++){let c=o[a];Lt.errorRequest(s,c,i)}}}),r.unref(),t[kc]=r,e[kc]=r,Lt.addListener(e,"error",function(s){Na(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Fc]=s,this[F0][jK](s)}),Lt.addListener(e,"end",function(){Lt.destroy(this,new hN("other side closed",Lt.getSocketInfo(this)))}),Lt.addListener(e,"close",function(){let s=this[Fc]||new hN("closed",Lt.getSocketInfo(this));t[ks]=null,this[kc]!=null&&this[kc].destroy(s),t[zK]=t[Tc],Na(t[Dv]===0),t.emit("disconnect",t[yv],[t],s),t[Dh]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return yYt(t,...s)},resume(){CYt(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function CYt(t){let e=t[ks];e?.destroyed===!1&&(t[iYt]===0&&t[Dxe]===0?(e.unref(),t[kc].unref()):(e.ref(),t[kc].ref()))}function IYt(t){Na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ks][Fc]=t,this[F0][jK](t)}function BYt(t,e,r){if(r===0){let A=new WK(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ks][Fc]=A,this[F0][jK](A)}}function QYt(){let t=new hN("other side closed",Lt.getSocketInfo(this[ks]));this.destroy(t),Lt.destroy(this[ks],t)}function pYt(t){let e=this[Fc]||new hN(`HTTP/2: "GOAWAY" frame received with code ${t}`,Lt.getSocketInfo(this)),r=this[F0];if(r[ks]=null,r[oYt]=null,this[kc]!=null&&(this[kc].destroy(e),this[kc]=null),Lt.destroy(this[ks],e),r[Tc]<r[wh].length){let A=r[wh][r[Tc]];r[wh][r[Tc]++]=null,Lt.errorRequest(r,A,e),r[zK]=r[Tc]}Na(r[Dv]===0),r.emit("disconnect",r[yv],[r],e),r[Dh]()}function mYt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function yYt(t,e){let r=t[kc],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:E}=t[yv];l[aYt]=n||`${d}${E?`:${E}`:""}`,l[cYt]=A;let C=k=>{e.aborted||e.completed||(k=k||new pxe,Lt.errorRequest(t,e,k),g!=null&&Lt.destroy(g,k),Lt.destroy(u,k),t[wh][t[Tc]++]=null,t[Dh]())};try{e.onConnect(C)}catch(k){Lt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[pg],t[wh][t[Tc]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[pg],t[wh][t[Tc]++]=null}),g.once("close",()=>{r[pg]-=1,r[pg]===0&&r.unref()}),!0;l[uYt]=s,l[lYt]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let I=Lt.bodyLength(u);if(Lt.isFormDataLike(u)){mxe??=R0().extractBody;let[k,J]=mxe(u);l["content-type"]=J,u=k.stream,I=k.length}if(I==null&&(I=e.contentLength),(I===0||!Q)&&(I=null),mYt(A)&&I>0&&e.contentLength!=null&&e.contentLength!==I){if(t[nYt])return Lt.errorRequest(t,e,new VK),!1;process.emitWarning(new VK)}I!=null&&(Na(u,"no body must not have content length"),l[gYt]=`${I}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[dYt]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[jYt]=a??3e5,this[zYt]=s??3e5,this[KYt]=p??!0,this[XYt]=k,this[$K]=j,this[Rh]=null,this[r4t]=$>-1?$:-1,this[s4t]=Ne??100,this[VA]=null,this[xc]=[],this[yg]=0,this[Uc]=0,this[IN]=le=>tX(this,le),this[A4t]=le=>Oxe(this,le)}get pipelining(){return this[Tv]}set pipelining(e){this[Tv]=e,this[IN](!0)}get[pN](){return this[xc].length-this[Uc]}get[QN](){return this[Uc]-this[yg]}get[BN](){return this[xc].length-this[yg]}get[HYt](){return!!this[VA]&&!this[U0]&&!this[VA].destroyed}get[ZK](){return!!(this[VA]?.busy(null)||this[BN]>=(Pxe(this)||1)||this[pN]>0)}[OYt](e){Hxe(this),this.once("connect",e)}[t4t](e,r){let A=e.origin||this[el].origin,s=new UYt(A,e,r);return this[xc].push(s),this[lC]||(uC.bodyLength(s.body)==null&&uC.isIterable(s.body)?(this[lC]=1,queueMicrotask(()=>tX(this))):this[IN](!0)),this[lC]&&this[Sh]!==2&&this[ZK]&&(this[Sh]=2),this[Sh]<2}async[$Yt](){return new Promise(e=>{this[BN]?this[Rh]=e:e(null)})}async[e4t](e){return new Promise(r=>{let A=this[xc].splice(this[Uc]);for(let n=0;n<A.length;n++){let i=A[n];uC.errorRequest(this,i,e)}let s=()=>{this[Rh]&&(this[Rh](),this[Rh]=null),r(null)};this[VA]?(this[VA].destroy(e,s),this[VA]=null):queueMicrotask(s),this[IN]()})}},o4t=Sv();function Oxe(t,e){if(t[QN]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mg(t[Uc]===t[yg]);let r=t[xc].splice(t[yg]);for(let A=0;A<r.length;A++){let s=r[A];uC.errorRequest(t,s,e)}mg(t[BN]===0)}}async function Hxe(t){mg(!t[U0]),mg(!t[VA]);let{host:e,hostname:r,protocol:A,port:s}=t[el];if(r[0]==="["){let n=r.indexOf("]");mg(n!==-1);let i=r.substring(1,n);mg(_xe.isIP(i)),r=i}t[U0]=!0,x0.beforeConnect.hasSubscribers&&x0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[VA]?.version,servername:t[Nh],localAddress:t[CN]},connector:t[fN]});try{let n=await new Promise((i,o)=>{t[fN]({host:e,hostname:r,protocol:A,port:s,servername:t[Nh],localAddress:t[CN]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){uC.destroy(n.on("error",Lxe),new vYt);return}mg(n);try{t[VA]=n.alpnProtocol==="h2"?await i4t(t,n):await n4t(t,n)}catch(i){throw n.destroy().on("error",Lxe),i}t[U0]=!1,n[ZYt]=0,n[$K]=t[$K],n[PYt]=t,n[YYt]=null,x0.connected.hasSubscribers&&x0.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[VA]?.version,servername:t[Nh],localAddress:t[CN]},connector:t[fN],socket:n}),t.emit("connect",t[el],[t])}catch(n){if(t.destroyed)return;if(t[U0]=!1,x0.connectError.hasSubscribers&&x0.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[VA]?.version,servername:t[Nh],localAddress:t[CN]},connector:t[fN],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mg(t[QN]===0);t[pN]>0&&t[xc][t[Uc]].servername===t[Nh];){let i=t[xc][t[Uc]++];uC.errorRequest(t,i,n)}else Oxe(t,n);t.emit("connectionError",t[el],[t],n)}t[IN]()}function vxe(t){t[Sh]=0,t.emit("drain",t[el],[t])}function tX(t,e){t[lC]!==2&&(t[lC]=2,a4t(t,e),t[lC]=0,t[yg]>256&&(t[xc].splice(0,t[yg]),t[Uc]-=t[yg],t[yg]=0))}function a4t(t,e){for(;;){if(t.destroyed){mg(t[pN]===0);return}if(t[Rh]&&!t[BN]){t[Rh](),t[Rh]=null;return}if(t[VA]&&t[VA].resume(),t[ZK])t[Sh]=2;else if(t[Sh]===2){e?(t[Sh]=1,queueMicrotask(()=>vxe(t))):vxe(t);continue}if(t[pN]===0||t[QN]>=(Pxe(t)||1))return;let r=t[xc][t[Uc]];if(t[el].protocol==="https:"&&t[Nh]!==r.servername){if(t[QN]>0)return;t[Nh]=r.servername,t[VA]?.destroy(new LYt("servername changed"),()=>{t[VA]=null,tX(t)})}if(t[U0])return;if(!t[VA]){Hxe(t);return}if(t[VA].destroyed||t[VA].busy(r))return;!r.aborted&&t[VA].write(r)?t[Uc]++:t[xc].splice(t[Uc],1)}}Gxe.exports=eX});var rX=h((bkr,Yxe)=>{"use strict";var kv=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)}};Yxe.exports=class{constructor(){this.head=this.tail=new kv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new kv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Jxe=h((wkr,qxe)=>{var{kFree:c4t,kConnected:u4t,kPending:l4t,kQueued:g4t,kRunning:d4t,kSize:h4t}=iA(),gC=Symbol("pool"),AX=class{constructor(e){this[gC]=e}get connected(){return this[gC][u4t]}get free(){return this[gC][c4t]}get pending(){return this[gC][l4t]}get queued(){return this[gC][g4t]}get running(){return this[gC][d4t]}get size(){return this[gC][h4t]}};qxe.exports=AX});var cX=h((Dkr,tUe)=>{"use strict";var E4t=B0(),f4t=rX(),{kConnected:sX,kSize:Vxe,kRunning:Wxe,kPending:zxe,kQueued:mN,kBusy:C4t,kFree:I4t,kUrl:B4t,kClose:Q4t,kDestroy:p4t,kDispatch:m4t}=iA(),y4t=Jxe(),wi=Symbol("clients"),_n=Symbol("needDrain"),yN=Symbol("queue"),nX=Symbol("closed resolve"),iX=Symbol("onDrain"),jxe=Symbol("onConnect"),Kxe=Symbol("onDisconnect"),Xxe=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};oLe.exports=cZ});var jv=h((eFr,gLe)=>{"use strict";var cLe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:j5t}=er(),K5t=v0();lLe()===void 0&&uLe(new K5t);function uLe(t){if(!t||typeof t.dispatch!="function")throw new j5t("Argument agent must implement Agent");Object.defineProperty(globalThis,cLe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function lLe(){return globalThis[cLe]}gLe.exports={setGlobalDispatcher:uLe,getGlobalDispatcher:lLe}});var Kv=h((rFr,dLe)=>{"use strict";dLe.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 ELe=h((AFr,hLe)=>{"use strict";var X5t=Rv();hLe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new X5t(r,i,s,n);return r(o,a)}}});var CLe=h((sFr,fLe)=>{"use strict";var Z5t=Pv();fLe.exports=t=>e=>function(A,s){return e(A,new Z5t({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var BLe=h((nFr,ILe)=>{"use strict";var $5t=Nt(),{InvalidArgumentError:e9t,RequestAbortedError:t9t}=er(),r9t=Kv(),uZ=class extends r9t{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new e9t("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=$5t.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new t9t(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function A9t({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new uZ({maxSize:n},s);return e(A,i)}}ILe.exports=A9t});var mLe=h((iFr,pLe)=>{"use strict";var{isIP:s9t}=B("node:net"),{lookup:n9t}=B("node:dns"),i9t=Kv(),{InvalidArgumentError:W0,InformationalError:o9t}=er(),QLe=Math.pow(2,31)-1,lZ=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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new o9t("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){n9t(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===QLe?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===QLe?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new gZ(this,e,r)}},gZ=class extends i9t{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":tPe(n)&&(r[s]=n);break;case"id":rPe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&tPe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&rPe(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}}};APe.exports={EventSourceStream:XZ}});var gPe=h((vFr,lPe)=>{"use strict";var{pipeline:EWt}=B("node:stream"),{fetching:fWt}=LN(),{makeRequest:CWt}=K0(),{webidl:Rg}=Ws(),{EventSourceStream:IWt}=sPe(),{parseMIMEType:BWt}=yi(),{createFastMessageEvent:QWt}=rm(),{isNetworkError:nPe}=UN(),{delay:pWt}=jZ(),{kEnumerableProperty:NC}=Nt(),{environmentSettingsObject:iPe}=Eo(),oPe=!1,aPe=3e3,zN=0,cPe=1,jN=2,mWt="anonymous",yWt="use-credentials",om=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=zN;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Rg.util.markAsUncloneable(this);let A="EventSource constructor";Rg.argumentLengthCheck(arguments,1,A),oPe||(oPe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Rg.converters.USVString(e,A,"url"),r=Rg.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:aPe};let s=iPe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=mWt;r.withCredentials&&(i=yWt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=iPe.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=CWt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===jN)return;this.#A=zN;let e={request:this.#s,dispatcher:this.#o},r=A=>{nPe(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(nPe(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?BWt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=cPe,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new IWt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(QWt(a.type,a.options))}});EWt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=fWt(e)}async#c(){this.#A!==jN&&(this.#A=zN,this.dispatchEvent(new Event("error")),await pWt(this.#i.reconnectionTime),this.#A===zN&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){Rg.brandCheck(this,t),this.#A!==jN&&(this.#A=jN,this.#n.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}},uPe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:zN,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:cPe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:jN,writable:!1}};Object.defineProperties(om,uPe);Object.defineProperties(om.prototype,uPe);Object.defineProperties(om.prototype,{close:NC,onerror:NC,onmessage:NC,onopen:NC,readyState:NC,url:NC,withCredentials:NC});Rg.converters.EventSourceInitDict=Rg.dictionaryConverter([{key:"withCredentials",converter:Rg.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Rg.converters.any}]);lPe.exports={EventSource:om,defaultReconnectionTime:aPe}});var ZZ=h((_Fr,$e)=>{"use strict";var bWt=M0(),dPe=eN(),wWt=L0(),DWt=uUe(),NWt=v0(),RWt=mX(),SWt=UUe(),TWt=OUe(),hPe=er(),__=Nt(),{InvalidArgumentError:v_}=hPe,am=DMe(),kWt=rN(),FWt=AZ(),xWt=aLe(),UWt=iZ(),MWt=qX(),LWt=Pv(),{getGlobalDispatcher:EPe,setGlobalDispatcher:vWt}=jv(),_Wt=Kv(),PWt=Rv(),OWt=Sv();Object.assign(dPe.prototype,am);$e.exports.Dispatcher=dPe;$e.exports.Client=bWt;$e.exports.Pool=wWt;$e.exports.BalancedPool=DWt;$e.exports.Agent=NWt;$e.exports.ProxyAgent=RWt;$e.exports.EnvHttpProxyAgent=SWt;$e.exports Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),xh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(xh("Creating `tls.Socket`: %o",this.connectOpts),i=jFe.connect(this.connectOpts)):(xh("Creating `net.Socket`: %o",this.connectOpts),i=KFe.connect(this.connectOpts)),await(0,ZFe.once)(i,"connect"),i}};hy.protocols=["http","https"];Un.HttpProxyAgent=hy;function eMe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var sZ=E(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.state=void 0;Ty.state={instrumenterImplementation:void 0}});var IZ=E(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.state=void 0;Fy.state={operationRequestMap:new WeakMap}});var ete=E((jSt,g8e)=>{g8e.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 rte=E((XSt,tte)=>{var f8e=ete();tte.exports={version:f8e.version}});var lb=E(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.isJsonObject=eg.typeofJsonValue=void 0;function b8e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}eg.typeofJsonValue=b8e;function w8e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}eg.isJsonObject=w8e});var hb=E(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.base64encode=tg.base64decode=void 0;var Wa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),db=[];for(let t=0;t<Wa.length;t++)db[Wa[t].charCodeAt(0)]=t;db[45]=Wa.indexOf("+");db[95]=Wa.indexOf("/");function N8e(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=db[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)}tg.base64decode=N8e;function S8e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Wa[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Wa[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Wa[n|s>>6],e+=Wa[s&63],r=0;break}return r&&(e+=Wa[n],e+="=",r==1&&(e+="=")),e}tg.base64encode=S8e});var ate=E(gb=>{"use strict";Object.defineProperty(gb,"__esModule",{value:!0});gb.utf8read=void 0;var _L=t=>String.fromCharCode.apply(String,t);function T8e(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(_L(s)),n=0);return r.length?(n&&r.push(_L(s.slice(0,n))),r.join("")):_L(s.slice(0,n))}gb.utf8read=T8e});var $m=E(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.WireType=Ho.mergeBinaryOptions=Ho.UnknownFieldHandler=void 0;var x8e;(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])})(x8e=Ho.UnknownFieldHandler||(Ho.UnknownFieldHandler={}));function D8e(t,e){return Object.assign(Object.assign({},t),e)}Ho.mergeBinaryOptions=D8e;var R8e;(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"})(R8e=Ho.WireType||(Ho.WireType={}))});var pb=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 k8e(){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=k8e;function F8e(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=F8e;var fb=65536*65536;function M8e(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>=fb&&(n=n+(s/fb|0),s=s%fb)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}ws.int64fromString=M8e;function U8e(t,e){if(e>>>0<=2097151)return""+(fb*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=U8e;function L8e(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=L8e;function v8e(){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=v8e});var lc=E(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.PbLong=uc.PbULong=uc.detectBi=void 0;var e0=pb(),it;function Ate(){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}uc.detectBi=Ate;Ate();function cte(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ute=/^-?[0-9]+$/,Eb=4294967296,mb=2147483648,Cb=c Line truncated
`)}};Yb.RpcError=hv});var fv=E(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.mergeRpcOptions=void 0;var _te=zt();function iOe(t,e){if(!e)return t;let r={};qb(t,r),qb(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=_te.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=_te.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},qb(t.meta,r.meta),qb(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}Vb.mergeRpcOptions=iOe;function qb(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 mv=E(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.Deferred=dl.DeferredState=void 0;var qo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(qo=dl.DeferredState||(dl.DeferredState={}));var pv=class{constructor(e=!0){this._state=qo.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!==qo.PENDING)throw new Error(`cannot resolve ${qo[this.state].toLowerCase()}`);this._resolve(e),this._state=qo.RESOLVED}reject(e){if(this.state!==qo.PENDING)throw new Error(`cannot reject ${qo[this.state].toLowerCase()}`);this._reject(e),this._state=qo.REJECTED}resolvePending(e){this._state===qo.PENDING&&this.resolve(e)}rejectPending(e){this._state===qo.PENDING&&this.reject(e)}};dl.Deferred=pv});var Cv=E(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});Jb.RpcOutputStreamController=void 0;var Hte=mv(),hl=zt(),Ev=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){hl.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){hl.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){hl.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(){hl.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;hl.assert(e,"bad state"),hl.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 Hte.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;hl.assert(s.state==Hte.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};Jb.RpcOutputStreamController=Ev});var Bv=E(Ag=>{"use strict";var oOe=Ag&&Ag.__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(Ag,"__esModule",{value:!0});Ag.UnaryCall=void 0;var Iv=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 oOe(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}})}};Ag.UnaryCall=Iv});var Qv=E(cg=>{"use strict";var aOe=cg&&cg.__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(cg,"__esModule",{value:!0});cg.ServerStreamingCall=void 0;var yv=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 h4e=h(d4e=>{"use strict";var cre=Pg().Buffer;d4e._dbcs=Og;var js=-1,g4e=-2,Va=-10,qn=-1e3,vm=new Array(256),VR=-1;for(UO=0;UO<256;UO++)vm[UO]=js;var UO;function Og(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]=vm.slice(0),this.decodeTableSeq=[];for(var A=0;A<r.length;A++)this._addDecodeChunk(r[A]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(vm.slice(0));var n=this.decodeTables.length;this.decodeTables.push(vm.slice(0));for(var i=this.decodeTables[0],A=129;A<=254;A++)for(var o=this.decodeTables[qn-i[A]],a=48;a<=57;a++){if(o[a]===js)o[a]=qn-s;else if(o[a]>qn)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[qn-o[a]],u=129;u<=254;u++){if(c[u]===js)c[u]=qn-n;else{if(c[u]===qn-n)continue;if(c[u]>qn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[qn-c[u]],g=48;g<=57;g++)l[g]===js&&(l[g]=g4e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var A=0;A<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function zor(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let A=e.length;A!==0;A--){let s=e[A-1].trim();if(xor.has(s)){r=s;break}}return r}function jor(t,e){let r=zor(e);r!==""&&(t.referrerPolicy=r)}function Kor(){return"allowed"}function Xor(){return"success"}function Zor(){return"success"}function $or(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ear(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&&yAe(t.origin)&&!yAe($C(t))&&(e=null);break;case"same-origin":rS(t,$C(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function qm(t,e){return t}function tar(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:qm(t.domainLookupStartTime,r),domainLookupEndTime:qm(t.domainLookupEndTime,r),connectionStartTime:qm(t.connectionStartTime,r),connectionEndTime:qm(t.connectionEndTime,r),secureConnectionStartTime:qm(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function rar(t){return qm(vor.now(),t)}function Aar(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 q5e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function sar(t){return{referrerPolicy:t.referrerPolicy}}function nar(t){let e=t.referrerPolicy;AS(e);let r=null;if(t.referrer==="client"){let n=P5e();if(!n||n.origin==="null")return"no-referrer";r=new URL(n)}else nE.is.URL(t.referrer)&&(r=t.referrer);let A=mAe(r),s=mAe(r,!0);switch(A.toString().length>4096&&(A=s),e){case"no-referrer":return"no-referrer";case"origin":return s??mAe(r,!0);case"unsafe-url":return A;case"strict-origin":{let n=$C(t);return ZC(A)&&!ZC(n)?"no-referrer":s}case"strict-origin-when-cross-origin":{let n=$C(t);return rS(A,n)?A:ZC(A)&&!ZC(n)?"no-referrer":s}case"same-origin":return rS(t,A)?A:"no-referrer";case"origin-when-cross-origin":return rS(t,A)?A:s;case"no-referrer-when-downgrade":{let n=$C(t);return ZC(A)&&!ZC(n)?"no-referrer":A}}}function mAe(t,e=!1){return AS(nE.is.URL(t)),t=new URL(t),z5e(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var iar=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)$/),oar=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function J5e(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),oar(t)):iar(t)}function aar(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||J5e(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function ZC(t){return nE.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:aar(t.origin):!1}function car(t){}function rS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function uar(t){return t.controller.state==="aborted"}function lar(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function gar(t){return Por[t.toLowerCase()]??t}var dar=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function V5e(t,e,r=0,A=1){class s{#e;#t;#r;constructor(i,o){this.#e=i,this.#t=o,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 i=this.#r,o=e(this.#e),a=o.length;if(i>=a)return{value:void 0,done:!0};let{[r]:c,[A]:u}=o[i];this.#r=i+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,dar),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(n,i){return new s(n,i)}}function har(t,e,r,A=0,s=1){let n=V5e(t,r,A,s),i={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return nE.brandCheck(this,e),n(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return nE.brandCheck(this,e),n(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let i=ja(o=>FAe(o)&&o!==59,t,e);n=TAe.decode(i)}return{name:A,value:n}}function Par(t,e){let r=null,A=null,s=null,n=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:A,contentType:s,encoding:n}}let i=ja(o=>o!==10&&o!==13&&o!==58,t,e);if(i=kAe(i,!0,!0,o=>o===9||o===32),!Tar.test(i.toString()))throw Mi("header name does not match the field-name token production");if(t[e.position]!==58)throw Mi("expected :");switch(e.position++,ja(o=>o===32||o===9,t,e),Sar(i)){case"content-disposition":{if(r=A=null,ja(a=>FAe(a),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 a=_ar(t,e);if(!a)break;a.name==="name"?r=a.value:a.name==="filename"&&(A=a.value)}if(r===null)throw Mi("name attribute is required in content-disposition header");break}case"content-type":{let o=ja(a=>a!==10&&a!==13,t,e);o=kAe(o,!1,!0,a=>a===9||a===32),s=e9e(o);break}case"content-transfer-encoding":{let o=ja(a=>a!==10&&a!==13,t,e);o=kAe(o,!1,!0,a=>a===9||a===32),n=e9e(o);break}default:ja(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Mi("expected CRLF");e.position+=2}}function ja(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function kAe(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function Oar(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}function Mi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Har(t){return t<=31||t===127}function Gar(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 FAe(t){return t<=127&&t!==32&&t!==9&&!Har(t)&&!Gar(t)}t9e.exports={multipartFormDataParser:Lar,validateBoundary:Mar}});var sS=h((fOr,A9e)=>{"use strict";function Yar(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}A9e.exports={createDeferredPromise:Yar}});var Wm=h((COr,a9e)=>{"use strict";var MAe=ut(),{ReadableStreamFrom:qar,readableStreamClose:Jar,fullyReadBody:Var,extractMimeType:War}=No(),{FormData:s9e,setFormDataState:zar}=sH(),{webidl:qc}=Ks(),xAe=B("node:assert"),{isErrored:UAe,isDisturbed:jar}=B("node:stream"),{isUint8Array:Kar}=B("node:util/types"),{serializeAMimeType:Xar}=za(),{multipartFormDataParser:Zar}=r9e(),{createDeferredPromise:$ar}=sS(),{parseJSONFromBytes:ecr}=Yg(),{utf8DecodeBytes:tcr}=$R(),{runtimeFeatures:rcr}=qg(),Acr=rcr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),nH=new TextEncoder;function scr(){}var ncr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!jar(e)&&!UAe(e)&&e.cancel("Response object has been garbage collected").catch(scr)});function i9e(t,e=!1){let r=null,A=null;qc.is.ReadableStream(t)?r=t:qc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){A=c},cancel(){},type:"bytes"}),xAe(qc.is.ReadableStream(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(qc.is.URLSearchParams(t))n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(qc.is.BufferSource(t))n=qc.util.getCopyOfBytesHeldByBufferSource(t);else if(qc.is.FormData(t)){let c=`----formdata-undici-0${`${Acr(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],E=new Uint8Array([13,10]);i=0;let C=!1;for(let[I,p]of t)if(typeof p=="string"){let w=nH.encode(u+`; name="${l(g(I))}"\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 jie=E(Kie=>{"use strict";var I8=iA().Buffer;Kie._dbcs=oA;var Rr=-1,zie=-2,ni=-10,is=-1e3,Hg=new Array(256),Z0=-1;for(mw=0;mw<256;mw++)Hg[mw]=Rr;var mw;function oA(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]=Hg.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(Hg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Hg.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]=zie)}}}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 B7e(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(o7e.has(n)){r=n;break}}return r}function y7e(t,e){let r=B7e(e);r!==""&&(t.referrerPolicy=r)}function Q7e(){return"allowed"}function b7e(){return"success"}function w7e(){return"success"}function N7e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function S7e(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&&P4(t.origin)&&!P4(Gl(t))&&(e=null);break;case"same-origin":aE(t,Gl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Jg(t,e){return t}function T7e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Jg(t.domainLookupStartTime,r),domainLookupEndTime:Jg(t.domainLookupEndTime,r),connectionStartTime:Jg(t.connectionStartTime,r),connectionEndTime:Jg(t.connectionEndTime,r),secureConnectionStartTime:Jg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function x7e(t){return Jg(u7e.now(),t)}function D7e(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 NAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R7e(t){return{referrerPolicy:t.referrerPolicy}}function k7e(t){let e=t.referrerPolicy;AE(e);let r=null;if(t.referrer==="client"){let i=BAe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Fc.is.URL(t.referrer)&&(r=t.referrer);let s=v4(r),n=v4(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??v4(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Gl(t);return Hl(s)&&!Hl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Gl(t);return aE(s,i)?s:Hl(s)&&!Hl(i)?"no-referrer":n}case"same-origin":return aE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return aE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Gl(t);return Hl(s)&&!Hl(i)?"no-referrer":s}}}function v4(t,e=!1){return AE(Fc.is.URL(t)),t=new URL(t),DAe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var F7e=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)$/),M7e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function SAe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),M7e(t)):F7e(t)}function U7e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||SAe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Hl(t){return Fc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:U7e(t.origin):!1}function L7e(t){}function aE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function v7e(t){return t.controller.state==="aborted"}function P7e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function O7e(t){return d7e[t.toLowerCase()]??t}var _7e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TAe(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,_7e),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 H7e(t,e,r,s=0,n=1){let i=TAe(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ai(a=>W4(a)&&a!==59,t,e);i=V4.decode(o)}return{name:s,value:i}}function lWe(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=J4(o,!0,!0,a=>a===9||a===32),!sWe.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),rWe(o)){case"content-disposition":{if(r=s=null,ai(A=>W4(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=uWe(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=J4(a,!1,!0,A=>A===9||A===32),n=LAe(a);break}case"content-transfer-encoding":{let a=ai(A=>A!==10&&A!==13,t,e);a=J4(a,!1,!0,A=>A===9||A===32),i=LAe(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 J4(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 dWe(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 hWe(t){return t<=31||t===127}function gWe(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 W4(t){return t<=127&&t!==32&&t!==9&&!hWe(t)&&!gWe(t)}vAe.exports={multipartFormDataParser:cWe,validateBoundary:AWe}});var cE=E((eUt,OAe)=>{"use strict";function fWe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}OAe.exports={createDeferredPromise:fWe}});var Kg=E((tUt,qAe)=>{"use strict";var j4=Ie(),{ReadableStreamFrom:pWe,readableStreamClose:mWe,fullyReadBody:EWe,extractMimeType:CWe}=dn(),{FormData:_Ae,setFormDataState:IWe}=Gw(),{webidl:Ji}=kr(),z4=w("node:assert"),{isErrored:K4,isDisturbed:BWe}=w("node:stream"),{isUint8Array:yWe}=w("node:util/types"),{serializeAMimeType:QWe}=oi(),{multipartFormDataParser:bWe}=PAe(),{createDeferredPromise:wWe}=cE(),{parseJSONFromBytes:NWe}=cA(),{utf8DecodeBytes:SWe}=Lw(),{runtimeFeatures:TWe}=uA(),xWe=TWe.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Yw=new TextEncoder;function DWe(){}var RWe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!BWe(e)&&!K4(e)&&e.cancel("Response object has been garbage collected").catch(DWe)});function GAe(t,e=!1){let r=null,s=null;Ji.is.ReadableStream(t)?r=t:Ji.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),z4(Ji.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(Ji.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ji.is.BufferSource(t))i=Ji.util.getCopyOfBytesHeldByBufferSource(t);else if(Ji.is.FormData(t)){let c=`----formdata-undici-0${`${xWe(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=Yw.encode(u+`; name="${l(d(m))}"\r
\r
${g(p)}\r
`);d.push(w),i+=w.byteLength}else{let w=nH.encode(`${u}; name="${l(g(I))}"`+(p.name?`; filename="${l(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(b),o+=b.byteLength}else{let b=Yw.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);d.push(w,p,E),typeof p.size=="number"?i+=w.byteLength+p.size+E.byteLength:C=!0}let Q=nH.encode(`--${c}--\r
`);d.push(Q),i+=Q.byteLength,C&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(qc.is.Blob(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(MAe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=qc.is.ReadableStream(t)?t:qar(t)}return(typeof n=="string"||Kar(n))&&(s=()=>(i=typeof n=="string"?Buffer.byteLength(n):n.length,n)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(UAe(r))break;l.length&&A.enqueue(new Uint8Array(l))}else c?.length&&!UAe(r)&&A.enqueue(typeof c=="string"?nH.encode(c):new Uint8Array(c));queueMicrotask(()=>Jar(A))})(),[{stream:r,source:n,length:i},o]}function icr(t,e=!1){return qc.is.ReadableStream(t)&&(xAe(!MAe.isDisturbed(t),"The body has already been consumed."),xAe(!t.locked,"The stream is locked.")),i9e(t,e)}function ocr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function acr(t,e){return{blob(){return Vm(this,A=>{let s=n9e(e(this));return s===null?s="":s&&(s=Xar(s)),new Blob([A],{type:s})},t,e)},arrayBuffer(){return Vm(this,A=>new Uint8Array(A).buffer,t,e)},text(){return Vm(this,tcr,t,e)},json(){return Vm(this,ecr,t,e)},formData(){return Vm(this,A=>{let s=n9e(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Zar(A,s),i=new s9e;return zar(i,n),i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(A.toString()),i=new s9e;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,e)},bytes(){return Vm(this,A=>new Uint8Array(A),t,e)}}}function ccr(t,e){Object.assign(t.prototype,acr(t,e))}function Vm(t,e,r,A){try{qc.brandCheck(t,r)}catch(o){return Promise.reject(o)}if(t=A(t),o9e(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=$ar(),n=s.reject,i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t.body==null?(i(Buffer.allocUnsafe(0)),s.promise):(Var(t.body,i,n),s.promise)}function o9e(t){let e=t.body;return e!=null&&(e.stream.locked||MAe.isDisturbed(e.stream))}function n9e(t){let e=t.headersList,r=War(e);return r==="failure"?null:r}a9e.exports={extractBody:i9e,safelyExtractBody:icr,cloneBody:ocr,mixinBody:ccr,streamRegistry:ncr,bodyUnusable:o9e}});var B9e=h((IOr,I9e)=>{"use strict";var et=B("node:assert"),At=ut(),{channels:c9e}=AE(),LAe=pre(),{RequestContentLengthMismatchError:eI,ResponseContentLengthMismatchError:ucr,RequestAbortedError:E9e,HeadersTimeoutError:lcr,HeadersOverflowError:gcr,SocketError:oS,InformationalError:zm,BodyTimeoutError:dcr,HTTPParserError:hcr,ResponseExceededMaxSizeError:Ecr}=Ct(),{kUrl:f9e,kReset:Li,kClient:YAe,kParser:MA,kBlocking:aS,kRunning:pn,kPending:fcr,kSize:u9e,kWriting:oE,kQueue:Jc,kNoRef:nS,kKeepAliveDefaultTimeout:Ccr,kHostHeader:Icr,kPendingIdx:Bcr,kRunningIdx:Ka,kError:Xa,kPipelining:aH,kSocket:jm,kKeepAliveTimeoutValue:uH,kMaxHeadersSize:Qcr,kKeepAliveMaxTimeout:pcr,kKeepAliveTimeoutThreshold:mcr,kHeadersTimeout:ycr,kBodyTimeout:bcr,kStrictContentLength:PAe,kMaxRequests:l9e,kCounter:wcr,kMaxResponseSize:Dcr,kOnError:Ncr,kResume:iE,kHTTPContext:C9e,kClosed:OAe}=yr(),dl=a5e(),Rcr=Buffer.alloc(0),iH=Buffer[Symbol.species],Scr=At.removeAllListeners,vAe;function Tcr(){let t=process.env.JEST_WORKER_ID?cAe():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(l5e())}catch{}return e||(e=new WebAssembly.Module(t||cAe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(A,s,n)=>0,wasm_on_status:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onStatus(new iH(hl.buffer,i,n))},wasm_on_message_begin:A=>(et(fs.ptr===A),fs.onMessageBegin()),wasm_on_header_field:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onHeaderField(new iH(hl.buffer,i,n))},wasm_on_header_value:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onHeaderValue(new iH(hl.buffer,i,n))},wasm_on_headers_complete:(A,s,n,i)=>(et(fs.ptr===A),fs.onHeadersComplete(s,n===1,i===1)),wasm_on_body:(A,s,n)=>{et(fs.ptr===A);let i=s-El+hl.byteOffset;return fs.onBody(new iH(hl.buffer,i,n))},wasm_on_message_complete:A=>(et(fs.ptr===A),fs.onMessageComplete())}})}var _Ae=null,fs=null,hl=null,oH=0,El=null,kcr=0,iS=1,Km=2|iS,cH=4|iS,HAe=8|kcr,GAe=class{constructor(e,r,{exports:A}){this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(dl.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[Qcr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`;if(typeof s=="string"?C+=`host: ${s}\r
`:C+=t[Icr],n?C+=`connection: upgrade\r
upgrade: ${n}\r
`:t[aH]&&!d[Li]?C+=`connection: keep-alive\r
`:C+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let I=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)C+=`${I}: ${p[w]}\r
`;else C+=`${I}: ${p}\r
`}return c9e.sendHeaders.hasSubscribers&&c9e.sendHeaders.publish({request:e,headers:C,socket:d}),!a||g===0?d9e(E,null,t,e,d,u,C,l):At.isBuffer(a)?d9e(E,a,t,e,d,u,C,l):At.isBlobLike(a)?typeof a.stream=="function"?h9e(E,a.stream(),t,e,d,u,C,l):Gcr(E,a,t,e,d,u,C,l):At.isStream(a)?Hcr(E,a,t,e,d,u,C,l):At.isIterable(a)?h9e(E,a,t,e,d,u,C,l):et(!1),!0}function Hcr(t,e,r,A,s,n,i,o){et(n!==0||r[pn]===0,"stream body cannot be pipelined");let a=!1,c=new lH({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(C){At.destroy(this,C)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let E=new E9e;queueMicrotask(()=>d(E))}},d=function(E){if(!a){if(a=!0,et(s.destroyed||s[oE]&&r[pn]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!E)try{c.end()}catch(C){E=C}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?At.destroy(e,E):At.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(d,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(d,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function d9e(t,e,r,A,s,n,i,o){try{e?At.isBuffer(e)&&(et(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);h.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=Yw.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(Ji.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(j4.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ji.is.ReadableStream(t)?t:pWe(t)}return(typeof i=="string"||yWe(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(K4(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!K4(r)&&s.enqueue(typeof c=="string"?Yw.encode(c):new Uint8Array(c));queueMicrotask(()=>mWe(s))})(),[{stream:r,source:i,length:o},a]}function kWe(t,e=!1){return Ji.is.ReadableStream(t)&&(z4(!j4.isDisturbed(t),"The body has already been consumed."),z4(!t.locked,"The stream is locked.")),GAe(t,e)}function FWe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function MWe(t,e){return{blob(){return zg(this,s=>{let n=HAe(e(this));return n===null?n="":n&&(n=QWe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return zg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return zg(this,SWe,t,e)},json(){return zg(this,NWe,t,e)},formData(){return zg(this,s=>{let n=HAe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=bWe(s,n),o=new _Ae;return IWe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new _Ae;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 UWe(t,e){Object.assign(t.prototype,MWe(t,e))}function zg(t,e,r,s){try{Ji.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),YAe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=wWe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(EWe(t.body,o,i),n.promise)}function YAe(t){let e=t.body;return e!=null&&(e.stream.locked||j4.isDisturbed(e.stream))}function HAe(t){let e=t.headersList,r=CWe(e);return r==="failure"?null:r}qAe.exports={extractBody:GAe,safelyExtractBody:kWe,cloneBody:FWe,mixinBody:UWe,streamRegistry:RWe,bodyUnusable:YAe}});var tce=E((rUt,ece)=>{"use strict";var he=w("node:assert"),ge=Ie(),{channels:VAe}=Rc(),X4=k8(),{RequestContentLengthMismatchError:Yl,ResponseContentLengthMismatchError:LWe,RequestAbortedError:XAe,HeadersTimeoutError:vWe,HeadersOverflowError:PWe,SocketError:dE,InformationalError:jg,BodyTimeoutError:OWe,HTTPParserError:_We,ResponseExceededMaxSizeError:HWe}=Ee(),{kUrl:ZAe,kReset:Ms,kClient:nO,kParser:Pt,kBlocking:hE,kRunning:Yr,kPending:GWe,kSize:JAe,kWriting:Uc,kQueue:Wi,kNoRef:uE,kKeepAliveDefaultTimeout:YWe,kHostHeader:qWe,kPendingIdx:VWe,kRunningIdx:Ai,kError:ci,kPipelining:Jw,kSocket:Xg,kKeepAliveTimeoutValue:zw,kMaxHeadersSize:JWe,kKeepAliveMaxTimeout:WWe,kKeepAliveTimeoutThreshold:zWe,kHeadersTimeout:KWe,kBodyTimeout:jWe,kStrictContentLength:eO,kMaxRequests:WAe,kCounter:XWe,kMaxResponseSize:ZWe,kOnError:$We,kResume:Mc,kHTTPContext:$Ae,kClosed:tO}=$e(),$o=qae(),eze=Buffer.alloc(0),qw=Buffer[Symbol.species],tze=ge.removeAllListeners,Z4;function rze(){let t=process.env.JEST_WORKER_ID?b4():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(Wae())}catch{}return e||(e=new WebAssembly.Module(t||b4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{he(ur.ptr===s);let o=n-ta+ea.byteOffset;return ur.onStatus(new qw(ea.buffer,o,i))},wasm_on_message_begin:s=>(he(ur.ptr===s),ur.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{he(ur.ptr===s);let o=n-ta+ea.byteOffset;return ur.onHeaderField(new qw(ea.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{he(ur.ptr===s);let o=n-ta+ea.byteOffset;return ur.onHeaderValue(new qw(ea.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(he(ur.ptr===s),ur.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{he(ur.ptr===s);let o=n-ta+ea.byteOffset;return ur.onBody(new qw(ea.buffer,o,i))},wasm_on_message_complete:s=>(he(ur.ptr===s),ur.onMessageComplete())}})}var $4=null,ur=null,ea=null,Vw=0,ta=null,sze=0,lE=1,Zg=2|lE,Ww=4|lE,rO=8|sze,sO=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc($o.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[JWe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ZWe]}setTi Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[qWe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Jw]&&!h[Ms]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return VAe.sendHeaders.hasSubscribers&&VAe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?KAe(f,null,t,e,h,u,p,l):ge.isBuffer(A)?KAe(f,A,t,e,h,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?jAe(f,A.stream(),t,e,h,u,p,l):gze(f,A,t,e,h,u,p,l):ge.isStream(A)?hze(f,A,t,e,h,u,p,l):ge.isIterable(A)?jAe(f,A,t,e,h,u,p,l):he(!1),!0}function hze(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"stream body cannot be pipelined");let A=!1,c=new Kw({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 XAe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,he(n.destroyed||n[Uc]&&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 KAe(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
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Li]=!0)):n===0?s.write(`${i}content-length: 0\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
\r
`,"latin1"):(et(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[iE]()}catch(a){t(a)}}async function Gcr(t,e,r,A,s,n,i,o){et(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new eI;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
`,"latin1"):(he(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Mc]()}catch(A){t(A)}}async function gze(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 Yl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Li]=!0),r[iE]()}catch(a){t(a)}}async function h9e(t,e,r,A,s,n,i,o){et(n!==0||r[pn]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{et(a===null),s[Xa]?d(s[Xa]):a=g});s.on("close",c).on("drain",c);let l=new lH({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[Xa])throw s[Xa];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var lH=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[oE]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[Xa])throw r[Xa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[PAe])throw new eI;process.emitWarning(new eI)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Li]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ms]=!0),r[Mc]()}catch(A){t(A)}}async function jAe(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[ci]?h(n[ci]):A=d});n.on("close",c).on("drain",c);let l=new Kw({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ci])throw n[ci];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var Kw=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[Uc]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ci])throw r[ci];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[eO])throw new Yl;process.emitWarning(new Yl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ms]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[MA].timeout&&r[MA].timeoutType===Km&&r[MA].timeout.refresh&&r[MA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[oE]=!1,e[Xa])throw e[Xa];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Pt].timeout&&r[Pt].timeoutType===Zg&&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[Uc]=!1,e[ci])throw e[ci];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[PAe])throw new eI;process.emitWarning(new eI)}e[MA].timeout&&e[MA].timeoutType===Km&&e[MA].timeout.refresh&&e[MA].timeout.refresh(),A[iE]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[oE]=!1,e&&(et(A[pn]<=1,"pipeline should only contain this request"),s(e))}};I9e.exports=Fcr});var R9e=h((BOr,N9e)=>{"use strict";var $a=B("node:assert"),{pipeline:Ycr}=B("node:stream"),mt=ut(),{RequestContentLengthMismatchError:WAe,RequestAbortedError:qcr,SocketError:gS,InformationalError:aE,InvalidArgumentError:Jcr}=Ct(),{kUrl:lS,kReset:EH,kClient:Ro,kRunning:dS,kPending:Vcr,kQueue:cE,kPendingIdx:jAe,kRunningIdx:Vc,kError:So,kSocket:CA,kStrictContentLength:Wcr,kOnError:Xm,kMaxConcurrentStreams:dH,kPingInterval:Q9e,kHTTP2Session:Vg,kHTTP2InitialWindowSize:zcr,kHTTP2ConnectionWindowSize:jcr,kResume:fl,kSize:Kcr,kHTTPContext:KAe,kClosed:zAe,kBodyTimeout:Xcr,kEnableConnectProtocol:cS,kRemoteSettings:uS,kHTTP2Stream:gH,kHTTP2SessionState:XAe}=yr(),{channels:p9e}=AE(),Za=Symbol("open streams"),m9e,hH;try{hH=B("node:http2")}catch{hH={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Zcr,HTTP2_HEADER_METHOD:y9e,HTTP2_HEADER_PATH:b9e,HTTP2_HEADER_SCHEME:qAe,HTTP2_HEADER_CONTENT_LENGTH:$cr,HTTP2_HEADER_EXPECT:eur,HTTP2_HEADER_STATUS:JAe,HTTP2_HEADER_PROTOCOL:tur,NGHTTP2_REFUSED_STREAM:rur,NGHTTP2_CANCEL:Aur}}=hH;function VAe(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}function sur(t,e){t[CA]=e;let r=t[zcr],A=t[jcr],s=hH.connect(t[lS],{createConnection:()=>e,peerMaxConcurrentStreams:t[dH],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[CA]=e,s[Za]=0,s[Ro]=t,s[CA]=e,s[XAe]={ping:{interval:t[Q9e]===0?null:setInterval(aur,t[Q9e],s).unref()}},s[cS]=!1,s[uS]=!1,A&&mt.addListener(s,"connect",iur.bind(s,A)),mt.addListener(s,"error",cur),mt.addListener(s,"frameError",uur),mt.addListener(s,"end",lur),mt.addListener(s,"goaway",gur),mt.addListener(s,"close",dur),mt.addListener(s,"remoteSettings",our),s.unref(),t[Vg]=s,e[Vg]=s,mt.addListener(e,"error",Eur),mt.addListener(e,"end",fur),mt.addListener(e,"close",hur),e[zAe]=!1,e.on("close",Cur),{version:"h2",defaultPipelining:1/0,write(n){return Bur(t,n)},resume(){nur(t)},destroy(n,i){e[zAe]?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){if(n!=null)if(t[dS]>0){if(n.idempotent===!1||(n.upgrade==="websocket"||n.method==="CONNECT")&&s[uS]===!1||mt.bodyLength(n.body)!==0&&(mt.isStream(n.body)||mt.isAsyncIterable(n.body)||mt.isFormDataLike(n.body)))return!0}else return(n.upgrade==="websocket"||n.method==="CONNECT")&&s[uS]===!1;return!1}}}function nur(t){let e=t[CA];e?.destroyed===!1&&(t[Kcr]===0||t[dH]===0?(e.unref(),t[Vg].unref()):(e.ref(),t[Vg].ref()))}function iur(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function our(t){if(this[Ro][dH]=t.maxConcurrentStreams??this[Ro][dH],this[uS]===!0&&this[cS]===!0&&t.enableConnectProtocol===!1){let e=new aE("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[CA][So]=e,this[Ro][Xm](e);return}this[cS]=t.enableConnectProtocol??this[cS],this[uS]=!0,this[Ro][fl]()}function aur(t){let e=t[XAe];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(A,s){let n=this[Ro],i=this[Ro];if(A!=null){let o=new aE(`HTTP/2: "PING" errored - type ${A.message}`);i[So]=o,n[Xm](o)}else n.emit("ping",s)}}function cur(t){$a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[CA][So]=t,this[Ro][Xm](t)}function uur(t,e,r){if(r===0){let A=new aE(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[CA][So]=A,this[Ro][Xm](A)}}function lur(){let t=new gS("other side closed",mt.getSocketInfo(this[CA]));this.destroy(t),mt.destroy(this[CA],t)}function gur(t){let e=this[So]||new gS(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this[CA])),r=this[Ro];if(r[CA]=null,r[KAe]=null,this.close(),this[Vg]=null,mt.destroy(this[CA],e),r[Vc]<r[cE].length){let A=r[cE][r[Vc]];r[cE][r[Vc]++]=null,mt.errorRequest(r,A,e),r[jAe]=r[Vc]}$a(r[dS]===0),r.emit("disconnect",r[lS],[r],e),r.emit("connectionError",r[lS],[r],e),r[fl]()}function dur(){let{[Ro]:t,[XAe]:e}=this,{[CA]:r}=t,A=this[CA][So]||this[So]||new gS("closed",mt.getSocketInfo(r));if(t[CA]=null,t[KAe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){$a(t[Vcr]===0);let s=t[cE].splice(t[Vc]);for(let n=0;n<s.length;n++){let i=s[n];mt.errorRequest(t,i,A)}}}function hur(){let t=this[So]||new gS("closed",mt.getSocketInfo(this)),e=this[Vg][Ro];e[CA]=null,e[KAe]=null,this[Vg]!==null&&this[Vg].destroy(t),e[jAe]=e[Vc],$a(e[dS]===0),e.emit("disconnect",e[lS],[e],t),e[fl]()}function Eur(t){$a(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[So]=t,this[Ro][Xm](t)}function fur(){mt.destroy(this,new gS("other side closed",mt.getSock Line truncated
`;p9e.sendHeaders.publish({request:e,headers:H,socket:A[CA]})}let k=s==="GET"||s==="HEAD"||g===null;a?(d[eur]="100-continue",E=A.request(d,{endStream:k,signal:c}),E[gH]=!0,E.once("continue",j)):(E=A.request(d,{endStream:k,signal:c}),E[gH]=!0,j()),++A[Za],E.setTimeout(r);let J=!1;return E.once("response",H=>{let{[JAe]:$,...oe}=H;if(e.onResponseStarted(),J=!0,e.aborted){E.removeAllListeners("data");return}e.onHeaders(Number($),VAe(oe),E.resume.bind(E),"")===!1&&E.pause()}),E.on("data",H=>{e.onData(H)===!1&&E.pause()}),E.once("end",()=>{E.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),t[cE][t[Vc]++]=null,t[fl]()):(I(new aE("HTTP/2: stream half-closed (remote)")),t[cE][t[Vc]++]=null,t[jAe]=t[Vc],t[fl]())}),E.once("close",()=>{E.removeAllListeners("data"),A[Za]-=1,A[Za]===0&&A.unref()}),E.once("error",function(H){E.removeAllListeners("data"),I(H)}),E.once("frameError",(H,$)=>{E.removeAllListeners("data"),I(new aE(`HTTP/2: "frameError" received - type ${H}, code ${$}`))}),E.on("aborted",()=>{E.removeAllListeners("data")}),E.on("timeout",()=>{let H=new aE(`HTTP/2: "stream timeout after ${r}"`);E.removeAllListeners("data"),A[Za]-=1,A[Za]===0&&A.unref(),I(H)}),E.once("trailers",H=>{e.aborted||e.completed||e.onComplete(H)}),!0;function j(){!g||w===0?w9e(I,E,null,t,e,t[CA],w,p):mt.isBuffer(g)?w9e(I,E,g,t,e,t[CA],w,p):mt.isBlobLike(g)?typeof g.stream=="function"?D9e(I,E,g.stream(),t,e,t[CA],w,p):pur(I,E,g,t,e,t[CA],w,p):mt.isStream(g)?Qur(I,t[CA],p,E,g,t,e,w):mt.isIterable(g)?D9e(I,E,g,t,e,t[CA],w,p):$a(!1)}}function w9e(t,e,r,A,s,n,i,o){try{r!=null&&mt.isBuffer(r)&&($a(i===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),o||(n[EH]=!0),s.onRequestSent(),A[fl]()}catch(a){t(a)}}function Qur(t,e,r,A,s,n,i,o){$a(o!==0||n[dS]===0,"stream body cannot be pipelined");let a=Ycr(s,A,u=>{u?(mt.destroy(a,u),t(u)):(mt.removeAllListeners(a),i.onRequestSent(),r||(e[EH]=!0),n[fl]())});mt.addListener(a,"data",c);function c(u){i.onBodySent(u)}}async function pur(t,e,r,A,s,n,i,o){$a(i===r.size,"blob body must have content length");try{if(i!=null&&i!==r.size)throw new WAe;let a=Buffer.from(await r.arrayBuffer());e.cork(),e.write(a),e.uncork(),e.end(),s.onBodySent(a),s.onRequestSent(),o||(n[EH]=!0),A[fl]()}catch(a){t(a)}}async function D9e(t,e,r,A,s,n,i,o){$a(i!==0||A[dS]===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)=>{$a(a===null),n[So]?g(n[So]):a=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(n[So])throw n[So];let g=e.write(l);s.onBodySent(l),g||await u()}e.end(),s.onRequestSent(),o||(n[EH]=!0),A[fl]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}N9e.exports=sur});var hE=h((QOr,v9e)=>{"use strict";var Wg=B("node:assert"),x9e=B("node:net"),hS=B("node:http"),tI=ut(),{ClientStats:mur}=zre(),{channels:Zm}=AE(),yur=Kqe(),bur=Gm(),{InvalidArgumentError:jr,InformationalError:wur,ClientDestroyedError:Dur}=Ct(),Nur=Ym(),{kUrl:Cl,kServerName:dE,kClient:Rur,kBusy:ZAe,kConnect:Sur,kResuming:rI,kRunning:IS,kPending:BS,kSize:ES,kQueue:Wc,kConnected:Tur,kConnecting:$m,kNeedDrain:lE,kKeepAliveDefaultTimeout:S9e,kHostHeader:kur,kPendingIdx:zc,kRunningIdx:zg,kError:Fur,kPipelining:fH,kKeepAliveTimeoutValue:xur,kMaxHeadersSize:Uur,kKeepAliveMaxTimeout:Mur,kKeepAliveTimeoutThreshold:Lur,kHeadersTimeout:vur,kBodyTimeout:_ur,kStrictContentLength:Pur,kConnector:fS,kMaxRequests:$Ae,kCounter:Our,kClose:Hur,kDestroy:Gur,kDispatch:Yur,kLocalAddress:CS,kMaxResponseSize:qur,kOnError:Jur,kHTTPContext:zA,kMaxConcurrentStreams:Vur,kHTTP2InitialWindowSize:Wur,kHTTP2ConnectionWindowSize:zur,kResume:gE,kPingInterval:jur}=yr(),Kur=B9e(),Xur=R9e(),uE=Symbol("kClosedResolve"),Zur=hS&&hS.maxHeaderSize&&Number.isInteger(hS.maxHeaderSize)&&hS.maxHeaderSize>0?()=>hS.maxHeaderSize:()=>{throw new jr("http module not available or http.maxHeaderSize invalid")},T9e=()=>{};function U9e(t){return t[fH]??t[zA]?.defaultPipelining??1}var ese=class extends bur{constructor(e,{maxHeaderSize:r,headersTimeout:A,socketTimeout:s,requestTimeout:n,connectTimeout:i,bodyTimeout:o,idleTimeout:a,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:d,socketPath:E,pipelining:C,tls:Q,strictContentLength:I,maxCachedSessions:p,connect:w,maxRequestsPerClient:k,localAddress:J,maxResponseSize:j,autoSelectFamily:H,autoSelectFamilyAttemptTimeout:$,maxConcurrentStreams:oe,allowH2:pe,useH2c:Ne,initialWindowSize:K,connectionWindowSize:le,pingInterval:Pe}={}){if(c!==void 0)throw new jr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new jr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(n!==void 0)throw new jr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new jr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new jr("unsupported maxKeepAliveTimeout, use keepAliveM Line truncated
`,this[_ur]=o??3e5,this[vur]=A??3e5,this[Pur]=I??!0,this[$Ae]=k,this[uE]=null,this[qur]=j>-1?j:-1,this[zA]=null,this[Vur]=oe??100,this[Wur]=K??262144,this[zur]=le??524288,this[jur]=Pe??6e4,this[Wc]=[],this[zg]=0,this[zc]=0,this[gE]=Wt=>tse(this,Wt),this[Jur]=Wt=>M9e(this,Wt)}get pipelining(){return this[fH]}set pipelining(e){this[fH]=e,this[gE](!0)}get stats(){return new mur(this)}get[BS](){return this[Wc].length-this[zc]}get[IS](){return this[zc]-this[zg]}get[ES](){return this[Wc].length-this[zg]}get[Tur](){return!!this[zA]&&!this[$m]&&!this[zA].destroyed}get[ZAe](){return!!(this[zA]?.busy(null)||this[ES]>=(U9e(this)||1)||this[BS]>0)}[Sur](e){L9e(this),this.once("connect",e)}[Yur](e,r){let A=new yur(this[Cl].origin,e,r);return this[Wc].push(A),this[rI]||(tI.bodyLength(A.body)==null&&tI.isIterable(A.body)?(this[rI]=1,queueMicrotask(()=>tse(this))):this[gE](!0)),this[rI]&&this[lE]!==2&&this[ZAe]&&(this[lE]=2),this[lE]<2}[Hur](){return new Promise(e=>{this[ES]?this[uE]=e:e(null)})}[Gur](e){return new Promise(r=>{let A=this[Wc].splice(this[zc]);for(let n=0;n<A.length;n++){let i=A[n];tI.errorRequest(this,i,e)}let s=()=>{this[uE]&&(this[uE](),this[uE]=null),r(null)};this[zA]?(this[zA].destroy(e,s),this[zA]=null):queueMicrotask(s),this[gE]()})}};function M9e(t,e){if(t[IS]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wg(t[zc]===t[zg]);let r=t[Wc].splice(t[zg]);for(let A=0;A<r.length;A++){let s=r[A];tI.errorRequest(t,s,e)}Wg(t[ES]===0)}}function L9e(t){Wg(!t[$m]),Wg(!t[zA]);let{host:e,hostname:r,protocol:A,port:s}=t[Cl];if(r[0]==="["){let n=r.indexOf("]");Wg(n!==-1);let i=r.substring(1,n);Wg(x9e.isIPv6(i)),r=i}t[$m]=!0,Zm.beforeConnect.hasSubscribers&&Zm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[zA]?.version,servername:t[dE],localAddress:t[CS]},connector:t[fS]}),t[fS]({host:e,hostname:r,protocol:A,port:s,servername:t[dE],localAddress:t[CS]},(n,i)=>{if(n){k9e(t,n,{host:e,hostname:r,protocol:A,port:s}),t[gE]();return}if(t.destroyed){tI.destroy(i.on("error",T9e),new Dur),t[gE]();return}Wg(i);try{t[zA]=i.alpnProtocol==="h2"?Xur(t,i):Kur(t,i)}catch(o){i.destroy().on("error",T9e),k9e(t,o,{host:e,hostname:r,protocol:A,port:s}),t[gE]();return}t[$m]=!1,i[Our]=0,i[$Ae]=t[$Ae],i[Rur]=t,i[Fur]=null,Zm.connected.hasSubscribers&&Zm.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[zA]?.version,servername:t[dE],localAddress:t[CS]},connector:t[fS],socket:i}),t.emit("connect",t[Cl],[t]),t[gE]()})}function k9e(t,e,{host:r,hostname:A,protocol:s,port:n}){if(!t.destroyed){if(t[$m]=!1,Zm.connectError.hasSubscribers&&Zm.connectError.publish({connectParams:{host:r,hostname:A,protocol:s,port:n,version:t[zA]?.version,servername:t[dE],localAddress:t[CS]},connector:t[fS],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wg(t[IS]===0);t[BS]>0&&t[Wc][t[zc]].servername===t[dE];){let i=t[Wc][t[zc]++];tI.errorRequest(t,i,e)}else M9e(t,e);t.emit("connectionError",t[Cl],[t],e)}}function F9e(t){t[lE]=0,t.emit("drain",t[Cl],[t])}function tse(t,e){t[rI]!==2&&(t[rI]=2,$ur(t,e),t[rI]=0,t[zg]>256&&(t[Wc].splice(0,t[zg]),t[zc]-=t[zg],t[zg]=0))}function $ur(t,e){for(;;){if(t.destroyed){Wg(t[BS]===0);return}if(t[uE]&&!t[ES]){t[uE](),t[uE]=null;return}if(t[zA]&&t[zA].resume(),t[ZAe])t[lE]=2;else if(t[lE]===2){e?(t[lE]=1,queueMicrotask(()=>F9e(t))):F9e(t);continue}if(t[BS]===0||t[IS]>=(U9e(t)||1))return;let r=t[Wc][t[zc]];if(t[Cl].protocol==="https:"&&t[dE]!==r.servername){if(t[IS]>0)return;t[dE]=r.servername,t[zA]?.destroy(new wur("servername changed"),()=>{t[zA]=null,tse(t)})}if(t[$m])return;if(!t[zA]){L9e(t);return}if(t[zA].destroyed||t[zA].busy(r))return;!r.aborted&&t[zA].write(r)?t[zc]++:t[Wc].splice(t[zc],1)}}v9e.exports=ese});var rse=h((mOr,_9e)=>{"use strict";var CH=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)}};_9e.exports=class{constructor(){this.head=this.tail=new CH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CH),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 IH=h((yOr,W9e)=>{"use strict";var{PoolStats:elr}=zre(),tlr=Gm(),rlr=rse(),{kConnected:Ase,kSize:P9e,kRunning:O9e,kPending:H9e,kQueued:QS,kBusy:Alr,kFree:slr,kUrl:nlr,kClose:ilr,kDestroy:olr,kDispatch:alr}=yr(),_s=Symbol("clients"),Jn=Symbol("needDrain"),pS=Symbol("queue"),sse=Symbol("closed resolve"),nse=Symbol("onDrain"),G9e=Symbol("onConnect"),Y9e=Symbol("onDisconnect"),q9e=Symbol("onConnectionError"),ise=Symbol("get dispatcher"),J9e=Symbol("add client"),V9e=Symbol("remove client"),ose=class extends tlr{[pS]=new rlr;[QS]=0;[_s]=[];[Jn]=!1;[nse](e,r,A){let s=this[pS],n=!1;for(;!n;){let i=s.sh Line truncated
`,"latin1"),r!==null&&n!==r){if(s[eO])throw new Yl;process.emitWarning(new Yl)}e[Pt].timeout&&e[Pt].timeoutType===Zg&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),s[Mc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Uc]=!1,e&&(he(s[Yr]<=1,"pipeline should only contain this request"),n(e))}};ece.exports=nze});var uce=E((sUt,cce)=>{"use strict";var li=w("node:assert"),{pipeline:fze}=w("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:AO,RequestAbortedError:pze,SocketError:mE,InformationalError:Lc,InvalidArgumentError:mze}=Ee(),{kUrl:pE,kReset:$w,kClient:hn,kRunning:EE,kPending:Eze,kQueue:vc,kPendingIdx:uO,kRunningIdx:zi,kError:gn,kSocket:St,kStrictContentLength:Cze,kOnError:$g,kMaxConcurrentStreams:Xw,kPingInterval:rce,kHTTP2Session:dA,kHTTP2InitialWindowSize:Ize,kHTTP2ConnectionWindowSize:Bze,kResume:ra,kSize:yze,kHTTPContext:lO,kClosed:cO,kBodyTimeout:Qze,kEnableConnectProtocol:gE,kRemoteSettings:fE,kHTTP2Stream:jw,kHTTP2SessionState:dO}=$e(),{channels:sce}=Rc(),ui=Symbol("open streams"),nce,Zw;try{Zw=w("node:http2")}catch{Zw={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bze,HTTP2_HEADER_METHOD:ice,HTTP2_HEADER_PATH:oce,HTTP2_HEADER_SCHEME:iO,HTTP2_HEADER_CONTENT_LENGTH:wze,HTTP2_HEADER_EXPECT:Nze,HTTP2_HEADER_STATUS:oO,HTTP2_HEADER_PROTOCOL:Sze,NGHTTP2_REFUSED_STREAM:Tze,NGHTTP2_CANCEL:xze}}=Zw;function aO(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 Dze(t,e){t[St]=e;let r=t[Ize],s=t[Bze],n=Zw.connect(t[pE],{createConnection:()=>e,peerMaxConcurrentStreams:t[Xw],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[St]=e,n[ui]=0,n[hn]=t,n[St]=e,n[dO]={ping:{interval:t[rce]===0?null:setInterval(Mze,t[rce],n).unref()}},n[gE]=!1,n[fE]=!1,s&&Te.addListener(n,"connect",kze.bind(n,s)),Te.addListener(n,"error",Uze),Te.addListener(n,"frameError",Lze),Te.addListener(n,"end",vze),Te.addListener(n,"goaway",Pze),Te.addListener(n,"close",Oze),Te.addListener(n,"remoteSettings",Fze),n.unref(),t[dA]=n,e[dA]=n,Te.addListener(e,"error",Hze),Te.addListener(e,"end",Gze),Te.addListener(e,"close",_ze),e[cO]=!1,e.on("close",Yze),{version:"h2",defaultPipelining:1/0,write(i){return Vze(t,i)},resume(){Rze(t)},destroy(i,o){e[cO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[EE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[fE]===!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[fE]===!1;return!1}}}function Rze(t){let e=t[St];e?.destroyed===!1&&(t[yze]===0||t[Xw]===0?(e.unref(),t[dA].unref()):(e.ref(),t[dA].ref()))}function kze(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Fze(t){if(this[hn][Xw]=t.maxConcurrentStreams??this[hn][Xw],this[fE]===!0&&this[gE]===!0&&t.enableConnectProtocol===!1){let e=new Lc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[St][gn]=e,this[hn][$g](e);return}this[gE]=t.enableConnectProtocol??this[gE],this[fE]=!0,this[hn][ra]()}function Mze(t){let e=t[dO];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[hn],o=this[hn];if(s!=null){let a=new Lc(`HTTP/2: "PING" errored - type ${s.message}`);o[gn]=a,i[$g](a)}else i.emit("ping",n)}}function Uze(t){li(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[St][gn]=t,this[hn][$g](t)}function Lze(t,e,r){if(r===0){let s=new Lc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[St][gn]=s,this[hn][$g](s)}}function vze(){let t=new mE("other side closed",Te.getSocketInfo(this[St]));this.destroy(t),Te.destroy(this[St],t)}function Pze(t){let e=this[gn]||new mE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[St])),r=this[hn];if(r[St]=null,r[lO]=null,this.close(),this[dA]=null,Te.destroy(this[St],e),r[zi]<r[vc].length){let s=r[vc][r[zi]];r[vc][r[zi]++]=null,Te.errorRequest(r,s,e),r[uO]=r[zi]}li(r[EE]===0),r.emit("disconnect",r[pE],[r],e),r.emit("connectionError",r[pE],[r],e),r[ra]()}function Oze(){let{[hn]:t,[dO]:e}=this,{[St]:r}=t,s=this[St][gn]||this[gn]||new mE("closed",Te.getSocketInfo(r));if(t[St]=null,t[lO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){li(t[Eze]===0);let n=t[vc].splice(t[zi]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function _ze(){let t=this[gn]||new mE("closed",Te.getSocketInfo(this)),e=this[dA][hn];e[St]=null,e[lO]=null,this[dA]!==null&&this[dA].destroy(t),e[uO]=e[zi],li(e[EE]===0),e.emit("disconnect",e[pE],[e],t),e[ra]()}function Hze(t){li(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gn]=t,this[hn][$g](t)}function Gze(){Te.destroy(this,new mE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;sce.sendHeaders.publish({request:e,headers:F,socket:s[St]})}let T=n==="GET"||n==="HEAD"||d===null;A?(h[Nze]="100-continue",f=s.request(h,{endStream:T,signal:c}),f[jw]=!0,f.once("continue",M)):(f=s.request(h,{endStream:T,signal:c}),f[jw]=!0,M()),++s[ui],f.setTimeout(r);let R=!1;return f.once("response",F=>{let{[oO]:_,...H}=F;if(e.onResponseStarted(),R=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),aO(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[vc][t[zi]++]=null,t[ra]()):(m(new Lc("HTTP/2: stream half-closed (remote)")),t[vc][t[zi]++]=null,t[uO]=t[zi],t[ra]())}),f.once("close",()=>{f.removeAllListeners("data"),s[ui]-=1,s[ui]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),m(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),m(new Lc(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Lc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[ui]-=1,s[ui]===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?ace(m,f,null,t,e,t[St],b,C):Te.isBuffer(d)?ace(m,f,d,t,e,t[St],b,C):Te.isBlobLike(d)?typeof d.stream=="function"?Ace(m,f,d.stream(),t,e,t[St],b,C):Wze(m,f,d,t,e,t[St],b,C):Te.isStream(d)?Jze(m,t[St],C,f,d,t,e,b):Te.isIterable(d)?Ace(m,f,d,t,e,t[St],b,C):li(!1)}}function ace(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(li(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[$w]=!0),n.onRequestSent(),s[ra]()}catch(A){t(A)}}function Jze(t,e,r,s,n,i,o,a){li(a!==0||i[EE]===0,"stream body cannot be pipelined");let A=fze(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[$w]=!0),i[ra]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Wze(t,e,r,s,n,i,o,a){li(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new AO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[$w]=!0),s[ra]()}catch(A){t(A)}}async function Ace(t,e,r,s,n,i,o,a){li(o!==0||s[EE]===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)=>{li(A===null),i[gn]?d(i[gn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[gn])throw i[gn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[$w]=!0),s[ra]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}cce.exports=Dze});var Gc=E((nUt,Cce)=>{"use strict";var hA=w("node:assert"),fce=w("node:net"),CE=w("node:http"),ql=Ie(),{ClientStats:zze}=a4(),{channels:ef}=Rc(),Kze=kae(),jze=Pl(),{InvalidArgumentError:pt,InformationalError:Xze,ClientDestroyedError:Zze}=Ee(),$ze=Ol(),{kUrl:sa,kServerName:Hc,kClient:eKe,kBusy:hO,kConnect:tKe,kResuming:Vl,kRunning:QE,kPending:bE,kSize:IE,kQueue:Ki,kConnected:rKe,kConnecting:tf,kNeedDrain:Oc,kKeepAliveDefaultTimeout:lce,kHostHeader:sKe,kPendingIdx:ji,kRunningIdx:gA,kError:nKe,kPipelining:eN,kKeepAliveTimeoutValue:iKe,kMaxHeadersSize:oKe,kKeepAliveMaxTimeout:aKe,kKeepAliveTimeoutThreshold:AKe,kHeadersTimeout:cKe,kBodyTimeout:uKe,kStrictContentLength:lKe,kConnector:BE,kMaxRequests:gO,kCounter:dKe,kClose:hKe,kDestroy:gKe,kDispatch:fKe,kLocalAddress:yE,kMaxResponseSize:pKe,kOnError:mKe,kHTTPContext:jt,kMaxConcurrentStreams:EKe,kHTTP2InitialWindowSize:CKe,kHTTP2ConnectionWindowSize:IKe,kResume:_c,kPingInterval:BKe}=$e(),yKe=tce(),QKe=uce(),Pc=Symbol("kClosedResolve"),bKe=CE&&CE.maxHeaderSize&&Number.isInteger(CE.maxHeaderSize)&&CE.maxHeaderSize>0?()=>CE.maxHeaderSize:()=>{throw new pt("http module not available or http.maxHeaderSize invalid")},dce=()=>{};function pce(t){return t[eN]??t[jt]?.defaultPipelining??1}var fO=class extends jze{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 pt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new pt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pt("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new pt("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new pt(" Line truncated
`,this[uKe]=a??3e5,this[cKe]=s??3e5,this[lKe]=m??!0,this[gO]=T,this[Pc]=null,this[pKe]=M>-1?M:-1,this[jt]=null,this[EKe]=H??100,this[CKe]=Be??262144,this[IKe]=xe??524288,this[BKe]=Ue??6e4,this[Ki]=[],this[gA]=0,this[ji]=0,this[_c]=_t=>pO(this,_t),this[mKe]=_t=>mce(this,_t)}get pipelining(){return this[eN]}set pipelining(e){this[eN]=e,this[_c](!0)}get stats(){return new zze(this)}get[bE](){return this[Ki].length-this[ji]}get[QE](){return this[ji]-this[gA]}get[IE](){return this[Ki].length-this[gA]}get[rKe](){return!!this[jt]&&!this[tf]&&!this[jt].destroyed}get[hO](){return!!(this[jt]?.busy(null)||this[IE]>=(pce(this)||1)||this[bE]>0)}[tKe](e){Ece(this),this.once("connect",e)}[fKe](e,r){let s=new Kze(this[sa].origin,e,r);return this[Ki].push(s),this[Vl]||(ql.bodyLength(s.body)==null&&ql.isIterable(s.body)?(this[Vl]=1,queueMicrotask(()=>pO(this))):this[_c](!0)),this[Vl]&&this[Oc]!==2&&this[hO]&&(this[Oc]=2),this[Oc]<2}[hKe](){return new Promise(e=>{this[IE]?this[Pc]=e:e(null)})}[gKe](e){return new Promise(r=>{let s=this[Ki].splice(this[ji]);for(let i=0;i<s.length;i++){let o=s[i];ql.errorRequest(this,o,e)}let n=()=>{this[Pc]&&(this[Pc](),this[Pc]=null),r(null)};this[jt]?(this[jt].destroy(e,n),this[jt]=null):queueMicrotask(n),this[_c]()})}};function mce(t,e){if(t[QE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hA(t[ji]===t[gA]);let r=t[Ki].splice(t[gA]);for(let s=0;s<r.length;s++){let n=r[s];ql.errorRequest(t,n,e)}hA(t[IE]===0)}}function Ece(t){hA(!t[tf]),hA(!t[jt]);let{host:e,hostname:r,protocol:s,port:n}=t[sa];if(r[0]==="["){let i=r.indexOf("]");hA(i!==-1);let o=r.substring(1,i);hA(fce.isIPv6(o)),r=o}t[tf]=!0,ef.beforeConnect.hasSubscribers&&ef.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Hc],localAddress:t[yE]},connector:t[BE]}),t[BE]({host:e,hostname:r,protocol:s,port:n,servername:t[Hc],localAddress:t[yE]},(i,o)=>{if(i){hce(t,i,{host:e,hostname:r,protocol:s,port:n}),t[_c]();return}if(t.destroyed){ql.destroy(o.on("error",dce),new Zze),t[_c]();return}hA(o);try{t[jt]=o.alpnProtocol==="h2"?QKe(t,o):yKe(t,o)}catch(a){o.destroy().on("error",dce),hce(t,a,{host:e,hostname:r,protocol:s,port:n}),t[_c]();return}t[tf]=!1,o[dKe]=0,o[gO]=t[gO],o[eKe]=t,o[nKe]=null,ef.connected.hasSubscribers&&ef.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Hc],localAddress:t[yE]},connector:t[BE],socket:o}),t.emit("connect",t[sa],[t]),t[_c]()})}function hce(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[tf]=!1,ef.connectError.hasSubscribers&&ef.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[jt]?.version,servername:t[Hc],localAddress:t[yE]},connector:t[BE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hA(t[QE]===0);t[bE]>0&&t[Ki][t[ji]].servername===t[Hc];){let o=t[Ki][t[ji]++];ql.errorRequest(t,o,e)}else mce(t,e);t.emit("connectionError",t[sa],[t],e)}}function gce(t){t[Oc]=0,t.emit("drain",t[sa],[t])}function pO(t,e){t[Vl]!==2&&(t[Vl]=2,wKe(t,e),t[Vl]=0,t[gA]>256&&(t[Ki].splice(0,t[gA]),t[ji]-=t[gA],t[gA]=0))}function wKe(t,e){for(;;){if(t.destroyed){hA(t[bE]===0);return}if(t[Pc]&&!t[IE]){t[Pc](),t[Pc]=null;return}if(t[jt]&&t[jt].resume(),t[hO])t[Oc]=2;else if(t[Oc]===2){e?(t[Oc]=1,queueMicrotask(()=>gce(t))):gce(t);continue}if(t[bE]===0||t[QE]>=(pce(t)||1))return;let r=t[Ki][t[ji]];if(r===null)return;if(t[sa].protocol==="https:"&&t[Hc]!==r.servername){if(t[QE]>0)return;t[Hc]=r.servername,t[jt]?.destroy(new Xze("servername changed"),()=>{t[jt]=null,pO(t)})}if(t[tf])return;if(!t[jt]){Ece(t);return}if(t[jt].destroyed||t[jt].busy(r))return;!r.aborted&&t[jt].write(r)?t[ji]++:t[Ki].splice(t[ji],1)}}Cce.exports=fO});var mO=E((oUt,Ice)=>{"use strict";var tN=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)}};Ice.exports=class{constructor(){this.head=this.tail=new tN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tN),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 rN=E((aUt,xce)=>{"use strict";var{PoolStats:NKe}=a4(),SKe=Pl(),TKe=mO(),{kConnected:EO,kSize:Bce,kRunning:yce,kPending:Qce,kQueued:wE,kBusy:xKe,kFree:DKe,kUrl:RKe,kClose:kKe,kDestroy:FKe,kDispatch:MKe}=$e(),Nr=Symbol("clients"),os=Symbol("needDrain"),NE=Symbol("queue"),CO=Symbol("closed resolve"),IO=Symbol("onDrain"),bce=Symbol("onConnect"),wce=Symbol("onDisconnect"),Nce=Symbol("onConnectionError"),BO=Symbol("get dispatcher"),Sce=Symbol("add client"),Tce=Symbol("remove client"),yO=class extends SKe{[NE]=new TKe;[wE]=0;[Nr]=[];[os]=!1;[IO](e,r,s){let n=this[NE],i=!1;for(;!i;){let o=n.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";var{InvalidArgumentError:Hdr}=Ct(),{runtimeFeatures:Gdr}=qg();function Ydr(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:A=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(n=>s?n:n.toLowerCase())),exclude:new Set(r.map(n=>s?n:n.toLowerCase())),match:new Set(A.map(n=>s?n:n.toLowerCase()))}}var AVe=Gdr.has("crypto")?B("node:crypto"):null,qdr=AVe?.hash?t=>AVe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function nVe(t){return Array.isArray(t)&&(t.length&1)===0}function Jdr(t=[]){return t.length===0?()=>!1:function(r){let A;for(let s of t)if(typeof s=="string"){if(A||(A=r.toLowerCase()),A.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Vdr(t){let e={};if(!t)return e;if(nVe(t)){for(let r=0;r<t.length;r+=2){let A=t[r],s=t[r+1];if(A&&s!==void 0){let n=Buffer.isBuffer(A)?A.toString():A,i=Buffer.isBuffer(s)?s.toString():s;e[n.toLowerCase()]=i}}return e}if(t&&typeof t=="object")for(let[r,A]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(A)?A.join(", "):String(A));return e}var sVe=["record","playback","update"];function Wdr(t){if(!sVe.includes(t))throw new Hdr(`Invalid snapshot mode: ${t}. Must be one of: ${sVe.join(", ")}`)}iVe.exports={createHeaderFilters:Ydr,hashId:qdr,isUndiciHeaders:nVe,normalizeHeaders:Vdr,isUrlExcludedFactory:Jdr,validateSnapshotMode:Wdr}});var EVe=h((ZOr,hVe)=>{"use strict";var{writeFile:zdr,readFile:jdr,mkdir:Kdr}=B("node:fs/promises"),{dirname:Xdr,resolve:oVe}=B("node:path"),{setTimeout:Zdr,clearTimeout:aVe}=B("node:timers"),{InvalidArgumentError:cVe,UndiciError:$dr}=Ct(),{hashId:ehr,isUrlExcludedFactory:thr,normalizeHeaders:uVe,createHeaderFilters:lVe}=pne();function xS(t,e,r={}){let A=new URL(t.path,t.origin),s=t._normalizedHeaders||uVe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?A.toString():`${A.origin}${A.pathname}`,headers:gVe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function gVe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{ignore:n,exclude:i,match:o}=e;for(let[a,c]of Object.entries(t)){let u=A?a:a.toLowerCase();i.has(u)||n.has(u)||o.size!==0&&!o.has(u)||(s[u]=c)}return s}function dVe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{exclude:n}=e;for(let[i,o]of Object.entries(t)){let a=A?i:i.toLowerCase();n.has(a)||(s[a]=o)}return s}function US(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let A=Object.keys(t.headers).sort();for(let s of A){let n=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let i of n.sort())e.push(String(i))}}e.push(t.body);let r=e.join("|");return ehr(r)}var mne=class{#e;#t;#r=new Map;#A;#s=1/0;#n=!1;#o;constructor(e={}){this.#A=e.snapshotPath,this.#s=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.#o=lVe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=thr(e.excludeUrls),this.#n&&this.#A&&this.#i()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let A=xS(e,this.#o,this.matchOptions),s=US(A),n=uVe(r.headers),i={statusCode:r.statusCode,headers:dVe(n,this.#o,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.#s&&!this.#r.has(s)){let a=this.#r.keys().next().value;this.#r.delete(a)}let o=this.#r.get(s);o&&o.responses?(o.responses.push(i),o.timestamp=new Date().toISOString()):this.#r.set(s,{request:A,responses:[i],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#A&&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=xS(e,this.#o,this.matchOptions),A=US(r),s=this.#r.get(A);if(!s)return;let n=s.callCount||0,i=Math.min(n,s.responses.length-1);return s.callCount=n+1,{...s,response:s.responses[i]}}async loadSnapshots(e){let r=e||this.#A;if(!r)throw new cVe("Snapshot path is required");try{let A=await jdr(oVe(r),"utf8"),s=JSON.parse(A);if(Array.isArray(s)){this.#r.clear();for(let{hash:n,snapshot:i}of s)this.#r.set(n,i)}else this.#r=new Map(Object.entries(s))}catch(A){if(A.code==="ENOENT")this.#r.clear();else throw new $dr(`Failed to load snapshots from ${r}`,{cause:A})}}async saveSnapshots(e){let r=e||this.#A;if(!r)throw new cVe("Snapshot path is required");let A=oVe(r);await Kdr(Xdr(A),{recursive:!0});let s=Array.from(this.#r.entries()).map(([n,i])=>({hash:n,snapshot:i}));await zdr(A,JS Line truncated
${e.format(r)}`.trim())}};Xle.exports=v_});var O_=E((PUt,tde)=>{"use strict";var{InvalidArgumentError:RZe}=Ee(),{runtimeFeatures:kZe}=uA();function FZe(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 Zle=kZe.has("crypto")?w("node:crypto"):null,MZe=Zle?.hash?t=>Zle.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ede(t){return Array.isArray(t)&&(t.length&1)===0}function UZe(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 LZe(t){let e={};if(!t)return e;if(ede(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 $le=["record","playback","update"];function vZe(t){if(!$le.includes(t))throw new RZe(`Invalid snapshot mode: ${t}. Must be one of: ${$le.join(", ")}`)}tde.exports={createHeaderFilters:FZe,hashId:MZe,isUndiciHeaders:ede,normalizeHeaders:LZe,isUrlExcludedFactory:UZe,validateSnapshotMode:vZe}});var ude=E((OUt,cde)=>{"use strict";var{writeFile:PZe,readFile:OZe,mkdir:_Ze}=w("node:fs/promises"),{dirname:HZe,resolve:rde}=w("node:path"),{setTimeout:GZe,clearTimeout:sde}=w("node:timers"),{InvalidArgumentError:nde,UndiciError:YZe}=Ee(),{hashId:qZe,isUrlExcludedFactory:VZe,normalizeHeaders:ide,createHeaderFilters:ode}=O_();function _E(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||ide(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:ade(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function ade(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 Ade(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 HE(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 qZe(r)}var __=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=ode(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=VZe(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=_E(e,this.#a,this.matchOptions),n=HE(s),i=ide(r.headers),o={statusCode:r.statusCode,headers:Ade(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=_E(e,this.#a,this.matchOptions),s=HE(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 nde("Snapshot path is required");try{let s=await OZe(rde(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 YZe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new nde("Snapshot path is required");let s=rde(r);await _Ze(HZe(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await PZe(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Fo} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${mn} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,9 +133,9 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Fo}_getValuesQuery ON cacheInterceptorV${Fo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Fo}_deleteByUrlQuery ON cacheInterceptorV${Fo}(deleteAt);
`),this.#A=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${mn}_getValuesQuery ON cacheInterceptorV${mn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${mn}_deleteByUrlQuery ON cacheInterceptorV${mn}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
body,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${Fo}
FROM cacheInterceptorV${mn}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Fo} SET
`),this.#n=this.#s.prepare(`
UPDATE cacheInterceptorV${mn} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -316,8 +167,8 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Fo} (
`),this.#i=this.#s.prepare(`
INSERT INTO cacheInterceptorV${mn} (
url,
method,
body,
@@ -331,124 +182,79 @@ ${e.format(r)}`.trim())}};rVe.exports=Bne});var pne=h((XOr,iVe)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#i=this.#r.prepare(`DELETE FROM cacheInterceptorV${Fo} WHERE url = ?`),this.#a=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Fo}`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${Fo} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${Fo}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${mn} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${mn}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${mn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${mn}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Fo}
FROM cacheInterceptorV${mn}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){qne(e);let r=this.#g(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){qne(e);let A=this.#l(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,n=s?.byteLength;if(n&&n>this.#e)return;let i=this.#g(e,!0);i?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,i.id):(this.#u(),this.#n.run(A,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){qne(e),MEr(r);let A=0,s=[],n=this;return new UEr({decodeStrings:!0,write(i,o,a){A+=i.byteLength,A<n.#e?s.push(i):this.destroy(),a()},final(i){n.set(e,{...r,body:s}),i()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#i.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#o.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}`}#g(e,r=!1){let A=this.#l(e),{headers:s,method:n}=e,i=this.#A.all(A,n);if(i.length===0)return;let o=Date.now();for(let a of i){if(o>=a.deleteAt&&!r)return;let c=!0;if(a.vary){let u=JSON.parse(a.vary);for(let l in u)if(!LEr(s[l],u[l])){c=!1;break}}if(c)return a}}};function LEr(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,A)=>r===e[A]):t===e}});var gI=h((QHr,QWe)=>{"use strict";var{kConstruct:vEr}=yr(),{kEnumerableProperty:hy}=ut(),{iteratorMixin:_Er,isValidHeaderName:_S,isValidHeaderValue:EWe}=No(),{webidl:Ot}=Ks(),Vne=B("node:assert"),jH=B("node:util");function hWe(t){return t===10||t===13||t===9||t===32}function fWe(t){let e=0,r=t.length;for(;r>e&&hWe(t.charCodeAt(r-1));)--r;for(;r>e&&hWe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function CWe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let A=e[r];if(A.length!==2)throw Ot.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});Wne(t,A[0],A[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let A=0;A<r.length;++A)Wne(t,r[A],e[r[A]])}else throw Ot.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Wne(t,e,r){if(r=fWe(r),_S(e)){if(!EWe(r))throw Ot.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Ot.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(BWe(t)==="immutable")throw new TypeError("immutable");return XH(t).append(e,r,!1)}function PEr(t){let e=XH(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],A=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=A;for(let n=0;n<A.length;++n){let{0:i,1:o}=A[n];if(i==="set-cookie")for(let a=0;a<s.length;++a)r.push([i,s[a]]);else r.push([i,o])}return e.sortedMap=r}function IWe(t,e){return t[0]<e[0]?-1:1}var KH=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,A){this.sortedMap=null;let s=A?e:e.toLowerCase(),n=this.headersMap.get(s);if(n){let i=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:n.name,value:`${n.value}${i}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,A){this.sortedMap=null;let s=A?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:A}of this.headersMap.values())e[r]=A;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMa Line truncated
${n}`;break;case"retry":Dje(n)&&(r[s]=n);break;case"id":Nje(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&Dje(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Nje(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}}};Rje.exports={EventSourceStream:Sie}});var vje=h((JHr,Lje)=>{"use strict";var{pipeline:tQr}=B("node:stream"),{fetching:rQr}=YS(),{makeRequest:AQr}=fy(),{webidl:Wn}=Ks(),{EventSourceStream:sQr}=Sje(),{parseMIMEType:nQr}=za(),{createFastMessageEvent:iQr}=mG(),{isNetworkError:Tje}=OS(),{kEnumerableProperty:QI}=ut(),{environmentSettingsObject:kje}=No(),Fje=!1,xje=3e3,jS=0,Uje=1,KS=2,oQr="anonymous",aQr="use-credentials",Dy=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#A=jS;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Wn.util.markAsUncloneable(this);let A="EventSource constructor";Wn.argumentLengthCheck(arguments,1,A),Fje||(Fje=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wn.converters.USVString(e),r=Wn.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.node.dispatcher||r.dispatcher,this.#i={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=kje,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=oQr;r.withCredentials===!0&&(i=aQr,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=kje.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=AQr(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===KS)return;this.#A=jS;let e={request:this.#s,dispatcher:this.#o},r=A=>{if(!Tje(A))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Tje(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?nQr(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=Uje,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new sQr({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(iQr(a.type,a.options))}});tQr(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=rQr(e)}#c(){this.#A!==KS&&(this.#A=jS,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#A===jS&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a())},this.#i.reconnectionTime)?.unref())}close(){Wn.brandCheck(this,t),this.#A!==KS&&(this.#A=KS,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Wn.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=Wn.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=Wn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Mje={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jS,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Uje,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KS,writable:!1}};Object.defineProperties(Dy,Mje);Object.defineProperties(Dy.prototype,Mje);Object.defineProperties(Dy.prototype,{close:QI,onerror:QI,onmessage:QI,onopen:QI,readyState:QI,url:QI,withCredentials:QI});Wn.converters.EventSourceInitDict=Wn.dictionaryConverter([{key:"withCredentials",converter:Wn.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wn.converters.any},{key:"node",converter:Wn.dictionaryConverter([{key:"reconnectionTime",converter:Wn.converters["unsigned long"],defaultValue:()=>xje},{key:"dispatcher",converter:Wn.converters.any}]),defaultValue:()=>({})}]);Lje.exports={EventSource:Dy,defaultReconnectionTime:xje}});var Yje=h((VHr,Ee)=>{"use strict";var cQr=hE(),Pje=KR(),uQr=ey(),lQr=tJe(),gQr=nJe(),dQr=nI(),hQr=bse(),EQr=SJe(),fQr=MJe(),CQr=_Je(),Oje=Ct(),LG=ut(),{InvalidArgumentError:MG}=Oje,Ny=B6e(),IQr=Ym(),BQr=ane(),{MockCallHistory:QQr,Mock Line truncated
`)}close(){this.#s.close()}get(e){A6(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){A6(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){A6(e),Fet(r);let s=0,n=[],i=this;return new ket({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(!Met(n[l],u[l])){c=!1;break}}if(c)return A}}};function Met(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 id=E((aLt,mhe)=>{"use strict";var{kConstruct:Uet}=$e(),{kEnumerableProperty:mf}=Ie(),{iteratorMixin:Let,isValidHeaderName:VE,isValidHeaderValue:dhe}=dn(),{webidl:Pe}=kr(),u6=w("node:assert"),FN=w("node:util");function lhe(t){return t===10||t===13||t===9||t===32}function hhe(t){let e=0,r=t.length;for(;r>e&&lhe(t.charCodeAt(r-1));)--r;for(;r>e&&lhe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ghe(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}.`});l6(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)l6(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 l6(t,e,r){if(r=hhe(r),VE(e)){if(!dhe(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(phe(t)==="immutable")throw new TypeError("immutable");return UN(t).append(e,r,!1)}function vet(t){let e=UN(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 fhe(t,e){return t[0]<e[0]?-1:1}var MN=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":bfe(i)&&(r[n]=i);break;case"id":wfe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&bfe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&wfe(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}}};Nfe.exports={EventSourceStream:z6}});var Ufe=E((kLt,Mfe)=>{"use strict";var{pipeline:eit}=w("node:stream"),{fetching:tit}=jE(),{makeRequest:rit}=Cf(),{webidl:As}=kr(),{EventSourceStream:sit}=Sfe(),{parseMIMEType:nit}=oi(),{createFastMessageEvent:iit}=oS(),{isNetworkError:Tfe}=WE(),{kEnumerableProperty:hd}=Ie(),{environmentSettingsObject:xfe}=dn(),Dfe=!1,Rfe=3e3,sC=0,kfe=1,nC=2,oit="anonymous",ait="use-credentials",xf=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=sC;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),As.util.markAsUncloneable(this);let s="EventSource constructor";As.argumentLengthCheck(arguments,1,s),Dfe||(Dfe=!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=xfe,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=oit;r.withCredentials===!0&&(o=ait,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xfe.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=rit(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===nC)return;this.#r=sC;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!Tfe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Tfe(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?nit(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=kfe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new sit({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(iit(A.type,A.options))}});eit(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=tit(e)}#c(){this.#r!==nC&&(this.#r=sC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===sC&&(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!==nC&&(this.#r=nC,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}},Ffe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:sC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kfe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:nC,writable:!1}};Object.defineProperties(xf,Ffe);Object.defineProperties(xf.prototype,Ffe);Object.defineProperties(xf.prototype,{close:hd,onerror:hd,onmessage:hd,onopen:hd,readyState:hd,url:hd,withCredentials:hd});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:()=>Rfe},{key:"dispatcher",converter:As.converters.any}]),defaultValue:()=>({})}]);Mfe.exports={EventSource:xf,defaultReconnectionTime:Rfe}});var Hfe=E((FLt,W)=>{"use strict";var Ait=Gc(),vfe=rE(),cit=Jl(),uit=vce(),lit=Hce(),dit=Kl(),hit=GO(),git=PO(),fit=bue(),pit=Due(),mit=Fue(),Pfe=Ee(),CS=Ie(),{InvalidArgumentError:ES}=Pfe,Df=gle(),Eit=Ol(),Cit=N_(),{MockCallHistory:Iit Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${n}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return kQr(e,r).catch(A=>{throw _je?Gje(A,_je):A&&typeof A=="object"&&Error.captureStackTrace(A,Ee.exports.fetch),A})};Ee.exports.Headers=gI().Headers;Ee.exports.Response=OS().Response;Ee.exports.Request=fy().Request;Ee.exports.FormData=sH().FormData;var{setGlobalOrigin:FQr,getGlobalOrigin:xQr}=gAe();Ee.exports.setGlobalOrigin=FQr;Ee.exports.getGlobalOrigin=xQr;var{CacheStorage:UQr}=yze(),{kConstruct:MQr}=yr();Ee.exports.caches=new UQr(MQr);var{deleteCookie:LQr,getCookies:vQr,getSetCookies:_Qr,setCookie:PQr,parseCookie:OQr}=Lze();Ee.exports.deleteCookie=LQr;Ee.exports.getCookies=vQr;Ee.exports.getSetCookies=_Qr;Ee.exports.setCookie=PQr;Ee.exports.parseCookie=OQr;var{parseMIMEType:HQr,serializeAMimeType:GQr}=za();Ee.exports.parseMIMEType=HQr;Ee.exports.serializeAMimeType=GQr;var{CloseEvent:YQr,ErrorEvent:qQr,MessageEvent:JQr}=mG(),{WebSocket:VQr,ping:WQr}=Eje();Ee.exports.WebSocket=VQr;Ee.exports.CloseEvent=YQr;Ee.exports.ErrorEvent=qQr;Ee.exports.MessageEvent=JQr;Ee.exports.ping=WQr;Ee.exports.WebSocketStream=yje().WebSocketStream;Ee.exports.WebSocketError=bie().WebSocketError;Ee.exports.request=XS(Ny.request);Ee.exports.stream=XS(Ny.stream);Ee.exports.pipeline=XS(Ny.pipeline);Ee.exports.connect=XS(Ny.connect);Ee.exports.upgrade=XS(Ny.upgrade);Ee.exports.MockClient=BQr;Ee.exports.MockCallHistory=QQr;Ee.exports.MockCallHistoryLog=pQr;Ee.exports.MockPool=yQr;Ee.exports.MockAgent=mQr;Ee.exports.SnapshotAgent=bQr;Ee.exports.mockErrors=wQr;var{EventSource:zQr}=vje();Ee.exports.EventSource=zQr;function jQr(){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=jQr});var ZS=h(yE=>{"use strict";yE.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");yE.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");yE.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";yE.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);yE.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);yE.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());yE.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 A=t[e];if(++e,A==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Jje=h((jHr,qje)=>{"use strict";var{asciiLowercase:vG,solelyContainsHTTPTokenCodePoints:KQr,soleyContainsHTTPQuotedStringTokenCodePoints:XQr}=ZS();qje.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=vG(String(e)),this._map.get(e)}has(e){return e=vG(String(e)),this._map.has(e)}set(e,r){if(e=vG(String(e)),r=String(r),!KQr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!XQr(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=vG(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 zje=h((KHr,Wje)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:ZQr,removeTrailingHTTPWhitespace:Vje,isHTTPWhitespaceChar:$Qr,solelyContainsHTTPTokenCodePoints:Tie,soleyContainsHTTPQuotedStringTokenCodePoints:epr,asciiLowercase:kie,collectAnHTTPQuotedString:tpr}=ZS();Wje.exports=t=>{t=ZQr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Tie(r)||e>=t.length)return null;++e;let A="";for(;e<t.length&&t[e]!==";";)A+=t[e],++e;if(A=Vje(A),A.length===0||!Tie(A))return null;let s={type:kie(r),subtype:kie(A),parameters:new Map};for(;e<t.length;){for(++e;$Qr(t[e]);)++e;let n="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)n+=t[e],++e;if(n=kie(n),e<t.length){if(t[e]===";")continue;++e}let i=null;if(t[e]==='"')for([i,e]=tpr(t,e);e<t.length&&t[e]!==";";)++e;else{for(i="";e<t.length&&t[e]!==";";)i+=t[e],++e;if(i=Vje(i),i==="")continue}n.length>0&&Tie(n)&&epr(i)&&!s.parameters.has(n)&&s.parameters.set(n,i)}return s}});var Kje=h((XHr,jje)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:rpr}=ZS();jje.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,A]of t.parameters)e+=";",e+=r,e+="=",(!rpr(A)||A.length===0)&&(A=A.replace(/(["\\])/ug,"\\$1"),A=`"${A}"`),e+=A;return e}});var e7e=h(($Hr,$je)=>{"use strict";var Apr=Jje(),spr=zje(),npr=Kje(),{asciiLowercase:Xje,solelyContainsHTTPTokenCodePoints:Zje}=ZS();$je.exports=class{constructor(e){e=String(e);let r=spr(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 Apr(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=Xje(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zje(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=Xje(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zje(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return npr(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 Gie from"os";function Nl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function GG(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 wE(t,e,r){let A=new YG(t,e,r);process.stdout.write(A.toString()+Gie.EOL)}function qG(t,e=""){wE(t,{},e)}var Hie="::",YG=class{constructor(e,r,A){e||(e="missing.command"),this.command=e,this.properties=r,this.message=A}toString(){let e=Hie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let A in this.pLine truncated
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}function nk(t){process.exitCode=b4.Failure,xEe(t)}function $E(){return process.env.RUNNER_DEBUG==="1"}function jt(t){wE("debug",{},t)}function xEe(t,e={}){wE("error",GG(e),t instanceof Error?t.toString():t)}function BA(t,e={}){wE("warning",GG(e),t instanceof Error?t.toString():t)}function me(t){process.stdout.write(t+FEe.EOL)}function mct(t){qG("group",t)}function yct(){qG("endgroup")}function Dd(t,e){return pct(this,void 0,void 0,function*(){mct(t);let r;try{r=yield e()}finally{yct()}return r})}function ef(t,e){if(process.env.GITHUB_STATE||"")return JG("STATE",VG(t,e));wE("save-state",{name:t},Nl(e))}function jo(t){return process.env[`STATE_${t}`]||""}var Tke=zt(WD(),1),wOt="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",DOt="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",NOt="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",ROt="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.";var yke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",SOt="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",bke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.",kke="[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). Use `cache-cleanup: always` to override this behavior.",Fke="[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). This is expected.",LL=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=wOt;this.cacheCleanupMessage=bke}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Tke.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=DOt){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setDisabled(e=NOt){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setWriteOnly(e=ROt){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=SOt}setCacheCleanupDisabled(e=bke){this.cacheCleanupMessage=e}entry(e){for(let A of this.cacheEntries)if(A.entryName===e)return A;let r=new vL(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),A=r.cacheEntries;for(let s=0;s<A.length;s++){let n=A[s];A[s]=Object.assign(new vL(n.entryName),n)}return r}},vL=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,A){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=A,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,A){return this.savedKey=e,this.savedSize=r,this.savedTime=A,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};function xke(t){let e=t.cacheEntries;return`
<details>
<summary><h4>Caching for Gradle actions was ${t.cacheStatus} - expand for details</h4></summary>
- ${t.cacheStatusReason}
- ${t.cacheCleanupMessage}
${TOt(e)}
<h5>Cache Entry Details</h5>
<pre>
${kOt(t)}
</pre>
</details>
`}function TOt(t){return`
<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</tr>
<tr><td>Entries Restored</td>
<td>${wke(t,e=>e.restoredSize)}</td>
<td>${Dke(t,e=>e.restoredSize)}</td>
<td>${Nke(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${wke(t,e=>e.savedSize)}</td>
<td>${Dke(t,e=>e.savedSize)}</td>
<td>${Nke(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function kOt(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Rke(e.restoredSize)}
Time: ${Ske(e.restoredTime)}
${FOt(e,t.cacheWriteOnly)}
Saved Key : ${e.savedKey??""}
Size: ${Rke(e.savedSize)}
Time: ${Ske(e.savedTime)}
${xOt(e,t.cacheReadOnly)}
`).join(`---
`)}function FOt(t,e){return t.notRestored?`(Entry not restored: ${t.notRestored})`:e?"(Entry not restored: cache is write-only)":t.requestedKey===void 0?"(Entry not restored: not requested)":t.restoredKey===void 0?"(Entry not restored: no match found)":t.restoredKey===t.requestedKey?"(Entry restored: exact match found)":"(Entry restored: partial match found)"}function xOt(t,e){return t.notSaved?`(Entry not saved: ${t.notSaved})`:t.savedKey===void 0?e?"(Entry not saved: cache is read-only)":t.notRestored?"(Entry not saved: not restored)":"(Entry not saved: reason unknown)":t.savedSize===0?"(Entry not saved: entry with key already exists)":"(Entry saved)"}function wke(t,e){return t.filter(r=>e(r)).length}function Dke(t,e){let r=t.map(A=>e(A)??0).reduce((A,s)=>A+s,0);return Math.round(r/(1024*1024))}function Nke(t,e){return t.map(r=>e(r)??0).reduce((r,A)=>r+A,0)}function Rke(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Ske(t){return t===void 0||t===0?"":`${t} ms`}import*as l0 from"fs";function S7(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,jt(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,jt(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,jt(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,jt(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,jt(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as OL from"path";import*as c0 from"path";import tC from"assert";var Qh=process.platform==="win32";function hg(t){if(t=dg(t),Qh&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=c0.dirname(t);return Qh&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=dg(e)),e}function _L(t,e){if(tC(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),tC(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),zD(e))return e;if(Qh){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return tC(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(Nc(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return tC(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return tC(zD(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Qh&&t.endsWith("\\")||(t+=c0.sep),t+e}function zD(t){return tC(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Nc(t),Qh?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function jD(t){return tC(t,"isRooted parameter 'itemPath' must not be empty"),t=Nc(t),Qh?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Nc(t){return t=t||"",Qh?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function dg(t){return t?(t=Nc(t),!t.endsWith(c0.sep)||t===c0.sep||Qh&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Rc;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Rc||(Rc={}));var Uke=process.platform==="win32";function k7(t){t=t.filter(A=>!A.negate);let e={};for(let A of t){let s=Uke?A.searchPath.toUpperCase():A.searchPath;e[s]="candidate"}let r=[];for(let A of t){let s=Uke?A.searchPath.toUpperCase():A.searchPath;if(e[s]==="included")continue;let n=!1,i=s,o=hg(i);for(;o!==i;){if(e[o]){n=!0;break}i=o,o=hg(i)}n||(r.push(A.searchPath),e[s]="included")}return r}function Mke(t,e){let r=Rc.None;for(let A of t)A.negate?r&=~A.match(e):r|=A.match(e);return r}function Lke(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as vke from"os";import*as u0 from"path";var _ke=zt(rJ(),1);import sC from"assert";import*as rC from"path";import KD from"assert";var LOt=process.platform==="win32",AC=class{constructor(e){if(this.segments=[],typeof e=="string")if(KD(e,"Parameter 'itemPath' must not be empty"),e=dg(e),!jD(e))this.segments=e.split(rC.sep);else{let r=e,A=hg(r);for(;A!==r;){let s=rC.basename(r);this.segments.unshift(s),r=A,A=hg(r)}this.segments.unshift(r)}else{KD(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let A=e[r];KD(A,"Parameter 'itemPath' must not contain any empty segments"),A=Nc(e[r]),r===0&&jD(A)?(A=dg(A),KD(A===hg(A),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(A)) Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||A.patterns.push(new XD(n));return A.searchPaths.push(...k7(A.patterns)),A})}static stat(e,r,A){return F7(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield l0.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){jt(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield l0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield l0.promises.realpath(e.path);for(;A.length>=e.level;)A.pop();if(A.some(i=>i===n)){jt(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}A.push(n)}return s})}};import*as x7 from"crypto";import*as HL from"fs";import*as Pke from"stream";import*as Oke from"util";import*as Hke from"path";var HOt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})},GOt=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={},A("next"),A("throw"),A("return"),r[Symbol.asyncIterator]=function(){return this},r);function A(n){r[n]=t[n]&&function(i){return new Promise(function(o,a){i=t[n](i),s(o,a,i.done,i.value)})}}function s(n,i,o,a){Promise.resolve(a).then(function(c){n({value:c,done:o})},i)}};function Gke(t,e){return HOt(this,arguments,void 0,function*(r,A,s=!1){var n,i,o,a,c;let u=s?me:jt,l=!1,g=A||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),d=x7.createHash("sha256"),E=0;try{for(var C=!0,Q=GOt(r.globGenerator()),I;I=yield Q.next(),n=I.done,!n;C=!0){a=I.value,C=!1;let p=a;if(u(p),!p.startsWith(`${g}${Hke.sep}`)){u(`Ignore '${p}' since it is not under GITHUB_WORKSPACE.`);continue}if(HL.statSync(p).isDirectory()){u(`Skip directory '${p}'.`);continue}let w=x7.createHash("sha256");yield Oke.promisify(Pke.pipeline)(HL.createReadStream(p),w),d.write(w.digest()),E++,l||(l=!0)}}catch(p){i={error:p}}finally{try{!C&&!n&&(o=Q.return)&&(yield o.call(Q))}finally{if(i)throw i.error}}return d.end(),l?(u(`Found ${E} files to hash.`),d.digest("hex")):(u("No matches found for glob"),"")})}var Yke=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};function g0(t,e){return Yke(this,void 0,void 0,function*(){return yield PL.create(t,e)})}function qke(t){return Yke(this,arguments,void 0,function*(e,r="",A,s=!1){let n=!0;A&&typeof A.followSymbolicLinks=="boolean"&&(n=A.followSymbolicLinks);let i=yield g0(e,{followSymbolicLinks:n});return Gke(i,r,s)})}import Fg from"path";import Si from"fs";import{readFileSync as YOt,existsSync as qOt}from"fs";import{EOL as JOt}from"os";var d0=class{constructor(){var e,r,A;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(qOt(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(YOt(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${JOt}`)}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=(A=process.env.GITHUB_GRAPHQL_URL)!==null&&A!==void 0?A:"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 r$=zt(CPe(),1),IPe=zt(ZZ(),1),gzt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value) Line truncated
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return Rit(e,r).catch(s=>{throw Lfe?_fe(s,Lfe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=id().Headers;W.exports.Response=WE().Response;W.exports.Request=Cf().Request;W.exports.FormData=Gw().FormData;var{setGlobalOrigin:kit,getGlobalOrigin:Fit}=S4();W.exports.setGlobalOrigin=kit;W.exports.getGlobalOrigin=Fit;var{CacheStorage:Mit}=Ige(),{kConstruct:Uit}=$e();W.exports.caches=new Mit(Uit);var{deleteCookie:Lit,getCookies:vit,getSetCookies:Pit,setCookie:Oit,parseCookie:_it}=Fge();W.exports.deleteCookie=Lit;W.exports.getCookies=vit;W.exports.getSetCookies=Pit;W.exports.setCookie=Oit;W.exports.parseCookie=_it;var{parseMIMEType:Hit,serializeAMimeType:Git}=oi();W.exports.parseMIMEType=Hit;W.exports.serializeAMimeType=Git;var{CloseEvent:Yit,ErrorEvent:qit,MessageEvent:Vit}=oS(),{WebSocket:Jit,ping:Wit}=hfe();W.exports.WebSocket=Jit;W.exports.CloseEvent=Yit;W.exports.ErrorEvent=qit;W.exports.MessageEvent=Vit;W.exports.ping=Wit;W.exports.WebSocketStream=Bfe().WebSocketStream;W.exports.WebSocketError=Y6().WebSocketError;W.exports.request=iC(Df.request);W.exports.stream=iC(Df.stream);W.exports.pipeline=iC(Df.pipeline);W.exports.connect=iC(Df.connect);W.exports.upgrade=iC(Df.upgrade);W.exports.MockClient=Cit;W.exports.MockCallHistory=Iit;W.exports.MockCallHistoryLog=Bit;W.exports.MockPool=Qit;W.exports.MockAgent=yit;W.exports.SnapshotAgent=bit;W.exports.mockErrors=wit;var{EventSource:zit}=Ufe();W.exports.EventSource=zit;function Kit(){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=Kit});var oC=E(tu=>{"use strict";tu.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");tu.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");tu.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";tu.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);tu.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);tu.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());tu.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 Yfe=E((LLt,Gfe)=>{"use strict";var{asciiLowercase:IS,solelyContainsHTTPTokenCodePoints:jit,soleyContainsHTTPQuotedStringTokenCodePoints:Xit}=oC();Gfe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=IS(String(e)),this._map.get(e)}has(e){return e=IS(String(e)),this._map.has(e)}set(e,r){if(e=IS(String(e)),r=String(r),!jit(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Xit(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=IS(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 Jfe=E((vLt,Vfe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Zit,removeTrailingHTTPWhitespace:qfe,isHTTPWhitespaceChar:$it,solelyContainsHTTPTokenCodePoints:K6,soleyContainsHTTPQuotedStringTokenCodePoints:eot,asciiLowercase:j6,collectAnHTTPQuotedString:tot}=oC();Vfe.exports=t=>{t=Zit(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!K6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=qfe(s),s.length===0||!K6(s))return null;let n={type:j6(r),subtype:j6(s),parameters:new Map};for(;e<t.length;){for(++e;$it(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=j6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=tot(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=qfe(o),o==="")continue}i.length>0&&K6(i)&&eot(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var zfe=E((PLt,Wfe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:rot}=oC();Wfe.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+="=",(!rot(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Zfe=E((_Lt,Xfe)=>{"use strict";var sot=Yfe(),not=Jfe(),iot=zfe(),{asciiLowercase:Kfe,solelyContainsHTTPTokenCodePoints:jfe}=oC();Xfe.exports=class{constructor(e){e=String(e);let r=not(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 sot(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=Kfe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!jfe(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=Kfe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!jfe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return iot(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 s5 from"os";function BA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function wS(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 gd(t,e,r){let s=new NS(t,e,r);process.stdout.write(s.toString()+s5.EOL)}var r5="::",NS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=r5+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 uD(t){process.exitCode=AD.Failure,Ru(t)}function YA(){return process.env.RUNNER_DEBUG==="1"}function U(t){gd("debug",{},t)}function Ru(t,e={}){gd("error",wS(e),t instanceof Error?t.toString():t)}function bt(t,e={}){gd("warning",wS(e),t instanceof Error?t.toString():t)}function de(t){process.stdout.write(t+W7.EOL)}function Fp(t,e){if(process.env.GITHUB_STATE||"")return i5("STATE",o5(t,e));gd("save-state",{name:t},BA(e))}function qA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as sTe,existsSync as nTe}from"fs";import{EOL as iTe}from"os";var lh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(nTe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(sTe(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${iTe}`)}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 gD=fe(Z7(),1),$7=fe(nB(),1),ETe=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 eW(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 tW(t){return new gD.HttpClient().getAgent(t)}function CTe(t){return new gD.HttpClient().getAgentDispatcher(t)}function rW(t){let e=CTe(t);return(s,n)=>ETe(this,void 0,void 0,function*(){return(0,$7.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function sW(){return process.env.GITHUB_API_URL||"https://api.github.com"}function fD(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 EB(){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 CB(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)=>CB.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 nW(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 iW(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 oW=Function.bind,aW=oW.bind(oW);function AW(t,e,r){let s=aW(iW,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]=aW(nW,null).apply(null,i)})}function BTe(){let t=Symbol("Singular"),e={registry:{}},r=CB.bind(null,e,t);return AW(r,e,t),r}function yTe(){let t={registry:{}},e=CB.bind(null,t);return AW(e,t),e}var cW={Singular:BTe,Collection:yTe};var RD=fe(SD(),1);var LW=fe(SD(),1);var fxe="0.0.0-development";function pxe(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var ljt=class extends Error{constructor(t,e,r){super(ujt(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},gjt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],djt=["query","method","url"],eOe=/\/api\/v3\/?$/;function hjt(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 i in r)if(djt.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let A=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(A).reduce((i,o)=>gjt.includes(o)?(i[o]=A[o],i):(i.variables||(i.variables={}),i.variables[o]=A[o],i),{}),n=A.baseUrl||t.endpoint.DEFAULTS.baseUrl;return eOe.test(n)&&(s.url=n.replace(eOe,"/api/graphql")),t(s).then(i=>{if(i.data.errors){let o={};for(let a of Object.keys(i.headers))o[a]=i.headers[a];throw new ljt(s,o,i.data)}return i.data.data})}function E$(t,e){let r=t.defaults(e);return Object.assign((s,n)=>hjt(r,s,n),{defaults:E$.bind(null,r),endpoint:r.endpoint})}var A2r=E$(tOe.request,{headers:{"user-agent":`octokit-graphql.js/${cjt} ${Y_()}`},method:"POST",url:"/graphql"});function rOe(t){return E$(t,{method:"POST",url:"/graphql"})}var f$="(?:[a-zA-Z0-9_-]+)",AOe="\\.",sOe=new RegExp(`^${f$}${AOe}${f$}${AOe}${f$}$`),Ejt=sOe.test.bind(sOe);async function fjt(t){let e=Ejt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),A=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":A?"user-to-server":"oauth"}}function Cjt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Ijt(t,e,r,A){let s=e.endpoint.merge(r,A);return s.headers.authorization=Cjt(t),e(s)}var nOe=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(fjt.bind(null,e),{hook:Ijt.bind(null,e)})};var C$="7.0.6";var iOe=()=>{},Bjt=console.warn.bind(console),Qjt=console.error.bind(console);function pjt(t={}){return typeof t.debug!="function"&&(t.debug=iOe),typeof t.info!="function"&&(t.info=iOe),typeof t.warn!="function"&&(t.warn=Bjt),typeof t.error!="function"&&(t.error=Qjt),t}var oOe=`octokit-core.js/${C$} ${Y_()}`,W_=class{static VERSION=C$;static defaults(e){return class extends this{constructor(...A){let s=A[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 RPe.Collection,A={baseUrl:I$.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(A.headers["user-agent"]=e.userAgent?`${e.userAgent} ${oOe}`:oOe,e.baseUrl&&(A.baseUrl=e.baseUrl),e.previews&&(A.mediaType.previews=e.previews),e.timeZone&&(A.headers["time-zone"]=e.timeZone),this.request=I$.request.defaults(A),this.graphql=rOe(this.request).defaults(A),this.log=pjt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...i}=e,o=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));r.wrap("request",o.hook),this.auth=o}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=nOe(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var B$="17.0.0";var mjt={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
It is likely locked by another process. Output of 'jps -ml':
${await Jjt()}`),A;zs(`Attempt to delete ${t} failed. Will try again.`),await qjt(1e3)}}}async function qjt(t){return new Promise(e=>setTimeout(e,t))}async function Jjt(){return(await wd("jps",["-lm"])).stdout}var Vjt="v1",Wjt="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",zjt="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",jjt="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",Kjt="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",Xjt="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",X_=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function U$(t,e){let s=`${`${process.env[Wjt]||""}${Z_(t,Vjt)}`}|${Zjt()}`,n=`${s}|${$jt()}`,i=`${n}[${e7t()}]`,o=`${i}-${t7t()}`;return e.isCacheStrictMatch()?new X_(o,[i]):new X_(o,[i,n,s])}function Z_(t,e){return`gradle-${t}-${e}`}function Zjt(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[zjt]||`${t}-${e}`}function $jt(){return process.env[jjt]||SC.job}function e7t(){let t=process.env[Kjt];if(t)return t;let e=SC.workflow,r=yOe();return x$([e,r])}function t7t(){return process.env[Xjt]||SC.sha}import Em from"path";import dR from"fs";import*as Ma from"fs";import*as kg from"path";var r8e=zt(YOe(),1),MC=zt(lP(),1);import*as hm from"fs";import*as XGe from"os";import*as UC from"path";var IP=zt(WD(),1);import{ok as IZt}from"assert";import*as nl from"path";import*as gP from"fs";import*as Gh from"path";var cZt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})},{chmod:uZt,copyFile:lZt,lstat:gZt,mkdir:xGe,open:Sxr,readdir:UGe,rename:dZt,rm:MGe,rmdir:Txr,stat:tee,symlink:hZt,unlink:EZt}=gP.promises,Hh=process.platform==="win32";var kxr=gP.constants.O_RDONLY;function LGe(t){if(t=fZt(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Hh?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function ree(t,e){return cZt(this,void 0,void 0,function*(){let r;try{r=yield tee(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(Hh){let s=Gh.extname(t).toUpperCase();if(e.some(n=>n.toUpperCase()===s))return t}else if(FGe(r))return t}let A=t;for(let s of e){t=A+s,r=void 0;try{r=yield tee(t)}catch(n){n.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${n}`)}if(r&&r.isFile()){if(Hh){try{let n=Gh.dirname(t),i=Gh.basename(t).toUpperCase();for(let o of yield UGe(n))if(i===o.toUpperCase()){t=Gh.join(n,o);break}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${n}`)}return t}else if(FGe(r))return t}}return""})}function fZt(t){return t=t||"",Hh?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function FGe(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var dP=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};function vGe(t){return dP(this,void 0,void 0,function*(){if(Hh&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield MGe(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function Aee(t){return dP(this,void 0,void 0,function*(){IZt(t,"a path argument must be provided"),yield xGe(t,{recursive:!0})})}function lR(t,e){return dP(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let A=yield lR(t,!1);if(!A)throw Hh?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return A}let r=yield BZt(t);return r&&r.length>0?r[0]:""})}function BZt(t){return dP(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(Hh&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(nl.delimiter))s&&e.push(s);if(LGe(t)){let s=yield ree(t,e);return s?[s]:[]}if(t.includes(nl.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(nl.delimiter))s&&r.push(s);let A=[];for(let s of r){let n=yield ree(nl.join(s,t),e);nLine truncated
`),r,[],s)?new hR(e,A,r):(me(`Did not restore ${e} with key ${r} to ${A}`),new hR(e,A,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zs(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let A=this.loadExtractedCacheEntries(),s=[];for(let n of r){let i=n.artifactType,o=n.pattern;if(n.notCacheableReason){e.entry(o).markNotSaved(n.notCacheableReason);continue}let c=await(await g0(o,{implicitDescendants:!1})).glob();if(c.length===0){zs(`No files found to cache for ${i}`);continue}if(n.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,i,o,n.uniqueFileNames,A,e.entry(o))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],i,u,n.uniqueFileNames,A,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,A,s,n,i){let o=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,A);n.find(c=>c.artifactType===r&&c.pattern===A)?.cacheKey===o?(zs(`No change to previously restored ${r}. Not saving.`),i.markNotSaved("contents unchanged")):await K_(A.split(`
`),o,i);for(let c of e)AR(c);return new hR(r,A,o)}createCacheKeyFromFileNames(e,r){let A=r.map(n=>Em.relative(this.gradleUserHome,n)),s=NOe(A);return zs(`Generating cache key for ${e} from file names: ${A}`),`${Z_(e,n8e)}-${s}`}async createCacheKeyFromFileContents(e,r){let A=await qke(r);return zs(`Generating cache key for ${e} from files matching: ${r}`),`${Z_(e,n8e)}-${A}`}async awaitForDebugging(e){return tR()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!dR.existsSync(e))return[];let r=dR.readFileSync(e,"utf-8");return zs(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new uee;r.entries=e.filter(s=>s.cacheKey!==void 0);let A=JSON.stringify(r);zs(`Saving cache metadata for ${this.extractorName}: ${A}`),dR.writeFileSync(this.getCacheMetadataFile(),A,"utf-8")}getCacheMetadataFile(){let e=Em.resolve(this.gradleUserHome,gm);return dR.mkdirSync(e,{recursive:!0}),Em.resolve(e,`${this.extractorName}-entry-metadata.json`)}},ER=class extends mP{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=Em.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await g0(e,{implicitDescendants:!1});for(let A of await r.glob())zs(`Deleting wrapper zip: ${A}`),await AR(A)}getExtractedCacheEntryDefinitions(){let e=(r,A,s)=>{let n=A.map(i=>{let o=i.endsWith("/"),a=Em.resolve(this.gradleUserHome,i);return o?`${a}/`:a}).join(`
`);return new pP(r,n,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},fR=class extends mP{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let A=this.loadExtractedCacheEntries();if(A.length>0){me(`Not restoring configuration-cache state, as ${r}`);for(let s of A)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){me("Not saving configuration-cache state, as no encryption key was provided");for(let A of r)e.entry(A.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,A])=>{let s=new pP("configuration-cache",r,!0).withNonUniqueFileNames();return A.find(n=>!Yh(n.gradleVersion,"8.6.0"))&&(me(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return QP().results.reduce((e,r)=>{let A=Em.resolve(r.rootProjectDir,".gradle/configuration-cache");return dR.existsSync(A)&&(e[A]||(e[A]=[]),e[A].push(r)),e},{})}};import i8e from"path";import JZt from"fs";import{fileURLToPath as VZt}from"url";function o8e(...t){let e=i8e.dirname(VZt(import.meta.url)),r=i8e.resolve(e,"..","..","..","sources","src","resources",...t);return JZt.readFileSync(r,"utf8")}function a8e(){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>
<type>jdk</type>
<provides>
<version>${e}</version>
</provides>
<configuration>
<jdkHome>${r}</jdkHome>
</configuration>
</toolchain>`).join(`
`)}
</toolchains>
`}function c8e(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var u8e="restored-cache-key",yP=class{constructor(e,r,A){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=A}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&ZE("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Fg.resolve(this.gradleUserHome,"caches");return Si.existsSync(e)?(zs(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),A=U$(this.cacheName,this.cacheConfig);zs(`Requesting ${this.cacheDescription} with
key:${A.key}
restoreKeys:[${A.restoreKeys}]`);let s=this.getCachePath(),n=await j_(s,A.key,A.restoreKeys,r);if(!n){me(`${this.cacheDescription} cache not found. Will initialize empty.`);return}ef(u8e,n.key);try{await this.afterRestore(e)}catch(i){BA(`Restore ${this.cacheDescription} failed in 'afterRestore': ${i}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new ER(this.gradleUserHome,this.cacheConfig).restore(e),await new fR(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=U$(this.cacheName,this.cacheConfig).key,A=jo(u8e),s=e.entry(this.cacheDescription);if(A&&r===A){me(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let i of e.cacheEntries)i===s?i.markNotSaved("cache key not changed"):i.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(i){BA(`Save ${this.cacheDescription} failed in 'beforeSave': ${i}`);return}let n=this.getCachePath();await K_(n,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new ER(this.gradleUserHome,this.cacheConfig).extract(e),new fR(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(A=>Fg.resolve(this.gradleUserHome,A));for(let A of r){zs(`Removing excluded path: ${A}`);let s=await g0(A,{implicitDescendants:!1});for(let n of await s.glob())zs(`Removing excluded file: ${n}`),await AR(n)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(gm);let r=e.map(A=>this.resolveCachePath(A));return zs(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Fg.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Fg.resolve(this.gradleUserHome,gm);Si.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),$E()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Fg.resolve(this.gradleUserHome,"init.d");Si.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 A of r){let s=o8e("init-scripts",A),n=Fg.resolve(e,A);Si.writeFileSync(n,s)}}registerToolchains(){let e=a8e();if(e==null)return;let r=Fg.resolve(this.userHome,".m2"),A=Fg.resolve(r,"toolchains.xml");if(!Si.existsSync(A))Si.mkdirSync(r,{recursive:!0}),Si.writeFileSync(A,e),me(`Wrote default JDK locations to ${A}`);else{let s=Si.readFileSync(A,"utf8"),n=c8e(s,e);Si.writeFileSync(A,n),me(`Merged default JDK locations into ${A}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Fg.resolve(this.gradleUserHome,"gradle.properties");if(Si.existsSync(r)){me(`Merged --info and --stacktrace into existing ${r} file`);let A=Si.readFileSync(r,"utf-8");Si.writeFileSync(r,`${e}
${A}`)}else me(`Created a new ${r} with --info and --stacktrace`),Si.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!tR()&&!$E()||!Si.existsSync(this.gradleUserHome))return;let r=await wd("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});me(`Gradle User Home (directories >5M): ${e}`),me(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(A=>` ${A}`).join(`
`)),me("-----------------------")}};import bP from"fs";import CR from"path";var wP=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return ef("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),A=jo("clean-timestamp");await this.forceCleanupFilesOlderThan(A,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&Yh(r,"8.11"))try{let A=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await aee(r,A)}catch{me(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await aee("8.11")}findGradleWrapperScript(e){try{let r=oee(e.rootProjectDir);return CR.resolve(e.rootProjectDir,r)}catch(r){return jt(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let A=CR.resolve(this.tmpDir,"dummy-cleanup-project");bP.mkdirSync(A,{recursive:!0}),bP.writeFileSync(CR.resolve(A,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),bP.writeFileSync(CR.resolve(A,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),bP.writeFileSync(CR.resolve(A,"build.gradle"),'task("noop") {}'),await Dd("Executing Gradle to clean up caches",async()=>{me(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,A)})}async executeCleanupBuild(e,r){let A=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await gu(e,A,{cwd:r})}};var WZt="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function l8e(t,e,r,A,s,n){if(n.isCacheDisabled()){me("Cache is disabled: will not save state for later builds.");return}if(!jo(WZt)){me("Cache will not be saved: not restored in main action step.");return}if(n.isCacheReadOnly()){me("Cache is read-only: will not save state for use in subsequent builds."),r.setReadOnly();return}await Dd("Stopping Gradle daemons",async()=>{await A.stopAllDaemons()}),n.isCacheCleanupEnabled()&&(s.anyConfigCacheHit()?(me("Not performing cache-cleanup due to config-cache reuse"),r.setCacheCleanupDisabled(Fke)):n.shouldPerformCacheCleanup(s.anyFailed())?(r.setCacheCleanupEnabled(),await zZt(e,s)):(me("Not performing cache-cleanup due to build failure"),r.setCacheCleanupDisabled(kke))),await Dd("Caching Gradle state",async()=>new yP(t,e,n).save(r))}async function zZt(t,e){let r=new wP(t,process.env.RUNNER_TEMP);try{await r.forceCleanup(e)}catch(A){BA(`Cache cleanup failed. Will continue. ${String(A)}`)}}async function d8e(t,e,r){let A=$Zt();if(A){jE.addRaw(A),await jE.write();return}let s=ZZt(t.results),n=t.anyFailed();r.shouldGenerateJobSummary(n)?(me("Generating Job Summary"),jE.addRaw(s),jE.addRaw(e),await jE.write()):(me("============================"),me(s),me("============================"),me(e),me("============================")),r.shouldAddPRComment(n)&&await KZt(s)}async function KZt(t){let e=SC;if(e.payload.pull_request==null){me("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;me(`Adding Job Summary as comment to PR #${r}.`);let A=`<h3>Job Summary for Gradle</h3>
`)}var mxe=class extends Error{constructor(t,e,r){super(pxe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Exe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Cxe=["query","method","url"],UW=/\/api\/v3\/?$/;function Ixe(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(Cxe.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)=>Exe.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 UW.test(i)&&(n.url=i.replace(UW,"/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 mxe(n,a,o.data)}return o.data.data})}function TD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>Ixe(r,n,i),{defaults:TD.bind(null,r),endpoint:r.endpoint})}var Qct=TD(LW.request,{headers:{"user-agent":`octokit-graphql.js/${fxe} ${EB()}`},method:"POST",url:"/graphql"});function vW(t){return TD(t,{method:"POST",url:"/graphql"})}var xD="(?:[a-zA-Z0-9_-]+)",PW="\\.",OW=new RegExp(`^${xD}${PW}${xD}${PW}${xD}$`),Bxe=OW.test.bind(OW);async function yxe(t){let e=Bxe(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 Qxe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function bxe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=Qxe(t),e(n)}var _W=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(yxe.bind(null,e),{hook:bxe.bind(null,e)})};var DD="7.0.6";var HW=()=>{},wxe=console.warn.bind(console),Nxe=console.error.bind(console);function Sxe(t={}){return typeof t.debug!="function"&&(t.debug=HW),typeof t.info!="function"&&(t.info=HW),typeof t.warn!="function"&&(t.warn=wxe),typeof t.error!="function"&&(t.error=Nxe),t}var GW=`octokit-core.js/${DD} ${EB()}`,yB=class{static VERSION=DD;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 cW.Collection,s={baseUrl:RD.request.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} ${GW}`:GW,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=RD.request.defaults(s),this.graphql=vW(this.request).defaults(s),this.log=Sxe(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=_W(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 kD="17.0.0";var Txe={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}"],createOrgV 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 Hp(i));return s.searchPaths.push(...HD(s.patterns)),s})}static stat(e,r,s){return JD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield mh.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 mh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield mh.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 m2e=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 Tz(t,e){return m2e(this,void 0,void 0,function*(){return yield NB.create(t,e)})}var Bj=fe(Cj(),1);import*as GB from"crypto";import*as Bh from"fs";import*as Pu from"path";import*as yj from"util";var zp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(zp||(zp={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var Xs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Xs||(Xs={}));var _B=2,HB=5e3,hR=5e3,gR=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Ij=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Kp="cache.tar",fR="manifest.txt",clt=10*Math.pow(1024,3);var Ih=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())})},wke=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)}},Nke="1.0";function jp(){return Ih(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=Pu.join(s,"actions","temp")}let r=Pu.join(e,GB.randomUUID());return yield AB(r),r})}function go(t){return Bh.statSync(t).size}function pR(t){return Ih(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 Tz(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=wke(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=Pu.relative(a,n).replace(new RegExp(`\\${Pu.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 Xp(t){return Ih(this,void 0,void 0,function*(){return yj.promisify(Bh.unlink)(t)})}function Qj(t){return Ih(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),U(`Checking ${e} ${r.join(" ")}`);try{yield lB(`${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 Zp(){return Ih(this,void 0,void 0,function*(){let t=yield Qj("zstd",["--quiet"]),e=Bj.clean(t);return U(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}function KA(t){return t===Xr.Gzip?zp.Gzip:zp.Zstd}function bj(){return Ih(this,void 0,void 0,function*(){return Bh.existsSync(gR)?gR:(yield Qj("tar")).toLowerCase().includes("gnu tar")?xa("tar"):""})}function mR(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function yh(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Nke),GB.createHash("sha256").update(s.join("|")).digest("hex")}function wj(){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 $h from"fs";import{URL as p8e}from"url";var fo=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Ske}from"node:os";import Tke from"node:util";import xke from"node:process";function Nj(t,...e){xke.stderr.write(`${Tke.format(t,...e)}${Ske}`)}import $p from"node:process";function qB(t){return $p.env[t]}var Sj=typeof $p.versions.deno=="string"&&$p.versions.deno.length>0,Tj=typeof $p.versions.bun=="string"&&$p.versions.bun.length>0,VB=!0;var xj=qB("DEBUG"),Rj,ER=[],CR=[],JB=[];xj&&IR(xj);var kj=Object.assign(t=>Fj(t),{enable:IR,enabled:BR,disable:Dke,log:Nj});function IR(t){Rj=t,ER=[],CR=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?CR.push(r.substring(1)):ER.push(r);for(let r of JB)r.enabled=BR(r.namespace)}function BR(t){if(t.endsWith("*"))return!0;for(let e of CR)if(Dj(t,e))return!1;for(let e of ER)if(Dj(t,e))return!0;return!1}function Dj(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 Dke(){let t=Rj||"";return IR(""),t}function Fj(t){let e=Object.assign(r,{enabled:BR(t),destroy:Rke,log:kj.log,namespace:t,extend:kke});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return JB.push(e),e}function Rke(){let t=JB.indexOf(this);return t>=0?(JB.splice(t,1),!0):!1}function kke(t){let e=Fj(`${this.namespace}:${t}`);return e.log=this.log,e}var Qh=kj;var yR=["verbose","info","warning","error"],Mj={verbose:400,info:300,warning:200,error:100};function Uj(t,e){e.log=(...r)=>{t.log(...r)}}function Lj(t){return yR.includes(t)}function Fke(t){let e=new Set,r=qB(t.logLevelEnvVarName),s,n=Qh(t.namespace);n.log=(...u)=>{Qh.log(...u)};function i(u){if(u&&!Lj(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${yR.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Qh.enable(l.join(","))}r&&(Lj(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${yR.join(", ")}.`));function o(u){return!!(s&&Mj[u.level]<=Mj[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Uj(u,d),o(d)){let h=Qh.disable();Qh.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return Uj(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 vj=Fke({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Mke=vj.logger;function em(t){return vj.createClientLogger(t)}function WB(t){return t.toLowerCase()}function Uke(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Lke(t){for(let e of t.values())yield[e.name,e.value]}var QR=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(WB(e),{name:e,value:Uke(r)})}get(e){return this._headersMap.get(WB(e))?.value}has(e){return this._headersMap.has(WB(e))}delete(e){this Line truncated
${_ke.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function bh(t){return t instanceof Zr?!0:_u(t)&&t.name==="RestError"}function fs(t,e){return Buffer.from(t,e)}import SR from"node:http";import TR from"node:https";import _j from"node:zlib";import{Transform as Hke}from"node:stream";var ps=em("ts-http-runtime");var Gke={};function tm(t){return t&&typeof t.pipe=="function"}function Hj(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 Gj(t){return t&&typeof t.byteLength=="number"}var jB=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}},xR=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new fo("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 xi;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=Jke(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new jB(f);p.on("error",I=>{ps.error("Error in upload progress",I)}),tm(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=Yke(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?qke(c,u):c;let h=e.onDownloadProgress;if(h){let f=new jB(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 Vke(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();tm(a)&&(c=Hj(a));let u=Promise.resolve();tm(A)&&(u=Hj(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?SR.request(a,A):TR.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 fo("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&tm(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):Gj(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?SR.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new SR.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return TR.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 TR.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Yke(t){let e=Zs();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 qke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=_j.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=_j.createInflate();return t.pipe(s),s}return t}function Vke(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 Jke(t){return t?Buffer.isBuffer(t)?t.length:tm(t)?null:Gj(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Yj(){return new xR}function XB(){return Yj()}var DR="logPolicy";function ZB(t={}){let e=t.logger??ps.info,r=new xi({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:DR,async sendRequ Line truncated
`;return e}function hMe(t){return t instanceof Uint8Array?t.byteLength:nm(t)?t.size===-1?void 0:t.size:void 0}function gMe(t){let e=0;for(let r of t){let s=hMe(r);if(s===void 0)return;e+=s}return e}async function fMe(t,e,r){let s=[fs(`--${r}`,"utf-8"),...e.flatMap(i=>[fs(`\r
`,"utf-8"),fs(dMe(i.headers),"utf-8"),fs(`\r
`,"utf-8"),i.body,fs(`\r
--${r}`,"utf-8")]),fs(`--\r
\r
`,"utf-8")],n=gMe(s);n&&t.headers.set("Content-Length",n),t.body=await UX(s)}var im="multipartPolicy",pMe=70,mMe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function EMe(t){if(t.length>pMe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!mMe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Iy(){return{name:im,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?EMe(r):r=lMe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await fMe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function By(){return KB()}import{EOL as IMe}from"node:os";import BMe from"node:util";import*as LX from"node:process";function vX(t,...e){LX.stderr.write(`${BMe.format(t,...e)}${IMe}`)}var PX=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,OX,zR=[],KR=[],yy=[];PX&&jR(PX);var _X=Object.assign(t=>HX(t),{enable:jR,enabled:XR,disable:yMe,log:vX});function jR(t){OX=t,zR=[],KR=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?KR.push(new RegExp(`^${s.substr(1)}$`)):zR.push(new RegExp(`^${s}$`));for(let s of yy)s.enabled=XR(s.namespace)}function XR(t){if(t.endsWith("*"))return!0;for(let e of KR)if(e.test(t))return!1;for(let e of zR)if(e.test(t))return!0;return!1}function yMe(){let t=OX||"";return jR(""),t}function HX(t){let e=Object.assign(r,{enabled:XR(t),destroy:QMe,log:_X.log,namespace:t,extend:bMe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return yy.push(e),e}function QMe(){let t=yy.indexOf(this);return t>=0?(yy.splice(t,1),!0):!1}function bMe(t){let e=HX(`${this.namespace}:${t}`);return e.log=this.log,e}var Dh=_X;var YX=new Set,Qy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,ZR,$R=Dh("azure");$R.log=(...t)=>{Dh.log(...t)};var ek=["verbose","info","warning","error"];Qy&&(JX(Qy)?wMe(Qy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Qy}'; logging is not enabled. Acceptable values: ${ek.join(", ")}.`));function wMe(t){if(t&&!JX(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${ek.join(",")}`);ZR=t;let e=[];for(let r of YX)VX(r)&&e.push(r.namespace);Dh.enable(e.join(","))}var GX={verbose:400,info:300,warning:200,error:100};function Ln(t){let e=$R.extend(t);return qX($R,e),{error:by(e,"error"),warning:by(e,"warning"),info:by(e,"info"),verbose:by(e,"verbose")}}function qX(t,e){e.log=(...r)=>{t.log(...r)}}function by(t,e){let r=Object.assign(t.extend(e),{level:e});if(qX(t,r),VX(r)){let s=Dh.disable();Dh.enable(s+","+r.namespace)}return YX.add(r),r}function VX(t){return!!(ZR&&GX[t.level]<=GX[ZR])}function JX(t){return ek.includes(t)}var mo=Ln("core-rest-pipeline");function tk(t={}){return ZB({logger:mo.info,...t})}var rk=Ey;function sk(t={}){return Cy(t)}import nk from"node:os";import ZA from"node:process";function WX(){return"User-Agent"}async function zX(t){if(ZA&&ZA.versions){let e=`${nk.type()} ${nk.release()}; ${nk.arch()}`;ZA.versions.bun?t.set("Bun",`${ZA.versions.bun} (${e})`):ZA.versions.deno?t.set("Deno",`${ZA.versions.deno} (${e})`):ZA.versions.node&&t.set("Node",`${ZA.versions.node} (${e})`)}}var wy="1.24.0";function kMe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function KX(){return WX()}async function Ny(t){let e=new Map;e.set("core-rest-pipeline",wy),await zX(e);let r=kMe(e);return t?`${t} ${r}`:r}var jX=KX(),XX="userAgentPolicy";function ik(t={}){let e=Ny(t.userAgentPrefix);return{name:XX,async sendRequest(r,s){return r.headers.has(jX)||r.headers.set(jX,await e),s(r)}}}var ZX=Symbol("rawContent");function ok(t){return typeof t[ZX]=="function"}function $X(t){return ok(t)?t[ZX]():t}var Sy=im;function ak(){let t=Iy();return{name:Sy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)ok(s.body)&&(s.body=$X(s.body));return t.sendRequest(e,r)}}}var Ak=py;function ck(){return my()}function uk(t={}){return ty(t)}function lk(){return ry()}var om=class extends Error{constructor(e){super(e),this.name="AbortError"}};function dk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new om(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 HMe="The delay was aborted.";function Rh(t,e){le 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--),!lLe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Vt("InvalidTag",l,$r(t,i))}let c=oLe(t,i);if(c===!1)return Vt("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=OZ(u,e);if(d===!0)s=!0;else return Vt(d.err.code,d.err.msg,$r(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Vt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",$r(t,o));if(r.length===0)return Vt("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 Vt("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 Vt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",$r(t,i));else{let l=OZ(u,e);if(l!==!0)return Vt(l.err.code,l.err.msg,$r(t,i-u.length+l.err.line));if(n===!0)return Vt("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=PZ(t,i);continue}else if(t[i+1]==="?"){if(i=vZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=cLe(t,i);if(l==-1)return Vt("InvalidChar","char '&' is not expected.",$r(t,i));i=l}else if(n===!0&&!LZ(t[i]))return Vt("InvalidXml","Extra text at the end",$r(t,i));t[i]==="<"&&i--}}else{if(LZ(t[i]))continue;return Vt("InvalidChar","char '"+t[i]+"' is not expected.",$r(t,i))}if(s){if(r.length==1)return Vt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",$r(t,r[0].tagStartPos));if(r.length>0)return Vt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Vt("InvalidXml","Start tag expected.",1);return!0}function LZ(t){return t===" "||t===" "||t===`
`||t==="\r"}function vZ(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 Vt("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 PZ(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 nLe='"',iLe="'";function oLe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===nLe||t[e]===iLe)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 aLe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function OZ(t,e){let r=Py(t,aLe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Vt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Em(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Vt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Em(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Vt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Em(r[n]));let i=r[n][2];if(!uLe(i))return Vt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Em(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Vt("InvalidAttr","Attribute '"+i+"' is repeated.",Em(r[n]))}return!0}function ALe(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 cLe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,ALe(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 Vt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function uLe(t){return Lk(t)}function lLe(t){return Lk(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 Em(t){return t.startIndex+t[1].length}var _Z={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"},HZ={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"},GZ={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 Bm(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=Oh(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=qk(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=Oh(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=Oh(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}=qk(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=vLe(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(b=LLe(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}=qk(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 YLe(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 qLe(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 VLe(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 JLe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function WLe(t,e,r=">"){Line truncated
`;function tve(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Xk(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function g$(t,e,r,s,n){return!r.sanitizeName||Wu(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function jk(t,e){let r="";e.format&&(r=eve);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 rn(a)):a instanceof rn&&s.push(a)}let n=tve(t,e),i=new Io;return f$(t,e,r,i,s,n)}function f$(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=Kk(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=Xk(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:g$(u,!1,e,s,i),h=rve(c[":@"],e);s.push(d,h);let f=nve(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=Kk(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=Ky(b);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],T=zy(b);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=h$(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=h$(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=p$(c[u],e):C=f$(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 rve(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]=sc(t[n]),s=!0}return s?r:null}function p$(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=Xk(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=sve(n[":@"],e),a=p$(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function sve(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)}="${sc(n)}"`}return r}function Xk(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 h$(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:g$(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=Kk(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${sc(c)}"`}return i}function nve(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 Kk(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 Zk(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 ive={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({},ive,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 rn(r)):r instanceof rn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ove(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 $k(t,e,r,s,n){return!r.sanitizeName||Wu(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}ys.prototype.build=function(t){if(this.options.preserveOrder)return jk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Io,r=ove(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:$k(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=$k(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=$k(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+'="'+sc(e)+'"'};function ave(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]=sc(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]=sc(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.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)=>oQ(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=sQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=nQ(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 ju{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Nm(e,r,this)}computeHMACSHA256(e){return Cve("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Xu=class extends Error{constructor(e){super(e),this.name="AbortError"}};var ir=Ln("storage-common");var vn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(vn||(vn={}));var ic={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ive=new Xu("The operation was aborted."),Sm=class extends Bo{retryOptions;constructor(e,r,s=ic){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:ic.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):ic.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:ic.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:ic.maxRetryDelayInMs):ic.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:ic.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:ic.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=rQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=nc(n.url,va.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(ir.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(ir.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 ir.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 ir.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 ir.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return ir.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')?(ir.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 vn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case vn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return ir.info(`RetryPolicy: Delay for ${n}ms`),iQ(n,s,Ive)}};var Tm=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Sm(e,r,this.retryOptions)}};var Bve="storageBrowserPolicy";function B$(){return{name:Bve,async sendRequest(t,e){return je||((t.method==="GET"||t.method==="HEAD")&&(t.url=nc(t.url,va.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(me.COOKIE),t.headers.delete(me.CONTENT_LENGTH)),e(t)}}}var yve="StorageCorrectContentLengthPolicy";function y$(){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:yve,async sendRequest(e,r){return t(e),r(e)}}}var Qve="storageRetryPolicy",Hh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bve=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],wve=new Xu("The operation was aborted.");function Q$(t={}){let e=t.retryPolicyType??Hh.retryPolicyType,r=t.maxTries??Hh.maxTries,s=t.retryDelayInMs??Hh.retryDelayInMs,n=t.maxRetryDelayInMs??Hh.maxRetryDelayInMs,i=t.secondaryHost??Hh.secondaryHost,o=t.tryTimeoutInMs??Hh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return ir.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of bve)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().inclu Line truncated
`)+`
`+s(i)+n(i),a=Nve("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)=>oQ(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=sQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=nQ(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:Sve,async sendRequest(i,o){return e(i),o(i)}}}var Tve="storageRequestFailureDetailsParserPolicy";function b$(){return{name:Tve,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 xve}from"node:crypto";var aQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return xve("sha256",this.key).update(e,"utf8").digest("base64")}};var AQ="12.31.0",cQ="2026-02-06";var uQ="https://storage.azure.com/.default",Pa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Di="",iF="*",Dve=1*1024*1024;var Rve=4*Dve;var w$="AES256",N$="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",S$=["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"],T$=["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"],x$="BlobUsesCustomerSpecifiedEncryption",D$="BlobDoesNotUseCustomerSpecifiedEncryption",R$=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Oa(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 xm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Jt(t,e={}){t||(t=new Bt);let r=new xm([],e);return r._credential=t,r}function kve(t){let e=[Fve,k$,Mve,Uve,Lve,vve,Ove];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Pve(n));return{wrappedPolicies:Mk(r),afterRetry:s}}}}function oF(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?Uk(e):sF(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${AQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=lm({...r,loggingOptions:{additionalAllowedHeaderNames:S$,additionalAllowedQueryParameters:T$,logger:Xy.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:jy,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:tF,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Ak}),n.addPolicy(y$()),n.addPolicy(Q$(r.retryOptions),{phase:"Retry"}),n.addPolicy(b$()),n.addPolicy(B$());let a=kve(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=aF(t);en(A)?n.addPolicy(Mh({credential:A,scopes:r.audience??uQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Ui(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 F3e(t,e){if(t=ol(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=Po.parse(t.permissions.toString()).toString():n=Oo.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",il(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Mi(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 Ui(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 M3e(t,e){if(t=ol(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=Po.parse(t.permissions.toString()).toString():n=Oo.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",il(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Mi(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 Ui(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 U3e(t,e){if(t=ol(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=Po.parse(t.permissions.toString()).toString():n=Oo.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",il(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?Mi(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 Ui(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 L3e(t,e){if(t=ol(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=Po.parse(t.permissions.toString()).toString():n=Oo.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",il(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?Mi(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 Ui(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 v3e(t,e){if(t=ol(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=Po.parse(t.permissions.toString()).toString():n=Oo.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",il(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?Mi(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 Ui(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 P3e(t,e){if(t=ol(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=Po.parse(t.permissions.toString()).toString():n=Oo.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",il(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?Mi(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 Ui(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 il(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ol(t){let e=t.version?t.version:cQ;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 Hm=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=kh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Di||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Di||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-acquireLease",r,async s=>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!==Di||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Di||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=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!==Di||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Di||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-releaseLease",e,async r=>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!==Di||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Di||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Xh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var cl=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"}};cl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Km=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var a8e=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())})},ML=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);de(`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 Vee(t,e,r){return a8e(this,void 0,void 0,function*(){var s;let n=new Ja(t),i=n.getBlockBlobClient(),o=new ML((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 nb(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw bt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Wee from"buffer";import*as _o from"fs";import*as zee from"stream";import*as Kee from"util";var ib=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 ob(t){return t?t>=200&&t<300:!1}function A8e(t){return t?t>=500:!0}function c8e(t){return t?[xt.BadGateway,xt.ServiceUnavailable,xt.GatewayTimeout].includes(t):!1}function u8e(t){return ib(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Jee(t,e,r){return ib(this,arguments,void 0,function*(s,n,i,o=_B,a=HB,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),!A8e(d)))return l;if(d&&(h=c8e(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 u8e(a),u++}throw Error(`${s} failed: ${c}`)})}function jm(t,e){return ib(this,arguments,void 0,function*(r,s,n=_B,i=HB){return yield Jee(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof uo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Zh(t,e){return ib(this,arguments,void 0,function*(r,s,n=_B,i=HB){return yield Jee(r,s,o=>o.message.statusCode,n,i)})}var Gn=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 l8e(t,e){return Gn(this,void 0,void 0,function*(){yield Kee.promisify(zee.pipeline)(t.message,e)})}var ab=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);de(`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 PL(t,e,r){return bs(this,void 0,void 0,function*(){let s=new p8e(t),n=$ee(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Xee(t,e,n):n.concurrentBlobDownloads?yield jee(t,e,n):yield Ab(t,e):yield Ab(t,e)})}function ote(t,e,r){return bs(this,void 0,void 0,function*(){let s=vL(),n=yh(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield jm("reserveCache",()=>bs(this,void 0,void 0,function*(){return s.postJson(Zm("caches"),i)}))})}function nte(t,e){return`bytes ${t}-${e}/*`}function I8e(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: ${nte(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":nte(s,n)},o=yield Zh(`uploadChunk (start: ${s}, end: ${n})`,()=>bs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!ob(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function B8e(t,e,r,s){return bs(this,void 0,void 0,function*(){let n=go(r),i=Zm(`caches/${e.toString()}`),o=$h.openSync(r,"r"),a=UL(s),A=mR("uploadConcurrency",a.uploadConcurrency),c=mR("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 I8e(t,i,()=>$h.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{$h.closeSync(o)}})}function y8e(t,e,r){return bs(this,void 0,void 0,function*(){let s={size:r};return yield jm("commitCache",()=>bs(this,void 0,void 0,function*(){return t.postJson(Zm(`caches/${e.toString()}`),s)}))})}function OL(t,e,r,s){return bs(this,void 0,void 0,function*(){if(UL(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Vee(r,e,s)}else{let i=vL();U("Upload cache"),yield B8e(i,t,e,s),U("Commiting cache");let o=go(e);de(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield y8e(i,t,o);if(!ob(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);de("Cache saved successfully")}})}var ere=fe(Wte(),1),Kt=fe(zt(),1),on=fe(zt(),1),gl=fe(zt(),1),fl=fe(zt(),1),pl=fe(zt(),1);var Fv=fe(zt(),1),Mv=fe(zt(),1),Xte=fe(zt(),1),Zte=fe(zt(),1),$te=fe(zt(),1);var Dv=fe(zt(),1),Rv=fe(zt(),1),zte=fe(zt(),1),Kte=fe(zt(),1),jte=fe(zt(),1),kv=class extends jte.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,Kte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,zte.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?Rv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Dv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Dv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Rv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Kb=new kv;var Uv=class extends $te.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:()=>Kb}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Zte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Xte.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(Kb.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?Mv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Fv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)Kb.internalBinaryWrite(e.scope[i],r.tag(2,Fv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Mv.UnknownFieldHandler.onWrit Line truncated
`));let s=yield jv(r,"create");yield Xv(s,t)})}var pg=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())})},Pi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},fg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Zb=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function nre(t){if(!t||t.length===0)throw new Pi("Path Validation Error: At least one directory or file path is required")}function eP(t){if(t.length>512)throw new Pi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Pi(`Key Validation Error: ${t} cannot contain commas.`)}function ire(){return Xm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function ore(t,e,r,s){return pg(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=Xm();return U(`Cache service version: ${c}`),nre(n),c==="v2"?yield OOe(n,i,o,a,A):yield POe(n,i,o,a,A)})}function POe(t,e,r,s){return pg(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 Pi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)eP(d);let u=yield Zp(),l="";try{let d=yield ite(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return de("Lookup only - skipping download"),d.cacheKey;l=g0.join(yield jp(),KA(u)),U(`Archive Path: ${l}`),yield PL(d.archiveLocation,l,a),YA()&&(yield h0(l,u));let h=go(l);return de(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Zv(l,u),de("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Pi.name)throw d;h instanceof uo&&typeof h.statusCode=="number"&&h.statusCode>=500?Ru(`Failed to restore: ${d.message}`):bt(`Failed to restore: ${d.message}`)}finally{try{yield Xp(l)}catch(d){U(`Failed to delete archive: ${d}`)}}})}function OOe(t,e,r,s){return pg(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 Pi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)eP(l);let u="";try{let l=Kv(),d=yield Zp(),h={key:i,restoreKeys:o,version:yh(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?de(`Cache hit for restore-key: ${f.matchedKey}`):de(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return de("Lookup only - skipping download"),f.matchedKey;u=g0.join(yield jp(),KA(d)),U(`Archive path: ${u}`),U(`Starting download of archive to: ${u}`),yield PL(f.signedDownloadUrl,u,a);let I=go(u);return de(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),YA()&&(yield h0(u,d)),yield Zv(u,d),de("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Pi.name)throw l;d instanceof uo&&typeof d.statusCode=="number"&&d.statusCode>=500?Ru(`Failed to restore: ${l.message}`):bt(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Xp(u))}catch(l){U(`Failed to delete archive: ${l}`)}}})}function are(t,e,r){return pg(this,arguments,void 0,function*(s,n,i,o=!1){let a=Xm();return U(`Cache service version: ${a}`),nre(s),eP(n),a==="v2"?yield HOe(s,n,i,o):yield _Oe(s,n,i,o)})}function _Oe(t,e,r){return pg(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield Zp(),h=-1,f=yield pR(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 jp(),I=g0.join(p,KA(d));U(`Archive Path: ${I}`);try{yield $v(p,f,d),YA()&&(yield h0(I,d));let m=10*1024*1024*1024,C=go(I);if(U(`File Size: ${C}`),C>m&&!LL())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 ote(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 fg(`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 OL(h,I,"",i)}catch(m){let C=m;if(C.name===Pi.name)throw m;C.name Line truncated
<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=bOe(),n=BOe(s);try{await n.rest.issues.createComment({...e.repo,issue_number:r,body:A})}catch(i){if(i instanceof Error&&i.name==="HttpError")BA(XZt(i));else throw i}}function XZt(t){let e=`Failed to generate PR comment.
${t}`,n=lre(),i=ez(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")bt(zOe(o));else throw o}}function zOe(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 ZZt(t){return`${e$t()}
${r$t(t)}`}function $Zt(){let t=pOe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function e$t(){let t=QOe();return t.length===0?"":`
`:e}function KOe(t){return`${XOe()}
${$Oe(t)}`}function jOe(){let t=ure();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function XOe(){let t=cre();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${S$()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${nP()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${t$t(e)}</li>`).join("")}
${t.map(e=>`<li>${ZOe(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function t$t(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function r$t(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function ZOe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function $Oe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -456,33 +262,47 @@ This job uses deprecated functionality from the <code>${S$()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>A$t(e)).join("")}
</tr>${t.map(e=>t_e(e)).join("")}
</table>
`}function A$t(t){return`
`}function e_e(t){return t.some(e=>e.buildFailed)}function t_e(t){return`
<tr>
<td>${g8e(t.rootProjectName,30)}</td>
<td>${g8e(t.requestedTasks,60)}</td>
<td>${dre(t.rootProjectName,30)}</td>
<td>${dre(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${s$t(t)}</td>
<td>${n$t(t)}</td>
</tr>`}function s$t(t){return t.buildFailed?":x:":":white_check_mark:"}function n$t(t){return t.buildScanFailed?lee({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?lee({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):lee({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function lee({text:t,alt:e,color:r,logo:A,targetUrl:s}){let o=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${A?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${o}</a>`}function g8e(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var h8e=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 A=r.split(this.hostDelimiter);return{hostname:A[0],key:A[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 E8e from"fs";import*as f8e from"path";var DP=class{constructor(e){this.gradleHomes=e.uniqueGradleHomes()}async stopAllDaemons(){let e=[],r=["--stop"];for(let A of this.gradleHomes){let s=f8e.resolve(A,"bin","gradle");if(!E8e.existsSync(s)){BA(`Gradle executable not found at ${s}. Could not stop Gradle daemons.`);continue}me(`Stopping Gradle daemons for ${A}`),e.push(gu(s,r,{ignoreReturnCode:!0}))}await Promise.all(e)}};import*as p8e from"util";var d$t=zt(Q8e(),1);import*as gee from"fs";var WUr=p8e.promisify(gee.readdir);var E$t={_useHtmlParser2:!1};function fm(t,e){if(!t)return e??E$t;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 Lee={};nc(Lee,{contains:()=>HP,extract:()=>cer,html:()=>ner,merge:()=>q8e,parseHTML:()=>oer,root:()=>aer,text:()=>HC,xml:()=>ier});var Wh={};nc(Wh,{DocumentPosition:()=>_a,append:()=>H$t,appendChild:()=>O$t,compareDocumentPosition:()=>O8e,existsOne:()=>_8e,filter:()=>pm,find:()=>vP,findAll:()=>J$t,findOne:()=>_P,findOneChild:()=>q$t,getAttributeValue:()=>L$t,getChildren:()=>Qm,getElementById:()=>j$t,getElements:()=>z$t,getElementsByClassName:()=>K$t,getElementsByTagName:()=>OC,getElementsByTagType:()=>X$t,getFeed:()=>Mee,getInnerHTML:()=>M$t,getName:()=>_$t,getOuterHTML:()=>L8e,getParent:()=>v8e,getSiblings:()=>xee,getText:()=>UP,hasAttrib:()=>v$t,hasChildren:()=>pr,innerText:()=>mR,isCDATA:()=>Cm,isComment:()=>PC,isDocument:()=>va,isTag:()=>we,isText:()=>Ti,nextElementSibling:()=>MP,prepend:()=>Y$t,prependChild:()=>G$t,prevElementSibling:()=>LP,removeElement:()=>Mg,removeSubsets:()=>Z$t,replaceElement:()=>P$t,testElement:()=>W$t,textContent:()=>Ug,uniqueSort:()=>Jh});var La={};nc(La,{CDATA:()=>pee,Comment:()=>Cee,Directive:()=>fee,Doctype:()=>mee,ElementType:()=>_t,Root:()=>hee,Script:()=>Iee,Style:()=>Bee,Tag:()=>Qee,Text:()=>Eee,isTag:()=>dee});var _t;(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"})(_t||(_t={}));function dee(t){return t.type===_t.Tag||t.type===_t.Script||t.type===_t.Style}var hee=_t.Root,Eee=_t.Text,fee=_t.Directive,Cee=_t.Comment,Iee=_t.Script,Bee=_t.Style,Qee=_t.Tag,pee=_t.CDATA,mee=_t.Doctype;var NP=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 Im(this,e)}},IR=class extends NP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},il=class extends IR{constructor(){super(...arguments),this.type=_t.Text}get nodeType(){return 3}},LC=class extends IR{constructor(){super(...arguments),this.type=_t.Comment}get nodeType(){return 8}},vC=class extends IR{constructor(e,r){super(r),this.name=e,this.type=_t.Directive}get nodeType(){return 1}},BR=class extends NP{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}},QR=class extends BR{constructor(){super(...arguments),this.type=_t.CDATA}get nodeType(){return 4}},yo=class extends BR{constructor(){super(...arguments),this.type=_t.Root}get nodeType(){return 9}},_C=class e Line truncated
`:UP(t.children):Cm(t)?UP(t.children):Ti(t)?t.data:""}function Ug(t){return Array.isArray(t)?t.map(Ug).join(""):pr(t)&&!PC(t)?Ug(t.children):Ti(t)?t.data:""}function mR(t){return Array.isArray(t)?t.map(mR).join(""):pr(t)&&(t.type===_t.Tag||Cm(t))?mR(t.children):Ti(t)?t.data:""}function Qm(t){return pr(t)?t.children:[]}function v8e(t){return t.parent||null}function xee(t){let e=v8e(t);if(e!=null)return Qm(e);let r=[t],{prev:A,next:s}=t;for(;A!=null;)r.unshift(A),{prev:A}=A;for(;s!=null;)r.push(s),{next:s}=s;return r}function L$t(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function v$t(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function _$t(t){return t.name}function MP(t){let{next:e}=t;for(;e!==null&&!we(e);)({next:e}=e);return e}function LP(t){let{prev:e}=t;for(;e!==null&&!we(e);)({prev:e}=e);return e}function Mg(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 P$t(t,e){let r=e.prev=t.prev;r&&(r.next=e);let A=e.next=t.next;A&&(A.prev=e);let s=e.parent=t.parent;if(s){let n=s.children;n[n.lastIndexOf(t)]=e,t.parent=null}}function O$t(t,e){if(Mg(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 H$t(t,e){Mg(e);let{parent:r}=t,A=t.next;if(e.next=A,e.prev=t,t.next=e,e.parent=r,A){if(A.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(A),0,e)}}else r&&r.children.push(e)}function G$t(t,e){if(Mg(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 Y$t(t,e){Mg(e);let{parent:r}=t;if(r){let A=r.children;A.splice(A.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function pm(t,e,r=!0,A=1/0){return vP(t,Array.isArray(e)?e:[e],r,A)}function vP(t,e,r,A){let s=[],n=[Array.isArray(e)?e:[e]],i=[0];for(;;){if(i[0]>=n[0].length){if(i.length===1)return s;n.shift(),i.shift();continue}let o=n[0][i[0]++];if(t(o)&&(s.push(o),--A<=0))return s;r&&pr(o)&&o.children.length>0&&(i.unshift(0),n.unshift(o.children))}}function q$t(t,e){return e.find(t)}function _P(t,e,r=!0){let A=Array.isArray(e)?e:[e];for(let s=0;s<A.length;s++){let n=A[s];if(we(n)&&t(n))return n;if(r&&pr(n)&&n.children.length>0){let i=_P(t,n.children,!0);if(i)return i}}return null}function _8e(t,e){return(Array.isArray(e)?e:[e]).some(r=>we(r)&&t(r)||pr(r)&&_8e(t,r.children))}function J$t(t,e){let r=[],A=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=A[0].length){if(A.length===1)return r;A.shift(),s.shift();continue}let n=A[0][s[0]++];we(n)&&t(n)&&r.push(n),pr(n)&&n.children.length>0&&(s.unshift(0),A.unshift(n.children))}}var PP={tag_name(t){return typeof t=="function"?e=>we(e)&&t(e.name):t==="*"?we:e=>we(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=>Ti(e)&&t(e.data):e=>Ti(e)&&e.data===t}};function Uee(t,e){return typeof e=="function"?r=>we(r)&&e(r.attribs[t]):r=>we(r)&&r.attribs[t]===e}function V$t(t,e){return r=>t(r)||e(r)}function P8e(t){let e=Object.keys(t).map(r=>{let A=t[r];return Object.prototype.hasOwnProperty.call(PP,r)?PP[r](A):Uee(r,A)});return e.length===0?null:e.reduce(V$t)}function W$t(t,e){let r=P8e(t);return r?r(e):!0}function z$t(t,e,r,A=1/0){let s=P8e(t);return s?pm(s,e,r,A):[]}function j$t(t,e,r=!0){return Array.isArray(e)||(e=[e]),_P(Uee("id",t),e,r)}function OC(t,e,r=!0,A=1/0){return pm(PP.tag_name(t),e,r,A)}function K$t(t,e,r=!0,A=1/0){return pm(Uee("class",t),e,r,A)}function X$t(t,e,r=!0,A=1/0){return pm(PP.tag_type(t),e,r,A)}function Z$t(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 A=r.parent;A;A=A.parent)if(t.includes(A)){t.splice(e,1);break}}return t}var _a;(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"})(_a||(_a={}));function O8e(t,e){let r=[],A=[];if(t===e)return 0;let s=pr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=pr(e)?e:e.parent;s;)A.unshift(s),s=s.parent;let n=Math.min(r.length,A.length),i=0;for(;i<n&&r[i]===A[i];)i++;if(i===0)return _a.DISCONNECTED;let o=r[i-1],a=o.children,c=r[i],u=A[i];return a.indexOf(c)>a.indexOf(u)?o===e?_a.FOLLOWING|_a.CONTAINED_BY:_a.FOLLOWING:o===t?_a.PRECEDING|_a.CONTAINS:_a.PRECEDING}function Jh(t){return t=t.filter((e,r,A)=>!A.includes(e,r+1)),t.sort((e,r)=>{let A=O8e(e,r);return A&_a.PRECEDING?-1:A&_a.FOLLOWING?1:0}),t}function Mee(t){let e=OP(Aer,t);return e?e.name==="feed"?$$t(e):eer(e):null}function $$t(t){var e;let r=t.children,A={type:"atom",items:OC("entry",r).map(i=>{var o;let{children:a}=i,c={media:H8e(a)};ki(c,"id","id",a),ki(c,"title","title",a);let u=(o=OP("link",a))===null||o===void 0?void 0:o.attribs.href;u&&(c.link=u);let l=Vh("summary",a)||Vh(" Line truncated
<td align='center'>${r_e(t)}</td>
<td>${s_e(t)}</td>
</tr>`}function r_e(t){return t.buildFailed?":x:":":white_check_mark:"}function s_e(t){return t.buildScanFailed?aP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?aP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):aP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function aP({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 dre(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var gre=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Jn from"fs";import*as Ka from"path";function fre(){return mre().map(e=>{let r=Jn.readFileSync(e,"utf8"),s=JSON.parse(r);return o_e(e,s),s})}function pre(){mre().forEach(A_e)}function mre(){let t=Ka.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Jn.existsSync(t)?Jn.readdirSync(t).map(e=>Ka.resolve(t,e)).filter(e=>Ka.extname(e)===".json"&&!a_e(e)):[]}function o_e(t,e){let r=Ka.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Jn.existsSync(r))return;let s=Ka.resolve(r,Ka.basename(t));if(Jn.existsSync(s)){let n=Jn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function a_e(t){let e=`${t}.processed`;return Jn.existsSync(e)}function A_e(t){let e=`${t}.processed`;Jn.writeFileSync(e,"")}import*as jre from"fs";import*as Xre from"path";import{pathToFileURL as w6e}from"url";import*as Cg from"fs";function AP(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 o1 from"path";import*as mg from"path";import El from"assert";var gc=process.platform==="win32";function Xa(t){if(t=ja(t),gc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=mg.dirname(t);return gc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ja(e)),e}function s1(t,e){if(El(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),El(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),p0(e))return e;if(gc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return El(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(Oi(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return El(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return El(p0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||gc&&t.endsWith("\\")||(t+=mg.sep),t+e}function p0(t){return El(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Oi(t),gc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function m0(t){return El(t,"isRooted parameter 'itemPath' must not be empty"),t=Oi(t),gc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Oi(t){return t=t||"",gc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ja(t){return t?(t=Oi(t),!t.endsWith(mg.sep)||t===mg.sep||gc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var _i;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(_i||(_i={}));var Ere=process.platform==="win32";function uP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Ere?s.sea 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 y0(i));return s.searchPaths.push(...uP(s.patterns)),s})}static stat(e,r,s){return mP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Cg.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 Cg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Cg.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 EP from"crypto";import*as a1 from"fs";import*as Hre from"stream";import*as Gre from"util";import*as Yre from"path";var C6e=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())})},I6e=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 qre(t,e){return C6e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?de:U,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=EP.createHash("sha256"),f=0;try{for(var p=!0,I=I6e(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}${Yre.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(a1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=EP.createHash("sha256");yield Gre.promisify(Hre.pipeline)(a1.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 Vre=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 B6e(t,e){return Vre(this,void 0,void 0,function*(){return yield i1.create(t,e)})}function Jre(t){return Vre(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield B6e(e,{followSymbolicLinks:i});return qre(o,r,n)})}import*as IP from"path";var Wre="BASIC_CACHE_PRIMARY_KEY",CP="BASIC_CACHE_RESTORED_KEY",Q6e="setup-java",zre=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],A1=class{async restore(e,r){let s=Kre(e),n=await b6e();Fp(Wre,n);try{let i=await ore(s,n);i?(Fp(CP,i),de(`Basic caching restored from cache key: ${i}`)):de("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){bt(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){if(s.readOnly){let a=qA(CP);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let n=qA(Wre);if(qA(CP)===n)return de(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),`Basic caching restored entry with key \`${n}\`. Save was skipped.`;let o=Kre(e);try{return await are(o,n),de(`Basic caching saved entry with key: ${n}`),`Basic caching saved entry with key \`${n}\`.`}catch(a){return bt(`Basic caching failed to save entry with key \`${n}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Kre(t){return[IP.join(t,"caches"),IP.join(t,"wrapper")]}async function b6e(){let t=await Jre(zre.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${zre}], make sure you have checked out the target repository`);return`${Q6e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var N6e=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,S6e="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.",T6e=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,x6e="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: 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.",D6e=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,yP=class{async restore(e,r){}async save(e,r,s){return N6e}},c1=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,s){return`${await this.delegate.save(e,r,s)}
${this.summary}`}};async function Zre(t){if(t.isCacheDisabled())return BP("Cache is disabled: will not restore state from previous builds."),new yP;if(t.getCacheProvider()==="basic")return BP(x6e),new c1(new A1,D6e);BP(S6e);let e=await R6e();return t.isCacheLicenseAccepted()?e:new c1(e,T6e)}async function R6e(){let t=k6e();return await import(w6e(t).href)}function k6e(){let t=import.meta.dirname,e=Xre.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(jre.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function BP(t){console.info(t)}import*as sse from"util";var O6e=fe(rse(),1);import*as QP from"fs";var R2t=sse.promisify(QP.readdir);var H6e={_useHtmlParser2:!1};function Ig(t,e){if(!t)return e??H6e;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 WP={};pi(WP,{contains:()=>b1,extract:()=>U5e,html:()=>R5e,merge:()=>Nse,parseHTML:()=>F5e,root:()=>M5e,text:()=>Tl,xml:()=>k5e});var Bc={};pi(Bc,{DocumentPosition:()=>jn,append:()=>h5e,appendChild:()=>d5e,compareDocumentPosition:()=>yse,existsOne:()=>Ise,filter:()=>wg,find:()=>I1,findAll:()=>m5e,findOne:()=>B1,findOneChild:()=>p5e,getAttributeValue:()=>A5e,getChildren:()=>bg,getElementById:()=>B5e,getElements:()=>I5e,getElementsByClassName:()=>y5e,getElementsByTagName:()=>Sl,getElementsByTagType:()=>Q5e,getFeed:()=>JP,getInnerHTML:()=>a5e,getName:()=>u5e,getOuterHTML:()=>Ese,getParent:()=>Cse,getSiblings:()=>qP,getText:()=>m1,hasAttrib:()=>c5e,hasChildren:()=>st,innerText:()=>T0,isCDATA:()=>Bg,isComment:()=>Nl,isDocument:()=>Kn,isTag:()=>Z,isText:()=>Ts,nextElementSibling:()=>E1,prepend:()=>f5e,prependChild:()=>g5e,prevElementSibling:()=>C1,removeElement:()=>tA,removeSubsets:()=>b5e,replaceElement:()=>l5e,testElement:()=>C5e,textContent:()=>eA,uniqueSort:()=>Cc});var zn={};pi(zn,{CDATA:()=>kP,Comment:()=>TP,Directive:()=>SP,Doctype:()=>FP,ElementType:()=>Le,Root:()=>wP,Script:()=>xP,Style:()=>DP,Tag:()=>RP,Text:()=>NP,isTag:()=>bP});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 bP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var wP=Le.Root,NP=Le.Text,SP=Le.Directive,TP=Le.Comment,xP=Le.Script,DP=Le.Style,RP=Le.Tag,kP=Le.CDATA,FP=Le.Doctype;var u1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return yg(this,e)}},b0=class extends u1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Jo=class extends b0{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},Ql=class extends b0{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},bl=class extends b0{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},w0=class extends u1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},N0=class extends w0{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},An=class extends w0{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},wl=class extends w0{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]}})}};function Z(t){return bP(t)}function Bg(t){return t.type===Le.CDATA}function Ts(t){return t.type===Le.Text}function Nl(t){return t.type===Le.Comment}function l1(t){return t.type===Le.Directive}function Kn(t){return t.type===Le.Root}function st(t){return Object.prototype.hasOwnProperty.call(t,"children")}function yg(t,e=!1){let r;if(Ts(t))r=new Jo(t.data);else if(Nl(t))r=new Ql(t.data);else if(Z(t)){let s=e?MP(t.children):[],n=new wl(t.name,{...t.attribs},s);s.forEach(i=>i.parent=n),t.namespace!=null&&(n.namespace=t.namespace),t["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=n}else if(Bg(t)){let s=e?MP(t.children):[],n=new N0(s);s.forEach(i=>i.parent=n),r=n}else if(K Line truncated
`:m1(t.children):Bg(t)?m1(t.children):Ts(t)?t.data:""}function eA(t){return Array.isArray(t)?t.map(eA).join(""):st(t)&&!Nl(t)?eA(t.children):Ts(t)?t.data:""}function T0(t){return Array.isArray(t)?t.map(T0).join(""):st(t)&&(t.type===Le.Tag||Bg(t))?T0(t.children):Ts(t)?t.data:""}function bg(t){return st(t)?t.children:[]}function Cse(t){return t.parent||null}function qP(t){let e=Cse(t);if(e!=null)return bg(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 A5e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function c5e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function u5e(t){return t.name}function E1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function C1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function tA(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 l5e(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 d5e(t,e){if(tA(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 h5e(t,e){tA(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 g5e(t,e){if(tA(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 f5e(t,e){tA(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 wg(t,e,r=!0,s=1/0){return I1(t,Array.isArray(e)?e:[e],r,s)}function I1(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function p5e(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 Ise(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&Ise(t,r.children))}function m5e(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 y1={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 E5e(t,e){return r=>t(r)||e(r)}function Bse(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(y1,r)?y1[r](s):VP(r,s)});return e.length===0?null:e.reduce(E5e)}function C5e(t,e){let r=Bse(t);return r?r(e):!0}function I5e(t,e,r,s=1/0){let n=Bse(t);return n?wg(n,e,r,s):[]}function B5e(t,e,r=!0){return Array.isArray(e)||(e=[e]),B1(VP("id",t),e,r)}function Sl(t,e,r=!0,s=1/0){return wg(y1.tag_name(t),e,r,s)}function y5e(t,e,r=!0,s=1/0){return wg(VP("class",t),e,r,s)}function Q5e(t,e,r=!0,s=1/0){return wg(y1.tag_type(t),e,r,s)}function b5e(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 yse(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 Cc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=yse(e,r);return s&jn.PRECEDING?-1:s&jn.FOLLOWING?1:0}),t}function JP(t){let e=Q1(x5e,t);return e?e.name==="feed"?w5e(e):N5e(e):null}function w5e(t){var e;let r=t.children,s={type:"atom",items:Sl("entry",r).map(o=>{var a;let{children:A}=o,c={media:Qse(A)};xs(c,"id","id",A),xs(c,"title","title",A);let u=(a=Q1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=Ic("summary",A)||Ic("content",A);l&&( 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 Ha=zt(zh(),1);var Zee={};function $ee(t,e){return t===Ha.default.falseFunc?Ha.default.falseFunc:r=>e.isTag(r)&&t(r)}function ete(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let A=r.indexOf(t);return A<0||A===r.length-1?[]:r.slice(A+1).filter(e.isTag)}function Xee(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 Kee=(t,e,r,A,s)=>{let n=s(e,Xee(r),A);return n===Ha.default.trueFunc?t:n===Ha.default.falseFunc?Ha.default.falseFunc:i=>n(i)&&t(i)},$P={is:Kee,matches:Kee,where:Kee,not(t,e,r,A,s){let n=s(e,Xee(r),A);return n===Ha.default.falseFunc?t:n===Ha.default.trueFunc?Ha.default.falseFunc:i=>!n(i)&&t(i)},has(t,e,r,A,s){let{adapter:n}=r,i=Xee(r);i.relativeSelector=!0;let o=e.some(u=>u.some(SR))?[Zee]:void 0,a=s(e,i,o);if(a===Ha.default.falseFunc)return Ha.default.falseFunc;let c=$ee(a,n);if(o&&a!==Ha.default.trueFunc){let{shouldTestNextSiblings:u=!1}=a;return l=>{if(!t(l))return!1;o[0]=l;let g=n.getChildren(l),d=u?[...g,...ete(l,n)]:g;return n.existsOne(c,d)}}return u=>t(u)&&n.existsOne(c,n.getChildren(u))}};function S3e(t,e,r,A,s){var n;let{name:i,data:o}=e;if(Array.isArray(o)){if(!(i in $P))throw new Error(`Unknown pseudo-class :${i}(${o})`);return $P[i](t,o,r,A,s)}let a=(n=r.pseudos)===null||n===void 0?void 0:n[i],c=typeof a=="string"?a:ZP[i];if(typeof c=="string"){if(o!=null)throw new Error(`Pseudo ${i} doesn't have any arguments`);let u=(0,R3e.parse)(c);return $P.is(t,u,r,A,s)}if(typeof a=="function")return jee(a,i,o,1),u=>a(u,o)&&t(u);if(i in Tm)return Tm[i](t,o,r,A);if(i in kR){let u=kR[i];return jee(u,i,o,2),l=>u(l,r,o)&&t(l)}throw new Error(`Unknown pseudo-class :${i}`)}var Ga=zt(Rm(),1);function tte(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function T3e(t,e,r,A,s){let{adapter:n,equals:i}=r;switch(e.type){case Ga.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ga.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ga.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()),b3e[e.action](t,e,r)}case Ga.SelectorType.Pseudo:return S3e(t,e,r,A,s);case Ga.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!r.xmlMode||r.lowerCaseTags)&&(o=o.toLowerCase()),function(c){return n.getName(c)===o&&t(c)}}case Ga.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=tte(u,n);)if(t(u))return!0;return!1};let o=new WeakSet;return function(c){let u=c;for(;u=tte(u,n);)if(!o.has(u)){if(n.isTag(u)&&t(u))return!0;o.add(u)}return!1}}case"_flexibleDescendant":return function(a){let c=a;do if(t(c))return!0;while(c=tte(c,n));return!1};case Ga.SelectorType.Parent:return function(a){return n.getChildren(a).some(c=>n.isTag(c)&&t(c))};case Ga.SelectorType.Child:return function(a){let c=n.getParent(a);return c!=null&&n.isTag(c)&&t(c)};case Ga.SelectorType.Sibling:return function(a){let c=n.getSiblings(a);for(let u=0;u<c.length;u++){let l=c[u];if(i(a,l))break;if(n.isTag(l)&&t(l))return!0}return!1};case Ga.SelectorType.Adjacent:return n.prevElementSibling?function(a){let c=n.prevElementSibling(a);return c!=null&&t(c)}:function(a){let c=n.getSiblings(a),u;for(let l=0;l<c.length;l++){let g=c[l];if(i(a,g))break;n.isTag(g)&&(u=g)}return!!u&&t(u)};case Ga.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function k3e(t,e,r){let A=eO(t,e,r);return $ee(A,e.adapter)}function eO(t,e,r){let A=typeof t=="string"?(0,Oc.parse)(t):t;return tO(A,e,r)}function F3e(t){return t.type===Oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(F3e)))}var zer={type:Oc.SelectorType.Descendant},jer={type:"_flexibleDescendant"},Ker={type:Oc.SelectorType.Pseudo,name:"scope",data:null};function Xer(t,{adapter:e},r){let A=!!r?.every(s=>{let n=e.isTag(s)&&e.getParent(s);return s===Z Line truncated
`)})):{name:s,value:n.replace(z3e,`\r
`)}}).toArray()}var Cte={};nc(Cte,{extract:()=>grr});function lrr(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 grr(t){let e={};for(let r in t){let A=t[r],s=Array.isArray(A),{selector:n,value:i}=lrr(s?A[0]:A),o=typeof i=="function"?i:typeof i=="string"?a=>this._make(a).prop(i):a=>this._make(a).extract(i);if(s)e[r]=this._findBySelector(n,Number.POSITIVE_INFINITY).map((a,c)=>o(c,r,e)).get();else{let a=this._findBySelector(n,1);e[r]=a.length>0?o(a[0],r,e):void 0}}return e}var Xh=class{constructor(e,r,A){if(this.length=0,this.options=A,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Xh.prototype.cheerio="[cheerio object]";Xh.prototype.splice=Array.prototype.splice;Xh.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Xh.prototype,qee,dte,hte,Ete,fte,Cte);function j3e(t,e){return function r(A,s,n=!0){if(A==null)throw new Error("cheerio.load() expects a string");let i=fm(s),o=t(A,i,n,null);class a extends Xh{_make(l,g){let d=c(l,g);return d.prevObject=this,d}_parse(l,g,d,E){return t(l,g,d,E)}_render(l){return e(l,this.options)}}function c(u,l,g=o,d){if(u&&Pa(u))return u;let E=fm(d,i),C=typeof g=="string"?[t(g,E,!1,null)]:"length"in g?g:[g],Q=Pa(C)?C:new a(C,null,E);if(Q._root=Q,!u)return new a(void 0,Q,E);let I=typeof u=="string"&&yR(u)?t(u,E,!1,null).children:drr(u)?[u]:Array.isArray(u)?u:void 0,p=new a(I,Q,E);if(I)return p;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,k=l?typeof l=="string"?yR(l)?new a([t(l,E,!1,null)],Q,E):(w=`${l} ${w}`,Q):Pa(l)?l:new a(Array.isArray(l)?l:[l],Q,E):Q;return k?k.find(w):p}return Object.assign(c,Lee,{load:r,_root:o,_options:i,fn:a.prototype,prototype:a.prototype}),c}}function drr(t){return!!t.name||t.type===La.Root||t.type===La.Text||t.type===La.Comment}var hrr=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]),vr="\uFFFD",R;(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"})(R||(R={}));var Yn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function oO(t){return t>=55296&&t<=57343}function K3e(t){return t>=56320&&t<=57343}function X3e(t,e){return(t-55296)*1024+9216+e}function aO(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function cO(t){return t>=64976&&t<=65007||hrr.has(t)}var q;(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-pub 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 $n=fe(yc(),1);var c3={};function u3(t,e){return t===$n.default.falseFunc?$n.default.falseFunc:r=>e.isTag(r)&&t(r)}function l3(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 A3(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 a3=(t,e,r,s,n)=>{let i=n(e,A3(r),s);return i===$n.default.trueFunc?t:i===$n.default.falseFunc?$n.default.falseFunc:o=>i(o)&&t(o)},L1={is:a3,matches:a3,where:a3,not(t,e,r,s,n){let i=n(e,A3(r),s);return i===$n.default.falseFunc?t:i===$n.default.trueFunc?$n.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=A3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(U0))?[c3]:void 0,A=n(e,o,a);if(A===$n.default.falseFunc)return $n.default.falseFunc;let c=u3(A,i);if(a&&A!==$n.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,...l3(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function lne(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in L1))throw new Error(`Unknown pseudo-class :${o}(${a})`);return L1[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:U1[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,une.parse)(c);return L1.is(t,u,r,s,n)}if(typeof A=="function")return o3(A,o,a,1),u=>A(u,a)&&t(u);if(o in Mg)return Mg[o](t,a,r,s);if(o in v0){let u=v0[o];return o3(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ei=fe(kg(),1);function d3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function dne(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ei.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ei.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ei.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()),one[e.action](t,e,r)}case ei.SelectorType.Pseudo:return lne(t,e,r,s,n);case ei.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 ei.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=d3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=d3(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=d3(c,i));return!1};case ei.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ei.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ei.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 ei.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 ei.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function hne(t,e,r){let s=v1(t,e,r);return u3(s,e.adapter)}function v1(t,e,r){let s=typeof t=="string"?(0,Gi.parse)(t):t;return P1(s,e,r)}function gne(t){return t.type===Gi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(gne)))}var IHe={type:Gi.SelectorType.Descendant},BHe={type:"_flexibleDescendant"},yHe={type:Gi.SelectorType.Pseudo,name:"scope",data:null};function QHe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===c3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(Dne,`\r
`)}}).toArray()}var T3={};pi(T3,{extract:()=>P9e});function v9e(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 P9e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=v9e(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 wc=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}}};wc.prototype.cheerio="[cheerio object]";wc.prototype.splice=Array.prototype.splice;wc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(wc.prototype,t3,b3,w3,N3,S3,T3);function Rne(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Ig(n),a=t(s,o,i,null);class A extends wc{_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&&Xn(u))return u;let f=Ig(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Xn(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&x0(u)?t(u,f,!1,null).children:O9e(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"?x0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):Xn(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return T?T.find(b):C}return Object.assign(c,WP,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function O9e(t){return!!t.name||t.type===zn.Root||t.type===zn.Text||t.type===zn.Comment}var _9e=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 q1(t){return t>=55296&&t<=57343}function kne(t){return t>=56320&&t<=57343}function Fne(t,e){return(t-55296)*1024+9216+e}function V1(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function J1(t){return t>=64976&&t<=65007||_9e.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
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,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", "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", "handler", "rState", "err", "i", "processHeader", "headeLine 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": ";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
}
+175 -332
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var fMt=Object.create;var LP=Object.defineProperty;var pMt=Object.getOwnPropertyDescriptor;var mMt=Object.getOwnPropertyNames;var EMt=Object.getPrototypeOf,CMt=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 IMt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xu=(t,e)=>{for(var r in e)LP(t,r,{get:e[r],enumerable:!0})},lTe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of mMt(e))!CMt.call(t,s)&&s!==r&&LP(t,s,{get:()=>e[s],enumerable:!(n=pMt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?fMt(EMt(t)):{},lTe(e||!t||!t.__esModule?LP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>lTe(LP({},"__esModule",{value:!0}),t);var ETe=f($y=>{"use strict";var Syn=B("net"),NMt=B("tls"),$K=B("http"),fTe=B("https"),SMt=B("events"),Ryn=B("assert"),RMt=B("util");$y.httpOverHttp=DMt;$y.httpsOverHttp=xMt;$y.httpOverHttps=TMt;$y.httpsOverHttps=kMt;function DMt(t){var e=new Pf(t);return e.request=$K.request,e}function xMt(t){var e=new Pf(t);return e.request=$K.request,e.createSocket=pTe,e.defaultPort=443,e}function TMt(t){var e=new Pf(t);return e.request=fTe.request,e}function kMt(t){var e=new Pf(t);return e.request=fTe.request,e.createSocket=pTe,e.defaultPort=443,e}function Pf(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$K.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=mTe(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)})}RMt.inherits(Pf,SMt.EventEmitter);Pf.prototype.addRequest=function(e,r,n,s){var i=this,o=eX({request:e},i.options,mTe(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)}})};Pf.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=eX({},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")),Gm("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){Gm("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Gm("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Gm("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Gm(`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)}};Pf.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 pTe(t,e){var r=this;Pf.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=eX({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=NMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function mTe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function eX(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 Gm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Gm=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)}:Gm=function(){};$y.debug=Gm});var qP=f((xyn,CTe)=>{CTe.exports=ETe()});var ps=f((Tyn,ITe)=>{ITe.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 tn=f((kyn,YTe)=>{"use strict";var BTe=Symbol.for("undici.error.UND_ERR"),Ts=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[BTe]===!0}[BTe]=!0},QTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tX=class extends Ts{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[QTe]===!0}[QTe]=!0},yTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rX=class extends Ts{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[yTe]===!0}[yTe]=!0},bTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nX=class extends Ts{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},wTe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sX=class extends Ts{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[wTe]===!0}[wTe]=!0},NTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iX=class extends Ts{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 zLt(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(kLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function jLt(){return"allowed"}function KLt(){return"success"}function XLt(){return"success"}function ZLt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function $Lt(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&&zX(t.origin)&&!zX(PT(t))&&(e=null);break;case"same-origin":c_(t,PT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function cb(t,e){return t}function eUt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:cb(t.domainLookupStartTime,r),domainLookupEndTime:cb(t.domainLookupEndTime,r),connectionStartTime:cb(t.connectionStartTime,r),connectionEndTime:cb(t.connectionEndTime,r),secureConnectionStartTime:cb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function tUt(t){return cb(ULt.now(),t)}function rUt(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 ike(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function nUt(t){return{referrerPolicy:t.referrerPolicy}}function sUt(t){let e=t.referrerPolicy;oB(e);let r=null;if(t.referrer==="client"){let a=$1e();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=WX(r),s=WX(r,!0);n.toString().length>4096&&(n=s);let i=c_(t,n),o=UT(n)&&!UT(t.url);switch(e){case"origin":return s??WX(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=PT(t);return c_(n,a)?n:UT(n)&&!UT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function WX(t,e){return oB(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 UT(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 iUt(t,e){if(A_===void 0)return!0;let r=oke(e);if(r==="no metadata"||r.length===0)return!0;let n=aUt(r),s=AUt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=A_.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)),cUt(A,a))return!0}return!1}var oUt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oke(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=oUt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();tke.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function aUt(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 AUt(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 cUt(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 uUt(t){}function c_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function lUt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function dUt(t){return t.controller.state==="aborted"}function hUt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function gUt(t){return OLt[t.toLowerCase()]??t}function fUt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return oB(typeof e=="string"),e}var pUt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ake(t,e,r=0,n=1){class s{ Line truncated
`);function VUt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function WUt(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 zUt(t,e){l_(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&&d_(t,YUt,i)||i.position===t.length-4&&d_(t,JUt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=jUt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",VUt(u)||(u=""),h=new qUt([d],c,{type:u})):h=UUt(Buffer.from(d)),l_(Cke(A)),l_(typeof h=="string"&&Cke(h)||_Ut(h)),s.push(OUt(A,h,c))}}function jUt(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=lb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=tZ(o,!0,!0,a=>a===9||a===32),!PUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,lb(a=>a===32||a===9,t,e),LUt(o)){case"content-disposition":{if(r=n=null,!d_(t,GUt,e)||(e.position+=17,r=Qke(t,e),r===null))return"failure";if(d_(t,Bke,e)){let a=e.position+Bke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Qke(t,e),n===null))return"failure"}break}case"content-type":{let a=lb(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),s=Ike(a);break}case"content-transfer-encoding":{let a=lb(A=>A!==10&&A!==13,t,e);a=tZ(a,!1,!0,A=>A===9||A===32),i=Ike(a);break}default:lb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Qke(t,e){l_(t[e.position-1]===34);let r=lb(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 lb(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function tZ(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 d_(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}yke.exports={multipartFormDataParser:zUt,validateBoundary:WUt}});var gb=f((nbn,Mke)=>{"use strict";var HT=mr(),{ReadableStreamFrom:KUt,isBlobLike:wke,isReadableStreamLike:XUt,readableStreamClose:ZUt,createDeferredPromise:$Ut,fullyReadBody:ePt,extractMimeType:tPt,utf8DecodeBytes:Rke}=Qc(),{FormData:Nke}=OT(),{kState:hb}=Ym(),{webidl:rPt}=Oo(),{Blob:nPt}=B("node:buffer"),rZ=B("node:assert"),{isErrored:Dke,isDisturbed:sPt}=B("node:stream"),{isArrayBuffer:iPt}=B("node:util/types"),{serializeAMimeType:oPt}=yA(),{multipartFormDataParser:aPt}=bke(),nZ;try{let t=B("node:crypto");nZ=e=>t.randomInt(0,e)}catch{nZ=t=>Math.floor(Math.random(t))}var h_=new TextEncoder;function APt(){}var xke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Tke;xke&&(Tke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sPt(e)&&!Dke(e)&&e.cancel("Response object has been garbage collected").catch(APt)}));function kke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:wke(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?h_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>ZUt(A))},start(){},type:"bytes"}),rZ(XUt(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(iPt(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(HT.isFormDataLike(t)){let A=`----formdata-undici-0${`${nZ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=h_.encode(c+`; name="${u(l(C))}"\r
var d4e=Object.create;var $M=Object.defineProperty;var h4e=Object.getOwnPropertyDescriptor;var f4e=Object.getOwnPropertyNames;var g4e=Object.getPrototypeOf,p4e=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),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},m4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of f4e(e))!p4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=h4e(e,s))||n.enumerable});return t};var Ae=(t,e,r)=>(r=t!=null?d4e(g4e(t)):{},m4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var KZ=E(Lp=>{"use strict";var mWt=b("net"),b4e=b("tls"),tL=b("http"),JZ=b("https"),Q4e=b("events"),EWt=b("assert"),w4e=b("util");Lp.httpOverHttp=S4e;Lp.httpsOverHttp=N4e;Lp.httpOverHttps=T4e;Lp.httpsOverHttps=x4e;function S4e(t){var e=new cu(t);return e.request=tL.request,e}function N4e(t){var e=new cu(t);return e.request=tL.request,e.createSocket=zZ,e.defaultPort=443,e}function T4e(t){var e=new cu(t);return e.request=JZ.request,e}function x4e(t){var e=new cu(t);return e.request=JZ.request,e.createSocket=zZ,e.defaultPort=443,e}function cu(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=jZ(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)})}w4e.inherits(cu,Q4e.EventEmitter);cu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,jZ(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)}})};cu.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")),Tl("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){Tl("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){Tl("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 Tl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Tl(`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)}};cu.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 zZ(t,e){var r=this;cu.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=b4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function jZ(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 Tl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Tl=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)}:Tl=function(){};Lp.debug=Tl});var nL=E((IWt,$Z)=>{$Z.exports=KZ()});var yr=E((yWt,XZ)=>{XZ.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((BWt,bee)=>{"use strict";var ZZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[ZZ]===!0}[ZZ]=!0},eee=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[eee]===!0}[eee]=!0},tee=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[tee]===!0}[tee]=!0},ree=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[ree]===!0}[ree]=!0},nee=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[nee]===!0}[nee]=!0},see=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. 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(x5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function W5e(){return"allowed"}function J5e(){return"success"}function z5e(){return"success"}function j5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function K5e(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(SI(t))&&(e=null);break;case"same-origin":fS(t,SI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Jp(t,e){return t}function $5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Jp(t.domainLookupStartTime,r),domainLookupEndTime:Jp(t.domainLookupEndTime,r),connectionStartTime:Jp(t.connectionStartTime,r),connectionEndTime:Jp(t.connectionEndTime,r),secureConnectionStartTime:Jp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function X5e(t){return Jp(_5e.now(),t)}function Z5e(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 Lte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function eHe(t){return{referrerPolicy:t.referrerPolicy}}function tHe(t){let e=t.referrerPolicy;Gh(e);let r=null;if(t.referrer==="client"){let a=Dte();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=fS(t,n),o=wI(n)&&!wI(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=SI(t);return fS(n,a)?n:wI(n)&&!wI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return Gh(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 wI(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 rHe(t,e){if(hS===void 0)return!0;let r=Ute(e);if(r==="no metadata"||r.length===0)return!0;let n=sHe(r),s=iHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=hS.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)),oHe(c,a))return!0}return!1}var nHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ute(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=nHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();vte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function sHe(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 iHe(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 oHe(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 aHe(t){}function fS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function cHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function AHe(t){return t.controller.state==="aborted"}function uHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function lHe(t){return L5e[t.toLowerCase()]??t}function dHe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Gh(typeof e=="string"),e}var hHe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Pte(t,e,r=0,n=1){class s{ Line truncated
`);function qHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function YHe(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 VHe(t,e){pS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&mS(t,HHe,i)||i.position===t.length-4&&mS(t,GHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=WHe(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",qHe(u)||(u=""),h=new PHe([d],A,{type:u})):h=_He(Buffer.from(d)),pS($te(c)),pS(typeof h=="string"&&$te(h)||MHe(h)),s.push(LHe(c,h,A))}}function WHe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=jp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!FHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jp(a=>a===32||a===9,t,e),vHe(o)){case"content-disposition":{if(r=n=null,!mS(t,OHe,e)||(e.position+=17,r=ere(t,e),r===null))return"failure";if(mS(t,Zte,e)){let a=e.position+Zte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ere(t,e),n===null))return"failure"}break}case"content-type":{let a=jp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=Xte(a);break}case"content-transfer-encoding":{let a=jp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=Xte(a);break}default:jp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ere(t,e){pS(t[e.position-1]===34);let r=jp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function jp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function 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 mS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}tre.exports={multipartFormDataParser:VHe,validateBoundary:YHe}});var Xp=E((JWt,dre)=>{"use strict";var xI=dt(),{ReadableStreamFrom:JHe,isBlobLike:nre,isReadableStreamLike:zHe,readableStreamClose:jHe,createDeferredPromise:KHe,fullyReadBody:$He,extractMimeType:XHe,utf8DecodeBytes:ore}=xi(),{FormData:sre}=TI(),{kState:$p}=xl(),{webidl:ZHe}=jn(),{Blob:e9e}=b("node:buffer"),aU=b("node:assert"),{isErrored:are,isDisturbed:t9e}=b("node:stream"),{isArrayBuffer:r9e}=b("node:util/types"),{serializeAMimeType:n9e}=Ks(),{multipartFormDataParser:s9e}=rre(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var ES=new TextEncoder;function i9e(){}var cre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Are;cre&&(Are=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!t9e(e)&&!are(e)&&e.cancel("Response object has been garbage collected").catch(i9e)}));function ure(t,e=!1){let r=null;t instanceof ReadableStream?r=t:nre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?ES.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>jHe(c))},start(){},type:"bytes"}),aU(zHe(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(r9e(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(xI.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=ES.encode(A+`; name="${u(l(I))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=h_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=ES.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=h_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(wke(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(HT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:KUt(t)}if((typeof s=="string"||HT.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(!Dke(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 cPt(t,e=!1){return t instanceof ReadableStream&&(rZ(!HT.isDisturbed(t),"The body has already been consumed."),rZ(!t.locked,"The stream is locked.")),kke(t,e)}function uPt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function lPt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function dPt(t){return{blob(){return db(this,r=>{let n=Ske(this);return n===null?n="":n&&(n=oPt(n)),new nPt([r],{type:n})},t)},arrayBuffer(){return db(this,r=>new Uint8Array(r).buffer,t)},text(){return db(this,Rke,t)},json(){return db(this,gPt,t)},formData(){return db(this,r=>{let n=Ske(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aPt(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Nke;return i[hb]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Nke;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 db(this,r=>new Uint8Array(r),t)}}}function hPt(t){Object.assign(t.prototype,dPt(t))}async function db(t,e,r){if(rPt.brandCheck(t,r),Fke(t))throw new TypeError("Body is unusable: Body has already been read");lPt(t[hb]);let n=$Ut(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[hb].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await ePt(t[hb].body,i,s),n.promise)}function Fke(t){let e=t[hb].body;return e!=null&&(e.stream.locked||HT.isDisturbed(e.stream))}function gPt(t){return JSON.parse(Rke(t))}function Ske(t){let e=t[hb].headersList,r=tPt(e);return r==="failure"?null:r}Mke.exports={extractBody:kke,safelyExtractBody:cPt,cloneBody:uPt,mixinBody:hPt,streamRegistry:Tke,hasFinalizationRegistry:xke,bodyUnusable:Fke}});var Jke=f((sbn,Yke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:vke}=tb(),sZ=_X(),{RequestContentLengthMismatchError:aB,ResponseContentLengthMismatchError:fPt,RequestAbortedError:Hke,HeadersTimeoutError:pPt,HeadersOverflowError:mPt,SocketError:C_,InformationalError:fb,BodyTimeoutError:EPt,HTTPParserError:CPt,ResponseExceededMaxSizeError:IPt}=tn(),{kUrl:qke,kReset:bA,kClient:AZ,kParser:Js,kBlocking:YT,kRunning:sa,kPending:BPt,kSize:Lke,kWriting:Vm,kQueue:Ad,kNoRef:qT,kKeepAliveDefaultTimeout:QPt,kHostHeader:yPt,kPendingIdx:bPt,kRunningIdx:ku,kError:Fu,kPipelining:m_,kSocket:pb,kKeepAliveTimeoutValue:I_,kMaxHeadersSize:iZ,kKeepAliveMaxTimeout:wPt,kKeepAliveTimeoutThreshold:NPt,kHeadersTimeout:SPt,kBodyTimeout:RPt,kStrictContentLength:cZ,kMaxRequests:Uke,kCounter:DPt,kMaxResponseSize:xPt,kOnError:TPt,kResume:Jm,kHTTPContext:Gke}=ps(),Qh=T1e(),kPt=Buffer.alloc(0),g_=Buffer[Symbol.species],f_=Yt.addListener,FPt=Yt.removeAllListeners,oZ;async function MPt(){let t=process.env.JEST_WORKER_ID?qX():void 0,e;try{e=await WebAssembly.compile(M1e())}catch{e=await WebAssembly.compile(t||qX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onStatus(new g_(yh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(Hi.ptr===r),Hi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onHeaderField(new g_(yh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onHeaderValue(new g_(yh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(Hi.ptr===r),Hi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(Hi.ptr===r);let i=n-bh+yh.byteOffset;return Hi.onBody(new g_(yh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(Hi.ptr===r),Hi.onMessageComplete()||0)}})}var aZ=null,uZ=MPt();uZ.catch();var Hi=null,yh=null,p_=0,bh=null,vPt=0,GT=1,mb=2|GT,E_=4|GT,lZ=8|vPt,dZ=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[iZ])&&e[iZ]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Qh.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
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=ES.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(nre(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(xI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:JHe(t)}if((typeof s=="string"||xI.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(!are(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 o9e(t,e=!1){return t instanceof ReadableStream&&(aU(!xI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),ure(t,e)}function a9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function c9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function A9e(t){return{blob(){return Kp(this,r=>{let n=ire(this);return n===null?n="":n&&(n=n9e(n)),new e9e([r],{type:n})},t)},arrayBuffer(){return Kp(this,r=>new Uint8Array(r).buffer,t)},text(){return Kp(this,ore,t)},json(){return Kp(this,l9e,t)},formData(){return Kp(this,r=>{let n=ire(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=s9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new sre;return i[$p]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new sre;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Kp(this,r=>new Uint8Array(r),t)}}}function u9e(t){Object.assign(t.prototype,A9e(t))}async function Kp(t,e,r){if(ZHe.brandCheck(t,r),lre(t))throw new TypeError("Body is unusable: Body has already been read");c9e(t[$p]);let n=KHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[$p].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await $He(t[$p].body,i,s),n.promise)}function lre(t){let e=t[$p].body;return e!=null&&(e.stream.locked||xI.isDisturbed(e.stream))}function l9e(t){return JSON.parse(ore(t))}function ire(t){let e=t[$p].headersList,r=XHe(e);return r==="failure"?null:r}dre.exports={extractBody:ure,safelyExtractBody:o9e,cloneBody:a9e,mixinBody:u9e,streamRegistry:Are,hasFinalizationRegistry:cre,bodyUnusable:lre}});var bre=E((zWt,Bre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:hre}=Pp(),AU=YL(),{RequestContentLengthMismatchError:qh,ResponseContentLengthMismatchError:d9e,RequestAbortedError:Cre,HeadersTimeoutError:h9e,HeadersOverflowError:f9e,SocketError:QS,InformationalError:Zp,BodyTimeoutError:g9e,HTTPParserError:p9e,ResponseExceededMaxSizeError:m9e}=Lt(),{kUrl:Ire,kReset:$s,kClient:hU,kParser:Mr,kBlocking:kI,kRunning:cs,kPending:E9e,kSize:fre,kWriting:Dl,kQueue:xa,kNoRef:RI,kKeepAliveDefaultTimeout:C9e,kHostHeader:I9e,kPendingIdx:y9e,kRunningIdx:Qo,kError:wo,kPipelining:BS,kSocket:em,kKeepAliveTimeoutValue:wS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:B9e,kKeepAliveTimeoutThreshold:b9e,kHeadersTimeout:Q9e,kBodyTimeout:w9e,kStrictContentLength:fU,kMaxRequests:gre,kCounter:S9e,kMaxResponseSize:N9e,kOnError:T9e,kResume:Rl,kHTTPContext:yre}=yr(),wc=Ate(),x9e=Buffer.alloc(0),CS=Buffer[Symbol.species],IS=Xe.addListener,R9e=Xe.removeAllListeners,lU;async function D9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(dte())}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 CS(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 CS(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 CS(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 CS(Sc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=D9e();gU.catch();var gn=null,Sc=null,yS=0,Nc=null,k9e=0,DI=1,tm=2|DI,bS=4|DI,pU=8|k9e,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[yPt],i?p+=`connection: upgrade\r
`:p+=t[I9e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[m_]&&!h[bA]?p+=`connection: keep-alive\r
`:t[BS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return vke.sendHeaders.hasSubscribers&&vke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?_ke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?_ke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?Oke(g,A.stream(),t,e,h,u,p,l):HPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?OPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?Oke(g,A,t,e,h,u,p,l):xt(!1),!0}function OPt(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===0,"stream body cannot be pipelined");let A=!1,c=new B_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Hke;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[Vm]&&r[sa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.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 _ke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\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 hre.sendHeaders.hasSubscribers&&hre.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?mre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?mre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Ere(f,c.stream(),t,e,h,u,p,l):U9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?L9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?Ere(f,c,t,e,h,u,p,l):Ge(!1),!0}function L9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new SS({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 Cre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[Dl]&&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 mre(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bA]=!0)):i===0?s.write(`${o}content-length: 0\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
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Jm]()}catch(A){t(A)}}async function HPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new aB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Rl]()}catch(c){t(c)}}async function U9e(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 qh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[bA]=!0),r[Jm]()}catch(A){t(A)}}async function Oke(t,e,r,n,s,i,o,a){xt(i!==0||r[sa]===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)=>{xt(A===null),s[Fu]?h(s[Fu]):A=d});s.on("close",c).on("drain",c);let l=new B_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Fu])throw s[Fu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var B_=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[Vm]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Fu])throw r[Fu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[cZ])throw new aB;process.emitWarning(new aB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[Rl]()}catch(c){t(c)}}async function Ere(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 SS({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 SS=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[Dl]=!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 qh;process.emitWarning(new qh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===mb&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vm]=!1,e[Fu])throw e[Fu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\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===tm&&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[Dl]=!1,e[wo])throw e[wo];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[cZ])throw new aB;process.emitWarning(new aB)}e[Js].timeout&&e[Js].timeoutType===mb&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),n[Jm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vm]=!1,e&&(xt(n[sa]<=1,"pipeline should only contain this request"),s(e))}};Yke.exports=LPt});var $ke=f((ibn,Zke)=>{"use strict";var Mu=B("node:assert"),{pipeline:qPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:hZ,RequestAbortedError:Vke,SocketError:JT,InformationalError:gZ}=tn(),{kUrl:Q_,kReset:b_,kClient:Eb,kRunning:w_,kPending:GPt,kQueue:Wm,kPendingIdx:fZ,kRunningIdx:cd,kError:ld,kSocket:oo,kStrictContentLength:YPt,kOnError:pZ,kMaxConcurrentStreams:Xke,kHTTP2Session:ud,kResume:zm,kSize:JPt,kHTTPContext:VPt}=ps(),Yf=Symbol("open streams"),Wke,zke=!1,y_;try{y_=B("node:http2")}catch{y_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:WPt,HTTP2_HEADER_METHOD:zPt,HTTP2_HEADER_PATH:jPt,HTTP2_HEADER_SCHEME:KPt,HTTP2_HEADER_CONTENT_LENGTH:XPt,HTTP2_HEADER_EXPECT:ZPt,HTTP2_HEADER_STATUS:$Pt}}=y_;function e_t(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 t_t(t,e){t[oo]=e,zke||(zke=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=y_.connect(t[Q_],{createConnection:()=>e,peerMaxConcurrentStreams:t[Xke]});r[Yf]=0,r[Eb]=t,r[oo]=e,wr.addListener(r,"error",n_t),wr.addListener(r,"frameError",s_t),wr.addListener(r,"end",i_t),wr.addListener(r,"goaway",o_t),wr.addListener(r,"close",function(){let{[Eb]:s}=this,{[oo]:i}=s,o=this[oo][ld]||this[ld]||new JT("closed",wr.getSocketInfo(i));if(s[ud]=null,s.destroyed){Mu(s[GPt]===0);let a=s[Wm].splice(s[cd]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[ud]=r,e[ud]=r,wr.addListener(e,"error",function(s){Mu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ld]=s,this[Eb][pZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new JT("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ld]||new JT("closed",wr.getSocketInfo(this));t[oo]=null,this[ud]!=null&&this[ud].destroy(s),t[fZ]=t[cd],Mu(t[w_]===0),t.emit("disconnect",t[Q_],[t],s),t[zm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return A_t(t,...s)},resume(){r_t(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function r_t(t){let e=t[oo];e?.destroyed===!1&&(t[JPt]===0&&t[Xke]===0?(e.unref(),t[ud].unref()):(e.ref(),t[ud].ref()))}function n_t(t){Mu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oo][ld]=t,this[Eb][pZ](t)}function s_t(t,e,r){if(r===0){let n=new gZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[oo][ld]=n,this[Eb][pZ](n)}}function i_t(){let t=new JT("other side closed",wr.getSocketInfo(this[oo]));this.destroy(t),wr.destroy(this[oo],t)}function o_t(t){let e=this[ld]||new JT(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[Eb];if(r[oo]=null,r[VPt]=null,this[ud]!=null&&(this[ud].destroy(e),this[ud]=null),wr.destroy(this[oo],e),r[cd]<r[Wm].length){let n=r[Wm][r[cd]];r[Wm][r[cd]++]=null,wr.errorRequest(r,n,e),r[fZ]=r[cd]}Mu(r[w_]===0),r.emit("disconnect",r[Q_],[r],e),r[zm]()}function a_t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function A_t(t,e){let r=t[ud],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[Q_];l[WPt]=i||`${h}${g?`:${g}`:""}`,l[zPt]=n;let p=w=>{e.aborted||e.completed||(w=w||new Vke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[Wm][t[cd]++]=null,t[zm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}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[Yf],t[Wm][t[cd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Yf],t[Wm][t[cd]++]=null}),d.once("close",()=>{r[Yf]-=1,r[Yf]===0&&r.unref()}),!0;l[jPt]=s,l[KPt]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){Wke??=gb().extractBody;let[w,H]=Wke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),a_t(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[YPt])return wr.errorRequest(t,e,new hZ),!1;process.emitWarning(new hZ)}m!=null&&(Mu(u,"no body must not have content length"),l[XPt]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[ZPt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[M_t]=A??3e5,this[F_t]=s??3e5,this[v_t]=I??!0,this[L_t]=w,this[IZ]=z,this[Km]=null,this[H_t]=W>-1?W:-1,this[G_t]=oe??100,this[fi]=null,this[dd]=[],this[Vf]=0,this[hd]=0,this[jT]=he=>QZ(this,he),this[q_t]=he=>l2e(this,he)}get pipelining(){return this[D_]}set pipelining(e){this[D_]=e,this[jT](!0)}get[ZT](){return this[dd].length-this[hd]}get[XT](){return this[hd]-this[Vf]}get[KT](){return this[dd].length-this[Vf]}get[N_t](){return!!this[fi]&&!this[Ib]&&!this[fi].destroyed}get[CZ](){return!!(this[fi]?.busy(null)||this[KT]>=(u2e(this)||1)||this[ZT]>0)}[w_t](e){d2e(this),this.once("connect",e)}[O_t](e,r){let n=e.origin||this[Nh].origin,s=new C_t(n,e,r);return this[dd].push(s),this[cB]||(AB.bodyLength(s.body)==null&&AB.isIterable(s.body)?(this[cB]=1,queueMicrotask(()=>QZ(this))):this[jT](!0)),this[cB]&&this[Xm]!==2&&this[CZ]&&(this[Xm]=2),this[Xm]<2}async[P_t](){return new Promise(e=>{this[KT]?this[Km]=e:e(null)})}async[__t](e){return new Promise(r=>{let n=this[dd].splice(this[hd]);for(let i=0;i<n.length;i++){let o=n[i];AB.errorRequest(this,o,e)}let s=()=>{this[Km]&&(this[Km](),this[Km]=null),r(null)};this[fi]?(this[fi].destroy(e,s),this[fi]=null):queueMicrotask(s),this[jT]()})}},V_t=R_();function l2e(t,e){if(t[XT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jf(t[hd]===t[Vf]);let r=t[dd].splice(t[Vf]);for(let n=0;n<r.length;n++){let s=r[n];AB.errorRequest(t,s,e)}Jf(t[KT]===0)}}async function d2e(t){Jf(!t[Ib]),Jf(!t[fi]);let{host:e,hostname:r,protocol:n,port:s}=t[Nh];if(r[0]==="["){let i=r.indexOf("]");Jf(i!==-1);let o=r.substring(1,i);Jf(c2e.isIP(o)),r=o}t[Ib]=!0,Cb.beforeConnect.hasSubscribers&&Cb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT]});try{let i=await new Promise((o,a)=>{t[WT]({host:e,hostname:r,protocol:n,port:s,servername:t[jm],localAddress:t[zT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){AB.destroy(i.on("error",a2e),new Q_t);return}Jf(i);try{t[fi]=i.alpnProtocol==="h2"?await J_t(t,i):await Y_t(t,i)}catch(o){throw i.destroy().on("error",a2e),o}t[Ib]=!1,i[U_t]=0,i[IZ]=t[IZ],i[b_t]=t,i[R_t]=null,Cb.connected.hasSubscribers&&Cb.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT],socket:i}),t.emit("connect",t[Nh],[t])}catch(i){if(t.destroyed)return;if(t[Ib]=!1,Cb.connectError.hasSubscribers&&Cb.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[fi]?.version,servername:t[jm],localAddress:t[zT]},connector:t[WT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jf(t[XT]===0);t[ZT]>0&&t[dd][t[hd]].servername===t[jm];){let o=t[dd][t[hd]++];AB.errorRequest(t,o,i)}else l2e(t,i);t.emit("connectionError",t[Nh],[t],i)}t[jT]()}function A2e(t){t[Xm]=0,t.emit("drain",t[Nh],[t])}function QZ(t,e){t[cB]!==2&&(t[cB]=2,W_t(t,e),t[cB]=0,t[Vf]>256&&(t[dd].splice(0,t[Vf]),t[hd]-=t[Vf],t[Vf]=0))}function W_t(t,e){for(;;){if(t.destroyed){Jf(t[ZT]===0);return}if(t[Km]&&!t[KT]){t[Km](),t[Km]=null;return}if(t[fi]&&t[fi].resume(),t[CZ])t[Xm]=2;else if(t[Xm]===2){e?(t[Xm]=1,queueMicrotask(()=>A2e(t))):A2e(t);continue}if(t[ZT]===0||t[XT]>=(u2e(t)||1))return;let r=t[dd][t[hd]];if(t[Nh].protocol==="https:"&&t[jm]!==r.servername){if(t[XT]>0)return;t[jm]=r.servername,t[fi]?.destroy(new B_t("servername changed"),()=>{t[fi]=null,QZ(t)})}if(t[Ib])return;if(!t[fi]){d2e(t);return}if(t[fi].destroyed||t[fi].busy(r))return;!r.aborted&&t[fi].write(r)?t[hd]++:t[dd].splice(t[hd],1)}}h2e.exports=BZ});var yZ=f((ubn,g2e)=>{"use strict";var x_=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)}};g2e.exports=class{constructor(){this.head=this.tail=new x_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new x_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var p2e=f((lbn,f2e)=>{var{kFree:z_t,kConnected:j_t,kPending:K_t,kQueued:X_t,kRunning:Z_t,kSize:$_t}=ps(),uB=Symbol("pool"),bZ=class{constructor(e){this[uB]=e}get connected(){return this[uB][j_t]}get free(){return this[uB][z_t]}get pending(){return this[uB][K_t]}get queued(){return this[uB][X_t]}get running(){return this[uB][Z_t]}get size(){return this[uB][$_t]}};f2e.exports=bZ});var xZ=f((dbn,N2e)=>{"use strict";var eOt=ib(),tOt=yZ(),{kConnected:wZ,kSize:m2e,kRunning:E2e,kPending:C2e,kQueued:$T,kBusy:rOt,kFree:nOt,kUrl:sOt,kClose:iOt,kDestroy:oOt,kDispatch:aOt}=ps(),AOt=p2e(),wA=Symbol("clients"),Ha=Symbol("needDrain"),e1=Symbol("queue"),NZ=Symbol("closed resolve"),SZ=Symbol("onDrain"),I2e=Symbol("onConnect"),B2e=Symbol("onDisconnect"),Q2e=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new qh;process.emitWarning(new qh)}e[Mr].timeout&&e[Mr].timeoutType===tm&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Rl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Dl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};Bre.exports=v9e});var Dre=E((jWt,Rre)=>{"use strict";var So=b("node:assert"),{pipeline:P9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:Qre,SocketError:vI,InformationalError:CU}=Lt(),{kUrl:NS,kReset:xS,kClient:rm,kRunning:RS,kPending:O9e,kQueue:kl,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Rn,kStrictContentLength:H9e,kOnError:yU,kMaxConcurrentStreams:xre,kHTTP2Session:Da,kResume:vl,kSize:G9e,kHTTPContext:q9e}=yr(),fu=Symbol("open streams"),wre,Sre=!1,TS;try{TS=b("node:http2")}catch{TS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Y9e,HTTP2_HEADER_METHOD:V9e,HTTP2_HEADER_PATH:W9e,HTTP2_HEADER_SCHEME:J9e,HTTP2_HEADER_CONTENT_LENGTH:z9e,HTTP2_HEADER_EXPECT:j9e,HTTP2_HEADER_STATUS:K9e}}=TS;function $9e(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 X9e(t,e){t[Rn]=e,Sre||(Sre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=TS.connect(t[NS],{createConnection:()=>e,peerMaxConcurrentStreams:t[xre]});r[fu]=0,r[rm]=t,r[Rn]=e,Et.addListener(r,"error",eGe),Et.addListener(r,"frameError",tGe),Et.addListener(r,"end",rGe),Et.addListener(r,"goaway",nGe),Et.addListener(r,"close",function(){let{[rm]:s}=this,{[Rn]:i}=s,o=this[Rn][ka]||this[ka]||new vI("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[O9e]===0);let a=s[kl].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[rm][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new vI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new vI("closed",Et.getSocketInfo(this));t[Rn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[RS]===0),t.emit("disconnect",t[NS],[t],s),t[vl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return iGe(t,...s)},resume(){Z9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Z9e(t){let e=t[Rn];e?.destroyed===!1&&(t[G9e]===0&&t[xre]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function eGe(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][ka]=t,this[rm][yU](t)}function tGe(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][ka]=n,this[rm][yU](n)}}function rGe(){let t=new vI("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function nGe(t){let e=this[ka]||new vI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[rm];if(r[Rn]=null,r[q9e]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Rn],e),r[Ra]<r[kl].length){let n=r[kl][r[Ra]];r[kl][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[RS]===0),r.emit("disconnect",r[NS],[r],e),r[vl]()}function sGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function iGe(t,e){let r=t[Da],{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[NS];l[Y9e]=i||`${h}${f?`:${f}`:""}`,l[V9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new Qre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[kl][t[Ra]++]=null,t[vl]())};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[fu],t[kl][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[fu],t[kl][t[Ra]++]=null}),d.once("close",()=>{r[fu]-=1,r[fu]===0&&r.unref()}),!0;l[W9e]=s,l[J9e]="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)){wre??=Xp().extractBody;let[N,M]=wre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),sGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[H9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[z9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[j9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[DGe]=c??3e5,this[RGe]=s??3e5,this[kGe]=C??!0,this[vGe]=N,this[wU]=O,this[Fl]=null,this[UGe]=P>-1?P:-1,this[OGe]=ee??100,this[Kr]=null,this[va]=[],this[pu]=0,this[_a]=0,this[LI]=ce=>NU(this,ce),this[PGe]=ce=>qre(this,ce)}get pipelining(){return this[_S]}set pipelining(e){this[_S]=e,this[LI](!0)}get[OI](){return this[va].length-this[_a]}get[PI](){return this[_a]-this[pu]}get[UI](){return this[va].length-this[pu]}get[bGe](){return!!this[Kr]&&!this[sm]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[UI]>=(Gre(this)||1)||this[OI]>0)}[BGe](e){Yre(this),this.once("connect",e)}[LGe](e,r){let n=e.origin||this[xc].origin,s=new pGe(n,e,r);return this[va].push(s),this[Vh]||(Yh.bodyLength(s.body)==null&&Yh.isIterable(s.body)?(this[Vh]=1,queueMicrotask(()=>NU(this))):this[LI](!0)),this[Vh]&&this[Ml]!==2&&this[QU]&&(this[Ml]=2),this[Ml]<2}async[FGe](){return new Promise(e=>{this[UI]?this[Fl]=e:e(null)})}async[MGe](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Yh.errorRequest(this,o,e)}let s=()=>{this[Fl]&&(this[Fl](),this[Fl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[LI]()})}},qGe=vS();function qre(t,e){if(t[PI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gu(t[_a]===t[pu]);let r=t[va].splice(t[pu]);for(let n=0;n<r.length;n++){let s=r[n];Yh.errorRequest(t,s,e)}gu(t[UI]===0)}}async function Yre(t){gu(!t[sm]),gu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[xc];if(r[0]==="["){let i=r.indexOf("]");gu(i!==-1);let o=r.substring(1,i);gu(Hre.isIP(o)),r=o}t[sm]=!0,nm.beforeConnect.hasSubscribers&&nm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[_l],localAddress:t[MI]},connector:t[FI]});try{let i=await new Promise((o,a)=>{t[FI]({host:e,hostname:r,protocol:n,port:s,servername:t[_l],localAddress:t[MI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Yh.destroy(i.on("error",Pre),new CGe);return}gu(i);try{t[Kr]=i.alpnProtocol==="h2"?await GGe(t,i):await HGe(t,i)}catch(o){throw i.destroy().on("error",Pre),o}t[sm]=!1,i[_Ge]=0,i[wU]=t[wU],i[yGe]=t,i[wGe]=null,nm.connected.hasSubscribers&&nm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[_l],localAddress:t[MI]},connector:t[FI],socket:i}),t.emit("connect",t[xc],[t])}catch(i){if(t.destroyed)return;if(t[sm]=!1,nm.connectError.hasSubscribers&&nm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[_l],localAddress:t[MI]},connector:t[FI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gu(t[PI]===0);t[OI]>0&&t[va][t[_a]].servername===t[_l];){let o=t[va][t[_a]++];Yh.errorRequest(t,o,i)}else qre(t,i);t.emit("connectionError",t[xc],[t],i)}t[LI]()}function Ore(t){t[Ml]=0,t.emit("drain",t[xc],[t])}function NU(t,e){t[Vh]!==2&&(t[Vh]=2,YGe(t,e),t[Vh]=0,t[pu]>256&&(t[va].splice(0,t[pu]),t[_a]-=t[pu],t[pu]=0))}function YGe(t,e){for(;;){if(t.destroyed){gu(t[OI]===0);return}if(t[Fl]&&!t[UI]){t[Fl](),t[Fl]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ml]=2;else if(t[Ml]===2){e?(t[Ml]=1,queueMicrotask(()=>Ore(t))):Ore(t);continue}if(t[OI]===0||t[PI]>=(Gre(t)||1))return;let r=t[va][t[_a]];if(t[xc].protocol==="https:"&&t[_l]!==r.servername){if(t[PI]>0)return;t[_l]=r.servername,t[Kr]?.destroy(new EGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[sm])return;if(!t[Kr]){Yre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}Vre.exports=SU});var TU=E((eJt,Wre)=>{"use strict";var FS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Wre.exports=class{constructor(){this.head=this.tail=new FS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new FS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zre=E((tJt,Jre)=>{var{kFree:VGe,kConnected:WGe,kPending:JGe,kQueued:zGe,kRunning:jGe,kSize:KGe}=yr(),Wh=Symbol("pool"),xU=class{constructor(e){this[Wh]=e}get connected(){return this[Wh][WGe]}get free(){return this[Wh][VGe]}get pending(){return this[Wh][JGe]}get queued(){return this[Wh][zGe]}get running(){return this[Wh][jGe]}get size(){return this[Wh][KGe]}};Jre.exports=xU});var FU=E((rJt,sne)=>{"use strict";var $Ge=qp(),XGe=TU(),{kConnected:RU,kSize:jre,kRunning:Kre,kPending:$re,kQueued:HI,kBusy:ZGe,kFree:eqe,kUrl:tqe,kClose:rqe,kDestroy:nqe,kDispatch:sqe}=yr(),iqe=zre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),GI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),Xre=Symbol("onConnect"),Zre=Symbol("onDisconnect"),ene=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};kMe.exports=x$});var z_=f((Obn,UMe)=>{"use strict";var MMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Mqt}=tn(),vqt=yb();LMe()===void 0&&vMe(new vqt);function vMe(t){if(!t||typeof t.dispatch!="function")throw new Mqt("Argument agent must implement Agent");Object.defineProperty(globalThis,MMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function LMe(){return globalThis[MMe]}UMe.exports={setGlobalDispatcher:vMe,getGlobalDispatcher:LMe}});var j_=f((qbn,PMe)=>{"use strict";PMe.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 OMe=f((Gbn,_Me)=>{"use strict";var Lqt=S_();_Me.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 Lqt(r,o,s,i);return r(a,A)}}});var qMe=f((Ybn,HMe)=>{"use strict";var Uqt=P_();HMe.exports=t=>e=>function(n,s){return e(n,new Uqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var YMe=f((Jbn,GMe)=>{"use strict";var Pqt=mr(),{InvalidArgumentError:_qt,RequestAbortedError:Oqt}=tn(),Hqt=j_(),T$=class extends Hqt{#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 _qt("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=Pqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Oqt(`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 qqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new T$({maxSize:i},s);return e(n,o)}}GMe.exports=qqt});var WMe=f((Vbn,VMe)=>{"use strict";var{isIP:Gqt}=B("node:net"),{lookup:Yqt}=B("node:dns"),Jqt=j_(),{InvalidArgumentError:Fb,InformationalError:Vqt}=tn(),JMe=Math.pow(2,31)-1,k$=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 Vqt("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){Yqt(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===JMe?(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===JMe?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 F$(this,e,r)}},F$=class extends Jqt{#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":NUe(i)&&(r[s]=i);break;case"id":SUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&NUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&SUe(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}}};RUe.exports={EventSourceStream:Eee}});var UUe=f((ywn,LUe)=>{"use strict";var{pipeline:eYt}=B("node:stream"),{fetching:tYt}=h1(),{makeRequest:rYt}=Lb(),{webidl:Xf}=Oo(),{EventSourceStream:nYt}=DUe(),{parseMIMEType:sYt}=yA(),{createFastMessageEvent:iYt}=qb(),{isNetworkError:xUe}=l1(),{delay:oYt}=pee(),{kEnumerableProperty:wB}=mr(),{environmentSettingsObject:TUe}=Qc(),kUe=!1,FUe=3e3,w1=0,MUe=1,N1=2,aYt="anonymous",AYt="use-credentials",Wb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=w1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Xf.util.markAsUncloneable(this);let n="EventSource constructor";Xf.argumentLengthCheck(arguments,1,n),kUe||(kUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Xf.converters.USVString(e,n,"url"),r=Xf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:FUe};let s=TUe,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=aYt;r.withCredentials&&(o=AYt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=TUe.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=rYt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===N1)return;this.#r=w1;let e={request:this.#s,dispatcher:this.#a},r=n=>{xUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(xUe(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?sYt(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=MUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new nYt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(iYt(A.type,A.options))}});eYt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=tYt(e)}async#c(){this.#r!==N1&&(this.#r=w1,this.dispatchEvent(new Event("error")),await oYt(this.#o.reconnectionTime),this.#r===w1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Xf.brandCheck(this,t),this.#r!==N1&&(this.#r=N1,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}},vUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:w1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:MUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:N1,writable:!1}};Object.defineProperties(Wb,vUe);Object.defineProperties(Wb.prototype,vUe);Object.defineProperties(Wb.prototype,{close:wB,onerror:wB,onmessage:wB,onopen:wB,readyState:wB,url:wB,withCredentials:wB});Xf.converters.EventSourceInitDict=Xf.dictionaryConverter([{key:"withCredentials",converter:Xf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Xf.converters.any}]);LUe.exports={EventSource:Wb,defaultReconnectionTime:FUe}});var HUe=f((bwn,Mt)=>{"use strict";var cYt=Bb(),PUe=TT(),uYt=Qb(),lYt=v2e(),dYt=yb(),hYt=GZ(),gYt=iFe(),fYt=lFe(),_Ue=tn(),UO=mr(),{InvalidArgumentError:LO}=_Ue,zb=XFe(),pYt=FT(),mYt=b$(),EYt=FMe(),CYt=S$(),IYt=l$(),BYt=P_(),{getGlobalDispatcher:OUe,setGlobalDispatcher:QYt}=z_(),yYt=j_(),bYt=S_(),wYt=R_();Object.assign(PUe.prototype,zb);Mt.exports.Dispatcher=PUe;Mt.exports.Client=cYt;Mt.exports.Pool=uYt;Mt.exports.BalancedPool=lYt;Mt.exports.Agent=dYt;Mt.exports.ProxyAgent=hYt;Mt.exports.EnvHttpProxyAgent=gYt;Mt.expo Line truncated
\r
`),m6t=/\r\n/g,E6t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function $b(t){OPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=_Pe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=_Pe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new f6t(p6t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}g6t($b,OPe);$b.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};$b.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};$b.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};$b.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(m6t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=E6t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};HPe.exports=$b});var ate=f((pNn,YPe)=>{"use strict";var ote=B("node:stream").Writable,C6t=B("node:util").inherits,I6t=ste(),GPe=UPe(),B6t=qPe(),Q6t=45,y6t=Buffer.from("-"),b6t=Buffer.from(`\r
`),w6t=function(){};function Ed(t){if(!(this instanceof Ed))return new Ed(t);if(ote.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new B6t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}C6t(Ed,ote);Ed.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else ote.prototype.emit.apply(this,arguments)};Ed.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new GPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(b6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ed.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ed.prototype.setBoundary=function(t){let e=this;this._bparser=new I6t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};Ed.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",w6t),this._part.resume())};Ed.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===Q6t)++o,++this._dashes;else{this._dashes&&(s=y6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new GPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ed.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};YPe.exports=Ed});var KO=f((Ate,WPe)=>{"use strict";var JPe=new TextDecoder("utf-8"),VPe=new Map([["utf-8",JPe],["utf8",JPe]]);function N6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return v1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return v1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return v1.utf16le;case"base64":return v1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return v1.other.bind(t)}}var v1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),VPe.has(Ate.toString()))try{return VPe.get(Ate).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function S6t(t,e,r){return t&&N6t(r)(t,e)}WPe.exports=S6t});var ute=f((mNn,ZPe)=>{"use strict";var XO=KO(),zPe=/%[a-fA-F0-9][a-fA-F0-9]/g,R6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function S9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(h9t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function R9t(){return"allowed"}function D9t(){return"success"}function x9t(){return"success"}function T9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function k9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&Ete(t.origin)&&!Ete(P1(t))&&(e=null);break;case"same-origin":rH(t,P1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function F9t(t){return p9t.now()}function M9t(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 v9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function L9t(t){return{referrerPolicy:t.referrerPolicy}}function U9t(t){let e=t.referrerPolicy;sw(e);let r=null;if(t.referrer==="client"){let a=f9t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=pte(r),s=pte(r,!0);n.toString().length>4096&&(n=s);let i=rH(t,n),o=U1(n)&&!U1(t.url);switch(e){case"origin":return s??pte(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=P1(t);return rH(n,a)?n:U1(n)&&!U1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function pte(t,e){return sw(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function U1(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 P9t(t,e){if(tH===void 0)return!0;let r=w_e(e);if(r==="no metadata"||r.length===0)return!0;let n=O9t(r),s=H9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=tH.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)),q9t(A,a))return!0}return!1}var _9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function w_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=_9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();B_e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function O9t(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 H9t(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 q9t(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 G9t(t){}function rH(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Y9t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function J9t(t){return t.controller.state==="aborted"}function V9t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var Cte={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Cte,null);function W9t(t){return Cte[t.toLowerCase()]??t}function z9t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return sw(typeof e=="string"),e}var j9t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function K9t(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,X9t(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,j9t),Object.setPrototypeOf({},s)}function X9t(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function Ite(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&k_e(t[n]);n++);if(r)for(;s>0&&k_e(t[s]);s--);return t.slice(n,s+1)}function F_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function pJt(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&F_e(t[n]);n++);if(r)for(;s>0&&F_e(t[s]);s--);return t.slice(n,s+1)}U_e.exports={dataURLProcessor:dJt,URLSerializer:M_e,collectASequenceOfCodePoints:iH,collectASequenceOfCodePointsFast:iw,stringPercentDecode:v_e,parseMIMEType:Bte,collectAnHTTPQuotedString:L_e,serializeAMimeType:fJt}});var oH=f((DNn,q_e)=>{"use strict";var{Blob:O_e,File:P_e}=B("buffer"),{types:Qte}=B("util"),{kState:xc}=np(),{isBlobLike:H_e}=Hu(),{webidl:fn}=Ya(),{parseMIMEType:mJt,serializeAMimeType:EJt}=Cd(),{kEnumerableProperty:__e}=qr(),CJt=new TextEncoder,_1=class t extends O_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=mJt(i),i==="failure"){i="";break e}i=EJt(i).toLowerCase()}o=n.lastModified}super(IJt(e,n),{type:i}),this[xc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get type(){return fn.brandCheck(this,t),this[xc].type}},yte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[xc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[xc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[xc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[xc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[xc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[xc].blobLike.size}get type(){return fn.brandCheck(this,t),this[xc].blobLike.type}get name(){return fn.brandCheck(this,t),this[xc].name}get lastModified(){return fn.brandCheck(this,t),this[xc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(_1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:__e,lastModified:__e});fn.converters.Blob=fn.interfaceConverter(O_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(H_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Qte.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function IJt(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=BJt(s)),r.push(CJt.encode(s))}else Qte.isAnyArrayBuffer(n)||Qte.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):H_e(n)&&r.push(n);return r}function BJt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function QJt(t){return P_e&&t instanceof P_e||t instanceof _1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}q_e.exports={File:_1,FileLike:yte,isFileLike:QJt}});var AH=f((xNn,W_e)=>{"use strict";var{isBlobLike:aH,toUSVString:yJt,makeIterator:bte}=Hu(),{kState:aa}=np(),{File:V_e,FileLike:G_e,isFileLike:bJt}=oH(),{webidl:wn}=Ya(),{Blob:wJt,File:wte}=B("buffer"),Y_e=wte??V_e,ow=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[aa]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!aH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=aH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=J_e(e,r,n);this[aa].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[aa]=this[aa].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[aa].findIndex(n=>n.name===e);return r===-1?null:this[aa][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[aa].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[aa].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!aH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=aH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?yJt(n):void 0;let s=J_e(e,r,n),i=this[aa].findIndex(o=>o.name===e);i!==-1?this[aa]=[...this[aa].slice(0,i),s,...this[aa].slice(i+1).filter(o=>o.name!==e)]:this[aa].push(s)}entries(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),bte(()=>this[aa].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};ow.prototype[Symbol.iterator]=ow.prototype.entries;Object.defineProperties(ow.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function J_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(bJt(e)||(e=e instanceof wJt?new Y_e([e],"blob",{type:e.type}):new G_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=wte&&e instanceof wte||e instanceof V_e?new Y_e([e],r,n):new G_e(e,r,n)}return{name:t,value:e}}W_e.exports={FormData:ow}});var O1=f((TNn,rOe)=>{"use strict";var NJt=l_e(),aw=qr(),{ReadableStreamFrom:SJt,isBlobLike:z_e,isReadableStreamLike:RJt,readableStreamClose:DJt,createDeferredPromise:xJt,fullyReadBody:TJt}=Hu(),{FormData:j_e}=AH(),{kState:ip}=np(),{webidl:Nte}=Ya(),{DOMException:Z_e,structuredClone:kJt}=dE(),{Blob:FJt,File:MJt}=B("buffer"),{kBodyUsed:vJt}=ts(),Ste=B("assert"),{isErrored:LJt}=qr(),{isUint8Array:$_e,isArrayBuffer:UJt}=B("util/types"),{File:PJt}=oH(),{parseMIMEType:_Jt,serializeAMimeType:OJt}=Cd(),Rte;try{let t=B("node:crypto");Rte=e=>t.randomInt(0,e)}catch{Rte=t=>Math.floor(Math.random(t))}var sp=globalThis.ReadableStream,K_e=MJt??PJt,cH=new TextEncoder,HJt=new TextDecoder;function eOe(t,e=!1){sp||(sp=B("stream/web").ReadableStream);let r=null;t instanceof sp?r=t:z_e(t)?r=t.stream():r=new sp({async pull(A){A.enqueue(typeof s=="string"?cH.encode(s):s),queueMicrotask(()=>DJt(A))},start(){},type:void 0}),Ste(RJt(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(UJt(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(aw.isFormDataLike(t)){let A=`----formdata-undici-0${`${Rte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=cH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=cH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=cH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(z_e(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(aw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof sp?t:SJt(t)}if((typeof s=="string"||aw.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new sp({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):LJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function qJt(t,e=!1){return sp||(sp=B("stream/web").ReadableStream),t instanceof sp&&(Ste(!aw.isDisturbed(t),"The body has already been consumed."),Ste(!t.locked,"The stream is locked.")),eOe(t,e)}function GJt(t){let[e,r]=t.stream.tee(),n=kJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*X_e(t){if(t)if($_e(t))yield t;else{let e=t.stream;if(aw.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[vJt]=!0,yield*e}}function Dte(t){if(t.aborted)throw new Z_e("The operation was aborted.","AbortError")}function YJt(t){return{blob(){return uH(this,r=>{let n=zJt(this);return n==="failure"?n="":n&&(n=OJt(n)),new FJt([r],{type:n})},t)},arrayBuffer(){return uH(this,r=>new Uint8Array(r).buffer,t)},text(){return uH(this,tOe,t)},json(){return uH(this,WJt,t)},async formData(){Nte.brandCheck(this,t),Dte(this[ip]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new j_e,i;try{i=new NJt({headers:n,preservePath:!0})}catch(a){throw new Z_e(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new K_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new K_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of X_e(this[ip].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of X_e(this[ip].body)){if(!$_e(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new j_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),Dte(this[ip]),Nte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function JJt(t){Object.assign(t.prototype,YJt(t))}async function uH(t,e,r){if(Nte.brandCheck(t,r),Dte(t[ip]),VJt(t[ip].body))throw new TypeError("Body is unusable");let n=xJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ip].body==null?(i(new Uint8Array),n.promise):(await TJt(t[ip].body,i,s),n.promise)}function VJt(t){return t!=null&&(t.stream.locked||aw.isDisturbed(t.stream))}function tOe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),HJt.decode(t))}function WJt(t){return JSON.parse(tOe(t))}function zJt(t){let{headersList:e}=t[ip],r=e.get("content-type");return r===null?"failure":_Jt(r)}rOe.exports={extractBody:eOe,safelyExtractBody:qJt,cloneBody:GJt,mixinBody:JJt}});var oOe=f((kNn,iOe)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:jJt}=Un(),op=B("assert"),{kHTTP2BuildRequest:KJt,kHTTP2CopyHeaders:XJt,kHTTP1BuildRequest:ZJt}=ts(),xA=qr(),nOe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,sOe=/[^\t\x20-\x7e\x80-\xff]/,$Jt=/[^\u0021-\u00ff]/,Id=Symbol("handler"),xi={},xte;try{let t=B("diagnostics_channel");xi.create=t.channel("undici:request:create"),xi.bodySent=t.channel("undici:request:bodySent"),xi.headers=t.channel("undici:request:headers"),xi.trailers=t.channel("undici:request:trailers"),xi.error=t.channel("undici:request:error")}catch{xi.create={hasSubscribers:!1},xi.bodySent={hasSubscribers:!1},xi.headers={hasSubscribers:!1},xi.trailers={hasSubscribers:!1},xi.error={hasSubscribers:!1}}var Tte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else xA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);xA.validateHandler(p,n,c),this.servername=xA.getServerName(this.host),this[Id]=p,xi.create.hasSubscribers&&xi.create.publish({request:this})}onBodySent(e){if(this[Id].onBodySent)try{return this[Id].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xi.bodySent.hasSubscribers&&xi.bodySent.publish({request:this}),this[Id].onRequestSent)try{return this[Id].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(op(!this.aborted),op(!this.completed),this.error)e(this.error);else return this.abort=e,this[Id].onConnect(e)}onHeaders(e,r,n,s){op(!this.aborted),op(!this.completed),xi.headers.hasSubscribers&&xi.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Id].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){op(!this.aborted),op(!this.completed);try{return this[Id].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return op(!this.aborted),op(!this.completed),this[Id].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),op(!this.aborted),this.completed=!0,xi.trailers.hasSubscribers&&xi.trailers.publish({request:this,trailers:e});try{return this[Id].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xi.error.hasSubscribers&&xi.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Id].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return H1(this,e,r),this}static[ZJt](e,r,n){return new t(e,r,n)}static[KJt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)H1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];H1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[XJt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function FB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",sOe.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function H1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(sOe.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new jJt("expect header not supported");if(nOe.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${FB(e,r[s],n)}`:t.headers[e]=FB(e,r[s],n):t.headers+=FB(e,r[s]);else n?t.headers[e]=FB(e,r,n):t.headers+=FB(e,r)}}}iOe.exports=Tte});var lH=f((FNn,aOe)=>{"use strict";var eVt=B("events"),kte=class extends eVt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};aOe.exports=kte});var G1=f((MNn,AOe)=>{"use strict";var tVt=lH(),{ClientDestroyedError:Fte,ClientClosedError:rVt,InvalidArgumentError:Aw}=Un(),{kDestroy:nVt,kClose:sVt,kDispatch:Mte,kInterceptors:MB}=ts(),cw=Symbol("destroyed"),q1=Symbol("closed"),ap=Symbol("onDestroyed"),uw=Symbol("onClosed"),dH=Symbol("Intercepted Dispatch"),vte=class extends tVt{constructor(){super(),this[cw]=!1,this[ap]=null,this[q1]=!1,this[uw]=[]}get destroyed(){return this[cw]}get closed(){return this[q1]}get interceptors(){return this[MB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[MB][r]!="function")throw new Aw("interceptor must be an function")}this[MB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new Aw("invalid callback");if(this[cw]){queueMicrotask(()=>e(new Fte,null));return}if(this[q1]){this[uw]?this[uw].push(e):queueMicrotask(()=>e(null,null));return}this[q1]=!0,this[uw].push(e);let r=()=>{let n=this[uw];this[uw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[sVt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new Aw("invalid callback");if(this[cw]){this[ap]?this[ap].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Fte),this[cw]=!0,this[ap]=this[ap]||[],this[ap].push(r);let n=()=>{let s=this[ap];this[ap]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[nVt](e).then(()=>{queueMicrotask(n)})}[dH](e,r){if(!this[MB]||this[MB].length===0)return this[dH]=this[Mte],this[Mte](e,r);let n=this[Mte].bind(this);for(let s=this[MB].length-1;s>=0;s--)n=this[MB][s](n);return this[dH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new Aw("handler must be an object");try{if(!e||typeof e!="object")throw new Aw("opts must be an object.");if(this[cw]||this[ap])throw new Fte;if(this[q1])throw new rVt;return this[dH](e,r)}catch(n){if(typeof r.onError!="function")throw new Aw("invalid onError method");return r.onError(n),!1}}};AOe.exports=vte});var Y1=f((UNn,lOe)=>{"use strict";var iVt=B("net"),cOe=B("assert"),uOe=qr(),{InvalidArgumentError:oVt,ConnectTimeoutError:aVt}=Un(),Lte,Ute;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:Ute=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function AVt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new oVt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new Ute(e??100);return n=n??1e4,t Line truncated
`,this[ROe]=A??3e5,this[SOe]=s??3e5,this[K1]=I??!0,this[PVt]=w,this[X1]=z,this[gE]=null,this[xOe]=W>-1?W:-1,this[Uh]="h1",this[kc]=null,this[IH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[TOe]=`${this[qo].hostname}${this[qo].port?`:${this[qo].port}`:""}`,this[rs]=[],this[ns]=0,this[Tc]=0}get pipelining(){return this[pE]}set pipelining(e){this[pE]=e,Fc(this,!0)}get[UB](){return this[rs].length-this[Tc]}get[Fs](){return this[Tc]-this[ns]}get[LB](){return this[rs].length-this[ns]}get[UVt](){return!!this[Ws]&&!this[dw]&&!this[Ws].destroyed}get[Jte](){let e=this[Ws];return e&&(e[Ja]||e[up]||e[gw])||this[LB]>=(this[pE]||1)||this[UB]>0}[LVt](e){vOe(this),this.once("connect",e)}[HVt](e,r){let n=e.origin||this[qo].origin,s=this[Uh]==="h2"?Yte[GVt](n,e,r):Yte[JVt](n,e,r);return this[rs].push(s),this[vB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[vB]=1,process.nextTick(Fc,this)):Fc(this,!0)),this[vB]&&this[fE]!==2&&this[Jte]&&(this[fE]=2),this[fE]<2}async[_Vt](){return new Promise(e=>{this[LB]?this[gE]=e:e(null)})}async[OVt](e){return new Promise(r=>{let n=this[rs].splice(this[Tc]);for(let i=0;i<n.length;i++){let o=n[i];Va(this,o,e)}let s=()=>{this[gE]&&(this[gE](),this[gE]=null),r()};this[kc]!=null&&(ft.destroy(this[kc],e),this[kc]=null,this[IH]=null),this[Ws]?ft.destroy(this[Ws].on("close",s),e):queueMicrotask(s),Fc(this)})}};function $Vt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws][Go]=t,bH(this[Lh],t)}function eWt(t,e,r){let n=new vh(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Ws][Go]=n,bH(this[Lh],n))}function tWt(){ft.destroy(this,new hw("other side closed")),ft.destroy(this[Ws],new hw("other side closed"))}function rWt(t){let e=this[Lh],r=new vh(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Ws]=null,e[kc]=null,e.destroyed){Ve(this[UB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Va(this,i,r)}}else if(e[Fs]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Va(e,n,r)}e[Tc]=e[ns],Ve(e[Fs]===0),e.emit("disconnect",e[qo],[e],r),Fc(e)}var kh=hOe(),nWt=fH(),sWt=Buffer.alloc(0);async function iWt(){let t=process.env.JEST_WORKER_ID?Hte():void 0,e;try{e=await WebAssembly.compile(Buffer.from(IOe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Hte(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onStatus(new pH(Fh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onHeaderField(new pH(Fh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onHeaderValue(new pH(Fh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(Gi.ptr,r),Gi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(Gi.ptr,r);let i=n-Mh+Fh.byteOffset;return Gi.onBody(new pH(Fh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(Gi.ptr,r),Gi.onMessageComplete()||0)}})}var Gte=null,zte=iWt();zte.catch();var Gi=null,Fh=null,mH=0,Mh=null,fw=1,CH=2,jte=3,Kte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[EH])&&e[EH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(kh.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.headersMaxSize=e[EH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[xOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(qte.clearTimeout(this.timeout),e?(this.timeout=qte.setTimeout(oWt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(Gi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===CH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||sWt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(Gi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>mH&&(Mh&&n.free(Mh),mH=Math.ceil(e.length/4096)*4096,Mh=n.malloc(mH)),new Uint8Array(n.memory.buffer,Mh,mH).set(e);try{let s;try{Fh=e,Gi=this,s=n.llhttp_execute(this.ptr,Mh,e.length)}catch(o){throw o}finally{Gi=null,Fh=null}let i=n.llhttp_get_error_pos(this.ptr)-Mh;if(s===kh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===kh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==kh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[bOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[pE]&&!h[Ja]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Aa.sendHeaders.hasSubscribers&&Aa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[Ja]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?QH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):POe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?UOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?QH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function cWt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=Yte[YVt](u.trim()):l=u,a)return Va(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Va(t,r,I||new Zte)})}catch(I){Va(t,r,I)}if(r.aborted)return!1;let d,h=t[IH];if(l[VVt]=o||t[TOe],l[WVt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[zVt]=i,l[jVt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),LOe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[K1])return Va(t,r,new cp),!1;process.emitWarning(new cp)}p!=null&&(Ve(n,"no body must not have content length"),l[KVt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[XVt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[ZVt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new vh(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Va(t,r,w),t[kc]&&!t[kc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?QH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ws],header:""}):POe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Ws]}):ft.isStream(n)?UOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Ws],h2stream:d,header:""}):ft.isIterable(n)?QH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Ws]}):Ve(!1):r.onRequestSent()}}function UOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[Fs]===0,"stream body cannot be pipelined"),r[Uh]==="h2"){let p=function(C){n.onBodySent(C)},g=NVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new yH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Zte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[up]&&r[Fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.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)}async function POe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Uh]==="h2";try{if(i!=null&&i!==e.size)throw new cp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[Ja]=!0),Fc(r)}catch(c){ft.destroy(A?t:s,c)}}async function QH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[Fs]===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[Go]?h(s[Go]):A=d});if(r[Uh]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Go])throw s[Go];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new yH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Go])throw s[Go];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var yH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[up]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Go])throw r[Go];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[K1])throw new cp;process.emitWarning(new cp)}r.cork(),o===0&&(a||(r[Ja]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Vs].timeout&&r[Vs].timeoutType===fw&&r[Vs].timeout.refresh&&r[Vs].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[up]=!1,e[Go])throw e[Go];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[K1])throw new cp;process.emitWarning(new cp)}e[Vs].timeout&&e[Vs].timeoutType===fw&&e[Vs].timeout.refresh&&e[Vs].timeout.refresh(),Fc(n)}}destroy(e){let{socket:r,client:n}=this;r[up]=!1,e&&(Ve(n[Fs]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Va(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}_Oe.exports=Wte});var HOe=f((VNn,OOe)=>{"use strict";var wH=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)}};OOe.exports=class{constructor(){this.head=this.tail=new wH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var GOe=f((WNn,qOe)=>{var{kFree:uWt,kConnected:lWt,kPending:dWt,kQueued:hWt,kRunning:gWt,kSize:fWt}=ts(),PB=Symbol("pool"),$te=class{constructor(e){this[PB]=e}get connected(){return this[PB][lWt]}get free(){return this[PB][uWt]}get pending(){return this[PB][dWt]}get queued(){return this[PB][hWt]}get running(){return this[PB][gWt]}get size(){return this[PB][fWt]}};qOe.exports=$te});var ire=f((zNn,$Oe)=>{"use strict";var pWt=G1(),mWt=HOe(),{kConnected:ere,kSize:YOe,kRunning:JOe,kPending:VOe,kQueued:$1,kBusy:EWt,kFree:CWt,kUrl:IWt,kClose:BWt,kDestroy:QWt,kDispatch:yWt}=ts(),bWt=GOe(),TA=Symbol("clients"),Wa=Symbol("needDrain"),ek=Symbol("queue"),tre=Symbol("closed resolve"),rre=Symbol("onDrain"),WOe=Symbol("onConnect"),zOe=Symbol("onDisconnect"),jOe=Symbol("onConnectionError"),nre=Symbol("get dispatcher"),XOe=Symbol("add client"),ZOe=Symbol("remove client"),KOe=Symbol("stats"),sre=class extends pWt{constructor(){super(),this[ek]=new mWt,this[TA]=[],this[$1]=0;let e=this;this[rre]=function(n,s){let i=e[ek],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[$1]--,o=!this.dispatch(a.opts,a.handler)}this[Wa]=o,!this[Wa]&&e[Wa]&&(e[Wa]=!1,e.emit("drain",n,[e,...s])),e[tre]&&i.isEmpty()&&Promise.all(e[TA].map(a=>a.close())).then(e[tre])},this[WOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[zOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[jOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[KOe]=new bWt(this)}get[EWt](){return this[Wa]}get[ere](){return this[TA].filter(e=>e[ere]).length}get[CWt](){return this[TA].filter(e=>e[ere]&&!e[Wa]).length}get[VOe](){let e=this[$1];for(let{[VOe]:r}of this[TA])e+=r;return e}get[JOe](){let e=0;for(let{[JOe]:r}of this[TA])e+=r;return e}get[YOe](){let e=this[$1];for(let{[YOe]:r}of this[TA])e+=r;return e}get stats(){return this[KOe]}async[BWt](){return this[ek].isEmpty()?Promise.all(this[TA].map(e=>e.close())):new Promise(e=>{this[tre]=e})}async[QWt](e){for(;;){let r=this[ek].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[TA].map(r=>r.destroy(e)))}[yWt](e,r){let n=this[nre]();return n?n.dispatch(e,r)||(n[Wa]=!0,this[Wa]=!this[nre]()):(this[Wa]=!0,this[ek].push({opts:e,handler:r}),this[$1]++),!this[Wa]}[XOe](e){return e.on("drain",this[rre]).on("connect",this[WOe]).on("disconnect",this[zOe]).on("connectionError",this[jOe]),this[TA].push(e),this[Wa]&&process.nextTick(()=>{this[Wa]&&this[rre](e[IWt],[this,e])}),this}[ZOe](e){e.close(()=>{let r=this[TA].indexOf(e);r!==-1&&this[TA].splice(r,1)}),this[Wa]=this[TA].some(r=>!r[Wa]&&r.closed!==!0&&r.destroyed!==!0)}};$Oe.exports={PoolBase:sre,kClients:TA,kNeedDrain:Wa,kAddClient:XOe,kRemoveClient:ZOe,kGetDispatcher:nre}});var pw=f((jNn,rHe)=>{"use strict";var{PoolBase:wWt,kClients:NH,kNeedDrain:NWt,kAddClient:SWt,kGetDispatcher:RWt}=ire(),DWt=Z1(),{InvalidArgumentError:ore}=Un(),are=qr(),{kUrl:eHe,kInterceptors:xWt}=ts(),TWt=Y1(),Are=Symbol("options"),cre=Symbol("connections"),tHe=Symbol("factory");function kWt(t,e){return new DWt(t,e)}var ure=class extends wWt{constructor(e,{connections:r,factory:n=kWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new ore("invalid connections");if(typeof n!="function")throw new ore("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new ore("connect must be a function or an object");typeof s!="function"&&(s=TWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...are.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[xWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[cre]=r||null,this[eHe]=are.parseOrigin(e),this[Are]={...are.deepClone(d),connect:s,allowH2:l},this[Are].interceptors=d.interceptors?{...d.interceptors}:void 0,this[tHe]=n,this.on("con Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Mqe.exports=zre});var Hqe=f((ISn,Oqe)=>{"use strict";var{kProxy:Fjt,kClose:Mjt,kDestroy:vjt,kInterceptors:Ljt}=ts(),{URL:Lqe}=B("url"),Uqe=rk(),Ujt=pw(),Pjt=G1(),{InvalidArgumentError:ak,RequestAbortedError:_jt}=Un(),Pqe=Y1(),ik=Symbol("proxy agent"),WH=Symbol("proxy client"),ok=Symbol("proxy headers"),jre=Symbol("request tls settings"),Ojt=Symbol("proxy tls settings"),_qe=Symbol("connect endpoint function");function Hjt(t){return t==="https:"?443:80}function qjt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new ak("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Gjt(t,e){return new Ujt(t,e)}var Kre=class extends Pjt{constructor(e){if(super(e),this[Fjt]=qjt(e),this[ik]=new Uqe(e),this[Ljt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new ak("Proxy opts.uri is mandatory");let{clientFactory:r=Gjt}=e;if(typeof r!="function")throw new ak("Proxy opts.clientFactory must be a function.");this[jre]=e.requestTls,this[Ojt]=e.proxyTls,this[ok]=e.headers||{};let n=new Lqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new ak("opts.auth cannot be used in combination with opts.token");e.auth?this[ok]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ok]["proxy-authorization"]=e.token:a&&A&&(this[ok]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=Pqe({...e.proxyTls});this[_qe]=Pqe({...e.requestTls}),this[WH]=r(n,{connect:c}),this[ik]=new Uqe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Hjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[WH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ok],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new _jt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[jre]?p=this[jre].servername:p=u.servername,this[_qe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new Lqe(e.origin),s=Yjt(e.headers);return Jjt(s),this[ik].dispatch({...e,headers:{...s,host:n}},r)}async[Mjt](){await this[ik].close(),await this[WH].close()}async[vjt](){await this[ik].destroy(),await this[WH].destroy()}};function Yjt(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function Jjt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new ak("Proxy-Authorization should be sent in ProxyAgent constructor")}Oqe.exports=Kre});var Vqe=f((BSn,Jqe)=>{var YB=B("assert"),{kRetryHandlerDefaultRetry:qqe}=ts(),{RequestRetryError:zH}=Un(),{isDisturbed:Gqe,parseHeaders:Vjt,parseRangeHeader:Yqe}=qr();function Wjt(t){let e=Date.now();return new Date(t).getTime()-e}var Xre=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[qqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[qqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?Wjt(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=Vjt(r);if(this.retryCount+=1,e>=300)return this.abort(new zH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Yqe(i["content-range"]);if(!a)return this.abort(new zH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new zH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return t3e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,r3e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,r3e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Hw.OidcClient=One});var Yne=f(LA=>{"use strict";var Hne=LA&&LA.__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(LA,"__esModule",{value:!0});LA.summary=LA.markdownSummary=LA.SUMMARY_DOCS_URL=LA.SUMMARY_ENV_VAR=void 0;var UZt=B("os"),qne=B("fs"),{access:PZt,appendFile:_Zt,writeFile:OZt}=qne.promises;LA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";LA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Gne=class{constructor(){this._buffer=""}filePath(){return Hne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[LA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${LA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield PZt(e,qne.constants.R_OK|qne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Hne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?OZt:_Zt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Hne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(UZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},s3e=new Gne;LA.markdownSummary=s3e;LA.summary=s3e});var i3e=f(UA=>{"use strict";var HZt=UA&&UA.__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]})),qZt=UA&&UA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GZt=UA&&UA.__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)&&HZt(e,t,r);return qZt(e,t),e};Object.defineProperty(UA,"__esModule",{value:!0});UA.toPlatformPath=UA.toWin32Path=UA.toPosixPath=void 0;var YZt=GZt(B("path"));function JZt(t){return t.replace(/[\\]/g,"/")}UA.toPosixPath=JZt;function VZt(t){return t.replace(/[/]/g,"\\")}UA.toWin32Path=VZt;function WZt(t){return t.replace(/[/\\]/g,YZt.sep)}UA.toPlatformPath=WZt});var Vne=f(Ze=>{"use strict";var zZt=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Gr.platform=y3e.default.platform();Gr.arch=y3e.default.arch();Gr.isWindows=Gr.platform==="win32";Gr.isMacOS=Gr.platform==="darwin";Gr.isLinux=Gr.platform==="linux";function N$t(){return Yq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gr.isWindows?y$t():Gr.isMacOS?b$t():w$t()),{platform:Gr.platform,arch:Gr.arch,isWindows:Gr.isWindows,isMacOS:Gr.isMacOS,isLinux:Gr.isLinux})})}Gr.getDetails=N$t});var Oc=f(We=>{"use strict";var S$t=We&&We.__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]})),R$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xne=We&&We.__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)&&S$t(e,t,r);return R$t(e,t),e},w3e=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.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var zu=uPe(),ZB=hPe(),Gw=GO(),N3e=Xne(B("os")),D$t=Xne(B("path")),x$t=n3e(),Kne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Kne||(We.ExitCode=Kne={}));function T$t(t,e){let r=(0,Gw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,ZB.issueFileCommand)("ENV",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("set-env",{name:t},r)}We.exportVariable=T$t;function k$t(t){(0,zu.issueCommand)("add-mask",{},t)}We.setSecret=k$t;function F$t(t){process.env.GITHUB_PATH||""?(0,ZB.issueFileCommand)("PATH",t):(0,zu.issueCommand)("add-path",{},t),process.env.PATH=`${t}${D$t.delimiter}${process.env.PATH}`}We.addPath=F$t;function Zne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Zne;function M$t(t,e){let r=Zne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=M$t;function v$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Zne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=v$t;function L$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ZB.issueFileCommand)("OUTPUT",(0,ZB.prepareKeyValueMessage)(t,e));process.stdout.write(N3e.EOL),(0,zu.issueCommand)("set-output",{name:t},(0,Gw.toCommandValue)(e))}We.setOutput=L$t;function U$t(t){(0,zu.issue)("echo",t?"on":"off")}We.setCommandEcho=U$t;function P$t(t){process.exitCode=Kne.Failure,S3e(t)}We.setFailed=P$t;function _$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=_$t;function O$t(t){(0,zu.issueCommand)("debug",{},t)}We.debug=O$t;function S3e(t,e={}){(0,zu.issueCommand)("error",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=S3e;function H$t(t,e={}){(0,zu.issueCommand)("warning",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=H$t;function q$t(t,e={}){(0,zu.issueCommand)("notice",(0,Gw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=q$t;function G$t(t){process.stdout.write(t+N3e.EOL)}We.info=G$t;function R3e(t){(0,zu.issue)("group",t)}We.startGroup=R3e;function D3e(){(0,zu.issue)("endgroup")}We.endGroup=D3e;function Y$t(t,e){return w3e(this,void 0,void 0,function*(){R3e(t);let r;try{r=yield e()}finally{D3e()}return r})}We.group=Y$t;function J$t(t,e){if(process.env.GITHUB_STATE||"")return(0,ZB.issueFileCommand)("STATE",(0,ZB.prepareKeyValueMessage)(t,e));(0,zu.issueCommand)("save-state",{name:t},(0,Gw.toCommandValue)(e))}We.saveState=J$t;function V$t(t){return process.env[`STATE_${t}`]||""}We.getState=V$t;function W$t(t){return w3e(this,void 0,void 0,function*(){return yield x$t.OidcClient.getIDToken(t)})}We.getIDToken=W$t;var z$t=Yne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return z$t.summary}});var j$t=Yne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return j$t.markdownSummary}});var $ne=i3e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return $ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return $ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return $ne.toPlatformPath}});We.platform=Xne(b3e())});var x3e=f(Jh=>{"use strict";var K$t=Jh&&Jh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),X$t=Jh&&Jh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z$t=Jh&&Jh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&K$t(e,t,r);return X$t(e,t),e};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.getOptions=void 0;var ese=Z$t(Oc());function $$t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ese.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ese.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ese.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Jh.getOptions=$$t});var Vq=f(js=>{"use strict";var eer=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ter=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rer=js&&js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&eer(e,t,r);return ter(e,t),e},ner=js&&js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(js,"__esModule",{value:!0});js.safeTrimTrailingSeparator=js.normalizeSeparators=js.hasRoot=js.hasAbsoluteRoot=js.ensureAbsoluteRoot=js.dirname=void 0;var Jq=rer(B("path")),$B=ner(B("assert")),bE=process.platform==="win32";function ser(t){if(t=rse(t),bE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Jq.dirname(t);return bE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=rse(e)),e}js.dirname=ser;function ier(t,e){if($B.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),$B.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),tse(e))return e;if(bE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return $B.default(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.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?ose:I.type==="?"?ise:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==jq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===jq)return[n,s];if(!s)return Mer(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Hc.makeRe=function(t,e){return new Jo(t,e||{}).makeRe()};Jo.prototype.makeRe=Fer;function Fer(){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?ose:e.dot?wer:Ner,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ase?r:typeof o=="string"?ver(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}Hc.match=function(t,e,r){r=r||{};var n=new Jo(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Jo.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;yk.sep!=="/"&&(e=e.split(yk.sep).join("/")),e=e.split(K3e),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};Jo.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===ase){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function Mer(t){return t.replace(/\\(.)/g,"$1")}function ver(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e4e=f(ju=>{"use strict";var Ler=ju&&ju.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Uer=ju&&ju.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$3e=ju&&ju.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Ler(e,t,r);return Uer(e,t),e},Per=ju&&ju.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ju,"__esModule",{value:!0});ju.Path=void 0;var bk=$3e(B("path")),NE=$3e(Vq()),wk=Per(B("assert")),_er=process.platform==="win32",cse=class{constructor(e){if(this.segments=[],typeof e=="string")if(wk.default(e,"Parameter 'itemPath' must not be empty"),e=NE.safeTrimTrailingSeparator(e),!NE.hasRoot(e))this.segments=e.split(bk.sep);else{let r=e,n=NE.dirname(r);for(;n!==r;){let s=bk.basename(r);this.segments.unshift(s),r=n,n=NE.dirname(r)}this.segments.unshift(r)}else{wk.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];wk.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=NE.normalizeSeparators(e[r]),r===0&&NE.hasRoot(n)?(n=NE.safeTrimTrailingSeparator(n),wk.default(n===NE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(wk.default(!n.includes(bk.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(bk.sep)||_er&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=bk.sep,e+=this.segments[n];return e}};ju.Path=cse});var t4e=f(Ku=>{"use strict";var Oer=Ku&&Ku.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Her=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dse=Ku&&Ku.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Oer(e,t,r);return Her(e,t),e},qer=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.Pattern=void 0;var Ger=dse(B("os")),Nk=dse(B("path")),qA=dse(Vq()),e0=qer(B("assert")),Yer=Ase(),use=Wq(),Xq=e4e(),fp=process.platform==="win32",lse=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],e0.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);e0.default(c&&qA.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Xq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Xq.Path(i).segments,this.trailingSeparator=qA.normalizeSeparators(i).endsWith(Nk.sep),i=qA.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Xq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),fp?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:fp,nocomment:!0,noext:!0,nonegate:!0};i=fp?i.replace(/\\/g,"/"):i,this.minimatch=new Yer.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qA.normalizeSeparators(e),!e.endsWith(Nk.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Nk.sep}`)):e=qA.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?use.MatchKind.Directory:use.MatchKind.All:use.MatchKind.None}partialMatch(e){return e=qA.safeTrimTrailingSeparator(e),qA.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fp?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fp?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){e0.default(e,"pattern cannot be empty");let n=new Xq.Path(e).segments.map(s=>t.getLiteral(s));if(e0.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),e0.default(!qA.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qA.normalizeSeparators(e),e==="."||e.startsWith(`.${Nk.sep}`))e=t.globEscap 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 i4e.Pattern(i));return n.searchPaths.push(...$q.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return gse(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Sk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fse.debug(`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 Sk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Sk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){fse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};co.DefaultGlobber=pse});var A4e=f(Jw=>{"use strict";var Xer=Jw&&Jw.__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(Jw,"__esModule",{value:!0});Jw.create=void 0;var Zer=a4e();function $er(t,e){return Xer(this,void 0,void 0,function*(){return yield Zer.DefaultGlobber.create(t,e)})}Jw.create=$er});var g4e=f((Ot,h4e)=>{Ot=h4e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var Dk=256,eG=Number.MAX_SAFE_INTEGER||9007199254740991,mse=16,etr=Dk-6,Vw=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},l4e=0;function Er(t){ie[t]=l4e++}var Cse="[a-zA-Z0-9-]",Ese=[["\\s",1],["\\d",Dk],[Cse,etr]];function Tk(t){for(var e=0;e<Ese.length;e++){var r=Ese[e][0],n=Ese[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Cse+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=Cse+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+mse+"})(?:\\.(\\d{1,"+mse+"}))?(?:\\.(\\d{1,"+mse+"}))?(?:$|[^\\d])";Er("COERCERTL");Vw[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(Tk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Vw[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(Tk(me[ie.TILDETRIM]),"g");var ttr="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=_tr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=sG.relative(a,d).replace(new RegExp(`\\${sG.sep}`,"g"),"/");kk.debug(`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})}Zr.resolvePaths=Wtr;function ztr(t){return jw(this,void 0,void 0,function*(){return Gtr.promisify(bse.unlink)(t)})}Zr.unlinkFile=ztr;function I4e(t,e=[]){return jw(this,void 0,void 0,function*(){let r="";e.push("--version"),kk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Otr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){kk.debug(n.message)}return r=r.trim(),kk.debug(r),r})}function jtr(){return jw(this,void 0,void 0,function*(){let t=yield I4e("zstd",["--quiet"]),e=qtr.clean(t);return kk.debug(`zstd version: ${e}`),t===""?n0.CompressionMethod.Gzip:n0.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=jtr;function Ktr(t){return t===n0.CompressionMethod.Gzip?n0.CacheFilename.Gzip:n0.CacheFilename.Zstd}Zr.getCacheFileName=Ktr;function Xtr(){return jw(this,void 0,void 0,function*(){return bse.existsSync(n0.GnuTarPathOnWindows)?n0.GnuTarPathOnWindows:(yield I4e("tar")).toLowerCase().includes("gnu tar")?E4e.which("tar"):""})}Zr.getGnuTarPathOnWindows=Xtr;function Ztr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=Ztr;function $tr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Ytr),C4e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=$tr;function err(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=err});var Vn={};xu(Vn,{__addDisposableResource:()=>J4e,__assign:()=>iG,__asyncDelegator:()=>U4e,__asyncGenerator:()=>L4e,__asyncValues:()=>P4e,__await:()=>Xw,__awaiter:()=>x4e,__classPrivateFieldGet:()=>q4e,__classPrivateFieldIn:()=>Y4e,__classPrivateFieldSet:()=>G4e,__createBinding:()=>aG,__decorate:()=>y4e,__disposeResources:()=>V4e,__esDecorate:()=>w4e,__exportStar:()=>k4e,__extends:()=>B4e,__generator:()=>T4e,__importDefault:()=>H4e,__importStar:()=>O4e,__makeTemplateObject:()=>_4e,__metadata:()=>D4e,__param:()=>b4e,__propKey:()=>S4e,__read:()=>Sse,__rest:()=>Q4e,__rewriteRelativeImportExtension:()=>W4e,__runInitializers:()=>N4e,__setFunctionName:()=>R4e,__spread:()=>F4e,__spreadArray:()=>v4e,__spreadArrays:()=>M4e,__values:()=>oG,default:()=>nrr});function B4e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Q4e(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}function y4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function b4e(t,e){return function(r,n){e(r,n,t)}}function w4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function N4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function S4e(t){return typeof t=="symbol"?t:"".concat(t)}function R4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function D4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function x4e(t,e,r,n){function s(i){re Line truncated
${Frr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Lk.RestError=mG;function Mrr(t){return t instanceof mG?!0:(0,xrr.isError)(t)&&t.name==="RestError"}});var s0=f(EG=>{"use strict";Object.defineProperty(EG,"__esModule",{value:!0});EG.uint8ArrayToString=vrr;EG.stringToUint8Array=Lrr;function vrr(t,e){return Buffer.from(t).toString(e)}function Lrr(t,e){return Buffer.from(t,e)}});var Uk=f(CG=>{"use strict";Object.defineProperty(CG,"__esModule",{value:!0});CG.logger=void 0;var Urr=lG();CG.logger=(0,Urr.createClientLogger)("ts-http-runtime")});var mYe=f(BG=>{"use strict";Object.defineProperty(BG,"__esModule",{value:!0});BG.getBodyLength=pYe;BG.createNodeHttpClient=Jrr;var $se=(Wn(),$n(Vn)),Kse=$se.__importDefault(B("node:http")),Xse=$se.__importDefault(B("node:https")),dYe=$se.__importDefault(B("node:zlib")),Prr=B("node:stream"),hYe=Fk(),_rr=DE(),_k=Zw(),$w=Uk(),Orr=vk(),Hrr={};function Pk(t){return t&&typeof t.pipe=="function"}function gYe(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 fYe(t){return t&&typeof t.byteLength=="number"}var IG=class extends Prr.Transform{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}},Zse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new hYe.AbortError("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 Orr.Sanitizer;$w.logger.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=pYe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new IG(g);p.on("error",C=>{$w.logger.error("Error in upload progress",C)}),Pk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=qrr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Grr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new IG(h);g.on("error",p=>{$w.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Yrr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();Pk(a)&&(c=gYe(a));let u=Promise.resolve();Pk(A)&&(u=gYe(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{$w.logger.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?Kse.default.request(a,A):Xse.default.request(a,A);u.once("error",l=>{c(new _k.RestError(l.message,{code:l.code??_k.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new hYe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&Pk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):fYe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):($w.logger.error("Unrecognized body type",n),c(new _k.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Kse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Kse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Xse.default.globalAgent;let s=e.tlsSettings??Hrr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||($w.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Xse.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function qrr(t){let e=(0,_rr.createHttpHeaders)();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 Grr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=dYe.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=dYe.default.createInflate Line truncated
`.trim())}};uie.exports=FP});var ZS=E((RJt,gie)=>{"use strict";var die=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:DVe}=Lt(),kVe=am();fie()===void 0&&hie(new kVe);function hie(t){if(!t||typeof t.dispatch!="function")throw new DVe("Argument agent must implement Agent");Object.defineProperty(globalThis,die,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fie(){return globalThis[die]}gie.exports={setGlobalDispatcher:hie,getGlobalDispatcher:fie}});var eN=E((kJt,pie)=>{"use strict";pie.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 Eie=E((vJt,mie)=>{"use strict";var vVe=kS();mie.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 vVe(r,o,s,i);return r(a,c)}}});var Iie=E((_Jt,Cie)=>{"use strict";var _Ve=qS();Cie.exports=t=>e=>function(n,s){return e(n,new _Ve({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Bie=E((FJt,yie)=>{"use strict";var FVe=dt(),{InvalidArgumentError:MVe,RequestAbortedError:LVe}=Lt(),UVe=eN(),MP=class extends UVe{#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 MVe("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=FVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new LVe(`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 PVe({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)}}yie.exports=PVe});var wie=E((MJt,Qie)=>{"use strict";var{isIP:OVe}=b("node:net"),{lookup:HVe}=b("node:dns"),GVe=eN(),{InvalidArgumentError:mm,InformationalError:qVe}=Lt(),bie=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 qVe("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){HVe(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===bie?(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===bie?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 GVe{#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":sce(i)&&(r[s]=i);break;case"id":ice(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ice(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oce.exports={EventSourceStream:bO}});var gce=E((hzt,fce)=>{"use strict";var{pipeline:Zze}=b("node:stream"),{fetching:eje}=ty(),{makeRequest:tje}=Im(),{webidl:yu}=jn(),{EventSourceStream:rje}=ace(),{parseMIMEType:nje}=Ks(),{createFastMessageEvent:sje}=Sm(),{isNetworkError:cce}=ZI(),{delay:ije}=yO(),{kEnumerableProperty:cf}=dt(),{environmentSettingsObject:Ace}=xi(),uce=!1,lce=3e3,fy=0,dce=1,gy=2,oje="anonymous",aje="use-credentials",Dm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=fy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),yu.util.markAsUncloneable(this);let n="EventSource constructor";yu.argumentLengthCheck(arguments,1,n),uce||(uce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=yu.converters.USVString(e,n,"url"),r=yu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lce};let s=Ace,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=oje;r.withCredentials&&(o=aje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ace.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=tje(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===gy)return;this.#r=fy;let e={request:this.#s,dispatcher:this.#a},r=n=>{cce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?nje(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new rje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(sje(c.type,c.options))}});Zze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=eje(e)}async#A(){this.#r!==gy&&(this.#r=fy,this.dispatchEvent(new Event("error")),await ije(this.#o.reconnectionTime),this.#r===fy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){yu.brandCheck(this,t),this.#r!==gy&&(this.#r=gy,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}},hce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:fy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1}};Object.defineProperties(Dm,hce);Object.defineProperties(Dm.prototype,hce);Object.defineProperties(Dm.prototype,{close:cf,onerror:cf,onmessage:cf,onopen:cf,readyState:cf,url:cf,withCredentials:cf});yu.converters.EventSourceInitDict=yu.dictionaryConverter([{key:"withCredentials",converter:yu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:yu.converters.any}]);fce.exports={EventSource:Dm,defaultReconnectionTime:lce}});var GN=E((fzt,Ye)=>{"use strict";var cje=im(),pce=CI(),Aje=om(),uje=hne(),lje=am(),dje=zU(),hje=Lne(),fje=qne(),mce=Lt(),HN=dt(),{InvalidArgumentError:ON}=mce,km=xse(),gje=yI(),pje=xP(),mje=lie(),Eje=kP(),Cje=pP(),Ije=qS(),{getGlobalDispatcher:Ece,setGlobalDispatcher:yje}=ZS(),Bje=eN(),bje=kS(),Qje=vS();Object.assign(pce.prototype,km);Ye.exports.Dispatcher=pce;Ye.exports.Client=cje;Ye.exports.Pool=Aje;Ye.exports.BalancedPool=uje;Ye.exports.Agent=lje;Ye.exports.ProxyAgent=dje;Ye.exports.EnvHttpProxyAgent=hje;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?g3:C.type==="?"?f3:"\\"+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!==dT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===dT)return[n,s];if(!s)return CXe(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=EXe;function EXe(){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?g3:e.dot?uXe:lXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ff?r:typeof o=="string"?IXe(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;Ny.sep!=="/"&&(e=e.split(Ny.sep).join("/")),e=e.split(uue),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(ff)!==-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]===ff){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===ff){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===ff?(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===ff)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 CXe(t){return t.replace(/\\(.)/g,"$1")}function IXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Hm=E((uKt,mue)=>{"use strict";var TXe="2.0.0",xXe=Number.MAX_SAFE_INTEGER||9007199254740991,RXe=16,DXe=250,kXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];mue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:RXe,MAX_SAFE_BUILD_LENGTH:DXe,MAX_SAFE_INTEGER:xXe,RELEASE_TYPES:kXe,SEMVER_SPEC_VERSION:TXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Dy=E((lKt,Eue)=>{"use strict";var vXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Eue.exports=vXe});var Gm=E((Mc,Cue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m3,MAX_SAFE_BUILD_LENGTH:_Xe,MAX_LENGTH:FXe}=Hm(),MXe=Dy();Mc=Cue.exports={};var LXe=Mc.re=[],UXe=Mc.safeRe=[],me=Mc.src=[],PXe=Mc.safeSrc=[],Ee=Mc.t={},OXe=0,E3="[a-zA-Z0-9-]",HXe=[["\\s",1],["\\d",FXe],[E3,_Xe]],GXe=t=>{for(let[e,r]of HXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`).join(`
`+i),t.push(s+"m+"+TG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rsr()+e+" "+t[0]}function rsr(){return lo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function nsr(...t){return process.stderr.write(xG.formatWithOptions(lo.inspectOpts,...t)+`
`)}function ssr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function isr(){return process.env.DEBUG}function osr(t){t.inspectOpts={};let e=Object.keys(lo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lo.inspectOpts[e[r]]}TG.exports=mie()(lo);var{formatters:OYe}=TG.exports;OYe.o=function(t){return this.inspectOpts.colors=this.useColors,xG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};OYe.O=function(t){return this.inspectOpts.colors=this.useColors,xG.inspect(t,this.inspectOpts)}});var kG=f((ADn,Iie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Iie.exports=MYe():Iie.exports=HYe()});var YYe=f(YA=>{"use strict";var asr=YA&&YA.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Asr=YA&&YA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qYe=YA&&YA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&asr(e,t,r);return Asr(e,t),e};Object.defineProperty(YA,"__esModule",{value:!0});YA.req=YA.json=YA.toBuffer=void 0;var csr=qYe(B("http")),usr=qYe(B("https"));async function GYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}YA.toBuffer=GYe;async function lsr(t){let r=(await GYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}YA.json=lsr;function dsr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?usr:csr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}YA.req=dsr});var Qie=f(qc=>{"use strict";var VYe=qc&&qc.__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]})),hsr=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WYe=qc&&qc.__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)&&VYe(e,t,r);return hsr(e,t),e},gsr=qc&&qc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&VYe(e,t,r)};Object.defineProperty(qc,"__esModule",{value:!0});qc.Agent=void 0;var fsr=WYe(B("net")),JYe=WYe(B("http")),psr=B("https");gsr(YYe(),qc);var Wh=Symbol("AgentBaseInternalState"),Bie=class extends JYe.Agent{constructor(e){super(e),this[Wh]={}}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 fsr.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)?psr.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 JYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[Wh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Wh].currentSocket;if(this[Wh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Wh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Wh]&&(this[Wh].defaultPort=e)}get protocol(){return this[Wh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Wh]&&(this[Wh].protocol=e)}};qc.Agent=Bie});var zYe=f(lN=>{"use strict";var msr=lN&&lN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lN,"__esModule",{value:!0});lN.parseProxyResponse=void 0;var Esr=msr(kG()),FG=(0,Esr.default)("https-proxy-agent:parse-proxy-response");function Csr(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(),FG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),FG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+KT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Drt()+e+" "+t[0]}function Drt(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function krt(...t){return process.stderr.write(jT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function vrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function _rt(){return process.env.DEBUG}function Frt(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]]}KT.exports=a8()(kn);var{formatters:Jde}=KT.exports;Jde.o=function(t){return this.inspectOpts.colors=this.useColors,jT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Jde.O=function(t){return this.inspectOpts.colors=this.useColors,jT.inspect(t,this.inspectOpts)}});var $T=E((HXt,u8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u8.exports=Hde():u8.exports=zde()});var $de=E(oi=>{"use strict";var Mrt=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]})),Lrt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jde=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)&&Mrt(e,t,r);return Lrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Urt=jde(b("http")),Prt=jde(b("https"));async function Kde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Kde;async function Ort(t){let r=(await Kde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=Ort;function Hrt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Prt:Urt).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=Hrt});var d8=E(qi=>{"use strict";var Zde=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]})),Grt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ehe=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)&&Zde(e,t,r);return Grt(e,t),e},qrt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Zde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var Yrt=ehe(b("net")),Xde=ehe(b("http")),Vrt=b("https");qrt($de(),qi);var Pc=Symbol("AgentBaseInternalState"),l8=class extends Xde.Agent{constructor(e){super(e),this[Pc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(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 Yrt.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)?Vrt.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 Xde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Pc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Pc].currentSocket;if(this[Pc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Pc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Pc]&&(this[Pc].defaultPort=e)}get protocol(){return this[Pc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Pc]&&(this[Pc].protocol=e)}};qi.Agent=l8});var the=E($m=>{"use strict";var Wrt=$m&&$m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($m,"__esModule",{value:!0});$m.parseProxyResponse=void 0;var Jrt=Wrt($T()),XT=(0,Jrt.default)("https-proxy-agent:parse-proxy-response");function zrt(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(),XT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),XT("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){FG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}FG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}lN.parseProxyResponse=Csr});var yie=f($u=>{"use strict";var Isr=$u&&$u.__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]})),Bsr=$u&&$u.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZYe=$u&&$u.__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)&&Isr(e,t,r);return Bsr(e,t),e},$Ye=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.HttpsProxyAgent=void 0;var MG=ZYe(B("net")),jYe=ZYe(B("tls")),Qsr=$Ye(B("assert")),ysr=$Ye(kG()),bsr=Qie(),wsr=B("url"),Nsr=zYe(),qk=(0,ysr.default)("https-proxy-agent"),KYe=t=>t.servername===void 0&&t.host&&!MG.isIP(t.host)?{...t,servername:t.host}:t,vG=class extends bsr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wsr.URL(e):e,this.proxyHeaders=r?.headers??{},qk("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?XYe(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:"?(qk("Creating `tls.Socket`: %o",this.connectOpts),s=jYe.connect(KYe(this.connectOpts))):(qk("Creating `net.Socket`: %o",this.connectOpts),s=MG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=MG.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){XT("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}XT("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()})}$m.parseProxyResponse=zrt});var ahe=E(_o=>{"use strict";var jrt=_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]})),Krt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ihe=_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)&&jrt(e,t,r);return Krt(e,t),e},ohe=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var ZT=ihe(b("net")),rhe=ihe(b("tls")),$rt=ohe(b("assert")),Xrt=ohe($T()),Zrt=d8(),ent=b("url"),tnt=the(),Wy=(0,Xrt.default)("https-proxy-agent"),nhe=t=>t.servername===void 0&&t.host&&!ZT.isIP(t.host)?{...t,servername:t.host}:t,ex=class extends Zrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new ent.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?she(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),s=rhe.connect(nhe(this.connectOpts))):(Wy("Creating `net.Socket`: %o",this.connectOpts),s=ZT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=ZT.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 A=(0,Nsr.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",Ssr),r.secureEndpoint?(qk("Upgrading socket connection to TLS"),jYe.connect({...XYe(KYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new MG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{qk("Replaying proxy buffer for failed request"),(0,Qsr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};vG.protocols=["http","https"];$u.HttpsProxyAgent=vG;function Ssr(t){t.resume()}function XYe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var bie=f(el=>{"use strict";var Rsr=el&&el.__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]})),Dsr=el&&el.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),t5e=el&&el.__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)&&Rsr(e,t,r);return Dsr(e,t),e},xsr=el&&el.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(el,"__esModule",{value:!0});el.HttpProxyAgent=void 0;var Tsr=t5e(B("net")),ksr=t5e(B("tls")),Fsr=xsr(kG()),Msr=B("events"),vsr=Qie(),e5e=B("url"),dN=(0,Fsr.default)("http-proxy-agent"),LG=class extends vsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new e5e.URL(e):e,this.proxyHeaders=r?.headers??{},dN("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?Lsr(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 e5e.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;dN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(dN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,tnt.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",rnt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),rhe.connect({...she(nhe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new ZT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,$rt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};ex.protocols=["http","https"];_o.HttpsProxyAgent=ex;function rnt(t){t.resume()}function she(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var uhe=E(Fo=>{"use strict";var nnt=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]})),snt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ahe=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)&&nnt(e,t,r);return snt(e,t),e},int=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var ont=Ahe(b("net")),ant=Ahe(b("tls")),cnt=int($T()),Ant=b("events"),unt=d8(),che=b("url"),Xm=(0,cnt.default)("http-proxy-agent"),tx=class extends unt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new che.URL(e):e,this.proxyHeaders=r?.headers??{},Xm("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?lnt(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 che.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;Xm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Xm("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),dN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(dN("Creating `tls.Socket`: %o",this.connectOpts),i=ksr.connect(this.connectOpts)):(dN("Creating `net.Socket`: %o",this.connectOpts),i=Tsr.connect(this.connectOpts)),await(0,Msr.once)(i,"connect"),i}};LG.protocols=["http","https"];el.HttpProxyAgent=LG;function Lsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var wie=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.globalNoProxyList=tl.proxyPolicyName=void 0;tl.loadNoProxy=o5e;tl.getDefaultProxySettings=Vsr;tl.proxyPolicy=zsr;var Usr=yie(),Psr=bie(),_sr=Uk(),Osr="HTTPS_PROXY",Hsr="HTTP_PROXY",qsr="ALL_PROXY",Gsr="NO_PROXY";tl.proxyPolicyName="proxyPolicy";tl.globalNoProxyList=[];var s5e=!1,Ysr=new Map;function UG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function i5e(){if(!process)return;let t=UG(Osr),e=UG(qsr),r=UG(Hsr);return t||e||r}function Jsr(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function o5e(){let t=UG(Gsr);return s5e=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function Vsr(t){if(!t&&(t=i5e(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function Wsr(){let t=i5e();return t?new URL(t):void 0}function r5e(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function n5e(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&_sr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new Psr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Usr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function zsr(t,e){s5e||tl.globalNoProxyList.push(...o5e());let r=t?r5e(t):Wsr(),n={};return{name:tl.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!Jsr(s.url,e?.customNoProxyList??tl.globalNoProxyList,e?.customNoProxyList?void 0:Ysr)?n5e(s,n,r):s.proxySettings&&n5e(s,n,r5e(s.proxySettings)),i(s)}}}});var Nie=f(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.agentPolicyName=void 0;hN.agentPolicy=jsr;hN.agentPolicyName="agentPolicy";function jsr(t){return{name:hN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var Sie=f(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.tlsPolicyName=void 0;gN.tlsPolicy=Ksr;gN.tlsPolicyName="tlsPolicy";function Ksr(t){return{name:gN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Gk=f(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.isNodeReadableStream=a5e;a0.isWebReadableStream=A5e;a0.isBinaryBody=Xsr;a0.isReadableStream=c5e;a0.isBlob=Zsr;function a5e(t){return!!(t&&typeof t.pipe=="function")}function A5e(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function Xsr(t){return t!==void 0&&(t instanceof Uint8Array||c5e(t)||typeof t=="function"||t instanceof Blob)}function c5e(t){return a5e(t)||A5e(t)}function Zsr(t){return typeof t.stream=="function"}});var d5e=f(Die=>{"use strict";Object.defineProperty(Die,"__esModule",{value:!0});Die.concat=rir;var Rie=B("stream"),$sr=Gk();async function*u5e(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function eir(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=u5e.bind(t)),t.values||(t.values=u5e.bind(t))}function l5e(t){return t instanceof ReadableStream?(eir(t),Rie.Readable.fromWeb(t)):t}function tir(t){return t instanceof Uint8Array?Rie.Readable.from(Buffer.from(t)):(0,$sr.isBlob)(t)?l5e(t.stream()):l5e(t)}async function rir(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(tir);return Rie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var xie=f(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0});pN.multipartPolicyName=void 0;pN.multipartPolicy=gir;var fN=s0(),nir=Gk(),sir=hG(),iir=d5e();function oir(){return`----AzSDKFormBoundary${(0,sir.randomUUID)()}`}function air(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Air(t){return t instanceof Uint8Array?t.byteLength:(0,nir.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function cir(t){let e=0;for(let r of t){let n=Air(r);if(n===void 0)return;e+=n}return e}async function uir(t,e,r){let n=[(0,fN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,fN.stringToUint8Array)(`\r
`,"utf-8"),(0,fN.stringToUint8Array)(air(i.headers),"utf-8"),(0,fN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,fN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,fN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=cir(n);s&&t.headers.set("Content-Length",s),t.body=await(0,iir.concat)(n)}pN.multipartPolicyName="multipartPolicy";var lir=70,dir=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hir(t){if(t.length>lir)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!dir.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function gir(){return{name:pN.multipartPolicyName,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?hir(r):r=oir(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await uir(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var f5e=f(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0});Tie.createPipelineFromOptions=wir;var fir=rie(),pir=Yse(),mir=nie(),Eir=oie(),Cir=aie(),Iir=fie(),Bir=pie(),h5e=Hk(),Qir=wie(),yir=Nie(),bir=Sie(),g5e=xie();function wir(t){let e=(0,pir.createEmptyPipeline)();return h5e.isNodeLike&&(t.agent&&e.addPolicy((0,yir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,bir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,Qir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Cir.decompressResponsePolicy)())),e.addPolicy((0,Bir.formDataPolicy)(),{beforePolicies:[g5e.multipartPolicyName]}),e.addPolicy((0,Eir.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,g5e.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,Iir.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),h5e.isNodeLike&&e.addPolicy((0,mir.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,fir.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var p5e=f(mN=>{"use strict";Object.defineProperty(mN,"__esModule",{value:!0});mN.apiVersionPolicyName=void 0;mN.apiVersionPolicy=Nir;mN.apiVersionPolicyName="ApiVersionPolicy";function Nir(t){return{name:mN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var m5e=f(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});EN.isOAuth2TokenCredential=Sir;EN.isBearerTokenCredential=Rir;EN.isBasicCredential=Dir;EN.isApiKeyCredential=xir;function Sir(t){return"getOAuth2Token"in t}function Rir(t){return"getBearerToken"in t}function Dir(t){return"username"in t&&"password"in t}function xir(t){return"key"in t}});var Yk=f(kie=>{"use strict";Object.defineProperty(kie,"__esModule",{value:!0});kie.ensureSecureConnection=Mir;var Tir=Uk(),E5e=!1;function kir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function Fir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";Tir.logger.warning(t),typeof process?.emitWarning=="function"&&!E5e&&(E5e=!0,process.emitWarning(t))}function Mir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(kir(t,e))Fir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var C5e=f(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.apiKeyAuthenticationPolicyName=void 0;CN.apiKeyAuthenticationPolicy=Lir;var vir=Yk();CN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Lir(t){return{name:CN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,vir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var B5e=f(IN=>{"use strict";Object.defineProperty(IN,"__esModule",{value:!0});IN.basicAuthenticationPolicyName=void 0;IN.basicAuthenticationPolicy=Pir;var I5e=s0(),Uir=Yk();IN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function Pir(t){return{name:IN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,Uir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,I5e.uint8ArrayToString)((0,I5e.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var Q5e=f(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var f9e=f(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.auxiliaryAuthenticationHeaderPolicyName=void 0;l0.auxiliaryAuthenticationHeaderPolicy=ycr;var Icr=voe(),Bcr=Wk();l0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var g9e="x-ms-authorization-auxiliary";async function Qcr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function ycr(t){let{credentials:e,scopes:r}=t,n=t.logger||Bcr.logger,s=new WeakMap;return{name:l0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${l0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,Icr.createTokenCycler)(c),s.set(c,u)),a.push(Qcr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${g9e} header will not be set.`),o(i)):(i.headers.set(g9e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Ji=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var bcr=Gie();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return bcr.createEmptyPipeline}});var wcr=X6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return wcr.createPipelineFromOptions}});var Ncr=Z6e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return Ncr.createDefaultHttpClient}});var Scr=$6e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return Scr.createHttpHeaders}});var Rcr=e9e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return Rcr.createPipelineRequest}});var p9e=i8();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return p9e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return p9e.isRestError}});var m9e=hoe();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return m9e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return m9e.decompressResponsePolicyName}});var E9e=r9e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return E9e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return E9e.exponentialRetryPolicyName}});var C9e=Eoe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return C9e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return C9e.setClientRequestIdPolicyName}});var I9e=Zie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return I9e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return I9e.logPolicyName}});var B9e=doe();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return B9e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return B9e.multipartPolicyName}});var Loe=moe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Loe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Loe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Loe.getDefaultProxySettings}});var Q9e=$ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return Q9e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Me=h(Q,J);if(Me===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Me.value;if(J=Me.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Me.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=Ic(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Me=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Me=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Me=q.lastIndexOf("."),q=q.substring(0,Me),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=WI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=Ic(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=Ic(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=WI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Me=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Ys="";if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let Su=this.readStopNodeData(Q,Ee,bt+1);if(!Su)throw new Error(`Unexpected end of ${Ee}`);J=Su.i,Ys=Su.tagContent}let _a=new F(ae);ae!==Me&&zt&&(_a[":@"]=this.buildAttributesMap(Me,q,ae)),Ys&&(Ys=this.parseTextData(Ys,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),_a.add(this.options.textNodeName,Ys),this.addChild(P,_a,q,hn)}else{if(Me.length>0&&Me.lastIndexOf("/")===Me.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Me=ae):Me=Me.substr(0,Me.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Ys=new F(ae);ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Ys=new F(ae);this.tagsNodeStack.push(P),ae!==Me&&zt&&(Ys[":@"]=this.buildAttributesMap(Me,q,ae)),this.addChild(P,Ys,q,hn),P=Ys}j="",J=bt}}else j+=Q[J];return b.child};function JI(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let VI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function Ic(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function WI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Ys,_a="";for(let Su=pr;Su<bt.length;Su++){let Bc=bt[Su];if(Ys)Bc===Ys&&(Ys="");else if(Bc==='"'||Bc==="'")Ys=Bc;else if(Bc===hn[0]){if(!hn[1])return{data:_a,index:Su};if(bt[Su+1]===hn[1])return{data:_a,index:Su}}else Bc===" "&&(Bc=" ");_a+=Bc}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Me=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Me=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Uf(Q,b,"",P)}function Uf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=BA(ae);if(Ee===void 0)continue;let Me="";if(Me=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];qm(Me,b)||(hn=b.tagValueProcessor(Ee,hn),hn=eB(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=QA(ae[":@"],b),Ys=Ee==="?xml"?"":j,_a=ae[Ee][0][b.textNodeName];_a=_a.length!==0?" "+_a:"",q+=Ys+`<${Ee}${_a}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${QA(ae[":@"],b)}`,pr=Uf(ae[Ee],b,Me,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function BA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function QA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=eB(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function qm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function eB(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?$I(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Me="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Me+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Me,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Me=0;Me<Ee;Me++)j+=this.buildAttrPairStr(ae[Me],""+Q[ue][ae[Me]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};TJe.exports=e})()});var cae=f(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.XML_CHARKEY=GN.XML_ATTRKEY=void 0;GN.XML_ATTRKEY="$";GN.XML_CHARKEY="_"});var vJe=f(S8=>{"use strict";Object.defineProperty(S8,"__esModule",{value:!0});S8.stringifyXML=_lr;S8.parseXML=Olr;var uae=kJe(),FJe=cae();function MJe(t){var e;return{attributesGroupName:FJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:FJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Ulr(t={}){var e,r;return Object.assign(Object.assign({},MJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Plr(t={}){return Object.assign(Object.assign({},MJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ha.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ha.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ha.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,Tdr.compareHeader)(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=(0,rVe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,rVe.getURLQueries)(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}};q8.StorageSharedKeyCredentialPolicy=Rae});var nVe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.StorageSharedKeyCredential=void 0;var kdr=B("node:crypto"),Fdr=Dae(),Mdr=O8(),xae=class extends Mdr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Fdr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,kdr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};G8.StorageSharedKeyCredential=xae});var sVe=f(Y8=>{"use strict";Object.defineProperty(Y8,"__esModule",{value:!0});Y8.AbortError=void 0;var Tae=class extends Error{constructor(e){super(e),this.name="AbortError"}};Y8.AbortError=Tae});var kae=f(J8=>{"use strict";Object.defineProperty(J8,"__esModule",{value:!0});J8.AbortError=void 0;var vdr=sVe();Object.defineProperty(J8,"AbortError",{enumerable:!0,get:function(){return vdr.AbortError}})});var Fae=f(V8=>{"use strict";Object.defineProperty(V8,"__esModule",{value:!0});V8.logger=void 0;var Ldr=A0();V8.logger=(0,Ldr.createClientLogger)("storage-common")});var Mae=f(W8=>{"use strict";Object.defineProperty(W8,"__esModule",{value:!0});W8.StorageRetryPolicyType=void 0;var iVe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(iVe||(W8.StorageRetryPolicyType=iVe={}))});var aVe=f(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.StorageRetryPolicy=void 0;I2.NewRetryPolicyFactory=_dr;var Udr=kae(),Pdr=C2(),oVe=Cp(),vae=h0(),LE=Fae(),Lae=Mae();function _dr(t){return{create:(e,r)=>new z8(e,r,t)}}var UE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Odr=new Udr.AbortError("The operation was aborted."),z8=class extends Pdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=UE){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:UE.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):UE.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:UE.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:UE.maxRetryDelayInMs):UE.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:UE.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:UE.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=(0,vae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,vae.setURLParameter)(s.url,oVe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(LE.logger.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(LE.logger.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 LE.logger.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 LE.logger.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 LE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return LE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(oVe.HeaderConstants.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')?(LE.logger.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 Lae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return LE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,vae.delay)(s,n,Odr)}};I2.StorageRetryPolicy=z8});var _ae=f(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,Zdr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ga.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ga.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ga.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,$dr.compareHeader)(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=(0,hVe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,hVe.getURLQueries)(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:KN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var fVe=f(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.storageRequestFailureDetailsParserPolicyName=void 0;XN.storageRequestFailureDetailsParserPolicy=thr;XN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function thr(){return{name:XN.storageRequestFailureDetailsParserPolicyName,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}});var pVe=f(j8=>{"use strict";Object.defineProperty(j8,"__esModule",{value:!0});j8.UserDelegationKeyCredential=void 0;var rhr=B("node:crypto"),Gae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,rhr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};j8.UserDelegationKeyCredential=Gae});var bd=f(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.BaseRequestPolicy=Ks.getCachedDefaultHttpClient=void 0;var fa=(Wn(),$n(Vn));fa.__exportStar(OJe(),Ks);var nhr=HJe();Object.defineProperty(Ks,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return nhr.getCachedDefaultHttpClient}});fa.__exportStar(GJe(),Ks);fa.__exportStar(eVe(),Ks);fa.__exportStar(tVe(),Ks);fa.__exportStar(O8(),Ks);fa.__exportStar(nVe(),Ks);fa.__exportStar(_ae(),Ks);var shr=C2();Object.defineProperty(Ks,"BaseRequestPolicy",{enumerable:!0,get:function(){return shr.BaseRequestPolicy}});fa.__exportStar(yae(),Ks);fa.__exportStar(U8(),Ks);fa.__exportStar(AVe(),Ks);fa.__exportStar(cVe(),Ks);fa.__exportStar(dVe(),Ks);fa.__exportStar(Dae(),Ks);fa.__exportStar(gVe(),Ks);fa.__exportStar(fVe(),Ks);fa.__exportStar(pVe(),Ks)});var Gc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var PE=f(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.Pipeline=Zh.StorageOAuthScopes=void 0;Zh.isPipelineLike=ohr;Zh.newPipeline=ahr;Zh.getCoreClientOptions=chr;Zh.getCredentialFromPipeline=BVe;var IVe=N8(),mVe=Ji(),EVe=jh(),CVe=lae(),Yae=PN(),ihr=D8(),Yc=bd(),B2=Gc();Object.defineProperty(Zh,"StorageOAuthScopes",{enumerable:!0,get:function(){return B2.StorageOAuthScopes}});function ohr(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 K8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};Zh.Pipeline=K8;function ahr(t,e={}){t||(t=new Yc.AnonymousCredential);let r=new K8([],e);return r._credential=t,r}function Ahr(t){let e=[uhr,QVe,lhr,dhr,hhr,ghr,phr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>fhr(s));return{wrappedPolicies:(0,IVe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function chr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,IVe.convertHttpClient)(e):(0,Yc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${B2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,EVe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:B2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:B2.StorageBlobLoggingAllowedQueryParameters,logger:ihr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:CVe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new C0.SASQueryParameters(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 Sfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Rfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Dfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 xfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 Tfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 kfr(t,e){if(t=B0(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=p0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=m0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Xs.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Xs.truncatedISO8061Date)(t.expiresOn,!1):"",I0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Xs.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,E0.ipRangeToString)(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 C0.SASQueryParameters(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 I0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function B0(t){let e=t.version?t.version:aWe.SERVICE_VERSION;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 I3=f(C3=>{"use strict";Object.defineProperty(C3,"__esModule",{value:!0});C3.BlobLeaseClient=void 0;var Ffr=Bs(),eg=Gc(),y2=f0(),E3=nl(),hAe=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=(0,Ffr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==eg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,E3.assertResponse)(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!==eg.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,E3.assertResponse)(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!==eg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==eg.ETagNone||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 y2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,E3.assertResponse)(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!==eg.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${RWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(SWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function apr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await opr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(DWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!RWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}VE.pollOperation=apr});var LAe=f(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.pollHttpOperation=Zs.isOperationError=Zs.getResourceLocation=Zs.getOperationStatus=Zs.getOperationLocation=Zs.initHttpOperation=Zs.getStatusFromInitialResponse=Zs.getErrorFromResponse=Zs.parseRetryAfter=Zs.inferLroMode=void 0;var xWe=F3(),FAe=T3();function TWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function kWe(t){return t.headers.location}function FWe(t){return t.headers["operation-location"]}function MWe(t){return t.headers["azure-asyncoperation"]}function Apr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function vWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=FWe(e),o=MWe(e),a=TWe({operationLocation:i,azureAsyncOperation:o}),A=kWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Apr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Zs.inferLroMode=vWe;function LWe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return MAe(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return FAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function cpr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return LWe({status:r,statusCode:t.statusCode})}function upr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return LWe({status:i,statusCode:t.statusCode})}function MAe(t){return t===202?"running":t<300?"succeeded":"failed"}function UWe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?lpr(new Date(e)):r*1e3}}Zs.parseRetryAfter=UWe;function PWe(t){let e=HWe(t,"error");if(!e){FAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){FAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Zs.getErrorFromResponse=PWe;function lpr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function _We(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return MAe(e.rawResponse.statusCode);case"Body":return vAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Zs.getStatusFromInitialResponse=_We;async function dpr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,xWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=vWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:_We,setErrorAsResult:i})}Zs.initHttpOperation=dpr;function OWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,g4.truncatedISO8061Date)(t.startsOn,!1):"",(0,g4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,fze.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Cmr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var Bze=f(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.BlobServiceClient=void 0;var Qmr=PN(),ymr=Ji(),mze=Bs(),S2=PE(),bmr=ace(),p4=nl(),w0=bd(),ig=nl(),og=f0(),wmr=i4(),Nmr=c3(),Eze=u4(),Cze=dce(),Ize=h4(),hce=class t extends Nmr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,p4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(mze.isNodeLike){let s=new w0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,ymr.getDefaultProxySettings)(n.proxyUri));let i=(0,S2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,S2.newPipeline)(new w0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,S2.isPipelineLike)(r)?s=r:mze.isNodeLike&&r instanceof w0.StorageSharedKeyCredential||r instanceof w0.AnonymousCredential||(0,Qmr.isTokenCredential)(r)?s=(0,S2.newPipeline)(r,n):s=(0,S2.newPipeline)(new w0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new bmr.ContainerClient((0,p4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return og.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,ig.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return og.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,ig.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,ig.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return og.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,ig.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return og.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,ig.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return og.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,ig.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return og.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,ig.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,p4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};zA.NetworkError=B4;B4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Q4=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};zA.UsageError=Q4;Q4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Nze=f(jA=>{"use strict";var Tmr=jA&&jA.__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]})),kmr=jA&&jA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fmr=jA&&jA.__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)&&Tmr(e,t,r);return kmr(e,t),e},Mmr=jA&&jA.__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(jA,"__esModule",{value:!0});jA.uploadCacheArchiveSDK=jA.UploadProgress=void 0;var Ice=Fmr(Oc()),vmr=gce(),Lmr=Cce(),y4=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);Ice.info(`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()}};jA.UploadProgress=y4;function Umr(t,e,r){var n;return Mmr(this,void 0,void 0,function*(){let s=new vmr.BlobClient(t),i=s.getBlockBlobClient(),o=new y4((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(),Ice.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new Lmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ice.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}jA.uploadCacheArchiveSDK=Umr});var Qce=f(ei=>{"use strict";var Pmr=ei&&ei.__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]})),_mr=ei&&ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Omr=ei&&ei.__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)&&Pmr(e,t,r);return _mr(e,t),e},w4=ei&&ei.__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(ei,"__esModule",{value:!0});ei.retryHttpClientResponse=ei.retryTypedResponse=ei.retry=ei.isRetryableStatusCode=ei.isServerErrorStatusCode=ei.isSuccessStatusCode=void 0;var Sze=Omr(Oc()),b4=XB(),dS=zw();function Hmr(t){return t?t>=200&&t<300:!1}ei.isSuccessStatusCode=Hmr;function Rze(t){return t?t>=500:!0}ei.isServerErrorStatusCode=Rze;function Dze(t){return t?[b4.HttpCodes.BadGateway,b4.HttpCodes.ServiceUnavailable,b4.HttpCodes.GatewayTimeout].includes(t):!1}ei.isRetryableStatusCode=Dze;function qmr(t){return w4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bce(t,e,r,n=dS.DefaultRetryAttempts,s=dS.DefaultRetryDelay,i=void 0){return w4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!Rze(c)))return A;if(c&&(u=Dze(c),o=`Cache service responded with ${c}`),Sze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Wc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function wEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=new mEr.URL(t),s=(0,Dce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,D4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,D4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,D4.downloadCacheHttpClient)(t,e):yield(0,D4.downloadCacheHttpClient)(t,e)})}mo.downloadCache=wEr;function NEr(t,e,r){return KA(this,void 0,void 0,function*(){let n=xce(),s=fS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,KE.retryTypedResponse)("reserveCache",()=>KA(this,void 0,void 0,function*(){return n.postJson(F2("caches"),i)}))})}mo.reserveCache=NEr;function Hze(t,e){return`bytes ${t}-${e}/*`}function SEr(t,e,r,n,s){return KA(this,void 0,void 0,function*(){Wc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Hze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Hze(n,s)},o=yield(0,KE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>KA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,KE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function REr(t,e,r,n){return KA(this,void 0,void 0,function*(){let s=fS.getArchiveFileSizeInBytes(r),i=F2(`caches/${e.toString()}`),o=Sce.openSync(r,"r"),a=(0,Dce.getUploadOptions)(n),A=fS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=fS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Wc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>KA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield SEr(t,i,()=>Sce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{Sce.closeSync(o)}})}function DEr(t,e,r){return KA(this,void 0,void 0,function*(){let n={size:r};return yield(0,KE.retryTypedResponse)("commitCache",()=>KA(this,void 0,void 0,function*(){return t.postJson(F2(`caches/${e.toString()}`),n)}))})}function xEr(t,e,r,n){return KA(this,void 0,void 0,function*(){if((0,Dce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,EEr.uploadCacheArchiveSDK)(r,e,n)}else{let i=xce();Wc.debug("Upload cache"),yield REr(i,t,e,n),Wc.debug("Commiting cache");let o=fS.getArchiveFileSizeInBytes(e);Wc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield DEr(i,t,o);if(!(0,KE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Wc.info("Cache saved successfully")}})}mo.saveCache=xEr});var x4=f(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.isJsonObject=pS.typeofJsonValue=void 0;function TEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}pS.typeofJsonValue=TEr;function kEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}pS.isJsonObject=kEr});var k4=f(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.base64encode=mS.base64decode=void 0;var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),T4=[];for(let t=0;t<yp.length;t++)T4[yp[t].charCodeAt(0)]=t;T4[45]=yp.indexOf("+");T4[95]=yp.indexOf("/");function FEr(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=T4[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)}mS.base64decode=FEr;function MEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=yp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=yp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=yp[s|n>>6],e+=yp[n&63],r=0;break}return r&&(e+=yp[s],e+="=",r==1&&(e+="=")),e}mS.base64encode=MEr});var Gze=f(F4=>{"use strict";Object.defineProperty(F4,"__esModule",{value:!0});F4.utf8read=void 0;var Tce=t=>String.fromCharCode.apply(String,t);function vEr(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(Tce(n)),s=0);return r.length?(s&&r.push(Tce(n.slice(0,s))),r.join("")):Tce(n.slice(0,s))}F4.utf8read=vEr});var M2=f(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.WireType=ag.mergeBinaryOptions=ag.UnknownFieldHandler=void 0;var LEr;(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])})(LEr=ag.UnknownFieldHandler||(ag.UnknownFieldHandler={}));function UEr(t,e){return Object.assign(Object.assign({},t),e)}ag.mergeBinaryOptions=UEr;var PEr;(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"})(PEr=ag.WireType||(ag.WireType={}))});var v4=f(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.varint32read=XA.varint32write=XA.int64toString=XA.int64fromString=XA.varint64write=XA.varint64read=void 0;function _Er(){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")}XA.varint64read=_Er;function OEr(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)}}XA.varint64write=OEr;var M4=65536*65536;function HEr(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>=M4&&(s=s+(n/M4|0),n=n%M4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}XA.int64fromString=HEr;function qEr(t,e){if(e>>>0<=2097151)return""+(M4*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)}XA.int64toString=qEr;function GEr(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)}}XA.varint32write=GEr;function YEr(){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}XA.varint32read=YEr});var ZE=f(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.PbLong=XE.PbULong=XE.detectBi=void 0;var v2=v4(),_n;function Yze(){let t=new DataView(new ArrayBuffer(8));_n=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}XE.detectBi=Yze;Yze();function Jze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Vze=/^-?[0-9]+$/,U4=4294967296,L4=2147483648, Line truncated
`)}};AY.RpcError=sue});var oue=f(uY=>{"use strict";Object.defineProperty(uY,"__esModule",{value:!0});uY.mergeRpcOptions=void 0;var Qje=lr();function dIr(t,e){if(!e)return t;let r={};cY(t,r),cY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Qje.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Qje.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cY(t.meta,r.meta),cY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}uY.mergeRpcOptions=dIr;function cY(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 Aue=f(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.Deferred=R0.DeferredState=void 0;var ug;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ug=R0.DeferredState||(R0.DeferredState={}));var aue=class{constructor(e=!0){this._state=ug.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!==ug.PENDING)throw new Error(`cannot resolve ${ug[this.state].toLowerCase()}`);this._resolve(e),this._state=ug.RESOLVED}reject(e){if(this.state!==ug.PENDING)throw new Error(`cannot reject ${ug[this.state].toLowerCase()}`);this._reject(e),this._state=ug.REJECTED}resolvePending(e){this._state===ug.PENDING&&this.resolve(e)}rejectPending(e){this._state===ug.PENDING&&this.reject(e)}};R0.Deferred=aue});var uue=f(lY=>{"use strict";Object.defineProperty(lY,"__esModule",{value:!0});lY.RpcOutputStreamController=void 0;var yje=Aue(),D0=lr(),cue=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){D0.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){D0.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){D0.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(){D0.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;D0.assert(e,"bad state"),D0.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 yje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;D0.assert(n.state==yje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};lY.RpcOutputStreamController=cue});var due=f(bS=>{"use strict";var hIr=bS&&bS.__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(bS,"__esModule",{value:!0});bS.UnaryCall=void 0;var lue=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 hIr(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}})}};bS.UnaryCall=lue});var gue=f(wS=>{"use strict";var gIr=wS&&wS.__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(wS,"__esModule",{value:!0});wS.ServerStreamingCall=void 0;var hue=class Line truncated
`));let n=yield Uue(r,"create");yield Pue(n,t)})}pa.createTar=ABr});var Z2=f(Mi=>{"use strict";var cBr=Mi&&Mi.__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]})),uBr=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),K2=Mi&&Mi.__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)&&cBr(e,t,r);return uBr(e,t),e},HS=Mi&&Mi.__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(Mi,"__esModule",{value:!0});Mi.saveCache=Mi.restoreCache=Mi.isFeatureAvailable=Mi.ReserveCacheError=Mi.ValidationError=void 0;var dr=K2(Oc()),CY=K2(B("path")),bs=K2(Kw()),_S=K2(qze()),qje=K2(Pje()),X2=S4(),tC=Hje(),lBr=zw(),y2n=XB(),rC=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Mi.ValidationError=rC;var j2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Mi.ReserveCacheError=j2;function Gje(t){if(!t||t.length===0)throw new rC("Path Validation Error: At least one directory or file path is required")}function _ue(t){if(t.length>512)throw new rC(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new rC(`Key Validation Error: ${t} cannot contain commas.`)}function dBr(){return(0,X2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}Mi.isFeatureAvailable=dBr;function hBr(t,e,r,n,s=!1){return HS(this,void 0,void 0,function*(){let i=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Gje(t),i==="v2"?yield fBr(t,e,r,n,s):yield gBr(t,e,r,n,s)})}Mi.restoreCache=hBr;function gBr(t,e,r,n,s=!1){return HS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new rC("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)_ue(A);let o=yield bs.getCompressionMethod(),a="";try{let A=yield _S.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=CY.join(yield bs.createTempDirectory(),bs.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield _S.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,tC.listTar)(a,o));let c=bs.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,tC.extractTar)(a,o),dr.info("Cache restored successfully"),new OS(A.cacheKey,c)}finally{try{yield bs.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function fBr(t,e,r,n,s=!1){return HS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new rC("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)_ue(a);let o="";try{let a=qje.internalCacheTwirpClient(),A=yield bs.getCompressionMethod(),c={key:e,restoreKeys:r,version:bs.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=CY.join(yield bs.createTempDirectory(),bs.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield _S.downloadCache(u.signedDownloadUrl,o,n);let d=bs.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,tC.listTar)(o,A)),yield(0,tC.extractTar)(o,A),dr.info("Cache restored successfully"),new OS(u.matchedKey,d)}finally{try{o&&(yield bs.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function pBr(t,e,r,n=!1){return HS(this,void 0,void 0,function*(){let s=(0,X2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Gje(t),_ue(e),s==="v2"?yield EBr(t,e,r,n):yield mBr(t,e,r,n)})}Mi.saveCache=pBr;function mBr(t,e,r,n=!1){var s,i,o,a,A;return HS(this,void 0,void 0,function*(){let c=yield bs.getCompressionMethod(),u=-1,l=yield bs.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function $Qr(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(UQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function eyr(){return"allowed"}function tyr(){return"success"}function ryr(){return"success"}function nyr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function syr(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&&_le(t.origin)&&!_le(dF(t))&&(e=null);break;case"same-origin":zY(t,dF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function tR(t,e){return t}function iyr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:tR(t.domainLookupStartTime,r),domainLookupEndTime:tR(t.domainLookupEndTime,r),connectionStartTime:tR(t.connectionStartTime,r),connectionEndTime:tR(t.connectionEndTime,r),secureConnectionStartTime:tR(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function oyr(t){return tR(qQr.now(),t)}function ayr(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 WKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Ayr(t){return{referrerPolicy:t.referrerPolicy}}function cyr(t){let e=t.referrerPolicy;U0(e);let r=null;if(t.referrer==="client"){let a=HKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=Ple(r),s=Ple(r,!0);n.toString().length>4096&&(n=s);let i=zY(t,n),o=lF(n)&&!lF(t.url);switch(e){case"origin":return s??Ple(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=dF(t);return zY(n,a)?n:lF(n)&&!lF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function Ple(t,e){return U0(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 lF(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 uyr(t,e){if(WY===void 0)return!0;let r=zKe(e);if(r==="no metadata"||r.length===0)return!0;let n=dyr(r),s=hyr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=WY.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)),gyr(A,a))return!0}return!1}var lyr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function zKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=lyr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();GKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function dyr(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 hyr(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 gyr(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 fyr(t){}function zY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function pyr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function myr(t){return t.controller.state==="aborted"}function Eyr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Cyr(t){return JQr[t.toLowerCase()]??t}function Iyr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return U0(typeof e=="string"),e}var Byr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function jKe(t,e,r=0,n=1){cl Line truncated
`);function Xyr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Zyr(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 $yr(t,e){KY(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&&XY(t,jyr,i)||i.position===t.length-4&&XY(t,Kyr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=ebr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",Xyr(u)||(u=""),h=new Wyr([d],c,{type:u})):h=qyr(Buffer.from(d)),KY(aXe(A)),KY(typeof h=="string"&&aXe(h)||Yyr(h)),s.push(Jyr(A,h,c))}}function ebr(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=nR(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Vle(o,!0,!0,a=>a===9||a===32),!Gyr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,nR(a=>a===32||a===9,t,e),Hyr(o)){case"content-disposition":{if(r=n=null,!XY(t,zyr,e)||(e.position+=17,r=uXe(t,e),r===null))return"failure";if(XY(t,cXe,e)){let a=e.position+cXe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=uXe(t,e),n===null))return"failure"}break}case"content-type":{let a=nR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),s=AXe(a);break}case"content-transfer-encoding":{let a=nR(A=>A!==10&&A!==13,t,e);a=Vle(a,!1,!0,A=>A===9||A===32),i=AXe(a);break}default:nR(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function uXe(t,e){KY(t[e.position-1]===34);let r=nR(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 nR(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Vle(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 XY(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}lXe.exports={multipartFormDataParser:$yr,validateBoundary:Zyr}});var oR=f((EFn,QXe)=>{"use strict";var fF=Ir(),{ReadableStreamFrom:tbr,isBlobLike:hXe,isReadableStreamLike:rbr,readableStreamClose:nbr,createDeferredPromise:sbr,fullyReadBody:ibr,extractMimeType:obr,utf8DecodeBytes:pXe}=jc(),{FormData:gXe}=gF(),{kState:iR}=oC(),{webidl:abr}=Wo(),{Blob:Abr}=B("node:buffer"),Wle=B("node:assert"),{isErrored:mXe,isDisturbed:cbr}=B("node:stream"),{isArrayBuffer:ubr}=B("node:util/types"),{serializeAMimeType:lbr}=$A(),{multipartFormDataParser:dbr}=dXe(),zle;try{let t=B("node:crypto");zle=e=>t.randomInt(0,e)}catch{zle=t=>Math.floor(Math.random(t))}var ZY=new TextEncoder;function hbr(){}var EXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,CXe;EXe&&(CXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cbr(e)&&!mXe(e)&&e.cancel("Response object has been garbage collected").catch(hbr)}));function IXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:hXe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?ZY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>nbr(A))},start(){},type:"bytes"}),Wle(rbr(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(ubr(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(fF.isFormDataLike(t)){let A=`----formdata-undici-0${`${zle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=ZY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=ZY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=ZY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(hXe(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(fF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:tbr(t)}if((typeof s=="string"||fF.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(!mXe(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 gbr(t,e=!1){return t instanceof ReadableStream&&(Wle(!fF.isDisturbed(t),"The body has already been consumed."),Wle(!t.locked,"The stream is locked.")),IXe(t,e)}function fbr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function pbr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function mbr(t){return{blob(){return sR(this,r=>{let n=fXe(this);return n===null?n="":n&&(n=lbr(n)),new Abr([r],{type:n})},t)},arrayBuffer(){return sR(this,r=>new Uint8Array(r).buffer,t)},text(){return sR(this,pXe,t)},json(){return sR(this,Cbr,t)},formData(){return sR(this,r=>{let n=fXe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=dbr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gXe;return i[iR]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new gXe;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 sR(this,r=>new Uint8Array(r),t)}}}function Ebr(t){Object.assign(t.prototype,mbr(t))}async function sR(t,e,r){if(abr.brandCheck(t,r),BXe(t))throw new TypeError("Body is unusable: Body has already been read");pbr(t[iR]);let n=sbr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[iR].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await ibr(t[iR].body,i,s),n.promise)}function BXe(t){let e=t[iR].body;return e!=null&&(e.stream.locked||fF.isDisturbed(e.stream))}function Cbr(t){return JSON.parse(pXe(t))}function fXe(t){let e=t[iR].headersList,r=obr(e);return r==="failure"?null:r}QXe.exports={extractBody:IXe,safelyExtractBody:gbr,cloneBody:fbr,mixinBody:Ebr,streamRegistry:CXe,hasFinalizationRegistry:EXe,bodyUnusable:BXe}});var FXe=f((CFn,kXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:yXe}=WS(),jle=xle(),{RequestContentLengthMismatchError:P0,ResponseContentLengthMismatchError:Ibr,RequestAbortedError:DXe,HeadersTimeoutError:Bbr,HeadersOverflowError:Qbr,SocketError:s5,InformationalError:aR,BodyTimeoutError:ybr,HTTPParserError:bbr,ResponseExceededMaxSizeError:wbr}=sn(),{kUrl:xXe,kReset:ec,kClient:$le,kParser:si,kBlocking:EF,kRunning:ma,kPending:Nbr,kSize:bXe,kWriting:AC,kQueue:Td,kNoRef:pF,kKeepAliveDefaultTimeout:Sbr,kHostHeader:Rbr,kPendingIdx:Dbr,kRunningIdx:gl,kError:fl,kPipelining:r5,kSocket:AR,kKeepAliveTimeoutValue:i5,kMaxHeadersSize:Kle,kKeepAliveMaxTimeout:xbr,kKeepAliveTimeoutThreshold:Tbr,kHeadersTimeout:kbr,kBodyTimeout:Fbr,kStrictContentLength:ede,kMaxRequests:wXe,kCounter:Mbr,kMaxResponseSize:vbr,kOnError:Lbr,kResume:aC,kHTTPContext:TXe}=ws(),gg=CKe(),Ubr=Buffer.alloc(0),$Y=Buffer[Symbol.species],e5=Vt.addListener,Pbr=Vt.removeAllListeners,Xle;async function _br(){let t=process.env.JEST_WORKER_ID?Fle():void 0,e;try{e=await WebAssembly.compile(QKe())}catch{e=await WebAssembly.compile(t||Fle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onStatus(new $Y(fg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(zi.ptr===r),zi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onHeaderField(new $Y(fg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onHeaderValue(new $Y(fg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(zi.ptr===r),zi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(zi.ptr===r);let i=n-pg+fg.byteOffset;return zi.onBody(new $Y(fg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(zi.ptr===r),zi.onMessageComplete()||0)}})}var Zle=null,tde=_br();tde.catch();var zi=null,fg=null,t5=0,pg=null,Obr=0,mF=1,cR=2|mF,n5=4|mF,rde=8|Obr,nde=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Kle])&&e[Kle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(gg.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,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[Rbr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[r5]&&!h[ec]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return yXe.sendHeaders.hasSubscribers&&yXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?SXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?SXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?RXe(g,A.stream(),t,e,h,u,p,l):Vbr(g,A,t,e,h,u,p,l):Vt.isStream(A)?Jbr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?RXe(g,A,t,e,h,u,p,l):kt(!1),!0}function Jbr(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===0,"stream body cannot be pipelined");let A=!1,c=new o5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new DXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[AC]&&r[ma]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.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 SXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(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[ec]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[aC]()}catch(A){t(A)}}async function Vbr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new P0;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[ec]=!0),r[aC]()}catch(A){t(A)}}async function RXe(t,e,r,n,s,i,o,a){kt(i!==0||r[ma]===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)=>{kt(A===null),s[fl]?h(s[fl]):A=d});s.on("close",c).on("drain",c);let l=new o5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[fl])throw s[fl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var o5=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[AC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[fl])throw r[fl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ede])throw new P0;process.emitWarning(new P0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ec]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[si].timeout&&r[si].timeoutType===cR&&r[si].timeout.refresh&&r[si].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[AC]=!1,e[fl])throw e[fl];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[ede])throw new P0;process.emitWarning(new P0)}e[si].timeout&&e[si].timeoutType===cR&&e[si].timeout.refresh&&e[si].timeout.refresh(),n[aC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[AC]=!1,e&&(kt(n[ma]<=1,"pipeline should only contain this request"),s(e))}};kXe.exports=Hbr});var HXe=f((IFn,OXe)=>{"use strict";var pl=B("node:assert"),{pipeline:Wbr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:sde,RequestAbortedError:MXe,SocketError:CF,InformationalError:ide}=sn(),{kUrl:a5,kReset:c5,kClient:uR,kRunning:u5,kPending:zbr,kQueue:cC,kPendingIdx:ode,kRunningIdx:kd,kError:Md,kSocket:Bo,kStrictContentLength:jbr,kOnError:ade,kMaxConcurrentStreams:_Xe,kHTTP2Session:Fd,kResume:uC,kSize:Kbr,kHTTPContext:Xbr}=ws(),Mp=Symbol("open streams"),vXe,LXe=!1,A5;try{A5=B("node:http2")}catch{A5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Zbr,HTTP2_HEADER_METHOD:$br,HTTP2_HEADER_PATH:ewr,HTTP2_HEADER_SCHEME:twr,HTTP2_HEADER_CONTENT_LENGTH:rwr,HTTP2_HEADER_EXPECT:nwr,HTTP2_HEADER_STATUS:swr}}=A5;function iwr(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 owr(t,e){t[Bo]=e,LXe||(LXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=A5.connect(t[a5],{createConnection:()=>e,peerMaxConcurrentStreams:t[_Xe]});r[Mp]=0,r[uR]=t,r[Bo]=e,Tr.addListener(r,"error",Awr),Tr.addListener(r,"frameError",cwr),Tr.addListener(r,"end",uwr),Tr.addListener(r,"goaway",lwr),Tr.addListener(r,"close",function(){let{[uR]:s}=this,{[Bo]:i}=s,o=this[Bo][Md]||this[Md]||new CF("closed",Tr.getSocketInfo(i));if(s[Fd]=null,s.destroyed){pl(s[zbr]===0);let a=s[cC].splice(s[kd]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[Fd]=r,e[Fd]=r,Tr.addListener(e,"error",function(s){pl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Md]=s,this[uR][ade](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new CF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Md]||new CF("closed",Tr.getSocketInfo(this));t[Bo]=null,this[Fd]!=null&&this[Fd].destroy(s),t[ode]=t[kd],pl(t[u5]===0),t.emit("disconnect",t[a5],[t],s),t[uC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return hwr(t,...s)},resume(){awr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function awr(t){let e=t[Bo];e?.destroyed===!1&&(t[Kbr]===0&&t[_Xe]===0?(e.unref(),t[Fd].unref()):(e.ref(),t[Fd].ref()))}function Awr(t){pl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bo][Md]=t,this[uR][ade](t)}function cwr(t,e,r){if(r===0){let n=new ide(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bo][Md]=n,this[uR][ade](n)}}function uwr(){let t=new CF("other side closed",Tr.getSocketInfo(this[Bo]));this.destroy(t),Tr.destroy(this[Bo],t)}function lwr(t){let e=this[Md]||new CF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[uR];if(r[Bo]=null,r[Xbr]=null,this[Fd]!=null&&(this[Fd].destroy(e),this[Fd]=null),Tr.destroy(this[Bo],e),r[kd]<r[cC].length){let n=r[cC][r[kd]];r[cC][r[kd]++]=null,Tr.errorRequest(r,n,e),r[ode]=r[kd]}pl(r[u5]===0),r.emit("disconnect",r[a5],[r],e),r[uC]()}function dwr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function hwr(t,e){let r=t[Fd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[a5];l[Zbr]=i||`${h}${g?`:${g}`:""}`,l[$br]=n;let p=w=>{e.aborted||e.completed||(w=w||new MXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[cC][t[kd]++]=null,t[uC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}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[Mp],t[cC][t[kd]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Mp],t[cC][t[kd]++]=null}),d.once("close",()=>{r[Mp]-=1,r[Mp]===0&&r.unref()}),!0;l[ewr]=s,l[twr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){vXe??=oR().extractBody;let[w,H]=vXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),dwr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[jbr])return Tr.errorRequest(t,e,new sde),!1;process.emitWarning(new sde)}m!=null&&(pl(u,"no body must not have content length"),l[rwr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[nwr]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[_wr]=A??3e5,this[Pwr]=s??3e5,this[Owr]=I??!0,this[Hwr]=w,this[lde]=z,this[dC]=null,this[Vwr]=W>-1?W:-1,this[zwr]=oe??100,this[Qi]=null,this[vd]=[],this[Lp]=0,this[Ld]=0,this[yF]=he=>hde(this,he),this[Wwr]=he=>$Xe(this,he)}get pipelining(){return this[g5]}set pipelining(e){this[g5]=e,this[yF](!0)}get[NF](){return this[vd].length-this[Ld]}get[wF](){return this[Ld]-this[Lp]}get[bF](){return this[vd].length-this[Lp]}get[Twr](){return!!this[Qi]&&!this[dR]&&!this[Qi].destroyed}get[ude](){return!!(this[Qi]?.busy(null)||this[bF]>=(ZXe(this)||1)||this[NF]>0)}[xwr](e){eZe(this),this.once("connect",e)}[Jwr](e,r){let n=e.origin||this[Eg].origin,s=new bwr(n,e,r);return this[vd].push(s),this[O0]||(_0.bodyLength(s.body)==null&&_0.isIterable(s.body)?(this[O0]=1,queueMicrotask(()=>hde(this))):this[yF](!0)),this[O0]&&this[hC]!==2&&this[ude]&&(this[hC]=2),this[hC]<2}async[Gwr](){return new Promise(e=>{this[bF]?this[dC]=e:e(null)})}async[Ywr](e){return new Promise(r=>{let n=this[vd].splice(this[Ld]);for(let i=0;i<n.length;i++){let o=n[i];_0.errorRequest(this,o,e)}let s=()=>{this[dC]&&(this[dC](),this[dC]=null),r(null)};this[Qi]?(this[Qi].destroy(e,s),this[Qi]=null):queueMicrotask(s),this[yF]()})}},Xwr=h5();function $Xe(t,e){if(t[wF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){vp(t[Ld]===t[Lp]);let r=t[vd].splice(t[Lp]);for(let n=0;n<r.length;n++){let s=r[n];_0.errorRequest(t,s,e)}vp(t[bF]===0)}}async function eZe(t){vp(!t[dR]),vp(!t[Qi]);let{host:e,hostname:r,protocol:n,port:s}=t[Eg];if(r[0]==="["){let i=r.indexOf("]");vp(i!==-1);let o=r.substring(1,i);vp(XXe.isIP(o)),r=o}t[dR]=!0,lR.beforeConnect.hasSubscribers&&lR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qi]?.version,servername:t[lC],localAddress:t[QF]},connector:t[BF]});try{let i=await new Promise((o,a)=>{t[BF]({host:e,hostname:r,protocol:n,port:s,servername:t[lC],localAddress:t[QF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){_0.destroy(i.on("error",jXe),new Swr);return}vp(i);try{t[Qi]=i.alpnProtocol==="h2"?await Kwr(t,i):await jwr(t,i)}catch(o){throw i.destroy().on("error",jXe),o}t[dR]=!1,i[qwr]=0,i[lde]=t[lde],i[Dwr]=t,i[Fwr]=null,lR.connected.hasSubscribers&&lR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qi]?.version,servername:t[lC],localAddress:t[QF]},connector:t[BF],socket:i}),t.emit("connect",t[Eg],[t])}catch(i){if(t.destroyed)return;if(t[dR]=!1,lR.connectError.hasSubscribers&&lR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Qi]?.version,servername:t[lC],localAddress:t[QF]},connector:t[BF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(vp(t[wF]===0);t[NF]>0&&t[vd][t[Ld]].servername===t[lC];){let o=t[vd][t[Ld]++];_0.errorRequest(t,o,i)}else $Xe(t,i);t.emit("connectionError",t[Eg],[t],i)}t[yF]()}function KXe(t){t[hC]=0,t.emit("drain",t[Eg],[t])}function hde(t,e){t[O0]!==2&&(t[O0]=2,Zwr(t,e),t[O0]=0,t[Lp]>256&&(t[vd].splice(0,t[Lp]),t[Ld]-=t[Lp],t[Lp]=0))}function Zwr(t,e){for(;;){if(t.destroyed){vp(t[NF]===0);return}if(t[dC]&&!t[bF]){t[dC](),t[dC]=null;return}if(t[Qi]&&t[Qi].resume(),t[ude])t[hC]=2;else if(t[hC]===2){e?(t[hC]=1,queueMicrotask(()=>KXe(t))):KXe(t);continue}if(t[NF]===0||t[wF]>=(ZXe(t)||1))return;let r=t[vd][t[Ld]];if(t[Eg].protocol==="https:"&&t[lC]!==r.servername){if(t[wF]>0)return;t[lC]=r.servername,t[Qi]?.destroy(new Nwr("servername changed"),()=>{t[Qi]=null,hde(t)})}if(t[dR])return;if(!t[Qi]){eZe(t);return}if(t[Qi].destroyed||t[Qi].busy(r))return;!r.aborted&&t[Qi].write(r)?t[Ld]++:t[vd].splice(t[Ld],1)}}tZe.exports=dde});var gde=f((wFn,rZe)=>{"use strict";var f5=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)}};rZe.exports=class{constructor(){this.head=this.tail=new f5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new f5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sZe=f((NFn,nZe)=>{var{kFree:$wr,kConnected:eNr,kPending:tNr,kQueued:rNr,kRunning:nNr,kSize:sNr}=ws(),H0=Symbol("pool"),fde=class{constructor(e){this[H0]=e}get connected(){return this[H0][eNr]}get free(){return this[H0][$wr]}get pending(){return this[H0][tNr]}get queued(){return this[H0][rNr]}get running(){return this[H0][nNr]}get size(){return this[H0][sNr]}};nZe.exports=fde});var Bde=f((SFn,gZe)=>{"use strict";var iNr=XS(),oNr=gde(),{kConnected:pde,kSize:iZe,kRunning:oZe,kPending:aZe,kQueued:SF,kBusy:aNr,kFree:ANr,kUrl:cNr,kClose:uNr,kDestroy:lNr,kDispatch:dNr}=ws(),hNr=sZe(),tc=Symbol("clients"),rA=Symbol("needDrain"),RF=Symbol("queue"),mde=Symbol("closed resolve"),Ede=Symbol("onDrain"),AZe=Symbol("onConnect"),cZe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Bet.exports=Bhe});var F5=f((tMn,Net)=>{"use strict";var yet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:_Rr}=sn(),ORr=fR();wet()===void 0&&bet(new ORr);function bet(t){if(!t||typeof t.dispatch!="function")throw new _Rr("Argument agent must implement Agent");Object.defineProperty(globalThis,yet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function wet(){return globalThis[yet]}Net.exports={setGlobalDispatcher:bet,getGlobalDispatcher:wet}});var M5=f((nMn,Ret)=>{"use strict";Ret.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 xet=f((sMn,Det)=>{"use strict";var HRr=d5();Det.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 HRr(r,o,s,i);return r(a,A)}}});var ket=f((iMn,Tet)=>{"use strict";var qRr=y5();Tet.exports=t=>e=>function(n,s){return e(n,new qRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Met=f((oMn,Fet)=>{"use strict";var GRr=Ir(),{InvalidArgumentError:YRr,RequestAbortedError:JRr}=sn(),VRr=M5(),Qhe=class extends VRr{#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 YRr("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=GRr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new JRr(`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 WRr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Qhe({maxSize:i},s);return e(n,o)}}Fet.exports=WRr});var Uet=f((aMn,Let)=>{"use strict";var{isIP:zRr}=B("node:net"),{lookup:jRr}=B("node:dns"),KRr=M5(),{InvalidArgumentError:wR,InformationalError:XRr}=sn(),vet=Math.pow(2,31)-1,yhe=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 XRr("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){jRr(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===vet?(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===vet?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 bhe(this,e,r)}},bhe=class extends KRr{#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)=> Line truncated
${i}`;break;case"retry":pnt(i)&&(r[s]=i);break;case"id":mnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&pnt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&mnt(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}}};Ent.exports={EventSourceStream:cge}});var Snt=f((PMn,Nnt)=>{"use strict";var{pipeline:ikr}=B("node:stream"),{fetching:okr}=HF(),{makeRequest:akr}=RR(),{webidl:Hp}=Wo(),{EventSourceStream:Akr}=Cnt(),{parseMIMEType:ckr}=$A(),{createFastMessageEvent:ukr}=MR(),{isNetworkError:Int}=_F(),{delay:lkr}=age(),{kEnumerableProperty:rQ}=Ir(),{environmentSettingsObject:Bnt}=jc(),Qnt=!1,ynt=3e3,$F=0,bnt=1,eM=2,dkr="anonymous",hkr="use-credentials",_R=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=$F;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hp.util.markAsUncloneable(this);let n="EventSource constructor";Hp.argumentLengthCheck(arguments,1,n),Qnt||(Qnt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hp.converters.USVString(e,n,"url"),r=Hp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ynt};let s=Bnt,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=dkr;r.withCredentials&&(o=hkr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Bnt.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=akr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===eM)return;this.#r=$F;let e={request:this.#s,dispatcher:this.#a},r=n=>{Int(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Int(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?ckr(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=bnt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Akr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(ukr(A.type,A.options))}});ikr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=okr(e)}async#c(){this.#r!==eM&&(this.#r=$F,this.dispatchEvent(new Event("error")),await lkr(this.#o.reconnectionTime),this.#r===$F&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Hp.brandCheck(this,t),this.#r!==eM&&(this.#r=eM,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}},wnt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:$F,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bnt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eM,writable:!1}};Object.defineProperties(_R,wnt);Object.defineProperties(_R.prototype,wnt);Object.defineProperties(_R.prototype,{close:rQ,onerror:rQ,onmessage:rQ,onopen:rQ,readyState:rQ,url:rQ,withCredentials:rQ});Hp.converters.EventSourceInitDict=Hp.dictionaryConverter([{key:"withCredentials",converter:Hp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hp.converters.any}]);Nnt.exports={EventSource:_R,defaultReconnectionTime:ynt}});var uge=f((_Mn,vt)=>{"use strict";var gkr=hR(),Rnt=iF(),fkr=gR(),pkr=yZe(),mkr=fR(),Ekr=Mde(),Ckr=WZe(),Ikr=$Ze(),Dnt=sn(),Q6=Ir(),{InvalidArgumentError:B6}=Dnt,OR=_$e(),Bkr=aF(),Qkr=fhe(),ykr=Qet(),bkr=Ehe(),wkr=rhe(),Nkr=y5(),{getGlobalDispatcher:xnt,setGlobalDispatcher:Skr}=F5(),Rkr=M5(),Dkr=d5(),xkr=h5();Object.assign(Rnt.prototype,OR);vt.exports.Dispatcher=Rnt;vt.exports.Client=gkr;vt.exports.Pool=fkr;vt.exports.BalancedPool=pkr;vt.exports.Agent=mkr;vt.exports.ProxyAgent=Ekr;vt.exports.EnvHttpProxyAgent=Ckr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Xm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Xm("Creating `tls.Socket`: %o",this.connectOpts),i=ant.connect(this.connectOpts)):(Xm("Creating `net.Socket`: %o",this.connectOpts),i=ont.connect(this.connectOpts)),await(0,Ant.once)(i,"connect"),i}};tx.protocols=["http","https"];Fo.HttpProxyAgent=tx;function lnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yhe=E(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.state=void 0;px.state={instrumenterImplementation:void 0}});var afe=E(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var Hpe=E((Ygr,wAt)=>{wAt.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 qpe=E((Vgr,Gpe)=>{var SAt=Hpe();Gpe.exports={version:SAt.version}});var ZR=E(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.isJsonObject=b0.typeofJsonValue=void 0;function FAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}b0.typeofJsonValue=FAt;function MAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}b0.isJsonObject=MAt});var tD=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.base64encode=Q0.base64decode=void 0;var Hu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),eD=[];for(let t=0;t<Hu.length;t++)eD[Hu[t].charCodeAt(0)]=t;eD[45]=Hu.indexOf("+");eD[95]=Hu.indexOf("/");function LAt(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)}Q0.base64decode=LAt;function UAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Hu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Hu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Hu[s|n>>6],e+=Hu[n&63],r=0;break}return r&&(e+=Hu[s],e+="=",r==1&&(e+="=")),e}Q0.base64encode=UAt});var zpe=E(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.utf8read=void 0;var u9=t=>String.fromCharCode.apply(String,t);function PAt(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(u9(n)),s=0);return r.length?(s&&r.push(u9(n.slice(0,s))),r.join("")):u9(n.slice(0,s))}rD.utf8read=PAt});var GB=E(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});uA.WireType=uA.mergeBinaryOptions=uA.UnknownFieldHandler=void 0;var OAt;(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])})(OAt=uA.UnknownFieldHandler||(uA.UnknownFieldHandler={}));function HAt(t,e){return Object.assign(Object.assign({},t),e)}uA.mergeBinaryOptions=HAt;var GAt;(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"})(GAt=uA.WireType||(uA.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 qAt(){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=qAt;function YAt(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=YAt;var nD=65536*65536;function VAt(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=VAt;function WAt(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=WAt;function JAt(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=JAt;function zAt(){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=zAt});var pd=E(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.PbLong=gd.PbULong=gd.detectBi=void 0;var qB=sD(),ir;function jpe(){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}gd.detectBi=jpe;jpe();function Kpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var $pe=/^-?[0-9]+$/,oD=4294967296,iD=2147483648,aD=c Line truncated
`)}};DD.RpcError=L9});var P9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.mergeRpcOptions=void 0;var Nme=At();function plt(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=Nme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Nme.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=plt;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 H9=E(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.Deferred=Wf.DeferredState=void 0;var hA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hA=Wf.DeferredState||(Wf.DeferredState={}));var O9=class{constructor(e=!0){this._state=hA.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!==hA.PENDING)throw new Error(`cannot resolve ${hA[this.state].toLowerCase()}`);this._resolve(e),this._state=hA.RESOLVED}reject(e){if(this.state!==hA.PENDING)throw new Error(`cannot reject ${hA[this.state].toLowerCase()}`);this._reject(e),this._state=hA.REJECTED}resolvePending(e){this._state===hA.PENDING&&this.resolve(e)}rejectPending(e){this._state===hA.PENDING&&this.reject(e)}};Wf.Deferred=O9});var q9=E(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.RpcOutputStreamController=void 0;var Tme=H9(),Jf=At(),G9=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){Jf.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){Jf.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){Jf.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(){Jf.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;Jf.assert(e,"bad state"),Jf.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;Jf.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)}};_D.RpcOutputStreamController=G9});var V9=E(D0=>{"use strict";var mlt=D0&&D0.__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(D0,"__esModule",{value:!0});D0.UnaryCall=void 0;var Y9=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 mlt(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}})}};D0.UnaryCall=Y9});var J9=E(k0=>{"use strict";var Elt=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.ServerStreamingCall=void 0;var W9=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 Rut=f(Sut=>{"use strict";var Qme=Zp().Buffer;Sut._dbcs=$p;var jo=-1,Nut=-2,Ml=-10,AA=-1e3,gD=new Array(256),ev=-1;for(xJ=0;xJ<256;xJ++)gD[xJ]=jo;var xJ;function $p(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]=gD.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(gD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(gD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[AA-o[n]],A=48;A<=57;A++){if(a[A]===jo)a[A]=AA-s;else if(a[A]>AA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[AA-a[A]],u=129;u<=254;u++){if(c[u]===jo)c[u]=AA-i;else{if(c[u]===AA-i)continue;if(c[u]>AA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[AA-c[u]],d=48;d<=57;d++)l[d]===jo&&(l[d]=Nut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function S4r(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(d4r.has(s)){r=s;break}}return r}function R4r(t,e){let r=S4r(e);r!==""&&(t.referrerPolicy=r)}function D4r(){return"allowed"}function x4r(){return"success"}function T4r(){return"success"}function k4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function F4r(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&&LEe(t.origin)&&!LEe(RQ(t))&&(e=null);break;case"same-origin":uv(t,RQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function BD(t,e){return t}function M4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:BD(t.domainLookupStartTime,r),domainLookupEndTime:BD(t.domainLookupEndTime,r),connectionStartTime:BD(t.connectionStartTime,r),connectionEndTime:BD(t.connectionEndTime,r),secureConnectionStartTime:BD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function v4r(t){return BD(p4r.now(),t)}function L4r(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 sht(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function U4r(t){return{referrerPolicy:t.referrerPolicy}}function P4r(t){let e=t.referrerPolicy;lv(e);let r=null;if(t.referrer==="client"){let i=$dt();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else VC.is.URL(t.referrer)&&(r=t.referrer);let n=vEe(r),s=vEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??vEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=RQ(t);return uv(n,i)?n:SQ(n)&&!SQ(i)?"no-referrer":s}case"same-origin":return uv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return uv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=RQ(t);return SQ(n)&&!SQ(i)?"no-referrer":n}}}function vEe(t,e=!1){return lv(VC.is.URL(t)),t=new URL(t),Aht(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var _4r=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)$/),O4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function iht(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),O4r(t)):_4r(t)}function H4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||iht(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function SQ(t){return VC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:H4r(t.origin):!1}function q4r(t){}function uv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function G4r(t){return t.controller.state==="aborted"}function Y4r(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function J4r(t){return E4r[t.toLowerCase()]??t}var V4r=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oht(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,V4r),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 W4r(t,e,r,n=0,s=1){let i=oht(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return VC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return VC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>JEe(a)&&a!==59,t,e);i=GEe.decode(o)}return{name:n,value:i}}function mYr(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 lc("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YEe(o,!0,!0,a=>a===9||a===32),!cYr.test(o.toString()))throw lc("header name does not match the field-name token production");if(t[e.position]!==58)throw lc("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),AYr(o)){case"content-disposition":{if(r=n=null,Ul(A=>JEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw lc("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=pYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw lc("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=YEe(a,!1,!0,A=>A===9||A===32),s=ght(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=YEe(a,!1,!0,A=>A===9||A===32),i=ght(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw lc("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function YEe(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 EYr(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 lc(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function CYr(t){return t<=31||t===127}function IYr(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 JEe(t){return t<=127&&t!==32&&t!==9&&!CYr(t)&&!IYr(t)}fht.exports={multipartFormDataParser:fYr,validateBoundary:gYr}});var dv=f((pGn,mht)=>{"use strict";function BYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}mht.exports={createDeferredPromise:BYr}});var bD=f((mGn,Qht)=>{"use strict";var zEe=Wt(),{ReadableStreamFrom:QYr,readableStreamClose:yYr,fullyReadBody:bYr,extractMimeType:wYr}=au(),{FormData:Eht,setFormDataState:NYr}=eV(),{webidl:jd}=Ko(),VEe=B("node:assert"),{isErrored:WEe,isDisturbed:SYr}=B("node:stream"),{isUint8Array:RYr}=B("node:util/types"),{serializeAMimeType:DYr}=Ll(),{multipartFormDataParser:xYr}=pht(),{createDeferredPromise:TYr}=dv(),{parseJSONFromBytes:kYr}=rm(),{utf8DecodeBytes:FYr}=av(),{runtimeFeatures:MYr}=nm(),vYr=MYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),tV=new TextEncoder;function LYr(){}var UYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SYr(e)&&!WEe(e)&&e.cancel("Response object has been garbage collected").catch(LYr)});function Iht(t,e=!1){let r=null,n=null;jd.is.ReadableStream(t)?r=t:jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),VEe(jd.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(jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(jd.is.BufferSource(t))i=jd.util.getCopyOfBytesHeldByBufferSource(t);else if(jd.is.FormData(t)){let c=`----formdata-undici-0${`${vYr(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 FIe=E(_Ie=>{"use strict";var GY=Xu().Buffer;_Ie._dbcs=Zu;var Zn=-1,vIe=-2,sa=-10,Us=-1e3,uE=new Array(256),Gb=-1;for(Ek=0;Ek<256;Ek++)uE[Ek]=Zn;var Ek;function Zu(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]=uE.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(uE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(uE.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]=vIe)}}}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 pyt(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(tyt.has(s)){r=s;break}}return r}function myt(t,e){let r=pyt(e);r!==""&&(t.referrerPolicy=r)}function Eyt(){return"allowed"}function Cyt(){return"success"}function Iyt(){return"success"}function yyt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Byt(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&&o7(t.origin)&&!o7(Bg(t))&&(e=null);break;case"same-origin":$b(t,Bg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function gE(t,e){return t}function byt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:gE(t.domainLookupStartTime,r),domainLookupEndTime:gE(t.domainLookupEndTime,r),connectionStartTime:gE(t.connectionStartTime,r),connectionEndTime:gE(t.connectionEndTime,r),secureConnectionStartTime:gE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Qyt(t){return gE(iyt.now(),t)}function wyt(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 lbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Syt(t){return{referrerPolicy:t.referrerPolicy}}function Nyt(t){let e=t.referrerPolicy;Xb(e);let r=null;if(t.referrer==="client"){let i=obe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Hd.is.URL(t.referrer)&&(r=t.referrer);let n=i7(r),s=i7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??i7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Bg(t);return yg(n)&&!yg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Bg(t);return $b(n,i)?n:yg(n)&&!yg(i)?"no-referrer":s}case"same-origin":return $b(t,n)?n:"no-referrer";case"origin-when-cross-origin":return $b(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Bg(t);return yg(n)&&!yg(i)?"no-referrer":n}}}function i7(t,e=!1){return Xb(Hd.is.URL(t)),t=new URL(t),gbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Tyt=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)$/),xyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function dbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),xyt(t)):Tyt(t)}function Ryt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||dbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function yg(t){return Hd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Ryt(t.origin):!1}function Dyt(t){}function $b(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function kyt(t){return t.controller.state==="aborted"}function vyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _yt(t){return ayt[t.toLowerCase()]??t}var Fyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function hbe(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,Fyt),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 Myt(t,e,r,n=0,s=1){let i=hbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Hd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Hd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>g7(a)&&a!==59,t,e);i=h7.decode(o)}return{name:n,value:i}}function oBt(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=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=f7(o,!0,!0,a=>a===9||a===32),!Xyt.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++,aa(a=>a===32||a===9,t,e),$yt(o)){case"content-disposition":{if(r=n=null,aa(c=>g7(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=iBt(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=aa(c=>c!==10&&c!==13,t,e);a=f7(a,!1,!0,c=>c===9||c===32),s=ybe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=f7(a,!1,!0,c=>c===9||c===32),i=ybe(a);break}default:aa(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 aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function f7(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 aBt(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 cBt(t){return t<=31||t===127}function ABt(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 g7(t){return t<=127&&t!==32&&t!==9&&!cBt(t)&&!ABt(t)}Bbe.exports={multipartFormDataParser:sBt,validateBoundary:nBt}});var Zb=E((jBr,Qbe)=>{"use strict";function uBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Qbe.exports={createDeferredPromise:uBt}});var EE=E((KBr,xbe)=>{"use strict";var E7=Ze(),{ReadableStreamFrom:lBt,readableStreamClose:dBt,fullyReadBody:hBt,extractMimeType:fBt}=ro(),{FormData:wbe,setFormDataState:gBt}=qk(),{webidl:ac}=es(),p7=b("node:assert"),{isErrored:m7,isDisturbed:pBt}=b("node:stream"),{isUint8Array:mBt}=b("node:util/types"),{serializeAMimeType:EBt}=oa(),{multipartFormDataParser:CBt}=bbe(),{createDeferredPromise:IBt}=Zb(),{parseJSONFromBytes:yBt}=rl(),{utf8DecodeBytes:BBt}=Lk(),{runtimeFeatures:bBt}=nl(),QBt=bBt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Yk=new TextEncoder;function wBt(){}var SBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pBt(e)&&!m7(e)&&e.cancel("Response object has been garbage collected").catch(wBt)});function Nbe(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"}),p7(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${`${QBt(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=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=tV.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 y=Yk.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=tV.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=Yk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=tV.encode(`--${c}--\r
`);h.push(C),o+=C.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=${c}`}else if(jd.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(zEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=jd.is.ReadableStream(t)?t:QYr(t)}return(typeof i=="string"||RYr(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(WEe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!WEe(r)&&n.enqueue(typeof c=="string"?tV.encode(c):new Uint8Array(c));queueMicrotask(()=>yYr(n))})(),[{stream:r,source:i,length:o},a]}function PYr(t,e=!1){return jd.is.ReadableStream(t)&&(VEe(!zEe.isDisturbed(t),"The body has already been consumed."),VEe(!t.locked,"The stream is locked.")),Iht(t,e)}function _Yr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function OYr(t,e){return{blob(){return yD(this,n=>{let s=Cht(e(this));return s===null?s="":s&&(s=DYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return yD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return yD(this,FYr,t,e)},json(){return yD(this,kYr,t,e)},formData(){return yD(this,n=>{let s=Cht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xYr(n,s),o=new Eht;return NYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Eht;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 yD(this,n=>new Uint8Array(n),t,e)}}}function HYr(t,e){Object.assign(t.prototype,OYr(t,e))}function yD(t,e,r,n){try{jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Bht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=TYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(bYr(t.body,o,i),s.promise)}function Bht(t){let e=t.body;return e!=null&&(e.stream.locked||zEe.isDisturbed(e.stream))}function Cht(t){let e=t.headersList,r=wYr(e);return r==="failure"?null:r}Qht.exports={extractBody:Iht,safelyExtractBody:PYr,cloneBody:_Yr,mixinBody:HYr,streamRegistry:UYr,bodyUnusable:Bht}});var Fht=f((EGn,kht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:yht}=YC(),jEe=Mme(),{RequestContentLengthMismatchError:DQ,ResponseContentLengthMismatchError:qYr,RequestAbortedError:Dht,HeadersTimeoutError:GYr,HeadersOverflowError:YYr,SocketError:fv,InformationalError:wD,BodyTimeoutError:JYr,HTTPParserError:VYr,ResponseExceededMaxSizeError:WYr}=or(),{kUrl:xht,kReset:dc,kClient:rCe,kParser:ai,kBlocking:pv,kRunning:Na,kPending:zYr,kSize:bht,kWriting:zC,kQueue:Kd,kNoRef:hv,kKeepAliveDefaultTimeout:jYr,kHostHeader:KYr,kPendingIdx:XYr,kRunningIdx:Pl,kError:_l,kPipelining:sV,kSocket:ND,kKeepAliveTimeoutValue:oV,kMaxHeadersSize:ZYr,kKeepAliveMaxTimeout:$Yr,kKeepAliveTimeoutThreshold:e5r,kHeadersTimeout:t5r,kBodyTimeout:r5r,kStrictContentLength:ZEe,kMaxRequests:wht,kCounter:n5r,kMaxResponseSize:s5r,kOnError:i5r,kResume:WC,kHTTPContext:Tht,kClosed:$Ee}=Mn(),Fg=Qdt(),o5r=Buffer.alloc(0),rV=Buffer[Symbol.species],a5r=Pt.removeAllListeners,KEe;function A5r(){let t=process.env.JEST_WORKER_ID?QEe():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(wdt())}catch{}return e||(e=new WebAssembly.Module(t||QEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onStatus(new rV(Mg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(Ki.ptr===n),Ki.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onHeaderField(new rV(Mg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onHeaderValue(new rV(Mg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(Ki.ptr===n),Ki.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(Ki.ptr===n);let o=s-vg+Mg.byteOffset;return Ki.onBody(new rV(Mg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(Ki.ptr===n),Ki.onMessageComplete())}})}var XEe=null,Ki=null,Mg=null,nV=0,vg=null,c5r=0,gv=1,SD=2|gv,iV=4|gv,eCe=8|c5r,tCe=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Fg.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[ZYr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Yk.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(E7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=ac.is.ReadableStream(t)?t:lBt(t)}return(typeof i=="string"||mBt(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(m7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!m7(r)&&n.enqueue(typeof A=="string"?Yk.encode(A):new Uint8Array(A));queueMicrotask(()=>dBt(n))})(),[{stream:r,source:i,length:o},a]}function NBt(t,e=!1){return ac.is.ReadableStream(t)&&(p7(!E7.isDisturbed(t),"The body has already been consumed."),p7(!t.locked,"The stream is locked.")),Nbe(t,e)}function TBt(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 mE(this,n=>{let s=Sbe(e(this));return s===null?s="":s&&(s=EBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return mE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return mE(this,BBt,t,e)},json(){return mE(this,yBt,t,e)},formData(){return mE(this,n=>{let s=Sbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=CBt(n,s),o=new wbe;return gBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new wbe;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 mE(this,n=>new Uint8Array(n),t,e)}}}function RBt(t,e){Object.assign(t.prototype,xBt(t,e))}function mE(t,e,r,n){try{ac.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Tbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=IBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(hBt(t.body,o,i),s.promise)}function Tbe(t){let e=t.body;return e!=null&&(e.stream.locked||E7.isDisturbed(e.stream))}function Sbe(t){let e=t.headersList,r=fBt(e);return r==="failure"?null:r}xbe.exports={extractBody:Nbe,safelyExtractBody:NBt,cloneBody:TBt,mixinBody:RBt,streamRegistry:SBt,bodyUnusable:Tbe}});var Obe=E(($Br,Pbe)=>{"use strict";var Ve=b("node:assert"),Je=Ze(),{channels:Rbe}=Pd(),C7=eV(),{RequestContentLengthMismatchError:bg,ResponseContentLengthMismatchError:DBt,RequestAbortedError:Mbe,HeadersTimeoutError:kBt,HeadersOverflowError:vBt,SocketError:rQ,InformationalError:CE,BodyTimeoutError:_Bt,HTTPParserError:FBt,ResponseExceededMaxSizeError:MBt}=Ke(),{kUrl:Lbe,kReset:Bi,kClient:S7,kParser:Wr,kBlocking:nQ,kRunning:ms,kPending:LBt,kSize:Dbe,kWriting:qd,kQueue:cc,kNoRef:eQ,kKeepAliveDefaultTimeout:UBt,kHostHeader:PBt,kPendingIdx:OBt,kRunningIdx:ca,kError:Aa,kPipelining:Jk,kSocket:IE,kKeepAliveTimeoutValue:jk,kMaxHeadersSize:HBt,kKeepAliveMaxTimeout:GBt,kKeepAliveTimeoutThreshold:qBt,kHeadersTimeout:YBt,kBodyTimeout:VBt,kStrictContentLength:B7,kMaxRequests:kbe,kCounter:WBt,kMaxResponseSize:JBt,kOnError:zBt,kResume:Gd,kHTTPContext:Ube,kClosed:b7}=Kt(),QA=xBe(),jBt=Buffer.alloc(0),Vk=Buffer[Symbol.species],KBt=Je.removeAllListeners,I7;function $Bt(){let t=process.env.JEST_WORKER_ID?WV():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(kBe())}catch{}return e||(e=new WebAssembly.Module(t||WV())),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-SA+wA.byteOffset;return Bn.onStatus(new Vk(wA.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-SA+wA.byteOffset;return Bn.onHeaderField(new Vk(wA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-SA+wA.byteOffset;return Bn.onHeaderValue(new Vk(wA.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-SA+wA.byteOffset;return Bn.onBody(new Vk(wA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(Bn.ptr===n),Bn.onMessageComplete())}})}var y7=null,Bn=null,wA=null,Wk=0,SA=null,XBt=0,tQ=1,yE=2|tQ,zk=4|tQ,Q7=8|XBt,w7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(QA.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[HBt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[JBt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[KYr],i?p+=`connection: upgrade\r
`:p+=t[PBt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[sV]&&!h[dc]?p+=`connection: keep-alive\r
`:t[Jk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return yht.sendHeaders.hasSubscribers&&yht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Sht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?Sht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?Rht(g,A.stream(),t,e,h,u,p,l):I5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?C5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?Rht(g,A,t,e,h,u,p,l):Lt(!1),!0}function C5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===0,"stream body cannot be pipelined");let A=!1,c=new aV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Dht;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[zC]&&r[Na]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.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 Sht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\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 Rbe.sendHeaders.hasSubscribers&&Rbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?_be(f,null,t,e,h,u,p,l):Je.isBuffer(c)?_be(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?Fbe(f,c.stream(),t,e,h,u,p,l):Abt(f,c,t,e,h,u,p,l):Je.isStream(c)?cbt(f,c,t,e,h,u,p,l):Je.isIterable(c)?Fbe(f,c,t,e,h,u,p,l):Ve(!1),!0}function cbt(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new Kk({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 Mbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[qd]&&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 _be(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[dc]=!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"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[WC]()}catch(A){t(A)}}async function I5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new DQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Gd]()}catch(c){t(c)}}async function Abt(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 bg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[dc]=!0),r[WC]()}catch(A){t(A)}}async function Rht(t,e,r,n,s,i,o,a){Lt(i!==0||r[Na]===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)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new aV({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var aV=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[zC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[ZEe])throw new DQ;process.emitWarning(new DQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[dc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Bi]=!0),r[Gd]()}catch(c){t(c)}}async function Fbe(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[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new Kk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Kk=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[qd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[B7])throw new bg;process.emitWarning(new bg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ai].timeout&&r[ai].timeoutType===SD&&r[ai].timeout.refresh&&r[ai].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[zC]=!1,e[_l])throw e[_l];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\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===yE&&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[qd]=!1,e[Aa])throw e[Aa];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[ZEe])throw new DQ;process.emitWarning(new DQ)}e[ai].timeout&&e[ai].timeoutType===SD&&e[ai].timeout.refresh&&e[ai].timeout.refresh(),n[WC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[zC]=!1,e&&(Lt(n[Na]<=1,"pipeline should only contain this request"),s(e))}};kht.exports=u5r});var qht=f((CGn,Hht)=>{"use strict";var Hl=B("node:assert"),{pipeline:B5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:oCe,RequestAbortedError:Q5r,SocketError:Iv,InformationalError:jC,InvalidArgumentError:y5r}=or(),{kUrl:Cv,kReset:lV,kClient:Au,kRunning:Bv,kPending:b5r,kQueue:KC,kPendingIdx:ACe,kRunningIdx:Xd,kError:cu,kSocket:_s,kStrictContentLength:w5r,kOnError:RD,kMaxConcurrentStreams:cV,kPingInterval:Mht,kHTTP2Session:im,kHTTP2InitialWindowSize:N5r,kHTTP2ConnectionWindowSize:S5r,kResume:Lg,kSize:R5r,kHTTPContext:cCe,kClosed:aCe,kBodyTimeout:D5r,kEnableConnectProtocol:mv,kRemoteSettings:Ev,kHTTP2Stream:AV,kHTTP2SessionState:uCe}=Mn(),{channels:vht}=YC(),Ol=Symbol("open streams"),Lht,uV;try{uV=B("node:http2")}catch{uV={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:x5r,HTTP2_HEADER_METHOD:Uht,HTTP2_HEADER_PATH:Pht,HTTP2_HEADER_SCHEME:nCe,HTTP2_HEADER_CONTENT_LENGTH:T5r,HTTP2_HEADER_EXPECT:k5r,HTTP2_HEADER_STATUS:sCe,HTTP2_HEADER_PROTOCOL:F5r,NGHTTP2_REFUSED_STREAM:M5r,NGHTTP2_CANCEL:v5r}}=uV;function iCe(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 L5r(t,e){t[_s]=e;let r=t[N5r],n=t[S5r],s=uV.connect(t[Cv],{createConnection:()=>e,peerMaxConcurrentStreams:t[cV],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[_s]=e,s[Ol]=0,s[Au]=t,s[_s]=e,s[uCe]={ping:{interval:t[Mht]===0?null:setInterval(O5r,t[Mht],s).unref()}},s[mv]=!1,s[Ev]=!1,n&&hr.addListener(s,"connect",P5r.bind(s,n)),hr.addListener(s,"error",H5r),hr.addListener(s,"frameError",q5r),hr.addListener(s,"end",G5r),hr.addListener(s,"goaway",Y5r),hr.addListener(s,"close",J5r),hr.addListener(s,"remoteSettings",_5r),s.unref(),t[im]=s,e[im]=s,hr.addListener(e,"error",W5r),hr.addListener(e,"end",z5r),hr.addListener(e,"close",V5r),e[aCe]=!1,e.on("close",j5r),{version:"h2",defaultPipelining:1/0,write(i){return X5r(t,i)},resume(){U5r(t)},destroy(i,o){e[aCe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Bv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ev]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ev]===!1;return!1}}}function U5r(t){let e=t[_s];e?.destroyed===!1&&(t[R5r]===0||t[cV]===0?(e.unref(),t[im].unref()):(e.ref(),t[im].ref()))}function P5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function _5r(t){if(this[Au][cV]=t.maxConcurrentStreams??this[Au][cV],this[Ev]===!0&&this[mv]===!0&&t.enableConnectProtocol===!1){let e=new jC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[_s][cu]=e,this[Au][RD](e);return}this[mv]=t.enableConnectProtocol??this[mv],this[Ev]=!0,this[Au][Lg]()}function O5r(t){let e=t[uCe];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[Au],o=this[Au];if(n!=null){let a=new jC(`HTTP/2: "PING" errored - type ${n.message}`);o[cu]=a,i[RD](a)}else i.emit("ping",s)}}function H5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_s][cu]=t,this[Au][RD](t)}function q5r(t,e,r){if(r===0){let n=new jC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_s][cu]=n,this[Au][RD](n)}}function G5r(){let t=new Iv("other side closed",hr.getSocketInfo(this[_s]));this.destroy(t),hr.destroy(this[_s],t)}function Y5r(t){let e=this[cu]||new Iv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[_s])),r=this[Au];if(r[_s]=null,r[cCe]=null,this.close(),this[im]=null,hr.destroy(this[_s],e),r[Xd]<r[KC].length){let n=r[KC][r[Xd]];r[KC][r[Xd]++]=null,hr.errorRequest(r,n,e),r[ACe]=r[Xd]}Hl(r[Bv]===0),r.emit("disconnect",r[Cv],[r],e),r.emit("connectionError",r[Cv],[r],e),r[Lg]()}function J5r(){let{[Au]:t,[uCe]:e}=this,{[_s]:r}=t,n=this[_s][cu]||this[cu]||new Iv("closed",hr.getSocketInfo(r));if(t[_s]=null,t[cCe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[b5r]===0);let s=t[KC].splice(t[Xd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function V5r(){let t=this[cu]||new Iv("closed",hr.getSocketInfo(this)),e=this[im][Au];e[_s]=null,e[cCe]=null,this[im]!==null&&this[im].destroy(t),e[ACe]=e[Xd],Hl(e[Bv]===0),e.emit("disconnect",e[Cv],[e],t),e[Lg]()}function W5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cu]=t,this[Au][RD](t)}function z5r(){hr.destroy(this,new Iv("other side closed",hr.getSock Line truncated
`;vht.sendHeaders.publish({request:e,headers:F,socket:n[_s]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[k5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[AV]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[AV]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[sCe]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),iCe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[KC][t[Xd]++]=null,t[Lg]()):(m(new jC("HTTP/2: stream half-closed (remote)")),t[KC][t[Xd]++]=null,t[ACe]=t[Xd],t[Lg]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new jC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new jC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?_ht(m,g,null,t,e,t[_s],y,I):hr.isBuffer(d)?_ht(m,g,d,t,e,t[_s],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?Oht(m,g,d.stream(),t,e,t[_s],y,I):$5r(m,g,d,t,e,t[_s],y,I):hr.isStream(d)?Z5r(m,t[_s],I,g,d,t,e,y):hr.isIterable(d)?Oht(m,g,d,t,e,t[_s],y,I):Hl(!1)}}function _ht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[lV]=!0),s.onRequestSent(),n[Lg]()}catch(A){t(A)}}function Z5r(t,e,r,n,s,i,o,a){Hl(a!==0||i[Bv]===0,"stream body cannot be pipelined");let A=B5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[lV]=!0),i[Lg]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function $5r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new oCe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[lV]=!0),n[Lg]()}catch(A){t(A)}}async function Oht(t,e,r,n,s,i,o,a){Hl(o!==0||n[Bv]===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)=>{Hl(A===null),i[cu]?d(i[cu]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[cu])throw i[cu];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[lV]=!0),n[Lg]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Hht.exports=L5r});var tI=f((IGn,Xht)=>{"use strict";var om=B("node:assert"),Wht=B("node:net"),Qv=B("node:http"),xQ=Wt(),{ClientStats:e6r}=aEe(),{channels:DD}=YC(),t6r=udt(),r6r=CD(),{InvalidArgumentError:us,InformationalError:n6r,ClientDestroyedError:s6r}=or(),i6r=ID(),{kUrl:Ug,kServerName:eI,kClient:o6r,kBusy:lCe,kConnect:a6r,kResuming:TQ,kRunning:Nv,kPending:Sv,kSize:yv,kQueue:Zd,kConnected:A6r,kConnecting:xD,kNeedDrain:ZC,kKeepAliveDefaultTimeout:Ght,kHostHeader:c6r,kPendingIdx:$d,kRunningIdx:am,kError:u6r,kPipelining:dV,kKeepAliveTimeoutValue:l6r,kMaxHeadersSize:d6r,kKeepAliveMaxTimeout:h6r,kKeepAliveTimeoutThreshold:g6r,kHeadersTimeout:f6r,kBodyTimeout:p6r,kStrictContentLength:m6r,kConnector:bv,kMaxRequests:dCe,kCounter:E6r,kClose:C6r,kDestroy:I6r,kDispatch:B6r,kLocalAddress:wv,kMaxResponseSize:Q6r,kOnError:y6r,kHTTPContext:bi,kMaxConcurrentStreams:b6r,kHTTP2InitialWindowSize:w6r,kHTTP2ConnectionWindowSize:N6r,kResume:$C,kPingInterval:S6r}=Mn(),R6r=Fht(),D6r=qht(),XC=Symbol("kClosedResolve"),x6r=Qv&&Qv.maxHeaderSize&&Number.isInteger(Qv.maxHeaderSize)&&Qv.maxHeaderSize>0?()=>Qv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Yht=()=>{};function zht(t){return t[dV]??t[bi]?.defaultPipelining??1}var hCe=class extends r6r{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:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[p6r]=a??3e5,this[f6r]=n??3e5,this[m6r]=m??!0,this[dCe]=w,this[XC]=null,this[Q6r]=z>-1?z:-1,this[bi]=null,this[b6r]=U??100,this[w6r]=Z??262144,this[N6r]=he??524288,this[S6r]=Se??6e4,this[Zd]=[],this[am]=0,this[$d]=0,this[$C]=Je=>gCe(this,Je),this[y6r]=Je=>jht(this,Je)}get pipelining(){return this[dV]}set pipelining(e){this[dV]=e,this[$C](!0)}get stats(){return new e6r(this)}get[Sv](){return this[Zd].length-this[$d]}get[Nv](){return this[$d]-this[am]}get[yv](){return this[Zd].length-this[am]}get[A6r](){return!!this[bi]&&!this[xD]&&!this[bi].destroyed}get[lCe](){return!!(this[bi]?.busy(null)||this[yv]>=(zht(this)||1)||this[Sv]>0)}[a6r](e){Kht(this),this.once("connect",e)}[B6r](e,r){let n=new t6r(this[Ug].origin,e,r);return this[Zd].push(n),this[TQ]||(xQ.bodyLength(n.body)==null&&xQ.isIterable(n.body)?(this[TQ]=1,queueMicrotask(()=>gCe(this))):this[$C](!0)),this[TQ]&&this[ZC]!==2&&this[lCe]&&(this[ZC]=2),this[ZC]<2}[C6r](){return new Promise(e=>{this[yv]?this[XC]=e:e(null)})}[I6r](e){return new Promise(r=>{let n=this[Zd].splice(this[$d]);for(let i=0;i<n.length;i++){let o=n[i];xQ.errorRequest(this,o,e)}let s=()=>{this[XC]&&(this[XC](),this[XC]=null),r(null)};this[bi]?(this[bi].destroy(e,s),this[bi]=null):queueMicrotask(s),this[$C]()})}};function jht(t,e){if(t[Nv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){om(t[$d]===t[am]);let r=t[Zd].splice(t[am]);for(let n=0;n<r.length;n++){let s=r[n];xQ.errorRequest(t,s,e)}om(t[yv]===0)}}function Kht(t){om(!t[xD]),om(!t[bi]);let{host:e,hostname:r,protocol:n,port:s}=t[Ug];if(r[0]==="["){let i=r.indexOf("]");om(i!==-1);let o=r.substring(1,i);om(Wht.isIPv6(o)),r=o}t[xD]=!0,DD.beforeConnect.hasSubscribers&&DD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[bi]?.version,servername:t[eI],localAddress:t[wv]},connector:t[bv]}),t[bv]({host:e,hostname:r,protocol:n,port:s,servername:t[eI],localAddress:t[wv]},(i,o)=>{if(i){Jht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$C]();return}if(t.destroyed){xQ.destroy(o.on("error",Yht),new s6r),t[$C]();return}om(o);try{t[bi]=o.alpnProtocol==="h2"?D6r(t,o):R6r(t,o)}catch(a){o.destroy().on("error",Yht),Jht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$C]();return}t[xD]=!1,o[E6r]=0,o[dCe]=t[dCe],o[o6r]=t,o[u6r]=null,DD.connected.hasSubscribers&&DD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[bi]?.version,servername:t[eI],localAddress:t[wv]},connector:t[bv],socket:o}),t.emit("connect",t[Ug],[t]),t[$C]()})}function Jht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[xD]=!1,DD.connectError.hasSubscribers&&DD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[bi]?.version,servername:t[eI],localAddress:t[wv]},connector:t[bv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(om(t[Nv]===0);t[Sv]>0&&t[Zd][t[$d]].servername===t[eI];){let o=t[Zd][t[$d]++];xQ.errorRequest(t,o,e)}else jht(t,e);t.emit("connectionError",t[Ug],[t],e)}}function Vht(t){t[ZC]=0,t.emit("drain",t[Ug],[t])}function gCe(t,e){t[TQ]!==2&&(t[TQ]=2,T6r(t,e),t[TQ]=0,t[am]>256&&(t[Zd].splice(0,t[am]),t[$d]-=t[am],t[am]=0))}function T6r(t,e){for(;;){if(t.destroyed){om(t[Sv]===0);return}if(t[XC]&&!t[yv]){t[XC](),t[XC]=null;return}if(t[bi]&&t[bi].resume(),t[lCe])t[ZC]=2;else if(t[ZC]===2){e?(t[ZC]=1,queueMicrotask(()=>Vht(t))):Vht(t);continue}if(t[Sv]===0||t[Nv]>=(zht(t)||1))return;let r=t[Zd][t[$d]];if(t[Ug].protocol==="https:"&&t[eI]!==r.servername){if(t[Nv]>0)return;t[eI]=r.servername,t[bi]?.destroy(new n6r("servername changed"),()=>{t[bi]=null,gCe(t)})}if(t[xD])return;if(!t[bi]){Kht(t);return}if(t[bi].destroyed||t[bi].busy(r))return;!r.aborted&&t[bi].write(r)?t[$d]++:t[Zd].splice(t[$d],1)}}Xht.exports=hCe});var fCe=f((QGn,Zht)=>{"use strict";var hV=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)}};Zht.exports=class{constructor(){this.head=this.tail=new hV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new hV),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 gV=f((yGn,agt)=>{"use strict";var{PoolStats:k6r}=aEe(),F6r=CD(),M6r=fCe(),{kConnected:pCe,kSize:$ht,kRunning:egt,kPending:tgt,kQueued:Rv,kBusy:v6r,kFree:L6r,kUrl:U6r,kClose:P6r,kDestroy:_6r,kDispatch:O6r}=Mn(),Do=Symbol("clients"),cA=Symbol("needDrain"),Dv=Symbol("queue"),mCe=Symbol("closed resolve"),ECe=Symbol("onDrain"),rgt=Symbol("onConnect"),ngt=Symbol("onDisconnect"),sgt=Symbol("onConnectionError"),CCe=Symbol("get dispatcher"),igt=Symbol("add client"),ogt=Symbol("remove client"),ICe=class extends F6r{[Dv]=new M6r;[Rv]=0;[Do]=[];[cA]=!1;[ECe](e,r,n){let s=this[Dv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[B7])throw new bg;process.emitWarning(new bg)}e[Wr].timeout&&e[Wr].timeoutType===yE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Gd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[qd]=!1,e&&(Ve(n[ms]<=1,"pipeline should only contain this request"),s(e))}};Pbe.exports=ZBt});var jbe=E((XBr,zbe)=>{"use strict";var la=b("node:assert"),{pipeline:ubt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:R7,RequestAbortedError:lbt,SocketError:aQ,InformationalError:Yd,InvalidArgumentError:dbt}=Ke(),{kUrl:oQ,kReset:ev,kClient:no,kRunning:cQ,kPending:hbt,kQueue:Vd,kPendingIdx:k7,kRunningIdx:Ac,kError:so,kSocket:Dr,kStrictContentLength:fbt,kOnError:BE,kMaxConcurrentStreams:Xk,kPingInterval:Hbe,kHTTP2Session:il,kHTTP2InitialWindowSize:gbt,kHTTP2ConnectionWindowSize:pbt,kResume:NA,kSize:mbt,kHTTPContext:v7,kClosed:D7,kBodyTimeout:Ebt,kEnableConnectProtocol:sQ,kRemoteSettings:iQ,kHTTP2Stream:$k,kHTTP2SessionState:_7}=Kt(),{channels:Gbe}=Pd(),ua=Symbol("open streams"),qbe,Zk;try{Zk=b("node:http2")}catch{Zk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Cbt,HTTP2_HEADER_METHOD:Ybe,HTTP2_HEADER_PATH:Vbe,HTTP2_HEADER_SCHEME:N7,HTTP2_HEADER_CONTENT_LENGTH:Ibt,HTTP2_HEADER_EXPECT:ybt,HTTP2_HEADER_STATUS:T7,HTTP2_HEADER_PROTOCOL:Bbt,NGHTTP2_REFUSED_STREAM:bbt,NGHTTP2_CANCEL:Qbt}}=Zk;function x7(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 wbt(t,e){t[Dr]=e;let r=t[gbt],n=t[pbt],s=Zk.connect(t[oQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Xk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[_7]={ping:{interval:t[Hbe]===0?null:setInterval(xbt,t[Hbe],s).unref()}},s[sQ]=!1,s[iQ]=!1,n&&ut.addListener(s,"connect",Nbt.bind(s,n)),ut.addListener(s,"error",Rbt),ut.addListener(s,"frameError",Dbt),ut.addListener(s,"end",kbt),ut.addListener(s,"goaway",vbt),ut.addListener(s,"close",_bt),ut.addListener(s,"remoteSettings",Tbt),s.unref(),t[il]=s,e[il]=s,ut.addListener(e,"error",Mbt),ut.addListener(e,"end",Lbt),ut.addListener(e,"close",Fbt),e[D7]=!1,e.on("close",Ubt),{version:"h2",defaultPipelining:1/0,write(i){return Obt(t,i)},resume(){Sbt(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[cQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[iQ]===!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[iQ]===!1;return!1}}}function Sbt(t){let e=t[Dr];e?.destroyed===!1&&(t[mbt]===0||t[Xk]===0?(e.unref(),t[il].unref()):(e.ref(),t[il].ref()))}function Nbt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Tbt(t){if(this[no][Xk]=t.maxConcurrentStreams??this[no][Xk],this[iQ]===!0&&this[sQ]===!0&&t.enableConnectProtocol===!1){let e=new Yd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][BE](e);return}this[sQ]=t.enableConnectProtocol??this[sQ],this[iQ]=!0,this[no][NA]()}function xbt(t){let e=t[_7];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 Yd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[BE](a)}else i.emit("ping",s)}}function Rbt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][BE](t)}function Dbt(t,e,r){if(r===0){let n=new Yd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][BE](n)}}function kbt(){let t=new aQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function vbt(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[v7]=null,this.close(),this[il]=null,ut.destroy(this[Dr],e),r[Ac]<r[Vd].length){let n=r[Vd][r[Ac]];r[Vd][r[Ac]++]=null,ut.errorRequest(r,n,e),r[k7]=r[Ac]}la(r[cQ]===0),r.emit("disconnect",r[oQ],[r],e),r.emit("connectionError",r[oQ],[r],e),r[NA]()}function _bt(){let{[no]:t,[_7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new aQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[v7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[hbt]===0);let s=t[Vd].splice(t[Ac]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function Fbt(){let t=this[so]||new aQ("closed",ut.getSocketInfo(this)),e=this[il][no];e[Dr]=null,e[v7]=null,this[il]!==null&&this[il].destroy(t),e[k7]=e[Ac],la(e[cQ]===0),e.emit("disconnect",e[oQ],[e],t),e[NA]()}function Mbt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][BE](t)}function Lbt(){ut.destroy(this,new aQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Gbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[ybt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[$k]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[$k]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[T7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),x7(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[Vd][t[Ac]++]=null,t[NA]()):(m(new Yd("HTTP/2: stream half-closed (remote)")),t[Vd][t[Ac]++]=null,t[k7]=t[Ac],t[NA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Yd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Yd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===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?Wbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Wbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Jbe(m,f,d.stream(),t,e,t[Dr],y,C):Gbt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?Hbt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?Jbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Wbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[ev]=!0),s.onRequestSent(),n[NA]()}catch(c){t(c)}}function Hbt(t,e,r,n,s,i,o,a){la(a!==0||i[cQ]===0,"stream body cannot be pipelined");let c=ubt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[ev]=!0),i[NA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Gbt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new R7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[ev]=!0),n[NA]()}catch(c){t(c)}}async function Jbe(t,e,r,n,s,i,o,a){la(o!==0||n[cQ]===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)=>{la(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[ev]=!0),n[NA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}zbe.exports=wbt});var Kd=E((ZBr,sQe)=>{"use strict";var ol=b("node:assert"),eQe=b("node:net"),AQ=b("node:http"),Qg=Ze(),{ClientStats:qbt}=xV(),{channels:bE}=Pd(),Ybt=mBe(),Vbt=Eg(),{InvalidArgumentError:gr,InformationalError:Wbt,ClientDestroyedError:Jbt}=Ke(),zbt=Cg(),{kUrl:TA,kServerName:jd,kClient:jbt,kBusy:F7,kConnect:Kbt,kResuming:wg,kRunning:hQ,kPending:fQ,kSize:uQ,kQueue:uc,kConnected:$bt,kConnecting:QE,kNeedDrain:Jd,kKeepAliveDefaultTimeout:Kbe,kHostHeader:Xbt,kPendingIdx:lc,kRunningIdx:al,kError:Zbt,kPipelining:tv,kKeepAliveTimeoutValue:eQt,kMaxHeadersSize:tQt,kKeepAliveMaxTimeout:rQt,kKeepAliveTimeoutThreshold:nQt,kHeadersTimeout:sQt,kBodyTimeout:iQt,kStrictContentLength:oQt,kConnector:lQ,kMaxRequests:M7,kCounter:aQt,kClose:cQt,kDestroy:AQt,kDispatch:uQt,kLocalAddress:dQ,kMaxResponseSize:lQt,kOnError:dQt,kHTTPContext:nn,kMaxConcurrentStreams:hQt,kHTTP2InitialWindowSize:fQt,kHTTP2ConnectionWindowSize:gQt,kResume:zd,kPingInterval:pQt}=Kt(),mQt=Obe(),EQt=jbe(),Wd=Symbol("kClosedResolve"),CQt=AQ&&AQ.maxHeaderSize&&Number.isInteger(AQ.maxHeaderSize)&&AQ.maxHeaderSize>0?()=>AQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},$be=()=>{};function tQe(t){return t[tv]??t[nn]?.defaultPipelining??1}var L7=class extends Vbt{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[iQt]=a??3e5,this[sQt]=n??3e5,this[oQt]=m??!0,this[M7]=N,this[Wd]=null,this[lQt]=O>-1?O:-1,this[nn]=null,this[hQt]=D??100,this[fQt]=te??262144,this[gQt]=ce??524288,this[pQt]=ge??6e4,this[uc]=[],this[al]=0,this[lc]=0,this[zd]=De=>U7(this,De),this[dQt]=De=>rQe(this,De)}get pipelining(){return this[tv]}set pipelining(e){this[tv]=e,this[zd](!0)}get stats(){return new qbt(this)}get[fQ](){return this[uc].length-this[lc]}get[hQ](){return this[lc]-this[al]}get[uQ](){return this[uc].length-this[al]}get[$bt](){return!!this[nn]&&!this[QE]&&!this[nn].destroyed}get[F7](){return!!(this[nn]?.busy(null)||this[uQ]>=(tQe(this)||1)||this[fQ]>0)}[Kbt](e){nQe(this),this.once("connect",e)}[uQt](e,r){let n=new Ybt(this[TA].origin,e,r);return this[uc].push(n),this[wg]||(Qg.bodyLength(n.body)==null&&Qg.isIterable(n.body)?(this[wg]=1,queueMicrotask(()=>U7(this))):this[zd](!0)),this[wg]&&this[Jd]!==2&&this[F7]&&(this[Jd]=2),this[Jd]<2}[cQt](){return new Promise(e=>{this[uQ]?this[Wd]=e:e(null)})}[AQt](e){return new Promise(r=>{let n=this[uc].splice(this[lc]);for(let i=0;i<n.length;i++){let o=n[i];Qg.errorRequest(this,o,e)}let s=()=>{this[Wd]&&(this[Wd](),this[Wd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[zd]()})}};function rQe(t,e){if(t[hQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ol(t[lc]===t[al]);let r=t[uc].splice(t[al]);for(let n=0;n<r.length;n++){let s=r[n];Qg.errorRequest(t,s,e)}ol(t[uQ]===0)}}function nQe(t){ol(!t[QE]),ol(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[TA];if(r[0]==="["){let i=r.indexOf("]");ol(i!==-1);let o=r.substring(1,i);ol(eQe.isIPv6(o)),r=o}t[QE]=!0,bE.beforeConnect.hasSubscribers&&bE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[jd],localAddress:t[dQ]},connector:t[lQ]}),t[lQ]({host:e,hostname:r,protocol:n,port:s,servername:t[jd],localAddress:t[dQ]},(i,o)=>{if(i){Xbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[zd]();return}if(t.destroyed){Qg.destroy(o.on("error",$be),new Jbt),t[zd]();return}ol(o);try{t[nn]=o.alpnProtocol==="h2"?EQt(t,o):mQt(t,o)}catch(a){o.destroy().on("error",$be),Xbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[zd]();return}t[QE]=!1,o[aQt]=0,o[M7]=t[M7],o[jbt]=t,o[Zbt]=null,bE.connected.hasSubscribers&&bE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[jd],localAddress:t[dQ]},connector:t[lQ],socket:o}),t.emit("connect",t[TA],[t]),t[zd]()})}function Xbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[QE]=!1,bE.connectError.hasSubscribers&&bE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[jd],localAddress:t[dQ]},connector:t[lQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ol(t[hQ]===0);t[fQ]>0&&t[uc][t[lc]].servername===t[jd];){let o=t[uc][t[lc]++];Qg.errorRequest(t,o,e)}else rQe(t,e);t.emit("connectionError",t[TA],[t],e)}}function Zbe(t){t[Jd]=0,t.emit("drain",t[TA],[t])}function U7(t,e){t[wg]!==2&&(t[wg]=2,IQt(t,e),t[wg]=0,t[al]>256&&(t[uc].splice(0,t[al]),t[lc]-=t[al],t[al]=0))}function IQt(t,e){for(;;){if(t.destroyed){ol(t[fQ]===0);return}if(t[Wd]&&!t[uQ]){t[Wd](),t[Wd]=null;return}if(t[nn]&&t[nn].resume(),t[F7])t[Jd]=2;else if(t[Jd]===2){e?(t[Jd]=1,queueMicrotask(()=>Zbe(t))):Zbe(t);continue}if(t[fQ]===0||t[hQ]>=(tQe(t)||1))return;let r=t[uc][t[lc]];if(r===null)return;if(t[TA].protocol==="https:"&&t[jd]!==r.servername){if(t[hQ]>0)return;t[jd]=r.servername,t[nn]?.destroy(new Wbt("servername changed"),()=>{t[nn]=null,U7(t)})}if(t[QE])return;if(!t[nn]){nQe(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)}}sQe.exports=L7});var P7=E((tbr,iQe)=>{"use strict";var rv=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)}};iQe.exports=class{constructor(){this.head=this.tail=new rv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new rv),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 nv=E((rbr,fQe)=>{"use strict";var{PoolStats:yQt}=xV(),BQt=Eg(),bQt=P7(),{kConnected:O7,kSize:oQe,kRunning:aQe,kPending:cQe,kQueued:gQ,kBusy:QQt,kFree:wQt,kUrl:SQt,kClose:NQt,kDestroy:TQt,kDispatch:xQt}=Kt(),Yn=Symbol("clients"),Ps=Symbol("needDrain"),pQ=Symbol("queue"),H7=Symbol("closed resolve"),G7=Symbol("onDrain"),AQe=Symbol("onConnect"),uQe=Symbol("onDisconnect"),lQe=Symbol("onConnectionError"),q7=Symbol("get dispatcher"),dQe=Symbol("add client"),hQe=Symbol("remove client"),Y7=class extends BQt{[pQ]=new bQt;[gQ]=0;[Yn]=[];[Ps]=!1;[G7](e,r,n){let s=this[pQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";var{InvalidArgumentError:CVr}=or(),{runtimeFeatures:IVr}=nm();function BVr(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 mpt=IVr.has("crypto")?B("node:crypto"):null,QVr=mpt?.hash?t=>mpt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Cpt(t){return Array.isArray(t)&&(t.length&1)===0}function yVr(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 bVr(t){let e={};if(!t)return e;if(Cpt(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 Ept=["record","playback","update"];function wVr(t){if(!Ept.includes(t))throw new CVr(`Invalid snapshot mode: ${t}. Must be one of: ${Ept.join(", ")}`)}Ipt.exports={createHeaderFilters:BVr,hashId:QVr,isUndiciHeaders:Cpt,normalizeHeaders:bVr,isUrlExcludedFactory:yVr,validateSnapshotMode:wVr}});var Dpt=f((ZGn,Rpt)=>{"use strict";var{writeFile:NVr,readFile:SVr,mkdir:RVr}=B("node:fs/promises"),{dirname:DVr,resolve:Bpt}=B("node:path"),{setTimeout:xVr,clearTimeout:Qpt}=B("node:timers"),{InvalidArgumentError:ypt,UndiciError:TVr}=or(),{hashId:kVr,isUrlExcludedFactory:FVr,normalizeHeaders:bpt,createHeaderFilters:wpt}=MIe();function Hv(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||bpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Npt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Npt(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 Spt(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 qv(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 kVr(r)}var vIe=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=wpt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=FVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Hv(e,this.#a,this.matchOptions),s=qv(n),i=bpt(r.headers),o={statusCode:r.statusCode,headers:Spt(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 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.#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=Hv(e,this.#a,this.matchOptions),n=qv(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 ypt("Snapshot path is required");try{let n=await SVr(Bpt(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 TVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new ypt("Snapshot path is required");let n=Bpt(r);await RVr(DVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await NVr(n,JS Line truncated
${e.format(r)}`.trim())}};M1e.exports=iJ});var aJ=E((vbr,O1e)=>{"use strict";var{InvalidArgumentError:SSt}=Ke(),{runtimeFeatures:NSt}=nl();function TSt(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 L1e=NSt.has("crypto")?b("node:crypto"):null,xSt=L1e?.hash?t=>L1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function P1e(t){return Array.isArray(t)&&(t.length&1)===0}function RSt(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 DSt(t){let e={};if(!t)return e;if(P1e(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 U1e=["record","playback","update"];function kSt(t){if(!U1e.includes(t))throw new SSt(`Invalid snapshot mode: ${t}. Must be one of: ${U1e.join(", ")}`)}O1e.exports={createHeaderFilters:TSt,hashId:xSt,isUndiciHeaders:P1e,normalizeHeaders:DSt,isUrlExcludedFactory:RSt,validateSnapshotMode:kSt}});var j1e=E((_br,z1e)=>{"use strict";var{writeFile:vSt,readFile:_St,mkdir:FSt}=b("node:fs/promises"),{dirname:MSt,resolve:H1e}=b("node:path"),{setTimeout:LSt,clearTimeout:G1e}=b("node:timers"),{InvalidArgumentError:q1e,UndiciError:USt}=Ke(),{hashId:PSt,isUrlExcludedFactory:OSt,normalizeHeaders:Y1e,createHeaderFilters:V1e}=aJ();function RQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Y1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:W1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function W1e(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 J1e(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 DQ(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 PSt(r)}var cJ=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=V1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=OSt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=RQ(e,this.#a,this.matchOptions),s=DQ(n),i=Y1e(r.headers),o={statusCode:r.statusCode,headers:J1e(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=RQ(e,this.#a,this.matchOptions),n=DQ(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 q1e("Snapshot path is required");try{let n=await _St(H1e(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 USt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new q1e("Snapshot path is required");let n=H1e(r);await FSt(MSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await vSt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${du} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,8 +133,8 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_getValuesQuery ON cacheInterceptorV${du}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${du}_deleteByUrlQuery ON cacheInterceptorV${du}(deleteAt);
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);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${du} SET
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -317,7 +168,7 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${du} (
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -331,46 +182,105 @@ ${e.format(r)}`.trim())}};ppt.exports=kIe});var MIe=f((XGn,Ipt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${du}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${du} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${du}
`),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}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${du}
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){nBe(e);let r=this.#g(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){nBe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(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){nBe(e),hzr(r);let n=0,s=[],i=this;return new dzr({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.#h(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}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(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)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!gzr(s[l],u[l])){c=!1;break}}if(c)return A}}};function gzr(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 HQ=f((I8n,Mmt)=>{"use strict";var{kConstruct:fzr}=Mn(),{kEnumerableProperty:JD}=Wt(),{iteratorMixin:pzr,isValidHeaderName:Vv,isValidHeaderValue:Dmt}=au(),{webidl:Pr}=Ko(),iBe=B("node:assert"),JV=B("node:util");function Rmt(t){return t===10||t===13||t===9||t===32}function xmt(t){let e=0,r=t.length;for(;r>e&&Rmt(t.charCodeAt(r-1));)--r;for(;r>e&&Rmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Tmt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});oBe(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)oBe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function oBe(t,e,r){if(r=xmt(r),Vv(e)){if(!Dmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Fmt(t)==="immutable")throw new TypeError("immutable");return WV(t).append(e,r,!1)}function mzr(t){let e=WV(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function kmt(t,e){return t[0]<e[0]?-1:1}var VV=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.headersMa Line truncated
${i}`;break;case"retry":OCt(i)&&(r[s]=i);break;case"id":HCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&OCt(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,event:void 0,id:void 0,retry:void 0}}};qCt.exports={EventSourceStream:qBe}});var XCt=f((J8n,KCt)=>{"use strict";var{pipeline:FXr}=B("node:stream"),{fetching:MXr}=Xv(),{makeRequest:vXr}=WD(),{webidl:lA}=Ko(),{EventSourceStream:LXr}=GCt(),{parseMIMEType:UXr}=Ll(),{createFastMessageEvent:PXr}=EW(),{isNetworkError:YCt}=zv(),{kEnumerableProperty:jQ}=Wt(),{environmentSettingsObject:JCt}=au(),VCt=!1,WCt=3e3,nL=0,zCt=1,sL=2,_Xr="anonymous",OXr="use-credentials",nx=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=nL;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),lA.util.markAsUncloneable(this);let n="EventSource constructor";lA.argumentLengthCheck(arguments,1,n),VCt||(VCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lA.converters.USVString(e),r=lA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=JCt,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=_Xr;r.withCredentials===!0&&(o=OXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=JCt.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=vXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===sL)return;this.#r=nL;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!YCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(YCt(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?UXr(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=zCt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new LXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(PXr(A.type,A.options))}});FXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=MXr(e)}#c(){this.#r!==sL&&(this.#r=nL,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===nL&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){lA.brandCheck(this,t),this.#r!==sL&&(this.#r=sL,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=lA.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=lA.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=lA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},jCt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:nL,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zCt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:sL,writable:!1}};Object.defineProperties(nx,jCt);Object.defineProperties(nx.prototype,jCt);Object.defineProperties(nx.prototype,{close:jQ,onerror:jQ,onmessage:jQ,onopen:jQ,readyState:jQ,url:jQ,withCredentials:jQ});lA.converters.EventSourceInitDict=lA.dictionaryConverter([{key:"withCredentials",converter:lA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lA.converters.any},{key:"node",converter:lA.dictionaryConverter([{key:"reconnectionTime",converter:lA.converters["unsigned long"],defaultValue:()=>WCt},{key:"dispatcher",converter:lA.converters.any}]),defaultValue:()=>({})}]);KCt.exports={EventSource:nx,defaultReconnectionTime:WCt}});var nIt=f((V8n,Oe)=>{"use strict";var HXr=tI(),$Ct=sv(),qXr=TD(),GXr=fgt(),YXr=Cgt(),JXr=MQ(),VXr=UCe(),WXr=Ggt(),zXr=jgt(),jXr=Zgt(),eIt=or(),kW=Wt(),{InvalidArgumentError:TW}=eIt,sx=Fft(),KXr=ID(),XXr=BIe(),{MockCallHistory:ZXr,Mock Line truncated
`)}close(){this.#n.close()}get(e){RJ(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){RJ(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){RJ(e),STt(r);let n=0,s=[],i=this;return new wTt({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(!NTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function NTt(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 Pg=E((rQr,rNe)=>{"use strict";var{kConstruct:TTt}=Kt(),{kEnumerableProperty:PE}=Ze(),{iteratorMixin:xTt,isValidHeaderName:FQ,isValidHeaderValue:$Se}=ro(),{webidl:wt}=es(),kJ=b("node:assert"),_v=b("node:util");function KSe(t){return t===10||t===13||t===9||t===32}function XSe(t){let e=0,r=t.length;for(;r>e&&KSe(t.charCodeAt(r-1));)--r;for(;r>e&&KSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ZSe(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}.`});vJ(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)vJ(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 vJ(t,e,r){if(r=XSe(r),FQ(e)){if(!$Se(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(tNe(t)==="immutable")throw new TypeError("immutable");return Mv(t).append(e,r,!1)}function RTt(t){let e=Mv(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 eNe(t,e){return t[0]<e[0]?-1:1}var Fv=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":Axe(i)&&(r[s]=i);break;case"id":uxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Axe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&uxe(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}}};lxe.exports={EventSourceStream:pz}});var Ixe=E((NQr,Cxe)=>{"use strict";var{pipeline:J2t}=b("node:stream"),{fetching:z2t}=OQ(),{makeRequest:j2t}=HE(),{webidl:Hs}=es(),{EventSourceStream:K2t}=dxe(),{parseMIMEType:$2t}=oa(),{createFastMessageEvent:X2t}=a_(),{isNetworkError:hxe}=LQ(),{kEnumerableProperty:Jg}=Ze(),{environmentSettingsObject:fxe}=ro(),gxe=!1,pxe=3e3,JQ=0,mxe=1,zQ=2,Z2t="anonymous",ekt="use-credentials",$E=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),gxe||(gxe=!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=fxe,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=Z2t;r.withCredentials===!0&&(o=ekt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=fxe.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=j2t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===zQ)return;this.#r=JQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!hxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(hxe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?$2t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=mxe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new K2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(X2t(c.type,c.options))}});J2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=z2t(e)}#A(){this.#r!==zQ&&(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!==zQ&&(this.#r=zQ,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}},Exe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:JQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mxe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zQ,writable:!1}};Object.defineProperties($E,Exe);Object.defineProperties($E.prototype,Exe);Object.defineProperties($E.prototype,{close:Jg,onerror:Jg,onmessage:Jg,onopen:Jg,readyState:Jg,url:Jg,withCredentials:Jg});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:()=>pxe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);Cxe.exports={EventSource:$E,defaultReconnectionTime:pxe}});var Sxe=E((TQr,pe)=>{"use strict";var tkt=Kd(),Bxe=Wb(),rkt=Sg(),nkt=BQe(),skt=SQe(),ikt=xg(),okt=uW(),akt=oW(),ckt=Awe(),Akt=gwe(),ukt=Ewe(),bxe=Ke(),I_=Ze(),{InvalidArgumentError:C_}=bxe,XE=Zwe(),lkt=Cg(),dkt=zW(),{MockCallHistory:hk Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return cZr(e,r).catch(n=>{throw ZCt?rIt(n,ZCt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=HQ().Headers;Oe.exports.Response=zv().Response;Oe.exports.Request=WD().Request;Oe.exports.FormData=eV().FormData;var{setGlobalOrigin:uZr,getGlobalOrigin:lZr}=wEe();Oe.exports.setGlobalOrigin=uZr;Oe.exports.getGlobalOrigin=lZr;var{CacheStorage:dZr}=UEt(),{kConstruct:hZr}=Mn();Oe.exports.caches=new dZr(hZr);var{deleteCookie:gZr,getCookies:fZr,getSetCookies:pZr,setCookie:mZr,parseCookie:EZr}=KEt();Oe.exports.deleteCookie=gZr;Oe.exports.getCookies=fZr;Oe.exports.getSetCookies=pZr;Oe.exports.setCookie=mZr;Oe.exports.parseCookie=EZr;var{parseMIMEType:CZr,serializeAMimeType:IZr}=Ll();Oe.exports.parseMIMEType=CZr;Oe.exports.serializeAMimeType=IZr;var{CloseEvent:BZr,ErrorEvent:QZr,MessageEvent:yZr}=EW(),{WebSocket:bZr,ping:wZr}=DCt();Oe.exports.WebSocket=bZr;Oe.exports.CloseEvent=BZr;Oe.exports.ErrorEvent=QZr;Oe.exports.MessageEvent=yZr;Oe.exports.ping=wZr;Oe.exports.WebSocketStream=UCt().WebSocketStream;Oe.exports.WebSocketError=UBe().WebSocketError;Oe.exports.request=iL(sx.request);Oe.exports.stream=iL(sx.stream);Oe.exports.pipeline=iL(sx.pipeline);Oe.exports.connect=iL(sx.connect);Oe.exports.upgrade=iL(sx.upgrade);Oe.exports.MockClient=XXr;Oe.exports.MockCallHistory=ZXr;Oe.exports.MockCallHistoryLog=$Xr;Oe.exports.MockPool=tZr;Oe.exports.MockAgent=eZr;Oe.exports.SnapshotAgent=rZr;Oe.exports.mockErrors=nZr;var{EventSource:NZr}=XCt();Oe.exports.EventSource=NZr;function SZr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=SZr});var oL=f(uI=>{"use strict";uI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");uI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");uI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";uI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);uI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);uI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());uI.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 iIt=f((j8n,sIt)=>{"use strict";var{asciiLowercase:FW,solelyContainsHTTPTokenCodePoints:RZr,soleyContainsHTTPQuotedStringTokenCodePoints:DZr}=oL();sIt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=FW(String(e)),this._map.get(e)}has(e){return e=FW(String(e)),this._map.has(e)}set(e,r){if(e=FW(String(e)),r=String(r),!RZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!DZr(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=FW(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 AIt=f((K8n,aIt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:xZr,removeTrailingHTTPWhitespace:oIt,isHTTPWhitespaceChar:TZr,solelyContainsHTTPTokenCodePoints:GBe,soleyContainsHTTPQuotedStringTokenCodePoints:kZr,asciiLowercase:YBe,collectAnHTTPQuotedString:FZr}=oL();aIt.exports=t=>{t=xZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!GBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=oIt(n),n.length===0||!GBe(n))return null;let s={type:YBe(r),subtype:YBe(n),parameters:new Map};for(;e<t.length;){for(++e;TZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=YBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=FZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=oIt(o),o==="")continue}i.length>0&&GBe(i)&&kZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var uIt=f((X8n,cIt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:MZr}=oL();cIt.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+="=",(!MZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var gIt=f(($8n,hIt)=>{"use strict";var vZr=iIt(),LZr=AIt(),UZr=uIt(),{asciiLowercase:lIt,solelyContainsHTTPTokenCodePoints:dIt}=oL();hIt.exports=class{constructor(e){e=String(e);let r=LZr(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 vZr(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=lIt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!dIt(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=lIt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!dIt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return UZr(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 _It=f((o4n,a$r)=>{a$r.exports={name:"@actions/artifact",version:"6.1.0",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 inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return Myt(this.pattern,this.options)}parse(e,r){Uj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return uh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=ONe,i=!0;break;case"?":s+=GNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;Tyt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:xyt[c].open,close:xyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+Hin(_in(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),Tyt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,HNe),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?ONe:g.type==="?"?GNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=Lin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==HNe?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===HNe)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Pin(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?ONe:r.dot?Min:vin,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Oin(a):a===uh?uh:a._src).reduce((a,A)=>(a[a.length-1]===uh&&A===uh||a.push(A),a),[]),o.forEach((a,A)=>{a!==uh||o[A-1]===uh||(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]=uh))}),o.filter(a=>a!==uh).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;qNe.sep!=="/"&&(e=e.split(qNe.sep).join("/")),e=e.split(kyt),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 Qu.defaults(e).Minimatch}};Qu.Minimatch=Sx});var Oyt=f((tns,_yt)=>{_yt.exports=Pyt;var VNe=B("fs"),{EventEmitter:qin}=B("events"),{Minimatch:JNe}=vyt(),{resolve:Gin}=B("path");function Yin(t,e){return new Promise((r,n)=>{VNe.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 Lyt(t,e){return new Promise((r,n)=>{(e?VNe.stat:VNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Lyt(t,!1):null):r(null):r(o)})})}async function*Uyt(t,e,r,n,s,i){let o=await Yin(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 Lyt(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*Uyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Jin(t,e,r,n){yield*Uyt("",t,e,r,n,!0)}function Vin(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 Pj=class extends qin{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Vin(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 JNe(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 JNe(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 JNe(i,{dot:!0}))}this.iterator=Jin(Gin(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)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Om(D){let S=jI(D.toString()),T=S.match(WI);if(T||(T=S.match(yT)),!T)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Qkt(e,r).catch(n=>{throw yxe?wxe(n,yxe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Pg().Headers;pe.exports.Response=LQ().Response;pe.exports.Request=HE().Request;pe.exports.FormData=qk().FormData;var{setGlobalOrigin:wkt,getGlobalOrigin:Skt}=jV();pe.exports.setGlobalOrigin=wkt;pe.exports.getGlobalOrigin=Skt;var{CacheStorage:Nkt}=iTe(),{kConstruct:Tkt}=Kt();pe.exports.caches=new Nkt(Tkt);var{deleteCookie:xkt,getCookies:Rkt,getSetCookies:Dkt,setCookie:kkt,parseCookie:vkt}=ETe();pe.exports.deleteCookie=xkt;pe.exports.getCookies=Rkt;pe.exports.getSetCookies=Dkt;pe.exports.setCookie=kkt;pe.exports.parseCookie=vkt;var{parseMIMEType:_kt,serializeAMimeType:Fkt}=oa();pe.exports.parseMIMEType=_kt;pe.exports.serializeAMimeType=Fkt;var{CloseEvent:Mkt,ErrorEvent:Lkt,MessageEvent:Ukt}=a_(),{WebSocket:Pkt,ping:Okt}=XTe();pe.exports.WebSocket=Pkt;pe.exports.CloseEvent=Mkt;pe.exports.ErrorEvent=Lkt;pe.exports.MessageEvent=Ukt;pe.exports.ping=Okt;pe.exports.WebSocketStream=oxe().WebSocketStream;pe.exports.WebSocketError=lz().WebSocketError;pe.exports.request=jQ(XE.request);pe.exports.stream=jQ(XE.stream);pe.exports.pipeline=jQ(XE.pipeline);pe.exports.connect=jQ(XE.connect);pe.exports.upgrade=jQ(XE.upgrade);pe.exports.MockClient=dkt;pe.exports.MockCallHistory=hkt;pe.exports.MockCallHistoryLog=fkt;pe.exports.MockPool=pkt;pe.exports.MockAgent=gkt;pe.exports.SnapshotAgent=mkt;pe.exports.mockErrors=Ekt;var{EventSource:Hkt}=Ixe();pe.exports.EventSource=Hkt;function Gkt(){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=Gkt});var KQ=E(Ah=>{"use strict";Ah.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Ah.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Ah.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Ah.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Ah.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Ah.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Ah.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 Txe=E((DQr,Nxe)=>{"use strict";var{asciiLowercase:y_,solelyContainsHTTPTokenCodePoints:qkt,soleyContainsHTTPQuotedStringTokenCodePoints:Ykt}=KQ();Nxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=y_(String(e)),this._map.get(e)}has(e){return e=y_(String(e)),this._map.has(e)}set(e,r){if(e=y_(String(e)),r=String(r),!qkt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Ykt(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=y_(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 Dxe=E((kQr,Rxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Vkt,removeTrailingHTTPWhitespace:xxe,isHTTPWhitespaceChar:Wkt,solelyContainsHTTPTokenCodePoints:mz,soleyContainsHTTPQuotedStringTokenCodePoints:Jkt,asciiLowercase:Ez,collectAnHTTPQuotedString:zkt}=KQ();Rxe.exports=t=>{t=Vkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!mz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=xxe(n),n.length===0||!mz(n))return null;let s={type:Ez(r),subtype:Ez(n),parameters:new Map};for(;e<t.length;){for(++e;Wkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Ez(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=zkt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=xxe(o),o==="")continue}i.length>0&&mz(i)&&Jkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var vxe=E((vQr,kxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:jkt}=KQ();kxe.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+="=",(!jkt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var Lxe=E((FQr,Mxe)=>{"use strict";var Kkt=Txe(),$kt=Dxe(),Xkt=vxe(),{asciiLowercase:_xe,solelyContainsHTTPTokenCodePoints:Fxe}=KQ();Mxe.exports=class{constructor(e){e=String(e);let r=$kt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Kkt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=_xe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Fxe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=_xe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Fxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Xkt(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 aRe=E(bn=>{"use strict";var Nz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Dvt=Nz(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==="*"?pj:f.type==="?"?Cj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=I_t[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!==mj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===mj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return B_t(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?pj:r.dot?E_t:C_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Q_t(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;Ej.sep!=="/"&&(e=e.split(Ej.sep).join("/")),e=e.split(CDe),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=iC});var NDe=E((_1r,SDe)=>{SDe.exports=wDe;var Bj=b("fs"),{EventEmitter:S_t}=b("events"),{Minimatch:yj}=BDe(),{resolve:N_t}=b("path");function T_t(t,e){return new Promise((r,n)=>{Bj.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 bDe(t,e){return new Promise((r,n)=>{(e?Bj.stat:Bj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?bDe(t,!1):null):r(null):r(o)})})}async function*QDe(t,e,r,n,s,i){let o=await T_t(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 bDe(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*QDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*x_t(t,e,r,n){yield*QDe("",t,e,r,n,!0)}function R_t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var __=class extends S_t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=R_t(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 yj(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 yj(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 yj(i,{dot:!0}))}this.iterator=x_t(N_t(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 oI(Q){let B=iI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(zI).map(te=>te.replace(_m,"").trim())}function KI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Om(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),Ic(T,S)}class XI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):ZI(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):ZI(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function ZI(D,S){D.length=1,D.head=D.tail=S}function Hm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,so;function Du(rB,...RT){if(rB)return Nt?so(rB):fs();if(RT.length<=1)return fs(RT[0]);fs(RT)}var Zy=Xr._createTaskItem(wt,Nt?Du:Or||Du);if(tt?Xr._tasks.unshift(Zy):Xr._tasks.push(Zy),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((rB,RT)=>{fs=rB,so=RT})}function Ru(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var so=wt[Or],Du=se.indexOf(so);Du===0?se.shift():Du>0&&se.splice(Du,1),so.callback(tt,...Nt),tt!=null&&vr("error",tt,so.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Xy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let tB=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,so)=>{if(fs)return Or(fs);Nt(so)})});nt(wt),de(wt,tt)};var ST=!1,Xr={_tasks:new XI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Xy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!ST){for(ST=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var so=Z(Ru(wt));G(tt,so)}ST=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:tB("saturated")},unsaturated:{writable:!1,value:tB("unsaturated")},empty:{writable:!1,value:tB("empty")},drain:{writable:!1,value:tB("drain")},error:{writable:!1,value:tB("error")}}),Xr}function $I(D,S){return Hm(D,1,S)}function Uf(D,S,T){return Hm(D,S,T)}function BA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var QA=m(BA,4);function qm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),QA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function eB(...D){return qm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Hs[Zo]||(Kyt=global[Zo]||[],Zyt(Hs,Kyt),Hs.close=(function(t){function e(r,n){return t.call(Hs,r,function(s){s||Xyt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Gj,{value:t}),e})(Hs.close),Hs.closeSync=(function(t){function e(r){t.apply(Hs,arguments),Xyt()}return Object.defineProperty(e,Gj,{value:t}),e})(Hs.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){By(Hs[Zo]),B("assert").equal(Hs[Zo].length,0)}));var Kyt;global[Zo]||Zyt(global,Hs[Zo]);KNe.exports=zNe(ton(Hs));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Hs.__patched&&(KNe.exports=zNe(Hs),Hs.__patched=!0);function zNe(t){$in(t),t.gracefulify=zNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?Rx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?Rx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=eon(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?Rx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function Rx(t){By("ENQUEUE",t[0].name,t[1]),Hs[Zo].push(t),jNe()}var qj;function Xyt(){for(var t=Date.now(),e=0;e<Hs[Zo].length;++e)Hs[Zo][e].length>2&&(Hs[Zo][e][3]=t,Hs[Zo][e][4]=t);jNe()}function jNe(){if(clearTimeout(qj),qj=void 0,Hs[Zo].length!==0){var t=Hs[Zo].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)By("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){By("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?(By("RETRY",e.name,r),e.apply(null,r.concat([s]))):Hs[Zo].push(t)}qj===void 0&&(qj=setTimeout(jNe,0))}}});var Yj=f((ons,$yt)=>{"use strict";var yf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yf.writable=t=>yf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};TNt.exports={AggregateError:kSe,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var FSe=f((pss,kNt)=>{"use strict";kNt.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 va=f((mss,vNt)=>{"use strict";var{format:wun,inspect:c7}=FSe(),{AggregateError:Nun}=xs(),Sun=globalThis.AggregateError||Nun,Run=Symbol("kIsNodeError"),Dun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xun=/^([A-Z][a-z0-9]*)+$/,Tun="__node_internal_",u7={};function by(t,e){if(!t)throw new u7.ERR_INTERNAL_ASSERTION(e)}function FNt(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 kun(t,e,r){if(typeof e=="function")return by(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 by(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:wun(e,...r)}function ea(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(kun(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[Run]=!0,u7[t]=n}function MNt(t){let e=Tun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Fun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Sun([e,t],e.message);return r.code=e.code,r}return t||e}var MSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new u7.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ea("ERR_ASSERTION","%s",Error);ea("ERR_INVALID_ARG_TYPE",(t,e,r)=>{by(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)by(typeof A=="string","All expected entries have to be of type string"),Dun.includes(A)?s.push(A.toLowerCase()):xun.test(A)?i.push(A):(by(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;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,Z7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(oCn))?s=r.dot?ACn:aCn:(n=e.match(KEn))?s=(r.nocase?r.dot?eCn:$En:r.dot?ZEn:XEn)(n[1]):(n=e.match(cCn))?s=(r.nocase?r.dot?lCn:uCn:r.dot?dCn:hCn)(n):(n=e.match(tCn))?s=r.dot?nCn:rCn:(n=e.match(sCn))&&(s=iCn);let i=GTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}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?fCn:r.dot?pCn:mCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?yCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Ly;var bCn=sDe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return bCn.AST}});var wCn=iDe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return wCn.escape}});var NCn=W7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return NCn.unescape}});et.minimatch.AST=GTt.AST;et.minimatch.Minimatch=Ly;et.minimatch.escape=WEn.escape;et.minimatch.unescape=zEn.unescape});var XTt=f(eK=>{"use strict";Object.defineProperty(eK,"__esModule",{value:!0});eK.LRUCache=void 0;var rT=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,zTt=new Set,oDe=typeof process=="object"&&process?process:{},jTt=(t,e,r,n)=>{typeof oDe.emitWarning=="function"?oDe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},$7=globalThis.AbortController,WTt=globalThis.AbortSignal;if(typeof $7>"u"){WTt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},$7=class{constructor(){e()}signal=new WTt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=oDe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,jTt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var SCn=t=>!zTt.has(t),TI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),KTt=t=>TI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?nT:null:null,nT=class extends Array{constructor(e){super(e),this.fill(0)}},aDe=class t{heap;length;static#e=!1;static create(e){let r=KTt(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ADe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=dxe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=dxe(" "+s+"="+n[s]+`
`);return zr.from(r)};fT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(zr.toString(e.subarray(0,n)),10);if(!s)return r;let i=zr.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};fT.encode=function(e){let r=zr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),zr.byteLength(n)!==n.length)return null;for(;zr.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 zr.byteLength(n)>100||zr.byteLength(s)>155||e.linkname&&zr.byteLength(e.linkname)>100?null:(zr.write(r,n),zr.write(r,_I(e.mode&H0n,6),100),zr.write(r,_I(e.uid,6),108),zr.write(r,_I(e.gid,6),116),z0n(e.size,r,124),zr.write(r,_I(e.mtime.getTime()/1e3|0,11),136),r[156]=UK+V0n(e.type),e.linkname&&zr.write(r,e.linkname,157),zr.copy(r2t,r,dP),zr.copy(P0n,r,hxe),e.uname&&zr.write(r,e.uname,265),e.gname&&zr.write(r,e.gname,297),zr.write(r,_I(e.devmajor||0,6),329),zr.write(r,_I(e.devminor||0,6),337),s&&zr.write(r,s,345),zr.write(r,_I(s2t(r),6),148),r)};fT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-UK,i=gT(e,0,100,r),o=PI(e,100,8),a=PI(e,108,8),A=PI(e,116,8),c=PI(e,124,12),u=PI(e,136,12),l=J0n(s),d=e[157]===0?null:gT(e,157,100,r),h=gT(e,265,32),g=gT(e,297,32),p=PI(e,329,8),C=PI(e,337,8),m=s2t(e);if(m===256)return null;if(m!==PI(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(q0n(e))e[345]&&(i=gT(e,345,155,r)+"/"+i);else if(!G0n(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,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:g,devmajor:p,devminor:C,pax:null}};function q0n(t){return zr.equals(r2t,t.subarray(dP,dP+6))}function G0n(t){return zr.equals(_0n,t.subarray(dP,dP+6))&&zr.equals(O0n,t.subarray(hxe,hxe+2))}function Y0n(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function J0n(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 V0n(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 n2t(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function s2t(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 _I(t,e){return t=t.toString(8),t.length>e?U0n.slice(0,e)+" ":L0n.slice(0,e-t.length)+t+" "}function W0n(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function z0n(t,e,r){t.toString(8).length>11?W0n(t,e,r):zr.write(e,_I(t,11),r)}function j0n(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 PI(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return j0n(t);{for(;e<t.length&&t[e]===32;)e++;let n=Y0n(n2t(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(zr.toString(t.subarray(e,n)),8)}}function gT(t,e,r,n){return zr.toString(t.subarray(e,n2t(t,0,e,e+r)),n)}function dxe(t){let e=zr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var c2t=f((Gos,A2t)=>{var{Writable:K0n,Readable:X0n,getStreamError:i2t}=lxe(),Z0n=KDe(),o2t=cT(),pT=gxe(),$0n=o2t.alloc(0),pxe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Z0n,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 $0n;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 o2t.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)}},mxe=class extends X0n{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(i2t(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=a2t(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Exe=class extends K Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function iPe(t,e){if(process.env.GITHUB_OUTPUT||"")return DT("OUTPUT",OP(t,e));process.stdout.write(xee.EOL),ad("set-output",{name:t},Eh(e))}function RB(t){process.exitCode=Dee.Failure,F1(t)}function DB(){return process.env.RUNNER_DEBUG==="1"}function Te(t){ad("debug",{},t)}function F1(t,e={}){ad("error",UP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){ad("warning",UP(e),t instanceof Error?t.toString():t)}function oPe(t,e={}){ad("notice",UP(e),t instanceof Error?t.toString():t)}function pe(t){process.stdout.write(t+xee.EOL)}function g5t(t){XK("group",t)}function f5t(){XK("endgroup")}function tp(t,e){return h5t(this,void 0,void 0,function*(){g5t(t);let r;try{r=yield e()}finally{f5t()}return r})}function DA(t,e){if(process.env.GITHUB_STATE||"")return DT("STATE",OP(t,e));ad("save-state",{name:t},Eh(e))}function xB(t){return process.env[`STATE_${t}`]||""}import*as jBe from"fs";import*as KBe from"path";import*as LW from"os";var Vje=Xe(Z2(),1),CBr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",IBr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",BBr="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",QBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.",Wje="[Cache was disabled to avoid overwriting a pre-existing Gradle User Home](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#overwriting-an-existing-gradle-user-home). Gradle User Home was not restored from or saved to the cache.",Yje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",yBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Jje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.";var IY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=CBr;this.cacheCleanupMessage=Jje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Vje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=IBr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Yje}setDisabled(e=BBr){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Yje}setWriteOnly(e=QBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=yBr}setCacheCleanupDisabled(e=Jje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new BY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new BY(i.entryName),i)}return r}},BY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};import*as YS from"fs";function Oue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Te(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Te(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Te(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Te(`omitBrokenSymbolicLine truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(y1).map(q=>q.replace(B1,"").trim())}function aI(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=oI(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)}}),sI(w,B)}class cI{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):AI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):AI(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 AI(Q,B){Q.length=1,Q.head=Q.tail=B}function kp(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(Uh,...pI){if(Uh)return Pe?Tn(Uh):Ir();if(pI.length<=1)return Ir(pI[0]);Ir(pI)}var Mp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Mp):Mt._tasks.push(Mp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Uh,pI)=>{Ir=Uh,Tn=pI})}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 Fp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Lh=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 gI=!1,Mt={_tasks:new cI,_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)?Fp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Fp(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)?Fp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Fp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!gI){for(gI=!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)}gI=!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:Lh("saturated")},unsaturated:{writable:!1,value:Lh("unsaturated")},empty:{writable:!1,value:Lh("empty")},drain:{writable:!1,value:Lh("drain")},error:{writable:!1,value:Lh("error")}}),Mt}function uI(Q,B){return kp(Q,1,B)}function vp(Q,B,w){return kp(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 Sa=m(Io,4);function _p(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[ou]}}function b1(...Q){return _p(...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]||(LDe=global[rs]||[],PDe(vr,LDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||UDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,P_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),UDe()}return Object.defineProperty(e,P_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var LDe;global[rs]||PDe(global,vr[rs]);Sj.exports=Qj(P_t(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(Sj.exports=Qj(vr),vr.__patched=!0);function Qj(t){L_t(t),t.gracefulify=Qj,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")?oC([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")?oC([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")?oC([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")?oC([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")?oC([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=U_t(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")?oC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function oC(t){tp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),wj()}var U_;function UDe(){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);wj()}function wj(){if(clearTimeout(U_),U_=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)tp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){tp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(tp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}U_===void 0&&(U_=setTimeout(wj,0))}}});var O_=E((P1r,ODe)=>{"use strict";var WA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";WA.writable=t=>WA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";WA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Eve.exports={AggregateError:cK,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 AK=E((jSr,Cve)=>{"use strict";Cve.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((KSr,Bve)=>{"use strict";var{format:cPt,inspect:iF}=AK(),{AggregateError:APt}=Tr(),uPt=globalThis.AggregateError||APt,lPt=Symbol("kIsNodeError"),dPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],hPt=/^([A-Z][a-z0-9]*)+$/,fPt="__node_internal_",oF={};function sp(t,e){if(!t)throw new oF.ERR_INTERNAL_ASSERTION(e)}function Ive(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 gPt(t,e,r){if(typeof e=="function")return sp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return sp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:cPt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(gPt(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[lPt]=!0,oF[t]=n}function yve(t){let e=fPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function pPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new uPt([e,t],e.message);return r.code=e.code,r}return t||e}var uK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oF.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)=>{sp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)sp(typeof c=="string","All expected entries have to be of type string"),dPt.includes(c)?s.push(c.toLowerCase()):hPt.test(c)?i.push(c):(sp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=GX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=GX(" "+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,xh(e.mode&NVt,6),100),kt.write(r,xh(e.uid,6),108),kt.write(r,xh(e.gid,6),116),_Vt(e.size,r,124),kt.write(r,xh(e.mtime.getTime()/1e3|0,11),136),r[156]=_M+kVt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(YOe,r,d1),kt.copy(QVt,r,qX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,xh(e.devmajor||0,6),329),kt.write(r,xh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,xh(WOe(r),6),148),r)};JC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-_M,i=WC(e,0,100,r),o=Th(e,100,8),a=Th(e,108,8),c=Th(e,116,8),A=Th(e,124,12),u=Th(e,136,12),l=DVt(s),d=e[157]===0?null:WC(e,157,100,r),h=WC(e,265,32),f=WC(e,297,32),p=Th(e,329,8),I=Th(e,337,8),m=WOe(e);if(m===256)return null;if(m!==Th(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(TVt(e))e[345]&&(i=WC(e,345,155,r)+"/"+i);else if(!xVt(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 TVt(t){return kt.equals(YOe,t.subarray(d1,d1+6))}function xVt(t){return kt.equals(wVt,t.subarray(d1,d1+6))&&kt.equals(SVt,t.subarray(qX,qX+2))}function RVt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function DVt(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 kVt(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 VOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function WOe(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 xh(t,e){return t=t.toString(8),t.length>e?bVt.slice(0,e)+" ":BVt.slice(0,e-t.length)+t+" "}function vVt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function _Vt(t,e,r){t.toString(8).length>11?vVt(t,e,r):kt.write(e,xh(t,11),r)}function FVt(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 Th(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return FVt(t);{for(;e<t.length&&t[e]===32;)e++;let n=RVt(VOe(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 WC(t,e,r,n){return kt.toString(t.subarray(e,VOe(t,0,e,e+r)),n)}function GX(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 $Oe=E((Bxr,KOe)=>{var{Writable:MVt,Readable:LVt,getStreamError:JOe}=HX(),UVt=SX(),zOe=HC(),zC=YX(),PVt=zOe.alloc(0),WX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new UVt,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 PVt;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 zOe.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)}},JX=class extends LVt{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(JOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=jOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},zX=class extends MVt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Uce(t,e){if(process.env.GITHUB_OUTPUT||"")return mI("OUTPUT",W1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},yc(e))}function uf(t){process.exitCode=kO.Failure,Pi(t)}function Oa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",q1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Ta("warning",q1(e),t instanceof Error?t.toString():t)}function Pce(t,e={}){Ta("notice",q1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+vO.EOL)}function lKe(t){ZM("group",t)}function dKe(){ZM("endgroup")}function $N(t,e){return uKe(this,void 0,void 0,function*(){lKe(t);let r;try{r=yield e()}finally{dKe()}return r})}function Qu(t,e){if(process.env.GITHUB_STATE||"")return mI("STATE",W1(t,e));Ta("save-state",{name:t},yc(e))}function vm(t){return process.env[`STATE_${t}`]||""}import*as bz from"fs";import*as Qz from"path";import*as Q_ from"os";import{readFileSync as hKe,existsSync as fKe}from"fs";import{EOL as gKe}from"os";var _m=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(fKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(hKe(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${gKe}`)}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=Ae(Yce(),1),Vce=Ae(GN(),1),TKe=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 Wce(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 Jce(t){return new UO.HttpClient().getAgent(t)}function xKe(t){return new UO.HttpClient().getAgentDispatcher(t)}function zce(t){let e=xKe(t);return(n,s)=>TKe(this,void 0,void 0,function*(){return(0,Vce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function jce(){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 sT(){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 iT(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)=>iT.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 Kce(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 $ce(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 Xce=Function.bind,Zce=Xce.bind(Xce);function eAe(t,e,r){let n=Zce($ce,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]=Zce(Kce,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var N$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)}name="GraphqlResponseError";errors;data},T$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],x$e=["query","method","url"],SAe=/\/api\/v3\/?$/;function R$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(x$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)=>T$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 SAe.test(i)&&(s.url=i.replace(SAe,"/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 N$e(s,a,o.data)}return o.data.data})}function ZO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>R$e(r,s,i),{defaults:ZO.bind(null,r),endpoint:r.endpoint})}var gjt=ZO(NAe.request,{headers:{"user-agent":`octokit-graphql.js/${w$e} ${sT()}`},method:"POST",url:"/graphql"});function TAe(t){return ZO(t,{method:"POST",url:"/graphql"})}var e3="(?:[a-zA-Z0-9_-]+)",xAe="\\.",RAe=new RegExp(`^${e3}${xAe}${e3}${xAe}${e3}$`),D$e=RAe.test.bind(RAe);async function k$e(t){let e=D$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 v$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function _$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=v$e(t),e(s)}var DAe=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(k$e.bind(null,e),{hook:_$e.bind(null,e)})};var t3="7.0.6";var kAe=()=>{},F$e=console.warn.bind(console),M$e=console.error.bind(console);function L$e(t={}){return typeof t.debug!="function"&&(t.debug=kAe),typeof t.info!="function"&&(t.info=kAe),typeof t.warn!="function"&&(t.warn=F$e),typeof t.error!="function"&&(t.error=M$e),t}var vAe=`octokit-core.js/${t3} ${sT()}`,cT=class{static VERSION=t3;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 tAe.Collection,n={baseUrl:r3.request.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} ${vAe}`:vAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=r3.request.defaults(n),this.graphql=TAe(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=DAe(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 n3="17.0.0";var U$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 rF(i));return n.searchPaths.push(...que(n.patterns)),n})}static stat(e,r,n){return Gue(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield YS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Te(`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 YS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield YS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Te(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as Yue from"crypto";import*as wY from"fs";import*as $je from"stream";import*as e7e from"util";import*as t7e from"path";var TBr=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())})},kBr=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 r7e(t,e){return TBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?pe:Te,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=Yue.createHash("sha256"),g=0;try{for(var p=!0,C=kBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${t7e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(wY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=Yue.createHash("sha256");yield e7e.promisify($je.pipeline)(wY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var n7e=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 iC(t,e){return n7e(this,void 0,void 0,function*(){return yield yY.create(t,e)})}function s7e(t){return n7e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield iC(e,{followSymbolicLinks:i});return r7e(o,r,s)})}import Jp from"path";import ic from"fs";import{readFileSync as FBr,existsSync as MBr}from"fs";import{EOL as vBr}from"os";var JS=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(MBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(FBr(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${vBr}`)}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 gge=Xe(knt(),1),Fnt=Xe(uge(),1),r2r=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 Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var tFr=class extends Error{constructor(t,e,r){super(eFr(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},rFr=["method","baseUrl","url","headers","request","query","mediaType","operationName"],nFr=["query","method","url"],gst=/\/api\/v3\/?$/;function sFr(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(nFr.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)=>rFr.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 gst.test(i)&&(s.url=i.replace(gst,"/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 tFr(s,a,o.data)}return o.data.data})}function Rge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>sFr(r,s,i),{defaults:Rge.bind(null,r),endpoint:r.endpoint})}var svn=Rge(fst.request,{headers:{"user-agent":`octokit-graphql.js/${$2r} ${S6()}`},method:"POST",url:"/graphql"});function pst(t){return Rge(t,{method:"POST",url:"/graphql"})}var Dge="(?:[a-zA-Z0-9_-]+)",mst="\\.",Est=new RegExp(`^${Dge}${mst}${Dge}${mst}${Dge}$`),iFr=Est.test.bind(Est);async function oFr(t){let e=iFr(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 aFr(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function AFr(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=aFr(t),e(s)}var Cst=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(oFr.bind(null,e),{hook:AFr.bind(null,e)})};var xge="7.0.6";var Ist=()=>{},cFr=console.warn.bind(console),uFr=console.error.bind(console);function lFr(t={}){return typeof t.debug!="function"&&(t.debug=Ist),typeof t.info!="function"&&(t.info=Ist),typeof t.warn!="function"&&(t.warn=cFr),typeof t.error!="function"&&(t.error=uFr),t}var Bst=`octokit-core.js/${xge} ${S6()}`,T6=class{static VERSION=xge;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 Gnt.Collection,n={baseUrl:Tge.request.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} ${Bst}`:Bst,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Tge.request.defaults(n),this.graphql=pst(this.request).defaults(n),this.log=lFr(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=Cst(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 kge="17.0.0";var dFr={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 Line truncated
See ${r.getDocumentationLink()}`;Fst.push(n),RB(n)}function Mst(){DA("deprecation-collector_deprecations",JSON.stringify(Pge)),DA("deprecation-collector_errors",JSON.stringify(Fst))}import*as v6 from"path";var Lst="GRADLE_ACTION_ID";var oQ=".setup-gradle",L6=class t{getDependencyGraphOption(){let e=Es("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 Qg("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Es("artifact-retention-days");return RFr("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(Qo.workflow,Qo.job,_ge())}getReportDirectory(){let e=Es("dependency-graph-report-dir");return v6.resolve(bC(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return iQ("dependency-graph-exclude-projects")}getIncludeProjects(){return iQ("dependency-graph-include-projects")}getExcludeConfigurations(){return iQ("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return iQ("dependency-graph-include-configurations")}getPluginRepository(){return new U6}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){Te(`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 GR=class{isCacheDisabled(){return vst.isFeatureAvailable()?Qg("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Qg("cache-read-only")}isCacheWriteOnly(){return Qg("cache-write-only")}isCacheOverwriteExisting(){return Qg("cache-overwrite-existing")}isCacheStrictMatch(){return Qg("gradle-home-cache-strict-match")}isCacheCleanupEnabled(){if(this.isCacheReadOnly())return!1;let e=this.getCacheCleanupOption();return e==="always"||e==="on-success"}shouldPerformCacheCleanup(e){let r=this.getCacheCleanupOption();return r==="always"?!0:r==="on-success"?!e:!1}getCacheCleanupOption(){let e=aM("gradle-home-cache-cleanup");if(e!==void 0)return F6("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always":"never";let r=Es("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always";case"on-success":return"on-success";case"never":return"never"}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Es("cache-encryption-key")}getCacheIncludes(){return Tee("gradle-home-cache-includes")}getCacheExcludes(){return Tee("gradle-home-cache-excludes")}};var qd=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Qg("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return Es("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return Es("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Es("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Es("develocity-token-expiry")}getDevelocityInjectionEnabled(){return aM("develocity-injection-enabled")}getDevelocityUrl(){return Es("develocity-url")}getDevelocityAllowUntrustedServer(){return aM("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return aM("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return aM("develocity-enforce-url")}getDevelocityPluginVersion(){return Es("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Es("develocity-ccud-plugin-version")}getPluginRepository(){return new U6}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(tr("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},U6=class{getUrl(){return iQ("gradle-plugin-repository-url")}getUsername(){return iQ("gradle-plugin-repository-username")}getPassword(){return iQ("gradle-plugin-repository-password")}},P6=class{getGradleVersion(){return Es("gradle-version")}getBuildRootDirectory(){let e=bC(),r=Es("build-root-directory");return r===""?v6.re Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await kFr()}`),n;zo(`Attempt to delete ${t} failed. Will try again.`),await TFr(1e3)}}}async function TFr(t){return new Promise(e=>setTimeout(e,t))}async function kFr(){return(await ep("jps",["-lm"])).stdout}var FFr="v1",MFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",vFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",LFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",UFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",PFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",G6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function Hge(t,e){let s=`${`${process.env[MFr]||""}${Y6(t,FFr)}`}|${_Fr()}`,i=`${s}|${OFr()}`,o=`${i}[${HFr()}]`,a=`${o}-${qFr()}`;return e.isCacheStrictMatch()?new G6(a,[o]):new G6(a,[o,i,s])}function Y6(t,e){return`gradle-${t}-${e}`}function _Fr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[vFr]||`${t}-${e}`}function OFr(){return process.env[LFr]||Qo.job}function HFr(){let t=process.env[UFr];if(t)return t;let e=Qo.workflow,r=_ge();return Oge([e,r])}function qFr(){return process.env[PFr]||Qo.sha}import VR from"path";import BM from"fs";import*as Gd from"fs";import*as Yp from"path";var mat=Xe(rit(),1),uQ=Xe(n9(),1);import*as JR from"fs";import*as lat from"os";import*as RC from"path";var u9=Xe(Z2(),1);import{ok as iUr}from"assert";import*as bg from"path";import*as s9 from"fs";import*as SC from"path";var KLr=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())})},{chmod:XLr,copyFile:ZLr,lstat:$Lr,mkdir:Vot,open:DLn,readdir:Wot,rename:eUr,rm:zot,rmdir:xLn,stat:Afe,symlink:tUr,unlink:rUr}=s9.promises,NC=process.platform==="win32";var TLn=s9.constants.O_RDONLY;function jot(t){if(t=nUr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return NC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function cfe(t,e){return KLr(this,void 0,void 0,function*(){let r;try{r=yield Afe(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(NC){let s=SC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(Jot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield Afe(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(NC){try{let i=SC.dirname(t),o=SC.basename(t).toUpperCase();for(let a of yield Wot(i))if(o===a.toUpperCase()){t=SC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(Jot(r))return t}}return""})}function nUr(t){return t=t||"",NC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Jot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var i9=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 Kot(t){return i9(this,void 0,void 0,function*(){if(NC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield zot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function ufe(t){return i9(this,void 0,void 0,function*(){iUr(t,"a path argument must be provided"),yield Vot(t,{recursive:!0})})}function EM(t,e){return i9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield EM(t,!1);if(!n)throw NC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield oUr(t);return r&&r.length>0?r[0]:""})}function oUr(t){return i9(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(NC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(bg.delimiter))s&&e.push(s);if(jot(t)){let s=yield cfe(t,e);return s?[s]:[]}if(t.includes(bg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(bg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield cfe(bg.join(s,t),e)Line truncated
`),r,[],s)?new QM(e,n,r):(pe(`Did not restore ${e} with key ${r} to ${n}`),new QM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();zo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await iC(a,{implicitDescendants:!1})).glob();if(c.length===0){zo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(zo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await q6(n.split(`
`),a,o);for(let c of e)uM(c);return new QM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>VR.relative(this.gradleUserHome,i)),s=Ost(n);return zo(`Generating cache key for ${e} from file names: ${n}`),`${Y6(e,Eat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await s7e(r);return zo(`Generating cache key for ${e} from files matching: ${r}`),`${Y6(e,Eat)}-${n}`}async awaitForDebugging(e){return AM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!BM.existsSync(e))return[];let r=BM.readFileSync(e,"utf-8");return zo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new Qfe;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);zo(`Saving cache metadata for ${this.extractorName}: ${n}`),BM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=VR.resolve(this.gradleUserHome,oQ);return BM.mkdirSync(e,{recursive:!0}),VR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},yM=class extends g9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=VR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await iC(e,{implicitDescendants:!1});for(let n of await r.glob())zo(`Deleting wrapper zip: ${n}`),await uM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=VR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new h9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},bM=class extends g9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){pe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){pe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new h9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!DC(i.gradleVersion,"8.6.0"))&&(pe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return Bfe().results.reduce((e,r)=>{let n=VR.resolve(r.rootProjectDir,".gradle/configuration-cache");return BM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import Cat from"path";import vUr from"fs";import{fileURLToPath as LUr}from"url";function Iat(...t){let e=Cat.dirname(LUr(import.meta.url)),r=Cat.resolve(e,"..","..","..","sources","src","resources",...t);return vUr.readFileSync(r,"utf8")}function Bat(){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"?>
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xy(i));return n.searchPaths.push(...l3(n.patterns)),n})}static stat(e,r,n){return p3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Om.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 Om.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Om.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 SXe=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 pue(t,e){return SXe(this,void 0,void 0,function*(){return yield fT.create(t,e)})}var cde=Ae(My(),1);import*as RT from"crypto";import*as Ym from"fs";import*as Ef from"path";import*as Ade from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));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 TT=2,xT=5e3,L3=5e3,U3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,ade=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",P3="manifest.txt",t$t=10*Math.pow(1024,3);var qm=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())})},Mtt=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)}},Ltt="1.0";function Py(){return qm(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=Ef.join(n,"actions","temp")}let r=Ef.join(e,RT.randomUUID());return yield Af(r),r})}function Lc(t){return Ym.statSync(t).size}function O3(t){return qm(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 pue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Mtt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ef.relative(a,s).replace(new RegExp(`\\${Ef.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 Oy(t){return qm(this,void 0,void 0,function*(){return Ade.promisify(Ym.unlink)(t)})}function ude(t){return qm(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 Hy(){return qm(this,void 0,void 0,function*(){let t=yield ude("zstd",["--quiet"]),e=cde.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function ed(t){return t===Rs.Gzip?Ly.Gzip:Ly.Zstd}function lde(){return qm(this,void 0,void 0,function*(){return Ym.existsSync(U3)?U3:(yield ude("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function H3(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(Ltt),RT.createHash("sha256").update(n.join("|")).digest("hex")}function dde(){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 NAt}from"url";var Uc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Utt}from"node:os";import Ptt from"node:util";import Ott from"node:process";function hde(t,...e){Ott.stderr.write(`${Ptt.format(t,...e)}${Utt}`)}import Gy from"node:process";function kT(t){return Gy.env[t]}var fde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,gde=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,vT=!0;var pde=kT("DEBUG"),Ede,G3=[],q3=[],_T=[];pde&&Y3(pde);var Cde=Object.assign(t=>Ide(t),{enable:Y3,enabled:V3,disable:Htt,log:hde});function Y3(t){Ede=t,G3=[],q3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q3.push(r.substring(1)):G3.push(r);for(let r of _T)r.enabled=V3(r.namespace)}function V3(t){if(t.endsWith("*"))return!0;for(let e of q3)if(mde(t,e))return!1;for(let e of G3)if(mde(t,e))return!0;return!1}function mde(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 Htt(){let t=Ede||"";return Y3(""),t}function Ide(t){let e=Object.assign(r,{enabled:V3(t),destroy:Gtt,log:Cde.log,namespace:t,extend:qtt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return _T.push(e),e}function Gtt(){let t=_T.indexOf(this);return t>=0?(_T.splice(t,1),!0):!1}function qtt(t){let e=Ide(`${this.namespace}:${t}`);return e.log=this.log,e}var Wm=Cde;var W3=["verbose","info","warning","error"],yde={verbose:400,info:300,warning:200,error:100};function Bde(t,e){e.log=(...r)=>{t.log(...r)}}function bde(t){return W3.includes(t)}function Ytt(t){let e=new Set,r=kT(t.logLevelEnvVarName),n,s=Wm(t.namespace);s.log=(...u)=>{Wm.log(...u)};function i(u){if(u&&!bde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${W3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Wm.enable(l.join(","))}r&&(bde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${W3.join(", ")}.`));function o(u){return!!(n&&yde[u.level]<=yde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Bde(u,d),o(d)){let h=Wm.disable();Wm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Bde(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 Qde=Ytt({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Vtt=Qde.logger;function qy(t){return Qde.createClientLogger(t)}function FT(t){return t.toLowerCase()}function Wtt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Jtt(t){for(let e of t.values())yield[e.name,e.value]}var J3=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(FT(e),{name:e,value:Wtt(r)})}get(e){return this._headersMap.get(FT(e))?.value}has(e){return this Line truncated
${$tt.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:If(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import $3 from"node:http";import X3 from"node:https";import Nde from"node:zlib";import{Transform as Xtt}from"node:stream";var si=qy("ts-http-runtime");var Ztt={};function Yy(t){return t&&typeof t.pipe=="function"}function Tde(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 xde(t){return t&&typeof t.byteLength=="number"}var UT=class extends Xtt{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}},Z3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Uc("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=nrt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new UT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Yy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=ert(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?trt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new UT(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 rrt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=Tde(a));let u=Promise.resolve();Yy(c)&&(u=Tde(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?$3.request(a,c):X3.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 Uc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Yy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):xde(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?$3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new $3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return X3.globalAgent;let s=e.tlsSettings??Ztt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new X3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ert(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 trt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Nde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Nde.createInflate();return t.pipe(n),n}return t}function rrt(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 nrt(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:xde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Rde(){return new Z3}function PT(){return Rde()}var e8="logPolicy";function OT(t={}){let e=t.logger??si.info,r=new Ya({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:e8,asy Line truncated
`;return e}function Qnt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function wnt(t){let e=0;for(let r of t){let n=Qnt(r);if(n===void 0)return;e+=n}return e}async function Snt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(bnt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
\r
`,"utf-8")],s=wnt(n);s&&t.headers.set("Content-Length",s),t.body=await Bhe(n)}var zy="multipartPolicy",Nnt=70,Tnt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function xnt(t){if(t.length>Nnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Tnt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function cx(){return{name:zy,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?xnt(r):r=Bnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Snt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Ax(){return LT()}import{EOL as Dnt}from"node:os";import knt from"node:util";import*as bhe from"node:process";function Qhe(t,...e){bhe.stderr.write(`${knt.format(t,...e)}${Dnt}`)}var whe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,She,E8=[],C8=[],ux=[];whe&&I8(whe);var Nhe=Object.assign(t=>The(t),{enable:I8,enabled:y8,disable:vnt,log:Qhe});function I8(t){She=t,E8=[],C8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?C8.push(new RegExp(`^${n.substr(1)}$`)):E8.push(new RegExp(`^${n}$`));for(let n of ux)n.enabled=y8(n.namespace)}function y8(t){if(t.endsWith("*"))return!0;for(let e of C8)if(e.test(t))return!1;for(let e of E8)if(e.test(t))return!0;return!1}function vnt(){let t=She||"";return I8(""),t}function The(t){let e=Object.assign(r,{enabled:y8(t),destroy:_nt,log:Nhe.log,namespace:t,extend:Fnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ux.push(e),e}function _nt(){let t=ux.indexOf(this);return t>=0?(ux.splice(t,1),!0):!1}function Fnt(t){let e=The(`${this.namespace}:${t}`);return e.log=this.log,e}var Zm=Nhe;var Rhe=new Set,lx=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,B8,b8=Zm("azure");b8.log=(...t)=>{Zm.log(...t)};var Q8=["verbose","info","warning","error"];lx&&(vhe(lx)?Mnt(lx):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lx}'; logging is not enabled. Acceptable values: ${Q8.join(", ")}.`));function Mnt(t){if(t&&!vhe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Q8.join(",")}`);B8=t;let e=[];for(let r of Rhe)khe(r)&&e.push(r.namespace);Zm.enable(e.join(","))}var xhe={verbose:400,info:300,warning:200,error:100};function Mo(t){let e=b8.extend(t);return Dhe(b8,e),{error:dx(e,"error"),warning:dx(e,"warning"),info:dx(e,"info"),verbose:dx(e,"verbose")}}function Dhe(t,e){e.log=(...r)=>{t.log(...r)}}function dx(t,e){let r=Object.assign(t.extend(e),{level:e});if(Dhe(t,r),khe(r)){let n=Zm.disable();Zm.enable(n+","+r.namespace)}return Rhe.add(r),r}function khe(t){return!!(B8&&xhe[t.level]<=xhe[B8])}function vhe(t){return Q8.includes(t)}var Oc=Mo("core-rest-pipeline");function w8(t={}){return OT({logger:Oc.info,...t})}var S8=ox;function N8(t={}){return ax(t)}import T8 from"node:os";import nd from"node:process";function _he(){return"User-Agent"}async function Fhe(t){if(nd&&nd.versions){let e=`${T8.type()} ${T8.release()}; ${T8.arch()}`;nd.versions.bun?t.set("Bun",`${nd.versions.bun} (${e})`):nd.versions.deno?t.set("Deno",`${nd.versions.deno} (${e})`):nd.versions.node&&t.set("Node",`${nd.versions.node} (${e})`)}}var hx="1.24.0";function qnt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Mhe(){return _he()}async function fx(t){let e=new Map;e.set("core-rest-pipeline",hx),await Fhe(e);let r=qnt(e);return t?`${t} ${r}`:r}var Lhe=Mhe(),Uhe="userAgentPolicy";function x8(t={}){let e=fx(t.userAgentPrefix);return{name:Uhe,async sendRequest(r,n){return r.headers.has(Lhe)||r.headers.set(Lhe,await e),n(r)}}}var Phe=Symbol("rawContent");function R8(t){return typeof t[Phe]=="function"}function Ohe(t){return R8(t)?t[Phe]():t}var gx=zy;function D8(){let t=cx();return{name:gx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)R8(n.body)&&(n.body=Ohe(n.body));return t.sendRequest(e,r)}}}var k8=sx;function v8(){return ix()}function _8(t={}){return qT(t)}function F8(){return YT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function M8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new jy(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var 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--),!Bit(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=mit(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=Sfe(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=Sfe(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=wfe(t,i);continue}else if(t[i+1]==="?"){if(i=Qfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Iit(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!bfe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(bfe(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 bfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Qfe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return 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 wfe(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 git='"',pit="'";function mit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===git||t[e]===pit)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 Eit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Sfe(t,e){let r=Sx(t,Eit),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(!yit(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 Cit(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 Iit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Cit(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 yit(t){return o4(t)}function Bit(t){return o4(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 Nfe={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"},xfe={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 uB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=c0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=f4(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=g4(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=c0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=c0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=g4(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}=f4(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=zit(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Jit(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}=f4(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 eot(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 tot(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 rot(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 not(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function sot(t,e,r=">"){Line truncated
`;function dot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(y4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function tge(t,e,r,n,s){return!r.sanitizeName||Nf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function I4(t,e){let r="";e.format&&(r=lot);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=dot(t,e),i=new qc;return rge(t,e,r,i,n,s)}function rge(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=C4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=y4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:tge(u,!1,e,n,i),h=hot(A[":@"],e);n.push(d,h);let f=got(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=C4(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=ege(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=ege(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=nge(A[u],e):C=rge(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 hot(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]=cd(t[s]),n=!0}return n?r:null}function nge(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=y4(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=fot(s[":@"],e),a=nge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function fot(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)}="${cd(s)}"`}return r}function y4(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 ege(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:tge(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=C4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${cd(A)}"`}return i}function got(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 C4(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 B4(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 pot={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({},pot,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
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function mot(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 b4(t,e,r,n,s){return!r.sanitizeName||Nf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return I4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new qc,r=mot(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:b4(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=b4(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=b4(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+'="'+cd(e)+'"'};function Eot(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]=cd(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]=cd(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.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 Rf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gB(e,r,this)}computeHMACSHA256(e){return Rot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Df=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 ud={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Dot=new Df("The operation was aborted."),pB=class extends Yc{retryOptions;constructor(e,r,n=ud){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ud.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ud.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ud.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ud.maxRetryDelayInMs):ud.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ud.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ud.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=Ad(s.url,ku.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,Dot)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var kot="storageBrowserPolicy";function cge(){return{name:kot,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ad(t.url,ku.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var vot="StorageCorrectContentLengthPolicy";function Age(){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:vot,async sendRequest(e,r){return t(e),r(e)}}}var _ot="storageRetryPolicy",u0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Fot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Mot=new Df("The operation was aborted.");function uge(t={}){let e=t.retryPolicyType??u0.retryPolicyType,r=t.maxTries??u0.maxTries,n=t.retryDelayInMs??u0.retryDelayInMs,s=t.maxRetryDelayInMs??u0.maxRetryDelayInMs,i=t.secondaryHost??u0.secondaryHost,o=t.tryTimeoutInMs??u0.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 Fot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Lot("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:Uot,async sendRequest(i,o){return e(i),o(i)}}}var Pot="storageRequestFailureDetailsParserPolicy";function lge(){return{name:Pot,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 Oot}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 Oot("sha256",this.key).update(e,"utf8").digest("base64")}};var Kx="12.31.0",$x="2026-02-06";var Xx="https://storage.azure.com/.default",vu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Va="",x4="*",Hot=1*1024*1024;var Got=4*Hot;var dge="AES256",hge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",fge=["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"],gge=["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"],pge="BlobUsesCustomerSpecifiedEncryption",mge="BlobDoesNotUseCustomerSpecifiedEncryption",Ege=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _u(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var EB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new EB([],e);return r._credential=t,r}function qot(t){let e=[Yot,Cge,Vot,Wot,Jot,zot,Kot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>jot(s));return{wrappedPolicies:s4(r),afterRetry:n}}}}function R4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?i4(e):N4(),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=eB({...r,loggingOptions:{additionalAllowedHeaderNames:fge,additionalAllowedQueryParameters:gge,logger:Px.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ux,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:w4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:k8}),s.addPolicy(Age()),s.addPolicy(uge(r.retryOptions),{phase:"Retry"}),s.addPolicy(lge()),s.addPolicy(cge());let a=qot(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=D4(t);Yi(c)?s.addPolicy(n0({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 Yct(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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 Vct(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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 Wct(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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 Jct(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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 zct(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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 jct(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(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 Pf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Of(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 RB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=t0()),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"}};I0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var qf=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"}};qf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var EAt=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())})},s9=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 kpe(t,e,r){return EAt(this,void 0,void 0,function*(){var n;let s=new $a(t),i=s.getBlockBlobClient(),o=new s9((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 _pe from"buffer";import*as AA from"fs";import*as Fpe from"stream";import*as Mpe 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 CAt(t){return t?t>=500:!0}function IAt(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function yAt(t){return JR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function vpe(t,e,r){return JR(this,arguments,void 0,function*(n,s,i,o=TT,a=xT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!CAt(d)))return l;if(d&&(h=IAt(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 yAt(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return JR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield vpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof vc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function y0(t,e){return JR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield vpe(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 BAt(t,e){return Go(this,void 0,void 0,function*(){yield Mpe.promisify(Fpe.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 c9(t,e,r){return di(this,void 0,void 0,function*(){let n=new NAt(t),s=Ope(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Upe(t,e,s):s.concurrentBlobDownloads?yield Lpe(t,e,s):yield KR(t,e):yield KR(t,e)})}function Jpe(t,e,r){return di(this,void 0,void 0,function*(){let n=a9(),s=Vm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Vpe(t,e){return`bytes ${t}-${e}/*`}function DAt(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: ${Vpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Vpe(n,s)},o=yield y0(`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 kAt(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Lc(r),i=HB(`caches/${e.toString()}`),o=B0.openSync(r,"r"),a=i9(n),c=H3("uploadConcurrency",a.uploadConcurrency),A=H3("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 DAt(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 vAt(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function A9(t,e,r,n){return di(this,void 0,void 0,function*(){if(i9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kpe(r,e,n)}else{let i=a9();H("Upload cache"),yield kAt(i,t,e,n),H("Commiting cache");let o=Lc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield vAt(i,t,o);if(!zR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var Ome=Ae(eG(),1),rn=Ae(At(),1),ji=Ae(At(),1),zf=Ae(At(),1),jf=Ae(At(),1),Kf=Ae(At(),1);var sG=Ae(At(),1),iG=Ae(At(),1),Lme=Ae(At(),1),Ume=Ae(At(),1),Pme=Ae(At(),1);var tG=Ae(At(),1),rG=Ae(At(),1),_me=Ae(At(),1),Fme=Ae(At(),1),Mme=Ae(At(),1),nG=class extends Mme.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,Fme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_me.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?rG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,tG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?rG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},LD=new nG;var oG=class extends Pme.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,Ume.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lme.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?iG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,sG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)LD.internalBinaryWrite(e.scope[i],r.tag(2,sG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?iG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield yG(r,"create");yield BG(n,t)})}var U0=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)}},Cd=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 Yme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function wG(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 Vme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function HD(t,e,r,n){return U0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();return H(`Cache service version: ${A}`),Yme(s),A==="v2"?yield Klt(s,i,o,a,c):yield jlt(s,i,o,a,c)})}function jlt(t,e,r,n){return U0(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)wG(d);let u=yield Hy(),l="";try{let d=yield Wpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=nb.join(yield Py(),ed(u)),H(`Archive Path: ${l}`),yield c9(d.archiveLocation,l,a),Oa()&&(yield rb(l,u));let h=Lc(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield bG(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 Oy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function Klt(t,e,r,n){return U0(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)wG(l);let u="";try{let l=IG(),d=yield Hy(),h={key:i,restoreKeys:o,version:Vm(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=nb.join(yield Py(),ed(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield c9(f.signedDownloadUrl,u,a);let I=Lc(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Oa()&&(yield rb(u,d)),yield bG(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 Oy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function GD(t,e,r){return U0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();return H(`Cache service version: ${a}`),Yme(n),wG(s),a==="v2"?yield Xlt(n,s,i,o):yield $lt(n,s,i,o)})}function $lt(t,e,r){return U0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Hy(),h=-1,f=yield O3(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 Py(),I=nb.join(p,ed(d));H(`Archive Path: ${I}`);try{yield QG(p,f,d),Oa()&&(yield rb(I,d));let m=10*1024*1024*1024,C=Lc(I);if(H(`File Size: ${C}`),C>m&&!o9())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 Jpe(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 Cd(`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 A9(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===Cd.name Line truncated
See ${r.getDocumentationLink()}`;Wme.push(n),uf(n)}function Jme(){Qu("deprecation-collector_deprecations",JSON.stringify(NG)),Qu("deprecation-collector_errors",JSON.stringify(Wme))}import*as WD from"path";var zme="GRADLE_ACTION_ID";var $D=".setup-gradle",JD=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 gA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return rdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,tdt())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return WD.resolve(Id(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return $f("dependency-graph-exclude-projects")}getIncludeProjects(){return $f("dependency-graph-include-projects")}getExcludeConfigurations(){return $f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return $f("dependency-graph-include-configurations")}getPluginRepository(){return new zD}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 P0=class{isCacheDisabled(){return Vme()?gA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&gA("cache-read-only")}isCacheWriteOnly(){return gA("cache-write-only")}isCacheOverwriteExisting(){return gA("cache-overwrite-existing")}isCacheStrictMatch(){return gA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ib("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")}isCacheLicenseAccepted(){let e=new Wo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}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 Wo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return gA("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 ib("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ib("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ib("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ib("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new zD}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)}},zD=class{getUrl(){return $f("gradle-plugin-repository-url")}getUsername(){return $f("gradle-plugin-repository 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 db(i));return n.searchPaths.push(...DG(n.patterns)),n})}static stat(e,r,n){return UG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield G0.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 G0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield G0.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 PG from"crypto";import*as s2 from"fs";import*as B0e from"stream";import*as b0e from"util";import*as Q0e from"path";var mht=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())})},Eht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function w0e(t,e){return mht(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=PG.createHash("sha256"),f=0;try{for(var p=!0,I=Eht(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}${Q0e.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(s2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=PG.createHash("sha256");yield b0e.promisify(B0e.pipeline)(s2.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 S0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function OG(t,e){return S0e(this,void 0,void 0,function*(){return yield r2.create(t,e)})}function N0e(t){return S0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield OG(e,{followSymbolicLinks:i});return w0e(o,r,s)})}import*as GG from"path";var x0e="BASIC_CACHE_PRIMARY_KEY",HG="BASIC_CACHE_RESTORED_KEY",Cht="setup-java",R0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],i2=class{async restore(e,r){let n=D0e(e),s=await Iht();Qu(x0e,s);try{let i=await HD(n,s);i?(Qu(HG,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){if(n.readOnly){let a=vm(HG);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=vm(x0e);if(vm(HG)===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=D0e(e);try{return await GD(o,s),Z(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return We(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function D0e(t){return[GG.join(t,"caches"),GG.join(t,"wrapper")]}async function Iht(){let t=await N0e(R0e.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${R0e}], make sure you have checked out the target repository`);return`${Cht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Bht=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,bht="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.",Qht=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,wht="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: 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.",Sht=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,YG=class{async restore(e,r){}async save(e,r,n){return Bht}},o2=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function _0e(t){if(t.isCacheDisabled())return qG("Cache is disabled: will not restore state from previous builds."),new YG;if(t.getCacheProvider()==="basic")return qG(wht),new o2(new i2,Sht);qG(bht);let e=await Nht();return t.isCacheLicenseAccepted()?e:new o2(e,Qht)}async function Nht(){let t=Tht();return await import(yht(t).href)}function Tht(){let t=import.meta.dirname,e=v0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(k0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function qG(t){console.info(t)}import a2 from"fs";import F0e from"path";var c2=class{constructor(e){this.cacheFile=F0e.resolve(e,$D,"valid-wrappers.json")}load(){if(a2.existsSync(this.cacheFile))try{return JSON.parse(a2.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];a2.mkdirSync(F0e.dirname(this.cacheFile),{recursive:!0}),a2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var H0e=Ae(P0e(),1);import*as O0e from"util";import*as A2 from"path";import*as u2 from"fs";var _ht=O0e.promisify(u2.readdir);async function G0e(t){return(await q0e(t)).filter(r=>(0,H0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>A2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function q0e(t){let e=await _ht(t),r=await Promise.all(e.map(async n=>{let s=A2.resolve(t,n),i=u2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?q0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Mht={_useHtmlParser2:!1};function q0(t,e){if(!t)return e??Mht;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 fq={};Na(fq,{contains:()=>w2,extract:()=>Rft,html:()=>Sft,merge:()=>dEe,parseHTML:()=>Tft,root:()=>xft,text:()=>cg,xml:()=>Nft});var xd={};Na(xd,{DocumentPosition:()=>Ko,append:()=>cft,appendChild:()=>aft,compareDocumentPosition:()=>cEe,existsOne:()=>oEe,filter:()=>z0,find:()=>y2,findAll:()=>dft,findOne:()=>B2,findOneChild:()=>lft,getAttributeValue:()=>nft,getChildren:()=>J0,getElementById:()=>pft,getElements:()=>gft,getElementsByClassName:()=>mft,getElementsByTagName:()=>ag,getElementsByTagType:()=>Eft,getFeed:()=>hq,getInnerHTML:()=>rft,getName:()=>ift,getOuterHTML:()=>sEe,getParent:()=>iEe,getSiblings:()=>lq,getText:()=>E2,hasAttrib:()=>sft,hasChildren:()=>tr,innerText:()=>Eb,isCDATA:()=>Y0,isComment:()=>og,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>C2,prepend:()=>uft,prependChild:()=>Aft,prevElementSibling:()=>I2,removeElement:()=>zu,removeSubsets:()=>Cft,replaceElement:()=>oft,testElement:()=>fft,textContent:()=>Ju,uniqueSort:()=>Nd});var zo={};Na(zo,{CDATA:()=>ZG,Comment:()=>jG,Directive:()=>zG,Doctype:()=>eq,ElementType:()=>bt,Root:()=>WG,Script:()=>KG,Style:()=>$G,Tag:()=>XG,Text:()=>JG,isTag:()=>VG});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 VG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var WG=bt.Root,JG=bt.Text,zG=bt.Directive,jG=bt.Comment,KG=bt.Script,$G=bt.Style,XG=bt.Tag,ZG=bt.CDATA,eq=bt.Doctype;var l2=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 V0(this,e)}},fb=class extends l2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},mA=class extends fb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},ng=class extends fb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},sg=class extends fb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},gb=class extends l2{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}},pb=class extends gb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends gb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},ig=class extends gb{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 Line truncated
`:E2(t.children):Y0(t)?E2(t.children):pi(t)?t.data:""}function Ju(t){return Array.isArray(t)?t.map(Ju).join(""):tr(t)&&!og(t)?Ju(t.children):pi(t)?t.data:""}function Eb(t){return Array.isArray(t)?t.map(Eb).join(""):tr(t)&&(t.type===bt.Tag||Y0(t))?Eb(t.children):pi(t)?t.data:""}function J0(t){return tr(t)?t.children:[]}function iEe(t){return t.parent||null}function lq(t){let e=iEe(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 nft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function sft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function ift(t){return t.name}function C2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function I2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function zu(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 oft(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 aft(t,e){if(zu(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 cft(t,e){zu(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 Aft(t,e){if(zu(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 uft(t,e){zu(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 z0(t,e,r=!0,n=1/0){return y2(t,Array.isArray(e)?e:[e],r,n)}function y2(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 lft(t,e){return e.find(t)}function B2(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=B2(t,i.children,!0);if(o)return o}}return null}function oEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&oEe(t,r.children))}function dft(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 dq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function hft(t,e){return r=>t(r)||e(r)}function aEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(b2,r)?b2[r](n):dq(r,n)});return e.length===0?null:e.reduce(hft)}function fft(t,e){let r=aEe(t);return r?r(e):!0}function gft(t,e,r,n=1/0){let s=aEe(t);return s?z0(s,e,r,n):[]}function pft(t,e,r=!0){return Array.isArray(e)||(e=[e]),B2(dq("id",t),e,r)}function ag(t,e,r=!0,n=1/0){return z0(b2.tag_name(t),e,r,n)}function mft(t,e,r=!0,n=1/0){return z0(dq("class",t),e,r,n)}function Eft(t,e,r=!0,n=1/0){return z0(b2.tag_type(t),e,r,n)}function Cft(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 Ko;(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"})(Ko||(Ko={}));function cEe(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 Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function Nd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=cEe(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function hq(t){let e=Q2(Qft,t);return e?e.name==="feed"?Ift(e):yft(e):null}function Ift(t){var e;let r=t.children,n={type:"atom",items:ag("entry",r).map(o=>{var a;let{children:c}=o,A={media:AEe(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=Q2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Td("summary",c)||Td("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=Ae(Rd(),1);var Rq={};function Dq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function kq(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 xq(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 Tq=(t,e,r,n,s)=>{let i=s(e,xq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},L2={is:Tq,matches:Tq,where:Tq,not(t,e,r,n,s){let i=s(e,xq(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=xq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(wb))?[Rq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=Dq(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,...kq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function $Ee(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in L2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return L2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:M2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,KEe.parse)(A);return L2.is(t,u,r,n,s)}if(typeof c=="function")return Nq(c,o,a,1),u=>c(u,a)&&t(u);if(o in nE)return nE[o](t,a,r,n);if(o in Nb){let u=Nb[o];return Nq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=Ae(tE(),1);function vq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function XEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.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()),WEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return $Ee(t,e,r,n,s);case ea.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 ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=vq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=vq(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=vq(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.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 ea.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 ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function ZEe(t,e,r){let n=U2(t,e,r);return Dq(n,e.adapter)}function U2(t,e,r){let n=typeof t=="string"?(0,nc.parse)(t):t;return P2(n,e,r)}function eCe(t){return t.type===nc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(eCe)))}var ggt={type:nc.SelectorType.Descendant},pgt={type:"_flexibleDescendant"},mgt={type:nc.SelectorType.Pseudo,name:"scope",data:null};function Egt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Rq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(pCe,`\r
`)}}).toArray()}var jq={};Na(jq,{extract:()=>vpt});function kpt(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 vpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=kpt(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 vd=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}}};vd.prototype.cheerio="[cheerio object]";vd.prototype.splice=Array.prototype.splice;vd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(vd.prototype,Bq,Vq,Wq,Jq,zq,jq);function mCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=q0(s),a=t(n,o,i,null);class c extends vd{_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&&$o(u))return u;let f=q0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Cb(u)?t(u,f,!1,null).children:_pt(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"?Cb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,fq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function _pt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Fpt=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 V2(t){return t>=55296&&t<=57343}function ECe(t){return t>=56320&&t<=57343}function CCe(t,e){return(t-55296)*1024+9216+e}function W2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function J2(t){return t>=64976&&t<=65007||Fpt.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
${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 zg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function Vxe(t){if(t instanceof AggregateError){uf("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 zg?(uf(String(t)),t.stack&&Z(t.stack)):(uf(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function Wxe(t,e,r){if(!t.doValidateWrappers())return;let n=new c2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Yxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await $N("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 zg(`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 jg from"path";function Jxe(t,e,r){let n=jg.resolve(e,$D);ho.mkdirSync(n,{recursive:!0}),lvt(e),dvt(t),Oa()&&hvt(e),r&&Kn("GRADLE_ENCRYPTION_KEY",r)}function lvt(t){let e=jg.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=fvt("init-scripts",n),i=jg.resolve(e,n);ho.writeFileSync(i,s)}}function dvt(t){let e=gvt();if(e==null)return;let r=jg.resolve(t,".m2"),n=jg.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=pvt(s,e);ho.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function hvt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=jg.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 fvt(...t){let e=import.meta.dirname,r=jg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function gvt(){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>
@@ -384,122 +294,55 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Qat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var yat="restored-cache-key",f9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&qi("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Jp.resolve(this.gradleUserHome,"caches");return ic.existsSync(e)?(zo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=Hge(this.cacheName,this.cacheConfig);zo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await H6(s,n.key,n.restoreKeys,r);if(!i){pe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}DA(yat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new yM(this.gradleUserHome,this.cacheConfig).restore(e),await new bM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=Hge(this.cacheName,this.cacheConfig).key,n=xB(yat),s=e.entry(this.cacheDescription);if(n&&r===n){pe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await q6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new yM(this.gradleUserHome,this.cacheConfig).extract(e),new bM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Jp.resolve(this.gradleUserHome,n));for(let n of r){zo(`Removing excluded path: ${n}`);let s=await iC(n,{implicitDescendants:!1});for(let i of await s.glob())zo(`Removing excluded file: ${i}`),await uM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(oQ);let r=e.map(n=>this.resolveCachePath(n));return zo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Jp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Jp.resolve(this.gradleUserHome,oQ);ic.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),DB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Jp.resolve(this.gradleUserHome,"init.d");ic.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=Iat("init-scripts",n),i=Jp.resolve(e,n);ic.writeFileSync(i,s)}}registerToolchains(){let e=Bat();if(e==null)return;let r=Jp.resolve(this.userHome,".m2"),n=Jp.resolve(r,"toolchains.xml");if(!ic.existsSync(n))ic.mkdirSync(r,{recursive:!0}),ic.writeFileSync(n,e),pe(`Wrote default JDK locations to ${n}`);else{let s=ic.readFileSync(n,"utf8"),i=Qat(s,e);ic.writeFileSync(n,i),pe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Jp.resolve(this.gradleUserHome,"gradle.properties");if(ic.existsSync(r)){pe(`Merged --info and --stacktrace into existing ${r} file`);let n=ic.readFileSync(r,"utf-8");ic.writeFileSync(r,`${e}
${n}`)}else pe(`Created a new ${r} with --info and --stacktrace`),ic.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!AM()&&!DB()||!ic.existsSync(this.gradleUserHome))return;let r=await ep("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});pe(`Gradle User Home (directories >5M): ${e}`),pe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),pe("-----------------------")}};import p9 from"fs";import wM from"path";var m9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return DA("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=xB("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&DC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await pfe(r,n)}catch{pe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await pfe("8.11")}findGradleWrapperScript(e){try{let r=gfe(e.rootProjectDir);return wM.resolve(e.rootProjectDir,r)}catch(r){return Te(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=wM.resolve(this.tmpDir,"dummy-cleanup-project");p9.mkdirSync(n,{recursive:!0}),p9.writeFileSync(wM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),p9.writeFileSync(wM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
`}function pvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Bz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",mvt="GRADLE_USER_HOME";async function zxe(t,e,r){let n=await jxe(),s=await Cvt();return process.env[Bz]?(Z("Gradle setup only performed on first gradle/actions step in workflow."),!1):(Kn(Bz,!0),Qu(Bz,!0),Qu(mvt,s),Jxe(n,s,t.getCacheEncryptionKey()),await(await _0e(t)).restore(s,Evt(t)),await Wxe(r,Id(),s),await Xme(e),!0)}function Evt(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 Cvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Id();return Qz.resolve(r,t)}let e=Qz.resolve(await jxe(),".gradle");if(bz.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Kn("GRADLE_USER_HOME",e),e;if(Q_.platform()==="win32"&&e.startsWith("C:\\")&&bz.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 jxe(){let t=await yy("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()."),Q_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}import*as ZE from"fs";import*as xRe from"os";import*as uh from"path";import*as Sz from"crypto";import*as $g from"fs";var yvt=Ae(My(),1);import*as $Q from"path";var N_=Ae(My(),1);import*as $xe from"stream";import*as Xxe from"util";import{ok as bvt}from"assert";var Kxe=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{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 Kxe(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 Kxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Kg=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())})},S_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Qvt=process.platform==="win32",bwr=process.platform==="darwin",wvt="actions/tool-cache";function Zxe(t,e,r,n){return Kg(this,void 0,void 0,function*(){e=e||$Q.join(tRe(),Sz.randomUUID()),yield Af($Q.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=wz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=wz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new w_(s,i,o).execute(()=>Kg(this,void 0,void 0,function*(){return yield Svt(t,e||"",r,n)}),c=>!(c instanceof S_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Svt(t,e,r,n){return Kg(this,void 0,void 0,function*(){if($g.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(wvt,[],{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 S_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Xxe.promisify($xe.pipeline),c=wz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,$g.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield Tce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function eRe(t,e){return Kg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield xvt(e),Qvt?yield Nvt(t,e):yield Tvt(t,e),e})}function Nvt(t,e){return Kg(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\nLine truncated
`," Line feed \\n"]]),YRe=new Map([...lj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function VRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of YRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
settings.caches {
cleanup = Cleanup.ALWAYS
Invalid characters include: ${Array.from(YRe.values()).toString()}
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),p9.writeFileSync(wM.resolve(n,"build.gradle"),'task("noop") {}'),await tp("Executing Gradle to clean up caches",async()=>{pe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await $f(e,n,{cwd:r})}};var yfe="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function bat(t,e,r,n){if(process.env[yfe]){pe("Cache only restored on first action step.");return}qi(yfe,!0);let s=new f9(t,e,n);if(n.isCacheDisabled()){pe("Cache is disabled: will not restore state from previous builds."),s.init(),r.setDisabled();return}if(s.cacheOutputExists()){if(!n.isCacheOverwriteExisting()){pe("Gradle User Home already exists: will not restore from cache."),s.init(),r.setDisabled(Wje);return}pe("Gradle User Home already exists: will overwrite with cached contents.")}if(s.init(),DA(yfe,!0),n.isCacheCleanupEnabled()&&(pe("Preparing cache for cleanup."),await new m9(e,process.env.RUNNER_TEMP).prepare()),n.isCacheWriteOnly()){pe("Cache is write-only: will not restore from cache."),r.setWriteOnly();return}await tp("Restore Gradle state from cache",async()=>{await s.restore(r)})}async function Nat(t,e,r){if(t)try{Te("Fetching short-lived token...");let n=await OUr(t,e,r);if(n!=null&&!n.isEmpty()){Te("Got token(s), setting the access key env vars");let s=n.raw();jb(s),_Ur(s)}else wat()}catch(n){wat(),tr(`Failed to fetch short-lived token, reason: ${n}`)}}function _Ur(t){[qd.DevelocityAccessKeyEnvVar,qd.GradleEnterpriseAccessKeyEnvVar].forEach(e=>qi(e,t))}function wat(){tr("Failed to fetch short-lived token for Develocity"),process.env[qd.GradleEnterpriseAccessKeyEnvVar]&&F6(`The ${qd.GradleEnterpriseAccessKeyEnvVar} env var is deprecated`),process.env[qd.DevelocityAccessKeyEnvVar]&&tr(`The ${qd.DevelocityAccessKeyEnvVar} env var should be mapped to a short-lived token`)}async function OUr(t,e,r){let n=new Promise(a=>a(null)),s=E9.parse(t),i=new bfe(e);if(s==null)return n;let o=new Array;for(let a of s.keys)try{pe(`Requesting short-lived Develocity access token for ${a.hostname}`);let A=await i.fetchToken(`https://${a.hostname}`,a,r);o.push(A)}catch(A){pe(`Failed to obtain short-lived Develocity access token for ${a.hostname}: ${A}`)}return o.length>0?E9.of(o):n}var bfe=class{constructor(e){this.maxRetries=3;this.retryInterval=1e3;this.httpc=new Ga("gradle/actions/setup-gradle",void 0,{ignoreSslError:e})}async fetchToken(e,r,n){let s=n?`?expiresInHours=${n}`:"",i=e.endsWith("/")?e:`${e}/`,o={"Content-Type":"application/json",Authorization:`Bearer ${r.key}`},a=0;for(;a<this.maxRetries;){try{let A=`${i}api/auth/token${s}`;Te(`Attempt ${a} to fetch short lived token at ${A}`);let c=await this.httpc.post(A,"",o);if(c.message.statusCode===200){let u=await c.readBody();return new Promise(l=>l({hostname:r.hostname,key:u}))}if(a++,a===this.maxRetries)return new Promise((u,l)=>l(new Error(`Develocity short lived token request failed ${e} with status code ${c.message.statusCode}`)))}catch(A){if(a++,a===this.maxRetries)return new Promise((c,u)=>u(A))}await new Promise(A=>setTimeout(A,this.retryInterval))}return new Promise((A,c)=>c(new Error("Illegal state")))}},E9=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)}};async function Sat(t){return xC("DEVELOCITY_INJECTION_INIT_SCRIPT_NAME","gradle-actions.inject-develocity.init.gradle"),xC("DEVELOCITY_INJECTION_CUSTOM_VALUE","gradle-actions"),wg("DEVELOCITY_INJECTION_ENABLED",t.getDevelocityInjectionEnabled()),wg("DEVELOCITY_INJECTION_URL",t.getDevelocityUrl()),wg("DEVELOCITY_INJECTION_ALLOW_UNTRUSTED_SERVER",t.getDevelocityAllowUntrustedServer()),wg("DEVELOCITY_INJECTION_CAPTURE_FILE_FINGERPRINTS",t.getDevelocityCaptureFileFingerprints()),wg("DEVELOCITY_INJECTION_ENFORCE_URL",t.getDevelocityEnforceUrl()),wg("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION",t.getDevelocityPluginVersion()),wg("DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION",t.getDevelocityCcudPluginVersion()),wg("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),wg("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),wg("DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword()),t.getBuildScanPublishEnabled()&&(xC("DEVELOCITY_INJECTION_ENABLED","true"),xC("DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION","4.3.2"),xC("DEV Line truncated
`:x9(t.children):zR(t)?x9(t.children):oc(t)?t.data:""}function Wp(t){return Array.isArray(t)?t.map(Wp).join(""):kn(t)&&!gQ(t)?Wp(t.children):oc(t)?t.data:""}function xM(t){return Array.isArray(t)?t.map(xM).join(""):kn(t)&&(t.type===Lr.Tag||zR(t))?xM(t.children):oc(t)?t.data:""}function XR(t){return kn(t)?t.children:[]}function Zat(t){return t.parent||null}function Jfe(t){let e=Zat(t);if(e!=null)return XR(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 pPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function mPr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function EPr(t){return t.name}function T9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function k9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function zp(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 CPr(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 IPr(t,e){if(zp(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 BPr(t,e){zp(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 QPr(t,e){if(zp(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 yPr(t,e){zp(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 ZR(t,e,r=!0,n=1/0){return F9(t,Array.isArray(e)?e:[e],r,n)}function F9(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&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function bPr(t,e){return e.find(t)}function M9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=M9(t,i.children,!0);if(o)return o}}return null}function $at(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&$at(t,r.children))}function wPr(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]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var v9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(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=>oc(e)&&t(e.data):e=>oc(e)&&e.data===t}};function Vfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function NPr(t,e){return r=>t(r)||e(r)}function eAt(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(v9,r)?v9[r](n):Vfe(r,n)});return e.length===0?null:e.reduce(NPr)}function SPr(t,e){let r=eAt(t);return r?r(e):!0}function RPr(t,e,r,n=1/0){let s=eAt(t);return s?ZR(s,e,r,n):[]}function DPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),M9(Vfe("id",t),e,r)}function fQ(t,e,r=!0,n=1/0){return ZR(v9.tag_name(t),e,r,n)}function xPr(t,e,r=!0,n=1/0){return ZR(Vfe("class",t),e,r,n)}function TPr(t,e,r=!0,n=1/0){return ZR(v9.tag_type(t),e,r,n)}function kPr(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 Nl;(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"})(Nl||(Nl={}));function tAt(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(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 Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function kC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=tAt(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Wfe(t){let e=L9(UPr,t);return e?e.name==="feed"?FPr(e):MPr(e):null}function FPr(t){var e;let r=t.children,n={type:"atom",items:fQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:rAt(A)};ac(c,"id","id",A),ac(c,"title","title",A);let u=(a=L9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=FC("summary",A)||FC(" 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 Dl=Xe(vC(),1);var upe={};function lpe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function dpe(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 cpe(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 Ape=(t,e,r,n,s)=>{let i=s(e,cpe(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},j9={is:Ape,matches:Ape,where:Ape,not(t,e,r,n,s){let i=s(e,cpe(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=cpe(r);o.relativeSelector=!0;let a=e.some(u=>u.some(UM))?[upe]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=lpe(A,i);if(a&&A!==Dl.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,...dpe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function YAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in j9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return j9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:z9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,GAt.parse)(c);return j9.is(t,u,r,n,s)}if(typeof A=="function")return ape(A,o,a,1),u=>A(u,a)&&t(u);if(o in aD)return aD[o](t,a,r,n);if(o in _M){let u=_M[o];return ape(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe(iD(),1);function hpe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function JAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.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()),_At[e.action](t,e,r)}case xl.SelectorType.Pseudo:return YAt(t,e,r,n,s);case xl.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 xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=hpe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=hpe(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=hpe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.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 xl.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 xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function VAt(t,e,r){let n=K9(t,e,r);return lpe(n,e.adapter)}function K9(t,e,r){let n=typeof t=="string"?(0,Jd.parse)(t):t;return X9(n,e,r)}function WAt(t){return t.type===Jd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(WAt)))}var R_r={type:Jd.SelectorType.Descendant},D_r={type:"_flexibleDescendant"},x_r={type:Jd.SelectorType.Pseudo,name:"scope",data:null};function T_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===u Line truncated
`)})):{name:s,value:i.replace(cct,`\r
`)}}).toArray()}var Dpe={};xu(Dpe,{extract:()=>VOr});function JOr(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 VOr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=JOr(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 PC=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}}};PC.prototype.cheerio="[cheerio object]";PC.prototype.splice=Array.prototype.splice;PC.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(PC.prototype,rpe,wpe,Npe,Spe,Rpe,Dpe);function uct(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=WR(s),a=t(n,o,i,null);class A extends PC{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=WR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&TM(u)?t(u,g,!1,null).children:WOr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?TM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,zfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function WOr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var zOr=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]),Zn="\uFFFD",k;(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"})(k||(k={}));var aA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function nJ(t){return t>=55296&&t<=57343}function lct(t){return t>=56320&&t<=57343}function dct(t,e){return(t-55296)*1024+9216+e}function sJ(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function iJ(t){return t>=64976&&t<=65007||zOr.has(t)}var Ae;(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-pu 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(`
`)}`}},vW=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var KQ=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function QIt(t){if(t instanceof AggregateError){RB("Multiple errors returned");for(let e of t.errors)F1(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&pe(e.stack)}else t instanceof KQ?(RB(String(t)),t.stack&&pe(t.stack)):(RB(String(t)),t instanceof Error&&t.stack&&pe(t.stack))}async function yIt(t,e,r){if(!t.doValidateWrappers())return;let n=new I9(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await BIt(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await tp("All Gradle Wrapper jars are valid",async()=>{Te(`Loaded previously validated checksums from cache: ${i.join(", ")}`),pe(o.toDisplayString())});else throw pe(o.toDisplayString()),new KQ(`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))}var zBe="GRADLE_BUILD_ACTION_SETUP_COMPLETED",KZr="USER_HOME",XZr="GRADLE_USER_HOME",ZZr="CACHE_LISTENER";async function bIt(t,e,r){let n=await wIt(),s=await $Zr();if(process.env[zBe])return pe("Gradle setup only performed on first gradle/actions step in workflow."),!1;qi(zBe,!0),DA(zBe,!0),DA(KZr,n),DA(XZr,s);let i=new IY;return await bat(n,s,i,t),DA(ZZr,i.stringify()),await yIt(r,bC(),s),await Sat(e),!0}async function $Zr(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bC();return KBe.resolve(r,t)}let e=KBe.resolve(await wIt(),".gradle");if(jBe.existsSync(e))return pe(`Gradle User Home already exists at ${e}`),qi("GRADLE_USER_HOME",e),e;if(LW.platform()==="win32"&&e.startsWith("C:\\")&&jBe.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return pe(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),qi("GRADLE_USER_HOME",r),r}return qi("GRADLE_USER_HOME",e),e}async function wIt(){let t=await ep("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return pe("Could not determine user.home from java -version output. Using os.homedir()."),LW.homedir();let n=r[1];return Te(`Determined user.home from java -version output: '${n}'`),n}import t$r from"os";function aL(){return 8*1024*1024}function UW(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function NIt(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function ix(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}function SIt(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function RIt(){let t=t$r.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(pe("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(pe(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function DIt(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function xIt(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var XBe=Xe(lr(),1),ZBe=Xe(lr(),1),TIt=Xe(lr(),1),kIt=Xe(lr(),1),FIt=Xe(lr(),1),ox=Xe(lr(),1),MIt=Xe(lr(),1),$Be=class extends MIt.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=ox.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(ox.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=ox.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=ox.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let i=(e.nanos+1e9).toString().substring(1);i.substring(3)==="000000"?s="."+i.substring(0,3)+"Z":i.substring(6)==="000"?s="."+i.substring(0,6)+"Z":s="."+i+"Z"}return new Date(n).toISOString().replace(".000Z",s)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,FIt.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let i=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(i))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return n||(n=this.create()),n.seconds=ox.PbLong.from(i/1e3).toString(),n.nanos=0,s[7]&&(n.nanos=parseInt("1"+s[7]+"0".repeat Line truncated
`," Line feed \\n"]]),UIt=new Map([...L0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function PIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of UIt)if(t.includes(e))throw new Error(`The artifact name 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.`);Z("Artifact name is valid!")}function dj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of lj)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(UIt.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.`);pe("Artifact name is valid!")}function U0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of L0e)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(L0e.values()).toString()}
Invalid characters include: ${Array.from(lj.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 qIt=Xe(HIt(),1);function Kg(){return`@actions/artifact-${qIt.version}`}var _W=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"}},dm=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},hm=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},lI=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"}},gm=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"}};gm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var XQ=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};XQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ZQ=class extends Error{};ZQ.prototype.name="InvalidTokenError";function c$r(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 u$r(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 c$r(e)}catch{return atob(e)}}function GIt(t,e){if(typeof t!="string")throw new ZQ("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 ZQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=u$r(n)}catch(i){throw new ZQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ZQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var OW=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Xg(){let t=UW(),e=GIt(t);if(!e.scp)throw OW;let r=e.scp.split(" ");if(r.length===0)throw OW;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw OW;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return Te(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),Te(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw OW}function YIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(jb(r),jb(encodeURIComponent(r)))}catch(e){Te(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function JIt(t){if(typeof t!="object"||t===null){Te("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&YIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&YIt(t.signed_url)}var HW=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())})},P0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=UW();this.baseUrl=NIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ga(e,[new T1(i)])}request(e,r,n,s){return HW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Te(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>HW(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 HW(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(),Te(`[Response] - ${a.message.statusCode}`),Te(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(JIt(c),Te(`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(XQ.isUsageErrorMessage(c.msg))throw new XQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&Te(`Raw Body: ${s}`),a instanceof XQ)throw a;if(gm.isNetworkErrorCode(a?.code))throw new gm(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);pe(`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?[ao.BadGateway,ao.GatewayTimeout,ao.InternalServerError,ao.ServiceUnavailable,ao.TooManyRequests].includes(e):!1}sleep(e){return HW(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 Zg(t){let e=new P0e(Kg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new PW(e)}import*as Ax from"fs";import{normalize as VIt,resolve as WIt}from"path";function zIt(t){if(!Ax.existsSync Line truncated
${y$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function VW(t){return t instanceof dA?!0:ey(t)&&t.name==="RestError"}function mc(t,e){return Buffer.from(t,e)}import z0e from"node:http";import j0e from"node:https";import ABt from"node:zlib";import{Transform as b$r}from"node:stream";var Vl=cL("ts-http-runtime");var w$r={};function uL(t){return t&&typeof t.pipe=="function"}function cBt(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 uBt(t){return t&&typeof t.byteLength=="number"}var WW=class extends b$r{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}},K0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new $g("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 rh;Vl.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=D$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new WW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),uL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=N$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?S$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new WW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await R$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();uL(a)&&(c=cBt(a));let u=Promise.resolve();uL(A)&&(u=cBt(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.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?z0e.request(a,A):j0e.request(a,A);u.once("error",l=>{c(new dA(l.message,{code:l.code??dA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new $g("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&uL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):uBt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new dA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?z0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new z0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j0e.globalAgent;let s=e.tlsSettings??w$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new j0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function N$r(t){let e=mu();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 S$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ABt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ABt.createInflate();return t.pipe(n),n}return t}function R$r(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 dA(`Error reading response as text: ${s.message}`,{code:dA.PARSE_ERROR}))})})}function D$r(t){return t?Buffer.isBuffer(t)?t.length:uL(t)?null:uBt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function lBt(){return new K0e}function zW(){return lBt()}var X0e="logPolicy";function jW(t={}){let e=t.logger??Vl.info,r=new rh({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:X0e,async sendRequest Line truncated
`;return e}function $$r(t){return t instanceof Uint8Array?t.byteLength:Az(t)?t.size===-1?void 0:t.size:void 0}function een(t){let e=0;for(let r of t){let n=$$r(r);if(n===void 0)return;e+=n}return e}async function ten(t,e,r){let n=[mc(`--${r}`,"utf-8"),...e.flatMap(i=>[mc(`\r
`,"utf-8"),mc(Z$r(i.headers),"utf-8"),mc(`\r
`,"utf-8"),i.body,mc(`\r
--${r}`,"utf-8")]),mc(`--\r
\r
`,"utf-8")],s=een(n);s&&t.headers.set("Content-Length",s),t.body=await MBt(n)}var dL="multipartPolicy",ren=70,nen=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function sen(t){if(t.length>ren)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!nen.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function cz(){return{name:dL,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?sen(r):r=X$r(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ten(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function uz(){return JW()}import{EOL as oen}from"node:os";import aen from"node:util";import*as vBt from"node:process";function LBt(t,...e){vBt.stderr.write(`${aen.format(t,...e)}${oen}`)}var UBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,PBt,cQe=[],uQe=[],lz=[];UBt&&lQe(UBt);var _Bt=Object.assign(t=>OBt(t),{enable:lQe,enabled:dQe,disable:Aen,log:LBt});function lQe(t){PBt=t,cQe=[],uQe=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?uQe.push(new RegExp(`^${n.substr(1)}$`)):cQe.push(new RegExp(`^${n}$`));for(let n of lz)n.enabled=dQe(n.namespace)}function dQe(t){if(t.endsWith("*"))return!0;for(let e of uQe)if(e.test(t))return!1;for(let e of cQe)if(e.test(t))return!0;return!1}function Aen(){let t=PBt||"";return lQe(""),t}function OBt(t){let e=Object.assign(r,{enabled:dQe(t),destroy:cen,log:_Bt.log,namespace:t,extend:uen});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return lz.push(e),e}function cen(){let t=lz.indexOf(this);return t>=0?(lz.splice(t,1),!0):!1}function uen(t){let e=OBt(`${this.namespace}:${t}`);return e.log=this.log,e}var lx=_Bt;var qBt=new Set,dz=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,hQe,gQe=lx("azure");gQe.log=(...t)=>{lx.log(...t)};var fQe=["verbose","info","warning","error"];dz&&(JBt(dz)?len(dz):console.error(`AZURE_LOG_LEVEL set to unknown log level '${dz}'; logging is not enabled. Acceptable values: ${fQe.join(", ")}.`));function len(t){if(t&&!JBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${fQe.join(",")}`);hQe=t;let e=[];for(let r of qBt)YBt(r)&&e.push(r.namespace);lx.enable(e.join(","))}var HBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=gQe.extend(t);return GBt(gQe,e),{error:hz(e,"error"),warning:hz(e,"warning"),info:hz(e,"info"),verbose:hz(e,"verbose")}}function GBt(t,e){e.log=(...r)=>{t.log(...r)}}function hz(t,e){let r=Object.assign(t.extend(e),{level:e});if(GBt(t,r),YBt(r)){let n=lx.disable();lx.enable(n+","+r.namespace)}return qBt.add(r),r}function YBt(t){return!!(hQe&&HBt[t.level]<=HBt[hQe])}function JBt(t){return fQe.includes(t)}var ef=Wl("core-rest-pipeline");function pQe(t={}){return jW({logger:ef.info,...t})}var mQe=KW;function EQe(t={}){return XW(t)}import CQe from"node:os";import IQe from"node:process";function VBt(){return"User-Agent"}async function WBt(t){if(IQe&&IQe.versions){let e=`${CQe.type()} ${CQe.release()}; ${CQe.arch()}`,r=IQe.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var gz="1.22.2";function Een(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function zBt(){return VBt()}async function fz(t){let e=new Map;e.set("core-rest-pipeline",gz),await WBt(e);let r=Een(e);return t?`${t} ${r}`:r}var jBt=zBt(),KBt="userAgentPolicy";function BQe(t={}){let e=fz(t.userAgentPrefix);return{name:KBt,async sendRequest(r,n){return r.headers.has(jBt)||r.headers.set(jBt,await e),n(r)}}}var hL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function QQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new hL(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 yen="The delay was aborted.";function dx(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return QQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??yen})}function dI(t){if(ey(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 XBt(t){return ey(t)}fun 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--),!Wtn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",wi("InvalidTag",l,hA(t,i))}let c=qtn(t,i);if(c===!1)return wi("InvalidAttr","Attributes for '"+A+"' have open quote.",hA(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=L0t(u,e);if(d===!0)n=!0;else return wi(d.err.code,d.err.msg,hA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return wi("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",hA(t,o));if(r.length===0)return wi("InvalidTag","Closing tag '"+A+"' has not been opened.",hA(t,o));{let l=r.pop();if(A!==l.tagName){let d=hA(t,l.tagStartPos);return wi("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",hA(t,o))}r.length==0&&(s=!0)}}else return wi("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",hA(t,i));else{let l=L0t(u,e);if(l!==!0)return wi(l.err.code,l.err.msg,hA(t,i-u.length+l.err.line));if(s===!0)return wi("InvalidXml","Multiple possible root nodes found.",hA(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=v0t(t,i);continue}else if(t[i+1]==="?"){if(i=M0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Jtn(t,i);if(l==-1)return wi("InvalidChar","char '&' is not expected.",hA(t,i));i=l}else if(s===!0&&!F0t(t[i]))return wi("InvalidXml","Extra text at the end",hA(t,i));t[i]==="<"&&i--}}else{if(F0t(t[i]))continue;return wi("InvalidChar","char '"+t[i]+"' is not expected.",hA(t,i))}if(n){if(r.length==1)return wi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hA(t,r[0].tagStartPos));if(r.length>0)return wi("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return wi("InvalidXml","Start tag expected.",1);return!0}function F0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function M0t(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 wi("InvalidXml","XML declaration allowed only at the start of the document.",hA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function v0t(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 Otn='"',Htn="'";function qtn(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Otn||t[e]===Htn)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 Gtn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function L0t(t,e){let r=wz(t,Gtn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return wi("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",wL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return wi("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",wL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return wi("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",wL(r[s]));let i=r[s][2];if(!Vtn(i))return wi("InvalidAttr","Attribute '"+i+"' is an invalid name.",wL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return wi("InvalidAttr","Attribute '"+i+"' is repeated.",wL(r[s]))}return!0}function Ytn(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 Jtn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ytn(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 wi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Vtn(t){return bL(t)}function Wtn(t){return bL(t)}function hA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function wL(t){return t.startIndex+t[1].length}var ztn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1},U0t=function(t){return Object.assign({},ztn,t)};var Sz;typeof Symbol!="function"?Sz="@@xmlMetadata":Sz=Symbol("XML Node Metadata");var Iu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][Sz]={startIndex:r})}static getMetaDataSymbol(){return Sz}};function ZQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&Xtn(t,e)){e+=7;let a,A;[a,A,e]=jtn(t,e+1),A.indexOf("&")===-1&&(r[trn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&Ztn(t,e))e+=8;else if(s&&$tn(t,e))e+=8;else if(s&&ern(t,e))e+=9;else if(Ktn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function jtn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Ktn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function Xtn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function Ztn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function $tn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function ern(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new Iu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=oy(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=eye(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Iu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=oy(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=ZQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=oy(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=eye(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let m=this.readStopNodeData(t,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);i=m.i,p=m.tagContent}let C=new Iu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new Iu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new Iu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function hrn(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var grn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function frn(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 prn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function mrn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function oy(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function eye(t,e,r,n=">"){let s=mrn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function Ern(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=oy(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),O0t(t,e,"",r)}function O0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=Qrn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];yrn(c,e)||(g=e.tagValueProcessor(A,g),g=H0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=_0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=_0t(a[":@"],e),d=n+`<${A}${l}`,h=O0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function Qrn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function _0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=H0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function yrn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function H0t(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}var brn={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};function nh(t){this.options=Object.assign({},brn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=NL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Srn),this.processTextOrObjNode=wrn,this.options.format?(this.indentate=Nrn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}nh.prototype.build=function(t){return this.options.preserveOrder?sye(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};nh.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};nh.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function wrn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}nh.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};nh.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};nh.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};nh.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function Nrn(t){return this.options.indentBy.repeat(t)}function Srn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var q0t={validate:Nz};function J0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Rrn(t={}){var e,r;return Object.assign(Object.assign({},J0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Drn(t={}){return Object.assign(Object.assign({},J0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function Rz(t,e={}){let r=Rrn(e),n=new nh(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function iye(t,e={}){if(!t)throw new Error("Document is empty");let r=q0t.validate(t);if(r!==!0)throw r;let s=new mx(Drn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Pz(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=vz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Lz(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 ci=class extends Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new TL(e,r,this)}computeHMACSHA256(e){return Urn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};var $i=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var mI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Prn=new cy("The operation was aborted."),kL=class extends nf{retryOptions;constructor(e,r,n=mI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:mI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):mI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:mI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:mI.maxRetryDelayInMs):mI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:mI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:mI.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=Mz(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=pI(s.url,Em.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if($i.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($i.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 $i.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 $i.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 $i.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return $i.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?($i.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return $i.info(`RetryPolicy: Delay for ${s}ms`),Uz(s,n,Prn)}};var FL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kL(e,r,this.retryOptions)}};var _rn="storageBrowserPolicy";function V0t(){return{name:_rn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=pI(t.url,Em.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Orn="StorageCorrectContentLengthPolicy";function W0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Orn,async sendRequest(e,r){return t(e),r(e)}}}var Hrn="storageRetryPolicy",Ex={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qrn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Grn=new cy("The operation was aborted.");function z0t(t={}){let e=t.retryPolicyType??Ex.retryPolicyType,r=t.maxTries??Ex.maxTries,n=t.retryDelayInMs??Ex.retryDelayInMs,s=t.maxRetryDelayInMs??Ex.maxRetryDelayInMs,i=t.secondaryHost??Ex.secondaryHost,o=t.tryTimeoutInMs??Ex.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return $i.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qrn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Yrn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Pz(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=vz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=Lz(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:Jrn,async sendRequest(i,o){return e(i),o(i)}}}var Vrn="storageRequestFailureDetailsParserPolicy";function j0t(){return{name:Vrn,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 Wrn}from"node:crypto";var _z=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Wrn("sha256",this.key).update(e,"utf8").digest("base64")}};var Oz="12.31.0",Hz="2026-02-06";var qz="https://storage.azure.com/.default",Cm={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sh="",cye="*",zrn=1*1024*1024;var jrn=4*zrn;var K0t="AES256",X0t="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Z0t=["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"],$0t=["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"],eQt="BlobUsesCustomerSpecifiedEncryption",tQt="BlobDoesNotUseCustomerSpecifiedEncryption",rQt=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Im(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 ML=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ni(t,e={}){t||(t=new Rs);let r=new ML([],e);return r._credential=t,r}function Krn(t){let e=[Xrn,nQt,Zrn,$rn,enn,tnn,nnn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>rnn(s));return{wrappedPolicies:KQe(r),afterRetry:n}}}}function uye(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?XQe(e):aye(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Oz}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=EL({...r,loggingOptions:{additionalAllowedHeaderNames:Z0t,additionalAllowedQueryParameters:$0t,logger:Dz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Rz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:iye,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:NQe}),s.addPolicy(W0t()),s.addPolicy(z0t(r.retryOptions),{phase:"Retry"}),s.addPolicy(j0t()),s.addPolicy(V0t());let a=Krn(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=lye(t);Eu(A)?s.addPolicy(fx({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ch(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 Xsn(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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 ch(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 Zsn(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ah(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 ch(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 $sn(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ah(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 ch(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 ein(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(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 ch(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 tin(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ah(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 ch(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 rin(t,e){if(t=Ey(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=Bf.parse(t.permissions.toString()).toString():s=Qf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",my(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ah(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 ch(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 my(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ey(t){let e=t.version?t.version:Hz;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 VL=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=hx()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==sh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==sh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("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);pe(`Redirecting to blob download url: ${CFt(u)}`);try{pe(`Starting download of artifact to: ${r}`);let l=yield IFt(u,r,e?.skipDecompress);pe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,Te(`Computed digest: ${l.sha256Digest}`),Te(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function yFt(){return IT(this,arguments,void 0,function*(t=SIt()){return(yield KQn(t))?Te(`Artifact destination folder already exists: ${t}`):(Te(`Artifact destination folder does not exist, creating: ${t}`),yield gFt.mkdir(t,{recursive:!0})),t})}var ZQn=5,$Qn=[400,401,403,404,422];function BT(t,e=ZQn,r=$Qn){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 Te(`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 bFt="6.0.0";function jy(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})})}jy.VERSION=bFt;var SFt=Xe(wFt(),1),RFt=Xe(yge(),1),eyn="0.0.0-development";async function NFt(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 tyn(t,e,r,n){let s=new SFt.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(ryn.bind(null,t,e,r),n)}async function ryn(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 RFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return NFt(t,e,i,n)}return s}function Ky(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",NFt.bind(null,r,t)),t.hook.wrap("request",tyn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Ky.VERSION=eyn;var DFt=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 HK(t,e,r,n,s){return DFt(this,void 0,void 0,function*(){var i;let[o,a]=BT(sQ),A={log:void 0,userAgent:Kg(),previews:void 0,retry:o,request:a},u=yield Hd(s,A,Ky,jy).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 dm(`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 hm(`Artifact not found for name: ${t}
`)}var jRe=Ae(zRe(),1);function qA(){return`@actions/artifact-${jRe.version}`}var nC=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"}},fl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},gl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},lh=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"}},pl=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"}};pl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ep=class extends Error{};ep.prototype.name="InvalidTokenError";function a_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 c_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 a_t(e)}catch{return atob(e)}}function KRe(t,e){if(typeof t!="string")throw new ep("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ep(`Invalid token specified: missing part #${r+1}`);let s;try{s=c_t(n)}catch(i){throw new ep(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ep(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var D_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function YA(){let t=x_(),e=KRe(t);if(!e.scp)throw D_;let r=e.scp.split(" ");if(r.length===0)throw D_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw D_;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 D_}function $Re(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Pa(r),Pa(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XRe(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"&&$Re(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$Re(t.signed_url)}var k_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=x_();this.baseUrl=vRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new bu(i)])}request(e,r,n,s){return k_(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(()=>k_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return k_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(XRe(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(Zg.isUsageErrorMessage(A.msg))throw new Zg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof Zg)throw a;if(pl.isNetworkErrorCode(a?.code))throw new pl(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 k_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function VA(t){let e=new hj(qA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new R_(e)}import*as sC from"fs";import{normalize as ZRe,resolve as eDe}from"path";function tDe(t){if(!sC.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: ${d8e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield h8e(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 p8e(){return XC(this,arguments,void 0,function*(t=_Re()){return(yield P7t(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield a8e.mkdir(t,{recursive:!0})),t})}var H7t=5,G7t=[400,401,403,404,422];function ZC(t,e=H7t,r=G7t){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 m8e="6.0.0";function xp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}xp.VERSION=m8e;var I8e=Ae(E8e(),1),y8e=Ae(zO(),1),q7t="0.0.0-development";async function C8e(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 Y7t(t,e,r,n){let s=new I8e.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(V7t.bind(null,t,e,r),n)}async function V7t(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 y8e.RequestError(s.data.errors[0].message,500,{request:n,response:s});return C8e(t,e,i,n)}return s}function Rp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",C8e.bind(null,r,t)),t.hook.wrap("request",Y7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=q7t;var B8e=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 B8e(this,void 0,void 0,function*(){var i;let[o,a]=ZC(df),c={log:void 0,userAgent:qA(),previews:void 0,retry:o,request:a},u=yield Ha(s,c,Rp,xp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new fl(`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 gl(`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],Te(`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 xFt(t){return DFt(this,void 0,void 0,function*(){var e;let r=Zg(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Xg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Da.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new hm(`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],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 b8e(t){return B8e(this,void 0,void 0,function*(){var e;let r=VA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=YA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new gl(`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((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],Te(`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?Ra.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var TFt=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 kFt(t,e,r,n,s){return TFt(this,void 0,void 0,function*(){var i;let[o,a]=BT(sQ),A={log:void 0,userAgent:Kg(),previews:void 0,retry:o,request:a},c=Hd(s,A,Ky,jy),u=yield HK(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 dm(`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 FFt(t){return TFt(this,void 0,void 0,function*(){let e=Zg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Xg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Da.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new hm(`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],Te(`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 pe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var MFt=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())})},qK=xIt(),GK=100,nyn=Math.ceil(qK/GK);function vFt(t,e,r,n){return MFt(this,arguments,void 0,function*(s,i,o,a,A=!1){pe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=BT(sQ),d={log:void 0,userAgent:Kg(),previews:void 0,retry:u,request:l},h=Hd(a,d,Ky,jy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:GK,page:g}),C=Math.ceil(p.total_count/GK),m=p.total_count;m>qK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${qK}. Results will be incomplete as only the first ${qK} artifacts will be returned`),C=nyn);for(let I of p.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(g++,g;g<=C;g++){Te(`Fetching page ${g} 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:GK,page:g});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=UFt(c)),pe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function LFt(){return MFt(this,arguments,void 0,function*(t=!1){let e=Zg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Xg(),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?Ra.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=UFt(o)),pe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function UFt(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 EP=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())})},syn=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},QT=class{uploadArtifact(e,r,n,s){return EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;return F2t(e,r,n,s)}catch(i){throw tr(`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],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 Q8e=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 w8e(t,e,r,n,s){return Q8e(this,void 0,void 0,function*(){var i;let[o,a]=ZC(df),c={log:void 0,userAgent:qA(),previews:void 0,retry:o,request:a},A=Ha(s,c,Rp,xp),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 fl(`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 S8e(t){return Q8e(this,void 0,void 0,function*(){let e=VA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=YA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new gl(`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 N8e=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=LRe(),HM=100,W7t=Math.ceil(OM/HM);function T8e(t,e,r,n){return N8e(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]=ZC(df),d={log:void 0,userAgent:qA(),previews:void 0,retry:u,request:l},h=Ha(a,d,Rp,xp),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=W7t);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=R8e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function x8e(){return N8e(this,arguments,void 0,function*(t=!1){let e=VA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=YA(),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=R8e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function R8e(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 C1=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())})},J7t=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},eI=class{uploadArtifact(e,r,n,s){return C1(this,void 0,void 0,function*(){try{if(eC())throw new lh;return S3e(e,r,n,s)}catch(i){throw We(`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 EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=syn(r,["findBy"]);return BFt(e,n,s,i,o)}return QFt(e,r)}catch(n){throw tr(`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 C1(this,void 0,void 0,function*(){try{if(eC())throw new lh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=J7t(r,["findBy"]);return f8e(e,n,s,i,o)}return g8e(e,r)}catch(n){throw We(`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 EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return vFt(r,n,s,i,e?.latest)}return LFt(e?.latest)}catch(r){throw tr(`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 C1(this,void 0,void 0,function*(){try{if(eC())throw new lh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return T8e(r,n,s,i,e?.latest)}return x8e(e?.latest)}catch(r){throw We(`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 EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return HK(e,n,s,i,o)}return xFt(e)}catch(n){throw tr(`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 C1(this,void 0,void 0,function*(){try{if(eC())throw new lh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return PM(e,n,s,i,o)}return b8e(e)}catch(n){throw We(`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 EP(this,void 0,void 0,function*(){try{if(ix())throw new lI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return kFt(e,i,n,s,o)}return FFt(e)}catch(n){throw tr(`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 C1(this,void 0,void 0,function*(){try{if(eC())throw new lh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return w8e(e,i,n,s,o)}return S8e(e)}catch(n){throw We(`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 MAs=new QT;import*as Fxe from"path";import Mxe from"fs";var iyn="dependency-graph_";async function PFt(t){let e=t.getDependencyGraphOption();if(e==="disabled"){qi("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await oyn(t);return}pe("Enabling dependency graph generation"),qi("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),IA("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),IA("GITHUB_DEPENDENCY_GRAPH_JOB_ID",Qo.runId.toString()),IA("GITHUB_DEPENDENCY_GRAPH_REF",Qo.ref),IA("GITHUB_DEPENDENCY_GRAPH_SHA",myn()),IA("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bC()),IA("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),IA("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),IA("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),IA("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),IA("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),IA("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),IA("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),IA("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function IA(t,e){process.env[t]||e!==void 0&&qi(t,e)}async function oyn(t){if(Eyn()){pe("Dependency graph not supported in the ACT environment.");return}try{await cyn(await ayn(t))}catch(e){fyn(t,"download-and-submit",e)}}async function ayn(t){let e=Qo.payload.workflow_run?{token:O6(),workflowRunId:Qo.payload.workflow_run.id,repositoryName:Qo.repo.repo,repositoryOwner:Qo.repo.owner}:void 0,r=new QT,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(iyn)),s=t.getDownloadArtifactName();s&&(pe(`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});pe(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ayn()}async function Ayn(){let r=(await(await iC(`${dyn()}/**/*.json`)).glob()).filter(n=>!hyn(n));return r.forEach(gyn),pe(`Found dependency graph files: ${r.join(", ")}`),r}async function cyn(t){if(t.length===0){pe("No dependency graph files found to submit.");return}for(let e of t)try{await lyn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=uyn(e,r)),r}}function uyn(t,e){let n=`Dependency submission failed for ${_Ft(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 IDr=new eI;import*as cZ from"path";import AZ from"fs";var z7t="dependency-graph_";async function D8e(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 j7t(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",oWt()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Id()),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 j7t(t){if(aWt()){Z("Dependency graph not supported in the ACT environment.");return}try{await X7t(await K7t(t))}catch(e){sWt(t,"download-and-submit",e)}}async function K7t(t){let e=ri.payload.workflow_run?{token:XD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new eI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(z7t)),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 $7t()}async function $7t(){let r=(await(await OG(`${tWt()}/**/*.json`)).glob()).filter(n=>!rWt(n));return r.forEach(nWt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function X7t(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await eWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Z7t(e,r)),r}}function Z7t(t,e){let n=`Dependency submission failed for ${k8e(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 lyn(t){let e=pyn(),r=Mxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Qo.repo.owner,n.repo=Qo.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=_Ft(t);oPe(`Submitted ${i}: ${s.data.message}`)}function dyn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function hyn(t){let e=`${t}.processed`;return Mxe.existsSync(e)}function gyn(t){let e=`${t}.processed`;Mxe.writeFileSync(e,"")}function fyn(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new KQ(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function pyn(){return Hd(O6())}function _Ft(t){let e=bC();return Fxe.relative(e,t)}function myn(){let t=Qo;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 Eyn(){return process.env.ACT!==void 0}async function Iyn(){try{oM()==="gradle/gradle-build-action"&&M6("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Ust("gradle/actions/setup-gradle"),await bIt(new GR,new qd,new _6),await PFt(new L6);let t=new P6;t.verifyNoArguments(),await ffe(t.getGradleVersion()),Mst()}catch(t){QIt(t)}process.exit()}Iyn();export{Iyn as run};
`:n}async function eWt(t){let e=iWt(),r=AZ.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=k8e(t);Pce(`Submitted ${i}: ${s.data.message}`)}function tWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function rWt(t){let e=`${t}.processed`;return AZ.existsSync(e)}function nWt(t){let e=`${t}.processed`;AZ.writeFileSync(e,"")}function sWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new zg(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function iWt(){return Ha(XD())}function k8e(t){let e=Id();return cZ.relative(e,t)}function oWt(){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 aWt(){return process.env.ACT!==void 0}function AWt(t=process.platform){return t==="win32"?50:0}async function v8e(t=process.platform){let e=AWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function uWt(){try{sb()==="gradle/gradle-build-action"&&VD("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),jme("gradle/actions/setup-gradle"),await zxe(new P0,new Wo,new KD),await D8e(new JD);let t=new jD;t.verifyNoArguments(),await xz(t.getGradleVersion()),Jme()}catch(t){Vxe(t)}await v8e()}uWt();export{uWt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,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", "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", "handler", "rState", "err", "i", "processHeader", "headeLine 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": ";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
}
+175 -388
View File
@@ -1,269 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var WFt=Object.create;var DP=Object.defineProperty;var zFt=Object.getOwnPropertyDescriptor;var jFt=Object.getOwnPropertyNames;var KFt=Object.getPrototypeOf,XFt=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 ZFt=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Su=(t,e)=>{for(var r in e)DP(t,r,{get:e[r],enumerable:!0})},Yxe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of jFt(e))!XFt.call(t,s)&&s!==r&&DP(t,s,{get:()=>e[s],enumerable:!(n=zFt(e,s))||n.enumerable});return t};var Xe=(t,e,r)=>(r=t!=null?WFt(KFt(t)):{},Yxe(e||!t||!t.__esModule?DP(r,"default",{value:t,enumerable:!0}):r,t)),$n=t=>Yxe(DP({},"__esModule",{value:!0}),t);var Xxe=f(Vy=>{"use strict";var uyn=B("net"),sMt=B("tls"),OK=B("http"),zxe=B("https"),iMt=B("events"),lyn=B("assert"),oMt=B("util");Vy.httpOverHttp=aMt;Vy.httpsOverHttp=AMt;Vy.httpOverHttps=cMt;Vy.httpsOverHttps=uMt;function aMt(t){var e=new Mf(t);return e.request=OK.request,e}function AMt(t){var e=new Mf(t);return e.request=OK.request,e.createSocket=jxe,e.defaultPort=443,e}function cMt(t){var e=new Mf(t);return e.request=zxe.request,e}function uMt(t){var e=new Mf(t);return e.request=zxe.request,e.createSocket=jxe,e.defaultPort=443,e}function Mf(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||OK.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=Kxe(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)})}oMt.inherits(Mf,iMt.EventEmitter);Mf.prototype.addRequest=function(e,r,n,s){var i=this,o=HK({request:e},i.options,Kxe(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)}})};Mf.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=HK({},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")),Lm("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){Lm("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var g=new Error("tunneling socket could not be established, statusCode="+l.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(h.length>0){Lm("got illegal response body from proxy"),d.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Lm("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Lm(`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)}};Mf.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 jxe(t,e){var r=this;Mf.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=HK({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=sMt.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function Kxe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function HK(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 Lm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Lm=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)}:Lm=function(){};Vy.debug=Lm});var MP=f((hyn,Zxe)=>{Zxe.exports=Xxe()});var ps=f((gyn,$xe)=>{$xe.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 tn=f((fyn,yTe)=>{"use strict";var eTe=Symbol.for("undici.error.UND_ERR"),xs=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[eTe]===!0}[eTe]=!0},tTe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qK=class extends xs{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[tTe]===!0}[tTe]=!0},rTe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),GK=class extends xs{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[rTe]===!0}[rTe]=!0},nTe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),YK=class extends xs{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[nTe]===!0}[nTe]=!0},sTe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),JK=class extends xs{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[sTe]===!0}[sTe]=!0},iTe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),VK=class extends xs{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 NLt(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(uLt.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function SLt(){return"allowed"}function RLt(){return"success"}function DLt(){return"success"}function xLt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TLt(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&&vX(t.origin)&&!vX(kT(t))&&(e=null);break;case"same-origin":t_(t,kT(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function rb(t,e){return t}function kLt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:rb(t.domainLookupStartTime,r),domainLookupEndTime:rb(t.domainLookupEndTime,r),connectionStartTime:rb(t.connectionStartTime,r),connectionEndTime:rb(t.connectionEndTime,r),secureConnectionStartTime:rb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FLt(t){return rb(fLt.now(),t)}function MLt(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 P1e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function vLt(t){return{referrerPolicy:t.referrerPolicy}}function LLt(t){let e=t.referrerPolicy;eB(e);let r=null;if(t.referrer==="client"){let a=k1e();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=MX(r),s=MX(r,!0);n.toString().length>4096&&(n=s);let i=t_(t,n),o=TT(n)&&!TT(t.url);switch(e){case"origin":return s??MX(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=kT(t);return t_(n,a)?n:TT(n)&&!TT(a)?"no-referrer":s}default:return o?"no-referrer":s}}function MX(t,e){return eB(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 TT(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 ULt(t,e){if(e_===void 0)return!0;let r=_1e(e);if(r==="no metadata"||r.length===0)return!0;let n=_Lt(r),s=OLt(r,n);for(let i of s){let o=i.algo,a=i.hash,A=e_.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)),HLt(A,a))return!0}return!1}var PLt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function _1e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=PLt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();M1e.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function _Lt(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 OLt(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 HLt(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 qLt(t){}function t_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GLt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function YLt(t){return t.controller.state==="aborted"}function JLt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function VLt(t){return ELt[t.toLowerCase()]??t}function WLt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return eB(typeof e=="string"),e}var zLt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function O1e(t,e,r=0,n=1){class s{ Line truncated
`);function bUt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function wUt(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 NUt(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&&s_(t,QUt,i)||i.position===t.length-4&&s_(t,yUt,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=SUt(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",bUt(u)||(u=""),h=new IUt([d],c,{type:u})):h=fUt(Buffer.from(d)),n_(Z1e(A)),n_(typeof h=="string"&&Z1e(h)||mUt(h)),s.push(EUt(A,h,c))}}function SUt(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=sb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=qX(o,!0,!0,a=>a===9||a===32),!pUt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,sb(a=>a===32||a===9,t,e),gUt(o)){case"content-disposition":{if(r=n=null,!s_(t,BUt,e)||(e.position+=17,r=tke(t,e),r===null))return"failure";if(s_(t,eke,e)){let a=e.position+eke.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=tke(t,e),n===null))return"failure"}break}case"content-type":{let a=sb(A=>A!==10&&A!==13,t,e);a=qX(a,!1,!0,A=>A===9||A===32),s=$1e(a);break}case"content-transfer-encoding":{let a=sb(A=>A!==10&&A!==13,t,e);a=qX(a,!1,!0,A=>A===9||A===32),i=$1e(a);break}default:sb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function tke(t,e){n_(t[e.position-1]===34);let r=sb(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 sb(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function qX(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 s_(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}rke.exports={multipartFormDataParser:NUt,validateBoundary:wUt}});var ab=f((Oyn,hke)=>{"use strict";var vT=mr(),{ReadableStreamFrom:RUt,isBlobLike:ske,isReadableStreamLike:DUt,readableStreamClose:xUt,createDeferredPromise:TUt,fullyReadBody:kUt,extractMimeType:FUt,utf8DecodeBytes:ake}=Cc(),{FormData:ike}=MT(),{kState:ob}=Um(),{webidl:MUt}=Po(),{Blob:vUt}=B("node:buffer"),GX=B("node:assert"),{isErrored:Ake,isDisturbed:LUt}=B("node:stream"),{isArrayBuffer:UUt}=B("node:util/types"),{serializeAMimeType:PUt}=CA(),{multipartFormDataParser:_Ut}=nke(),YX;try{let t=B("node:crypto");YX=e=>t.randomInt(0,e)}catch{YX=t=>Math.floor(Math.random(t))}var i_=new TextEncoder;function OUt(){}var cke=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,uke;cke&&(uke=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!LUt(e)&&!Ake(e)&&e.cancel("Response object has been garbage collected").catch(OUt)}));function lke(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ske(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?i_.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>xUt(A))},start(){},type:"bytes"}),GX(DUt(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(UUt(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(vT.isFormDataLike(t)){let A=`----formdata-undici-0${`${YX(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=i_.encode(c+`; name="${u(l(C))}"\r
var M3e=Object.create;var gM=Object.defineProperty;var L3e=Object.getOwnPropertyDescriptor;var U3e=Object.getOwnPropertyNames;var P3e=Object.getPrototypeOf,O3e=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),ya=(t,e)=>{for(var r in e)gM(t,r,{get:e[r],enumerable:!0})},H3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of U3e(e))!O3e.call(t,s)&&s!==r&&gM(t,s,{get:()=>e[s],enumerable:!(n=L3e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?M3e(P3e(t)):{},H3e(e||!t||!t.__esModule?gM(r,"default",{value:t,enumerable:!0}):r,t));var lZ=E(bp=>{"use strict";var oVt=b("net"),J3e=b("tls"),EM=b("http"),cZ=b("https"),z3e=b("events"),aVt=b("assert"),j3e=b("util");bp.httpOverHttp=K3e;bp.httpsOverHttp=$3e;bp.httpOverHttps=X3e;bp.httpsOverHttps=Z3e;function K3e(t){var e=new $A(t);return e.request=EM.request,e}function $3e(t){var e=new $A(t);return e.request=EM.request,e.createSocket=AZ,e.defaultPort=443,e}function X3e(t){var e=new $A(t);return e.request=cZ.request,e}function Z3e(t){var e=new $A(t);return e.request=cZ.request,e.createSocket=AZ,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=uZ(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)})}j3e.inherits($A,z3e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=CM({request:e},i.options,uZ(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")),Cl("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){Cl("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){Cl("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 Cl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Cl(`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 AZ(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=J3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function uZ(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 Cl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Cl=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)}:Cl=function(){};bp.debug=Cl});var IM=E((AVt,dZ)=>{dZ.exports=lZ()});var Ir=E((uVt,hZ)=>{hZ.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((lVt,UZ)=>{"use strict";var fZ=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[fZ]===!0}[fZ]=!0},gZ=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[gZ]===!0}[gZ]=!0},pZ=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[pZ]===!0}[pZ]=!0},mZ=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[mZ]===!0}[mZ]=!0},EZ=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[EZ]===!0}[EZ]=!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 g6e(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(Z4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function p6e(){return"allowed"}function m6e(){return"success"}function E6e(){return"success"}function C6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function I6e(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(lI(t))&&(e=null);break;case"same-origin":j1(t,lI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function vp(t,e){return t}function y6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:vp(t.domainLookupStartTime,r),domainLookupEndTime:vp(t.domainLookupEndTime,r),connectionStartTime:vp(t.connectionStartTime,r),connectionEndTime:vp(t.connectionEndTime,r),secureConnectionStartTime:vp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function B6e(t){return vp(s6e.now(),t)}function b6e(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 Xee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Q6e(t){return{referrerPolicy:t.referrerPolicy}}function w6e(t){let e=t.referrerPolicy;kh(e);let r=null;if(t.referrer==="client"){let a=Wee();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=j1(t,n),o=uI(n)&&!uI(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=lI(t);return j1(n,a)?n:uI(n)&&!uI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function gL(t,e){return kh(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 uI(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 S6e(t,e){if(z1===void 0)return!0;let r=Zee(e);if(r==="no metadata"||r.length===0)return!0;let n=T6e(r),s=x6e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=z1.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)),R6e(c,a))return!0}return!1}var N6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Zee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=N6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();zee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function T6e(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 x6e(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 R6e(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 j1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function k6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function v6e(t){return t.controller.state==="aborted"}function _6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function F6e(t){return a6e[t.toLowerCase()]??t}function M6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return kh(typeof e=="string"),e}var L6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function ete(t,e,r=0,n=1){class s{ Line truncated
`);function h5e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function f5e(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 g5e(t,e){$1(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&&X1(t,l5e,i)||i.position===t.length-4&&X1(t,d5e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=p5e(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",h5e(u)||(u=""),h=new A5e([d],A,{type:u})):h=s5e(Buffer.from(d)),$1(dte(c)),$1(typeof h=="string"&&dte(h)||o5e(h)),s.push(a5e(c,h,A))}}function p5e(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=Fp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bL(o,!0,!0,a=>a===9||a===32),!i5e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Fp(a=>a===32||a===9,t,e),n5e(o)){case"content-disposition":{if(r=n=null,!X1(t,u5e,e)||(e.position+=17,r=gte(t,e),r===null))return"failure";if(X1(t,fte,e)){let a=e.position+fte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=gte(t,e),n===null))return"failure"}break}case"content-type":{let a=Fp(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),s=hte(a);break}case"content-transfer-encoding":{let a=Fp(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),i=hte(a);break}default:Fp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function gte(t,e){$1(t[e.position-1]===34);let r=Fp(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 Fp(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 X1(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}pte.exports={multipartFormDataParser:g5e,validateBoundary:f5e}});var Up=E((MVt,Nte)=>{"use strict";var fI=lt(),{ReadableStreamFrom:m5e,isBlobLike:Ete,isReadableStreamLike:E5e,readableStreamClose:C5e,createDeferredPromise:I5e,fullyReadBody:y5e,extractMimeType:B5e,utf8DecodeBytes:yte}=wi(),{FormData:Cte}=hI(),{kState:Lp}=Il(),{webidl:b5e}=Jn(),{Blob:Q5e}=b("node:buffer"),QL=b("node:assert"),{isErrored:Bte,isDisturbed:w5e}=b("node:stream"),{isArrayBuffer:S5e}=b("node:util/types"),{serializeAMimeType:N5e}=Js(),{multipartFormDataParser:T5e}=mte(),wL;try{let t=b("node:crypto");wL=e=>t.randomInt(0,e)}catch{wL=t=>Math.floor(Math.random(t))}var Z1=new TextEncoder;function x5e(){}var bte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Qte;bte&&(Qte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!w5e(e)&&!Bte(e)&&e.cancel("Response object has been garbage collected").catch(x5e)}));function wte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ete(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?Z1.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>C5e(c))},start(){},type:"bytes"}),QL(E5e(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(S5e(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(fI.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=Z1.encode(A+`; name="${u(l(I))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=i_.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=Z1.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=i_.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(ske(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(vT.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:RUt(t)}if((typeof s=="string"||vT.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(!Ake(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 HUt(t,e=!1){return t instanceof ReadableStream&&(GX(!vT.isDisturbed(t),"The body has already been consumed."),GX(!t.locked,"The stream is locked.")),lke(t,e)}function qUt(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function GUt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function YUt(t){return{blob(){return ib(this,r=>{let n=oke(this);return n===null?n="":n&&(n=PUt(n)),new vUt([r],{type:n})},t)},arrayBuffer(){return ib(this,r=>new Uint8Array(r).buffer,t)},text(){return ib(this,ake,t)},json(){return ib(this,VUt,t)},formData(){return ib(this,r=>{let n=oke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=_Ut(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ike;return i[ob]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ike;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 ib(this,r=>new Uint8Array(r),t)}}}function JUt(t){Object.assign(t.prototype,YUt(t))}async function ib(t,e,r){if(MUt.brandCheck(t,r),dke(t))throw new TypeError("Body is unusable: Body has already been read");GUt(t[ob]);let n=TUt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[ob].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await kUt(t[ob].body,i,s),n.promise)}function dke(t){let e=t[ob].body;return e!=null&&(e.stream.locked||vT.isDisturbed(e.stream))}function VUt(t){return JSON.parse(ake(t))}function oke(t){let e=t[ob].headersList,r=FUt(e);return r==="failure"?null:r}hke.exports={extractBody:lke,safelyExtractBody:HUt,cloneBody:qUt,mixinBody:JUt,streamRegistry:uke,hasFinalizationRegistry:cke,bodyUnusable:dke}});var bke=f((Hyn,yke)=>{"use strict";var xt=B("node:assert"),Yt=mr(),{channels:gke}=zy(),JX=NX(),{RequestContentLengthMismatchError:tB,ResponseContentLengthMismatchError:WUt,RequestAbortedError:Ike,HeadersTimeoutError:zUt,HeadersOverflowError:jUt,SocketError:l_,InformationalError:Ab,BodyTimeoutError:KUt,HTTPParserError:XUt,ResponseExceededMaxSizeError:ZUt}=tn(),{kUrl:Bke,kReset:IA,kClient:jX,kParser:Ys,kBlocking:PT,kRunning:ra,kPending:$Ut,kSize:fke,kWriting:_m,kQueue:ad,kNoRef:LT,kKeepAliveDefaultTimeout:ePt,kHostHeader:tPt,kPendingIdx:rPt,kRunningIdx:Du,kError:xu,kPipelining:c_,kSocket:cb,kKeepAliveTimeoutValue:d_,kMaxHeadersSize:VX,kKeepAliveMaxTimeout:nPt,kKeepAliveTimeoutThreshold:sPt,kHeadersTimeout:iPt,kBodyTimeout:oPt,kStrictContentLength:KX,kMaxRequests:pke,kCounter:aPt,kMaxResponseSize:APt,kOnError:cPt,kResume:Pm,kHTTPContext:Qke}=ps(),mh=u1e(),uPt=Buffer.alloc(0),o_=Buffer[Symbol.species],a_=Yt.addListener,lPt=Yt.removeAllListeners,WX;async function dPt(){let t=process.env.JEST_WORKER_ID?DX():void 0,e;try{e=await WebAssembly.compile(h1e())}catch{e=await WebAssembly.compile(t||DX())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onStatus(new o_(Eh.buffer,i,s))||0},wasm_on_message_begin:r=>(xt(Hi.ptr===r),Hi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onHeaderField(new o_(Eh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onHeaderValue(new o_(Eh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(xt(Hi.ptr===r),Hi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{xt(Hi.ptr===r);let i=n-Ch+Eh.byteOffset;return Hi.onBody(new o_(Eh.buffer,i,s))||0},wasm_on_message_complete:r=>(xt(Hi.ptr===r),Hi.onMessageComplete()||0)}})}var zX=null,XX=dPt();XX.catch();var Hi=null,Eh=null,A_=0,Ch=null,hPt=0,UT=1,ub=2|UT,u_=4|UT,ZX=8|hPt,$X=class{constructor(e,r,{exports:n}){xt(Number.isFinite(e[VX])&&e[VX]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mh.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
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=Z1.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(Ete(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(fI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:m5e(t)}if((typeof s=="string"||fI.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(!Bte(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 R5e(t,e=!1){return t instanceof ReadableStream&&(QL(!fI.isDisturbed(t),"The body has already been consumed."),QL(!t.locked,"The stream is locked.")),wte(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 k5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function v5e(t){return{blob(){return Mp(this,r=>{let n=Ite(this);return n===null?n="":n&&(n=N5e(n)),new Q5e([r],{type:n})},t)},arrayBuffer(){return Mp(this,r=>new Uint8Array(r).buffer,t)},text(){return Mp(this,yte,t)},json(){return Mp(this,F5e,t)},formData(){return Mp(this,r=>{let n=Ite(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=T5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Cte;return i[Lp]=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 Mp(this,r=>new Uint8Array(r),t)}}}function _5e(t){Object.assign(t.prototype,v5e(t))}async function Mp(t,e,r){if(b5e.brandCheck(t,r),Ste(t))throw new TypeError("Body is unusable: Body has already been read");k5e(t[Lp]);let n=I5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Lp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await y5e(t[Lp].body,i,s),n.promise)}function Ste(t){let e=t[Lp].body;return e!=null&&(e.stream.locked||fI.isDisturbed(e.stream))}function F5e(t){return JSON.parse(yte(t))}function Ite(t){let e=t[Lp].headersList,r=B5e(e);return r==="failure"?null:r}Nte.exports={extractBody:wte,safelyExtractBody:R5e,cloneBody:D5e,mixinBody:_5e,streamRegistry:Qte,hasFinalizationRegistry:bte,bodyUnusable:Ste}});var Ute=E((LVt,Lte)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:Tte}=wp(),SL=aL(),{RequestContentLengthMismatchError:vh,ResponseContentLengthMismatchError:M5e,RequestAbortedError:_te,HeadersTimeoutError:L5e,HeadersOverflowError:U5e,SocketError:iS,InformationalError:Pp,BodyTimeoutError:P5e,HTTPParserError:O5e,ResponseExceededMaxSizeError:H5e}=Lt(),{kUrl:Fte,kReset:zs,kClient:RL,kParser:Fr,kBlocking:mI,kRunning:os,kPending:G5e,kSize:xte,kWriting:Bl,kQueue:Ba,kNoRef:gI,kKeepAliveDefaultTimeout:q5e,kHostHeader:Y5e,kPendingIdx:V5e,kRunningIdx:po,kError:mo,kPipelining:nS,kSocket:Op,kKeepAliveTimeoutValue:oS,kMaxHeadersSize:NL,kKeepAliveMaxTimeout:W5e,kKeepAliveTimeoutThreshold:J5e,kHeadersTimeout:z5e,kBodyTimeout:j5e,kStrictContentLength:DL,kMaxRequests:Rte,kCounter:K5e,kMaxResponseSize:$5e,kOnError:X5e,kResume:yl,kHTTPContext:Mte}=Ir(),gc=Qee(),Z5e=Buffer.alloc(0),eS=Buffer[Symbol.species],tS=$e.addListener,eHe=$e.removeAllListeners,TL;async function tHe(){let t=process.env.JEST_WORKER_ID?uL():void 0,e;try{e=await WebAssembly.compile(Nee())}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-mc+pc.byteOffset;return fn.onStatus(new eS(pc.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-mc+pc.byteOffset;return fn.onHeaderField(new eS(pc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-mc+pc.byteOffset;return fn.onHeaderValue(new eS(pc.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-mc+pc.byteOffset;return fn.onBody(new eS(pc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var xL=null,kL=tHe();kL.catch();var fn=null,pc=null,rS=0,mc=null,rHe=0,pI=1,Hp=2|pI,sS=4|pI,vL=8|rHe,_L=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[NL])&&e[NL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(gc.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[tPt],i?p+=`connection: upgrade\r
`:p+=t[Y5e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[c_]&&!h[IA]?p+=`connection: keep-alive\r
`:t[nS]&&!h[zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return gke.sendHeaders.hasSubscribers&&gke.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Eke(g,null,t,e,h,u,p,l):Yt.isBuffer(A)?Eke(g,A,t,e,h,u,p,l):Yt.isBlobLike(A)?typeof A.stream=="function"?Cke(g,A.stream(),t,e,h,u,p,l):CPt(g,A,t,e,h,u,p,l):Yt.isStream(A)?EPt(g,A,t,e,h,u,p,l):Yt.isIterable(A)?Cke(g,A,t,e,h,u,p,l):xt(!1),!0}function EPt(t,e,r,n,s,i,o,a){xt(i!==0||r[ra]===0,"stream body cannot be pipelined");let A=!1,c=new h_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Yt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new Ike;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,xt(s.destroyed||s[_m]&&r[ra]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Yt.destroy(e,g):Yt.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 Eke(t,e,r,n,s,i,o,a){try{e?Yt.isBuffer(e)&&(xt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\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 Tte.sendHeaders.hasSubscribers&&Tte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?kte(f,null,t,e,h,u,p,l):$e.isBuffer(c)?kte(f,c,t,e,h,u,p,l):$e.isBlobLike(c)?typeof c.stream=="function"?vte(f,c.stream(),t,e,h,u,p,l):cHe(f,c,t,e,h,u,p,l):$e.isStream(c)?aHe(f,c,t,e,h,u,p,l):$e.isIterable(c)?vte(f,c,t,e,h,u,p,l):Ge(!1),!0}function aHe(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"stream body cannot be pipelined");let c=!1,A=new aS({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 _te;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[Bl]&&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 kte(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[IA]=!0)):i===0?s.write(`${o}content-length: 0\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
\r
`,"latin1"):(xt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Pm]()}catch(A){t(A)}}async function CPt(t,e,r,n,s,i,o,a){xt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tB;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[yl]()}catch(c){t(c)}}async function cHe(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
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[IA]=!0),r[Pm]()}catch(A){t(A)}}async function Cke(t,e,r,n,s,i,o,a){xt(i!==0||r[ra]===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)=>{xt(A===null),s[xu]?h(s[xu]):A=d});s.on("close",c).on("drain",c);let l=new h_({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[xu])throw s[xu];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var h_=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[_m]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[xu])throw r[xu];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[KX])throw new tB;process.emitWarning(new tB)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[IA]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[zs]=!0),r[yl]()}catch(c){t(c)}}async function vte(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[mo]?h(s[mo]):c=d});s.on("close",A).on("drain",A);let l=new aS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[mo])throw s[mo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var aS=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[Bl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[mo])throw r[mo];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 vh;process.emitWarning(new vh)}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
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Ys].timeout&&r[Ys].timeoutType===ub&&r[Ys].timeout.refresh&&r[Ys].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_m]=!1,e[xu])throw e[xu];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\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===Hp&&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[Bl]=!1,e[mo])throw e[mo];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[KX])throw new tB;process.emitWarning(new tB)}e[Ys].timeout&&e[Ys].timeoutType===ub&&e[Ys].timeout.refresh&&e[Ys].timeout.refresh(),n[Pm]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_m]=!1,e&&(xt(n[ra]<=1,"pipeline should only contain this request"),s(e))}};yke.exports=gPt});var kke=f((qyn,Tke)=>{"use strict";var Tu=B("node:assert"),{pipeline:IPt}=B("node:stream"),wr=mr(),{RequestContentLengthMismatchError:eZ,RequestAbortedError:wke,SocketError:_T,InformationalError:tZ}=tn(),{kUrl:g_,kReset:p_,kClient:lb,kRunning:m_,kPending:BPt,kQueue:Om,kPendingIdx:rZ,kRunningIdx:Ad,kError:ud,kSocket:io,kStrictContentLength:QPt,kOnError:nZ,kMaxConcurrentStreams:xke,kHTTP2Session:cd,kResume:Hm,kSize:yPt,kHTTPContext:bPt}=ps(),Of=Symbol("open streams"),Nke,Ske=!1,f_;try{f_=B("node:http2")}catch{f_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wPt,HTTP2_HEADER_METHOD:NPt,HTTP2_HEADER_PATH:SPt,HTTP2_HEADER_SCHEME:RPt,HTTP2_HEADER_CONTENT_LENGTH:DPt,HTTP2_HEADER_EXPECT:xPt,HTTP2_HEADER_STATUS:TPt}}=f_;function kPt(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 FPt(t,e){t[io]=e,Ske||(Ske=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=f_.connect(t[g_],{createConnection:()=>e,peerMaxConcurrentStreams:t[xke]});r[Of]=0,r[lb]=t,r[io]=e,wr.addListener(r,"error",vPt),wr.addListener(r,"frameError",LPt),wr.addListener(r,"end",UPt),wr.addListener(r,"goaway",PPt),wr.addListener(r,"close",function(){let{[lb]:s}=this,{[io]:i}=s,o=this[io][ud]||this[ud]||new _T("closed",wr.getSocketInfo(i));if(s[cd]=null,s.destroyed){Tu(s[BPt]===0);let a=s[Om].splice(s[Ad]);for(let A=0;A<a.length;A++){let c=a[A];wr.errorRequest(s,c,o)}}}),r.unref(),t[cd]=r,e[cd]=r,wr.addListener(e,"error",function(s){Tu(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ud]=s,this[lb][nZ](s)}),wr.addListener(e,"end",function(){wr.destroy(this,new _T("other side closed",wr.getSocketInfo(this)))}),wr.addListener(e,"close",function(){let s=this[ud]||new _T("closed",wr.getSocketInfo(this));t[io]=null,this[cd]!=null&&this[cd].destroy(s),t[rZ]=t[Ad],Tu(t[m_]===0),t.emit("disconnect",t[g_],[t],s),t[Hm]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return OPt(t,...s)},resume(){MPt(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function MPt(t){let e=t[io];e?.destroyed===!1&&(t[yPt]===0&&t[xke]===0?(e.unref(),t[cd].unref()):(e.ref(),t[cd].ref()))}function vPt(t){Tu(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io][ud]=t,this[lb][nZ](t)}function LPt(t,e,r){if(r===0){let n=new tZ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[io][ud]=n,this[lb][nZ](n)}}function UPt(){let t=new _T("other side closed",wr.getSocketInfo(this[io]));this.destroy(t),wr.destroy(this[io],t)}function PPt(t){let e=this[ud]||new _T(`HTTP/2: "GOAWAY" frame received with code ${t}`,wr.getSocketInfo(this)),r=this[lb];if(r[io]=null,r[bPt]=null,this[cd]!=null&&(this[cd].destroy(e),this[cd]=null),wr.destroy(this[io],e),r[Ad]<r[Om].length){let n=r[Om][r[Ad]];r[Om][r[Ad]++]=null,wr.errorRequest(r,n,e),r[rZ]=r[Ad]}Tu(r[m_]===0),r.emit("disconnect",r[g_],[r],e),r[Hm]()}function _Pt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function OPt(t,e){let r=t[cd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return wr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[g_];l[wPt]=i||`${h}${g?`:${g}`:""}`,l[NPt]=n;let p=w=>{e.aborted||e.completed||(w=w||new wke,wr.errorRequest(t,e,w),d!=null&&wr.destroy(d,w),wr.destroy(u,w),t[Om][t[Ad]++]=null,t[Hm]())};try{e.onConnect(p)}catch(w){wr.errorRequest(t,e,w)}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[Of],t[Om][t[Ad]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Of],t[Om][t[Ad]++]=null}),d.once("close",()=>{r[Of]-=1,r[Of]===0&&r.unref()}),!0;l[SPt]=s,l[RPt]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=wr.bodyLength(u);if(wr.isFormDataLike(u)){Nke??=ab().extractBody;let[w,H]=Nke(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),_Pt(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[QPt])return wr.errorRequest(t,e,new eZ),!1;process.emitWarning(new eZ)}m!=null&&(Tu(u,"no body must not have content length"),l[DPt]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[xPt]="100-continue",d=r.request(l,{endStream:I,signal:A}),d.once("cont Line truncated
`,this[d_t]=A??3e5,this[l_t]=s??3e5,this[h_t]=I??!0,this[g_t]=w,this[aZ]=z,this[Gm]=null,this[C_t]=W>-1?W:-1,this[B_t]=oe??100,this[gi]=null,this[ld]=[],this[qf]=0,this[dd]=0,this[GT]=he=>cZ(this,he),this[I_t]=he=>Yke(this,he)}get pipelining(){return this[B_]}set pipelining(e){this[B_]=e,this[GT](!0)}get[VT](){return this[ld].length-this[dd]}get[JT](){return this[dd]-this[qf]}get[YT](){return this[ld].length-this[qf]}get[s_t](){return!!this[gi]&&!this[hb]&&!this[gi].destroyed}get[oZ](){return!!(this[gi]?.busy(null)||this[YT]>=(Gke(this)||1)||this[VT]>0)}[n_t](e){Jke(this),this.once("connect",e)}[E_t](e,r){let n=e.origin||this[Bh].origin,s=new XPt(n,e,r);return this[ld].push(s),this[nB]||(rB.bodyLength(s.body)==null&&rB.isIterable(s.body)?(this[nB]=1,queueMicrotask(()=>cZ(this))):this[GT](!0)),this[nB]&&this[Ym]!==2&&this[oZ]&&(this[Ym]=2),this[Ym]<2}async[p_t](){return new Promise(e=>{this[YT]?this[Gm]=e:e(null)})}async[m_t](e){return new Promise(r=>{let n=this[ld].splice(this[dd]);for(let i=0;i<n.length;i++){let o=n[i];rB.errorRequest(this,o,e)}let s=()=>{this[Gm]&&(this[Gm](),this[Gm]=null),r(null)};this[gi]?(this[gi].destroy(e,s),this[gi]=null):queueMicrotask(s),this[GT]()})}},b_t=I_();function Yke(t,e){if(t[JT]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Hf(t[dd]===t[qf]);let r=t[ld].splice(t[qf]);for(let n=0;n<r.length;n++){let s=r[n];rB.errorRequest(t,s,e)}Hf(t[YT]===0)}}async function Jke(t){Hf(!t[hb]),Hf(!t[gi]);let{host:e,hostname:r,protocol:n,port:s}=t[Bh];if(r[0]==="["){let i=r.indexOf("]");Hf(i!==-1);let o=r.substring(1,i);Hf(qke.isIP(o)),r=o}t[hb]=!0,db.beforeConnect.hasSubscribers&&db.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT]});try{let i=await new Promise((o,a)=>{t[HT]({host:e,hostname:r,protocol:n,port:s,servername:t[qm],localAddress:t[qT]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){rB.destroy(i.on("error",Oke),new e_t);return}Hf(i);try{t[gi]=i.alpnProtocol==="h2"?await y_t(t,i):await Q_t(t,i)}catch(o){throw i.destroy().on("error",Oke),o}t[hb]=!1,i[f_t]=0,i[aZ]=t[aZ],i[r_t]=t,i[o_t]=null,db.connected.hasSubscribers&&db.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT],socket:i}),t.emit("connect",t[Bh],[t])}catch(i){if(t.destroyed)return;if(t[hb]=!1,db.connectError.hasSubscribers&&db.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[gi]?.version,servername:t[qm],localAddress:t[qT]},connector:t[HT],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Hf(t[JT]===0);t[VT]>0&&t[ld][t[dd]].servername===t[qm];){let o=t[ld][t[dd]++];rB.errorRequest(t,o,i)}else Yke(t,i);t.emit("connectionError",t[Bh],[t],i)}t[GT]()}function Hke(t){t[Ym]=0,t.emit("drain",t[Bh],[t])}function cZ(t,e){t[nB]!==2&&(t[nB]=2,w_t(t,e),t[nB]=0,t[qf]>256&&(t[ld].splice(0,t[qf]),t[dd]-=t[qf],t[qf]=0))}function w_t(t,e){for(;;){if(t.destroyed){Hf(t[VT]===0);return}if(t[Gm]&&!t[YT]){t[Gm](),t[Gm]=null;return}if(t[gi]&&t[gi].resume(),t[oZ])t[Ym]=2;else if(t[Ym]===2){e?(t[Ym]=1,queueMicrotask(()=>Hke(t))):Hke(t);continue}if(t[VT]===0||t[JT]>=(Gke(t)||1))return;let r=t[ld][t[dd]];if(t[Bh].protocol==="https:"&&t[qm]!==r.servername){if(t[JT]>0)return;t[qm]=r.servername,t[gi]?.destroy(new $Pt("servername changed"),()=>{t[gi]=null,cZ(t)})}if(t[hb])return;if(!t[gi]){Jke(t);return}if(t[gi].destroyed||t[gi].busy(r))return;!r.aborted&&t[gi].write(r)?t[dd]++:t[ld].splice(t[dd],1)}}Vke.exports=AZ});var uZ=f((Wyn,Wke)=>{"use strict";var Q_=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)}};Wke.exports=class{constructor(){this.head=this.tail=new Q_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Q_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var jke=f((zyn,zke)=>{var{kFree:N_t,kConnected:S_t,kPending:R_t,kQueued:D_t,kRunning:x_t,kSize:T_t}=ps(),sB=Symbol("pool"),lZ=class{constructor(e){this[sB]=e}get connected(){return this[sB][S_t]}get free(){return this[sB][N_t]}get pending(){return this[sB][R_t]}get queued(){return this[sB][D_t]}get running(){return this[sB][x_t]}get size(){return this[sB][T_t]}};zke.exports=lZ});var mZ=f((jyn,i2e)=>{"use strict";var k_t=Zy(),F_t=uZ(),{kConnected:dZ,kSize:Kke,kRunning:Xke,kPending:Zke,kQueued:WT,kBusy:M_t,kFree:v_t,kUrl:L_t,kClose:U_t,kDestroy:P_t,kDispatch:__t}=ps(),O_t=jke(),BA=Symbol("clients"),_a=Symbol("needDrain"),zT=Symbol("queue"),hZ=Symbol("closed resolve"),gZ=Symbol("onDrain"),$ke=Symbol("onConnect"),e2e=Symbol("onDisconnect"),t2e=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[DL])throw new vh;process.emitWarning(new vh)}e[Fr].timeout&&e[Fr].timeoutType===Hp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[yl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Bl]=!1,e&&(Ge(n[os]<=1,"pipeline should only contain this request"),s(e))}};Lte.exports=nHe});var Wte=E((UVt,Vte)=>{"use strict";var Eo=b("node:assert"),{pipeline:AHe}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:FL,RequestAbortedError:Pte,SocketError:EI,InformationalError:ML}=Lt(),{kUrl:cS,kReset:uS,kClient:Gp,kRunning:lS,kPending:uHe,kQueue:bl,kPendingIdx:LL,kRunningIdx:ba,kError:wa,kSocket:Tn,kStrictContentLength:lHe,kOnError:UL,kMaxConcurrentStreams:Yte,kHTTP2Session:Qa,kResume:Ql,kSize:dHe,kHTTPContext:hHe}=Ir(),nu=Symbol("open streams"),Ote,Hte=!1,AS;try{AS=b("node:http2")}catch{AS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fHe,HTTP2_HEADER_METHOD:gHe,HTTP2_HEADER_PATH:pHe,HTTP2_HEADER_SCHEME:mHe,HTTP2_HEADER_CONTENT_LENGTH:EHe,HTTP2_HEADER_EXPECT:CHe,HTTP2_HEADER_STATUS:IHe}}=AS;function yHe(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 BHe(t,e){t[Tn]=e,Hte||(Hte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=AS.connect(t[cS],{createConnection:()=>e,peerMaxConcurrentStreams:t[Yte]});r[nu]=0,r[Gp]=t,r[Tn]=e,mt.addListener(r,"error",QHe),mt.addListener(r,"frameError",wHe),mt.addListener(r,"end",SHe),mt.addListener(r,"goaway",NHe),mt.addListener(r,"close",function(){let{[Gp]:s}=this,{[Tn]:i}=s,o=this[Tn][wa]||this[wa]||new EI("closed",mt.getSocketInfo(i));if(s[Qa]=null,s.destroyed){Eo(s[uHe]===0);let a=s[bl].splice(s[ba]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Qa]=r,e[Qa]=r,mt.addListener(e,"error",function(s){Eo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wa]=s,this[Gp][UL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new EI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[wa]||new EI("closed",mt.getSocketInfo(this));t[Tn]=null,this[Qa]!=null&&this[Qa].destroy(s),t[LL]=t[ba],Eo(t[lS]===0),t.emit("disconnect",t[cS],[t],s),t[Ql]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return xHe(t,...s)},resume(){bHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function bHe(t){let e=t[Tn];e?.destroyed===!1&&(t[dHe]===0&&t[Yte]===0?(e.unref(),t[Qa].unref()):(e.ref(),t[Qa].ref()))}function QHe(t){Eo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn][wa]=t,this[Gp][UL](t)}function wHe(t,e,r){if(r===0){let n=new ML(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tn][wa]=n,this[Gp][UL](n)}}function SHe(){let t=new EI("other side closed",mt.getSocketInfo(this[Tn]));this.destroy(t),mt.destroy(this[Tn],t)}function NHe(t){let e=this[wa]||new EI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Gp];if(r[Tn]=null,r[hHe]=null,this[Qa]!=null&&(this[Qa].destroy(e),this[Qa]=null),mt.destroy(this[Tn],e),r[ba]<r[bl].length){let n=r[bl][r[ba]];r[bl][r[ba]++]=null,mt.errorRequest(r,n,e),r[LL]=r[ba]}Eo(r[lS]===0),r.emit("disconnect",r[cS],[r],e),r[Ql]()}function THe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function xHe(t,e){let r=t[Qa],{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[cS];l[fHe]=i||`${h}${f?`:${f}`:""}`,l[gHe]=n;let p=N=>{e.aborted||e.completed||(N=N||new Pte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[bl][t[ba]++]=null,t[Ql]())};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[bl][t[ba]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[nu],t[bl][t[ba]++]=null}),d.once("close",()=>{r[nu]-=1,r[nu]===0&&r.unref()}),!0;l[pHe]=s,l[mHe]="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)){Ote??=Up().extractBody;let[N,M]=Ote(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),THe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[lHe])return mt.errorRequest(t,e,new FL),!1;process.emitWarning(new FL)}m!=null&&(Eo(u,"no body must not have content length"),l[EHe]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[CHe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[t9e]=c??3e5,this[e9e]=s??3e5,this[r9e]=C??!0,this[n9e]=N,this[GL]=O,this[Sl]=null,this[c9e]=P>-1?P:-1,this[u9e]=Z??100,this[zr]=null,this[Sa]=[],this[iu]=0,this[Na]=0,this[BI]=ce=>YL(this,ce),this[A9e]=ce=>sre(this,ce)}get pipelining(){return this[gS]}set pipelining(e){this[gS]=e,this[BI](!0)}get[wI](){return this[Sa].length-this[Na]}get[QI](){return this[Na]-this[iu]}get[bI](){return this[Sa].length-this[iu]}get[JHe](){return!!this[zr]&&!this[Yp]&&!this[zr].destroyed}get[HL](){return!!(this[zr]?.busy(null)||this[bI]>=(nre(this)||1)||this[wI]>0)}[WHe](e){ire(this),this.once("connect",e)}[a9e](e,r){let n=e.origin||this[Cc].origin,s=new OHe(n,e,r);return this[Sa].push(s),this[Fh]||(_h.bodyLength(s.body)==null&&_h.isIterable(s.body)?(this[Fh]=1,queueMicrotask(()=>YL(this))):this[BI](!0)),this[Fh]&&this[Nl]!==2&&this[HL]&&(this[Nl]=2),this[Nl]<2}async[i9e](){return new Promise(e=>{this[bI]?this[Sl]=e:e(null)})}async[o9e](e){return new Promise(r=>{let n=this[Sa].splice(this[Na]);for(let i=0;i<n.length;i++){let o=n[i];_h.errorRequest(this,o,e)}let s=()=>{this[Sl]&&(this[Sl](),this[Sl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[BI]()})}},h9e=fS();function sre(t,e){if(t[QI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[Na]===t[iu]);let r=t[Sa].splice(t[iu]);for(let n=0;n<r.length;n++){let s=r[n];_h.errorRequest(t,s,e)}su(t[bI]===0)}}async function ire(t){su(!t[Yp]),su(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[Cc];if(r[0]==="["){let i=r.indexOf("]");su(i!==-1);let o=r.substring(1,i);su(rre.isIP(o)),r=o}t[Yp]=!0,qp.beforeConnect.hasSubscribers&&qp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[wl],localAddress:t[yI]},connector:t[II]});try{let i=await new Promise((o,a)=>{t[II]({host:e,hostname:r,protocol:n,port:s,servername:t[wl],localAddress:t[yI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){_h.destroy(i.on("error",ere),new qHe);return}su(i);try{t[zr]=i.alpnProtocol==="h2"?await d9e(t,i):await l9e(t,i)}catch(o){throw i.destroy().on("error",ere),o}t[Yp]=!1,i[s9e]=0,i[GL]=t[GL],i[VHe]=t,i[jHe]=null,qp.connected.hasSubscribers&&qp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[wl],localAddress:t[yI]},connector:t[II],socket:i}),t.emit("connect",t[Cc],[t])}catch(i){if(t.destroyed)return;if(t[Yp]=!1,qp.connectError.hasSubscribers&&qp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[wl],localAddress:t[yI]},connector:t[II],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[QI]===0);t[wI]>0&&t[Sa][t[Na]].servername===t[wl];){let o=t[Sa][t[Na]++];_h.errorRequest(t,o,i)}else sre(t,i);t.emit("connectionError",t[Cc],[t],i)}t[BI]()}function tre(t){t[Nl]=0,t.emit("drain",t[Cc],[t])}function YL(t,e){t[Fh]!==2&&(t[Fh]=2,f9e(t,e),t[Fh]=0,t[iu]>256&&(t[Sa].splice(0,t[iu]),t[Na]-=t[iu],t[iu]=0))}function f9e(t,e){for(;;){if(t.destroyed){su(t[wI]===0);return}if(t[Sl]&&!t[bI]){t[Sl](),t[Sl]=null;return}if(t[zr]&&t[zr].resume(),t[HL])t[Nl]=2;else if(t[Nl]===2){e?(t[Nl]=1,queueMicrotask(()=>tre(t))):tre(t);continue}if(t[wI]===0||t[QI]>=(nre(t)||1))return;let r=t[Sa][t[Na]];if(t[Cc].protocol==="https:"&&t[wl]!==r.servername){if(t[QI]>0)return;t[wl]=r.servername,t[zr]?.destroy(new GHe("servername changed"),()=>{t[zr]=null,YL(t)})}if(t[Yp])return;if(!t[zr]){ire(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Na]++:t[Sa].splice(t[Na],1)}}ore.exports=qL});var VL=E((qVt,are)=>{"use strict";var pS=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)}};are.exports=class{constructor(){this.head=this.tail=new pS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new pS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Are=E((YVt,cre)=>{var{kFree:g9e,kConnected:p9e,kPending:m9e,kQueued:E9e,kRunning:C9e,kSize:I9e}=Ir(),Mh=Symbol("pool"),WL=class{constructor(e){this[Mh]=e}get connected(){return this[Mh][p9e]}get free(){return this[Mh][g9e]}get pending(){return this[Mh][m9e]}get queued(){return this[Mh][E9e]}get running(){return this[Mh][C9e]}get size(){return this[Mh][I9e]}};cre.exports=WL});var XL=E((VVt,Cre)=>{"use strict";var y9e=xp(),B9e=VL(),{kConnected:JL,kSize:ure,kRunning:lre,kPending:dre,kQueued:SI,kBusy:b9e,kFree:Q9e,kUrl:w9e,kClose:S9e,kDestroy:N9e,kDispatch:T9e}=Ir(),x9e=Are(),js=Symbol("clients"),bs=Symbol("needDrain"),NI=Symbol("queue"),zL=Symbol("closed resolve"),jL=Symbol("onDrain"),hre=Symbol("onConnect"),fre=Symbol("onDisconnect"),gre=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lMe.exports=m$});var O_=f((ybn,pMe)=>{"use strict";var hMe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:dqt}=tn(),hqt=pb();fMe()===void 0&&gMe(new hqt);function gMe(t){if(!t||typeof t.dispatch!="function")throw new dqt("Argument agent must implement Agent");Object.defineProperty(globalThis,hMe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fMe(){return globalThis[hMe]}pMe.exports={setGlobalDispatcher:gMe,getGlobalDispatcher:fMe}});var H_=f((wbn,mMe)=>{"use strict";mMe.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 CMe=f((Nbn,EMe)=>{"use strict";var gqt=C_();EMe.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 gqt(r,o,s,i);return r(a,A)}}});var BMe=f((Sbn,IMe)=>{"use strict";var fqt=x_();IMe.exports=t=>e=>function(n,s){return e(n,new fqt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var yMe=f((Rbn,QMe)=>{"use strict";var pqt=mr(),{InvalidArgumentError:mqt,RequestAbortedError:Eqt}=tn(),Cqt=H_(),E$=class extends Cqt{#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 mqt("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=pqt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Eqt(`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 Iqt({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new E$({maxSize:i},s);return e(n,o)}}QMe.exports=Iqt});var NMe=f((Dbn,wMe)=>{"use strict";var{isIP:Bqt}=B("node:net"),{lookup:Qqt}=B("node:dns"),yqt=H_(),{InvalidArgumentError:Nb,InformationalError:bqt}=tn(),bMe=Math.pow(2,31)-1,C$=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 bqt("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){Qqt(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===bMe?(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===bMe?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 I$(this,e,r)}},I$=class extends yqt{#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":iUe(i)&&(r[s]=i);break;case"id":oUe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&iUe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&oUe(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}}};aUe.exports={EventSourceStream:iee}});var pUe=f((own,fUe)=>{"use strict";var{pipeline:k4t}=B("node:stream"),{fetching:F4t}=a1(),{makeRequest:M4t}=Db(),{webidl:Wf}=Po(),{EventSourceStream:v4t}=AUe(),{parseMIMEType:L4t}=CA(),{createFastMessageEvent:U4t}=vb(),{isNetworkError:cUe}=i1(),{delay:P4t}=nee(),{kEnumerableProperty:CB}=mr(),{environmentSettingsObject:uUe}=Cc(),lUe=!1,dUe=3e3,C1=0,hUe=1,I1=2,_4t="anonymous",O4t="use-credentials",Ob=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=C1;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Wf.util.markAsUncloneable(this);let n="EventSource constructor";Wf.argumentLengthCheck(arguments,1,n),lUe||(lUe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wf.converters.USVString(e,n,"url"),r=Wf.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:dUe};let s=uUe,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=_4t;r.withCredentials&&(o=O4t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=uUe.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=M4t(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===I1)return;this.#r=C1;let e={request:this.#s,dispatcher:this.#a},r=n=>{cUe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cUe(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?L4t(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=hUe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new v4t({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(U4t(A.type,A.options))}});k4t(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=F4t(e)}async#c(){this.#r!==I1&&(this.#r=C1,this.dispatchEvent(new Event("error")),await P4t(this.#o.reconnectionTime),this.#r===C1&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Wf.brandCheck(this,t),this.#r!==I1&&(this.#r=I1,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}},gUe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:C1,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:hUe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:I1,writable:!1}};Object.defineProperties(Ob,gUe);Object.defineProperties(Ob.prototype,gUe);Object.defineProperties(Ob.prototype,{close:CB,onerror:CB,onmessage:CB,onopen:CB,readyState:CB,url:CB,withCredentials:CB});Wf.converters.EventSourceInitDict=Wf.dictionaryConverter([{key:"withCredentials",converter:Wf.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Wf.converters.any}]);fUe.exports={EventSource:Ob,defaultReconnectionTime:dUe}});var IUe=f((awn,Mt)=>{"use strict";var H4t=gb(),mUe=wT(),q4t=fb(),G4t=g2e(),Y4t=pb(),J4t=xZ(),V4t=P2e(),W4t=Y2e(),EUe=tn(),DO=mr(),{InvalidArgumentError:RO}=EUe,Hb=xFe(),z4t=ST(),j4t=l$(),K4t=dMe(),X4t=g$(),Z4t=ZZ(),$4t=x_(),{getGlobalDispatcher:CUe,setGlobalDispatcher:eYt}=O_(),tYt=H_(),rYt=C_(),nYt=I_();Object.assign(mUe.prototype,Hb);Mt.exports.Dispatcher=mUe;Mt.exports.Client=H4t;Mt.exports.Pool=q4t;Mt.exports.BalancedPool=G4t;Mt.exports.Agent=Y4t;Mt.exports.ProxyAgent=J4t;Mt.exports.EnvHttpProxyAgent=V4t;Mt.expo Line truncated
\r
`),j5t=/\r\n/g,K5t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Jb(t){mPe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=pPe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=pPe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new W5t(z5t),this.ss.on("info",function(r,n,s,i){n&&!e.maxed&&(e.nread+i-s>=e.maxHeaderSize?(i=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=i-s,e.buffer+=n.toString("binary",s,i)),r&&e._finish()})}V5t(Jb,mPe);Jb.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Jb.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Jb.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Jb.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(j5t),e=t.length,r,n;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&n){this.header[n][this.header[n].length-1]+=t[s];continue}let i=t[s].indexOf(":");if(i===-1||i===0)return;if(r=K5t.exec(t[s]),n=r[1].toLowerCase(),this.header[n]=this.header[n]||[],this.header[n].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};EPe.exports=Jb});var Wee=f((Zwn,BPe)=>{"use strict";var Vee=B("node:stream").Writable,X5t=B("node:util").inherits,Z5t=Yee(),IPe=gPe(),$5t=CPe(),e6t=45,t6t=Buffer.from("-"),r6t=Buffer.from(`\r
`),n6t=function(){};function md(t){if(!(this instanceof md))return new md(t);if(Vee.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new $5t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}X5t(md,Vee);md.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else Vee.prototype.emit.apply(this,arguments)};md.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new IPe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(r6t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};md.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};md.prototype.setBoundary=function(t){let e=this;this._bparser=new Z5t(`\r
--`+t),this._bparser.on("info",function(r,n,s,i){e._oninfo(r,n,s,i)})};md.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",n6t),this._part.resume())};md.prototype._oninfo=function(t,e,r,n){let s,i=this,o=0,a,A=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+o<n;)if(e[r+o]===e6t)++o,++this._dashes;else{this._dashes&&(s=t6t),this._dashes=0;break}if(this._dashes===2&&(r+o<n&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+o,n)),this.reset(),this._finished=!0,i._parts===0&&(i._realFinish=!0,i.emit("finish"),i._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new IPe(this._partOpts),this._part._read=function(c){i._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<n&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(A=this._part.push(s)),A=this._part.push(e.slice(r,n)),A||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),a=this._hparser.push(e.slice(r,n)),!this._inHeader&&a!==void 0&&a<n&&this._oninfo(!1,e,r+a,n))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==n&&(++this._parts,this._part.on("end",function(){--i._parts===0&&(i._finished?(i._realFinish=!0,i.emit("finish"),i._realFinish=!1):i._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};md.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};BPe.exports=md});var YO=f((zee,bPe)=>{"use strict";var QPe=new TextDecoder("utf-8"),yPe=new Map([["utf-8",QPe],["utf8",QPe]]);function s6t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return D1.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return D1.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return D1.utf16le;case"base64":return D1.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return D1.other.bind(t)}}var D1={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),yPe.has(zee.toString()))try{return yPe.get(zee).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function i6t(t,e,r){return t&&s6t(r)(t,e)}bPe.exports=i6t});var Kee=f(($wn,DPe)=>{"use strict";var JO=YO(),wPe=/%[a-fA-F0-9][a-fA-F0-9]/g,o6t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function i9t(t,e){let{headersList:r}=e,n=(r.get("referrer-policy")??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(J6t.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function o9t(){return"allowed"}function a9t(){return"success"}function A9t(){return"success"}function c9t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function u9t(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&ste(t.origin)&&!ste(k1(t))&&(e=null);break;case"same-origin":KO(t,k1(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function l9t(t){return z6t.now()}function d9t(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 h9t(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function g9t(t){return{referrerPolicy:t.referrerPolicy}}function f9t(t){let e=t.referrerPolicy;Kb(e);let r=null;if(t.referrer==="client"){let a=W6t();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=rte(r),s=rte(r,!0);n.toString().length>4096&&(n=s);let i=KO(t,n),o=T1(n)&&!T1(t.url);switch(e){case"origin":return s??rte(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=k1(t);return KO(n,a)?n:T1(n)&&!T1(a)?"no-referrer":s}default:return o?"no-referrer":s}}function rte(t,e){return Kb(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function T1(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 p9t(t,e){if(jO===void 0)return!0;let r=r_e(e);if(r==="no metadata"||r.length===0)return!0;let n=E9t(r),s=C9t(r,n);for(let i of s){let o=i.algo,a=i.hash,A=jO.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)),I9t(A,a))return!0}return!1}var m9t=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function r_e(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=m9t.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ZPe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function E9t(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 C9t(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 I9t(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 B9t(t){}function KO(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Q9t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function y9t(t){return t.controller.state==="aborted"}function b9t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var ite={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(ite,null);function w9t(t){return ite[t.toLowerCase()]??t}function N9t(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Kb(typeof e=="string"),e}var S9t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function R9t(t,e,r){let n={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:i,kind:o,target:a}=n,A=a(),c=A.length;if(i>=c)return{value:void 0,done:!0};let u=A[i];return n.index=i+1,D9t(u,o)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,S9t),Object.setPrototypeOf({},s)}function D9t(t,e){let r;switch(e){case"key":{r=t[0];brea Line truncated
`||t===" "||t===" "}function ote(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&c_e(t[n]);n++);if(r)for(;s>0&&c_e(t[s]);s--);return t.slice(n,s+1)}function u_e(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function z9t(t,e=!0,r=!0){let n=0,s=t.length-1;if(e)for(;n<t.length&&u_e(t[n]);n++);if(r)for(;s>0&&u_e(t[s]);s--);return t.slice(n,s+1)}g_e.exports={dataURLProcessor:Y9t,URLSerializer:l_e,collectASequenceOfCodePoints:$O,collectASequenceOfCodePointsFast:Xb,stringPercentDecode:d_e,parseMIMEType:ate,collectAnHTTPQuotedString:h_e,serializeAMimeType:W9t}});var eH=f((lNn,C_e)=>{"use strict";var{Blob:m_e,File:f_e}=B("buffer"),{types:Ate}=B("util"),{kState:Sc}=Kf(),{isBlobLike:E_e}=Pu(),{webidl:fn}=Ha(),{parseMIMEType:j9t,serializeAMimeType:K9t}=Ed(),{kEnumerableProperty:p_e}=qr(),X9t=new TextEncoder,F1=class t extends m_e{constructor(e,r,n={}){fn.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=fn.converters["sequence<BlobPart>"](e),r=fn.converters.USVString(r),n=fn.converters.FilePropertyBag(n);let s=r,i=n.type,o;e:{if(i){if(i=j9t(i),i==="failure"){i="";break e}i=K9t(i).toLowerCase()}o=n.lastModified}super(Z9t(e,n),{type:i}),this[Sc]={name:s,lastModified:o,type:i}}get name(){return fn.brandCheck(this,t),this[Sc].name}get lastModified(){return fn.brandCheck(this,t),this[Sc].lastModified}get type(){return fn.brandCheck(this,t),this[Sc].type}},cte=class t{constructor(e,r,n={}){let s=r,i=n.type,o=n.lastModified??Date.now();this[Sc]={blobLike:e,name:s,type:i,lastModified:o}}stream(...e){return fn.brandCheck(this,t),this[Sc].blobLike.stream(...e)}arrayBuffer(...e){return fn.brandCheck(this,t),this[Sc].blobLike.arrayBuffer(...e)}slice(...e){return fn.brandCheck(this,t),this[Sc].blobLike.slice(...e)}text(...e){return fn.brandCheck(this,t),this[Sc].blobLike.text(...e)}get size(){return fn.brandCheck(this,t),this[Sc].blobLike.size}get type(){return fn.brandCheck(this,t),this[Sc].blobLike.type}get name(){return fn.brandCheck(this,t),this[Sc].name}get lastModified(){return fn.brandCheck(this,t),this[Sc].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(F1.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:p_e,lastModified:p_e});fn.converters.Blob=fn.interfaceConverter(m_e);fn.converters.BlobPart=function(t,e){if(fn.util.Type(t)==="Object"){if(E_e(t))return fn.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ate.isAnyArrayBuffer(t))return fn.converters.BufferSource(t,e)}return fn.converters.USVString(t,e)};fn.converters["sequence<BlobPart>"]=fn.sequenceConverter(fn.converters.BlobPart);fn.converters.FilePropertyBag=fn.dictionaryConverter([{key:"lastModified",converter:fn.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:fn.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=fn.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Z9t(t,e){let r=[];for(let n of t)if(typeof n=="string"){let s=n;e.endings==="native"&&(s=$9t(s)),r.push(X9t.encode(s))}else Ate.isAnyArrayBuffer(n)||Ate.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):E_e(n)&&r.push(n);return r}function $9t(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function eJt(t){return f_e&&t instanceof f_e||t instanceof F1||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}C_e.exports={File:F1,FileLike:cte,isFileLike:eJt}});var rH=f((dNn,b_e)=>{"use strict";var{isBlobLike:tH,toUSVString:tJt,makeIterator:ute}=Pu(),{kState:ia}=Kf(),{File:y_e,FileLike:I_e,isFileLike:rJt}=eH(),{webidl:wn}=Ha(),{Blob:nJt,File:lte}=B("buffer"),B_e=lte??y_e,Zb=class t{constructor(e){if(e!==void 0)throw wn.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[ia]=[]}append(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!tH(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=tH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?wn.converters.USVString(n):void 0;let s=Q_e(e,r,n);this[ia].push(s)}delete(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=wn.converters.USVString(e),this[ia]=this[ia].filter(r=>r.name!==e)}get(e){wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=wn.converters.USVString(e);let r=this[ia].findIndex(n=>n.name===e);return r===-1?null:this[ia][r].value}getAll(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=wn.converters.USVString(e),this[ia].filter(r=>r.name===e).map(r=>r.value)}has(e){return wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=wn.converters.USVString(e),this[ia].findIndex(r=>r.name===e)!==-1}set(e,r,n=void 0){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!tH(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=wn.converters.USVString(e),r=tH(r)?wn.converters.Blob(r,{strict:!1}):wn.converters.USVString(r),n=arguments.length===3?tJt(n):void 0;let s=Q_e(e,r,n),i=this[ia].findIndex(o=>o.name===e);i!==-1?this[ia]=[...this[ia].slice(0,i),s,...this[ia].slice(i+1).filter(o=>o.name!==e)]:this[ia].push(s)}entries(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","key")}values(){return wn.brandCheck(this,t),ute(()=>this[ia].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(wn.brandCheck(this,t),wn.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,s]of this)e.apply(r,[s,n,this])}};Zb.prototype[Symbol.iterator]=Zb.prototype.entries;Object.defineProperties(Zb.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function Q_e(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(rJt(e)||(e=e instanceof nJt?new B_e([e],"blob",{type:e.type}):new I_e(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=lte&&e instanceof lte||e instanceof y_e?new B_e([e],r,n):new I_e(e,r,n)}return{name:t,value:e}}b_e.exports={FormData:Zb}});var M1=f((hNn,F_e)=>{"use strict";var sJt=qPe(),$b=qr(),{ReadableStreamFrom:iJt,isBlobLike:w_e,isReadableStreamLike:oJt,readableStreamClose:aJt,createDeferredPromise:AJt,fullyReadBody:cJt}=Pu(),{FormData:N_e}=rH(),{kState:Zf}=Kf(),{webidl:dte}=Ha(),{DOMException:D_e,structuredClone:uJt}=AE(),{Blob:lJt,File:dJt}=B("buffer"),{kBodyUsed:hJt}=ts(),hte=B("assert"),{isErrored:gJt}=qr(),{isUint8Array:x_e,isArrayBuffer:fJt}=B("util/types"),{File:pJt}=eH(),{parseMIMEType:mJt,serializeAMimeType:EJt}=Ed(),gte;try{let t=B("node:crypto");gte=e=>t.randomInt(0,e)}catch{gte=t=>Math.floor(Math.random(t))}var Xf=globalThis.ReadableStream,S_e=dJt??pJt,nH=new TextEncoder,CJt=new TextDecoder;function T_e(t,e=!1){Xf||(Xf=B("stream/web").ReadableStream);let r=null;t instanceof Xf?r=t:w_e(t)?r=t.stream():r=new Xf({async pull(A){A.enqueue(typeof s=="string"?nH.encode(s):s),queueMicrotask(()=>aJt(A))},start(){},type:void 0}),hte(oJt(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(fJt(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($b.isFormDataLike(t)){let A=`----formdata-undici-0${`${gte(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=nH.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=nH.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=nH.encode(`--${A}--`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o="multipart/form-data; boundary="+A}else if(w_e(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($b.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof Xf?t:iJt(t)}if((typeof s=="string"||$b.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new Xf({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();return l?queueMicrotask(()=>{c.close()}):gJt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:s,length:i},o]}function IJt(t,e=!1){return Xf||(Xf=B("stream/web").ReadableStream),t instanceof Xf&&(hte(!$b.isDisturbed(t),"The body has already been consumed."),hte(!t.locked,"The stream is locked.")),T_e(t,e)}function BJt(t){let[e,r]=t.stream.tee(),n=uJt(r,{transfer:[r]}),[,s]=n.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*R_e(t){if(t)if(x_e(t))yield t;else{let e=t.stream;if($b.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[hJt]=!0,yield*e}}function fte(t){if(t.aborted)throw new D_e("The operation was aborted.","AbortError")}function QJt(t){return{blob(){return sH(this,r=>{let n=NJt(this);return n==="failure"?n="":n&&(n=EJt(n)),new lJt([r],{type:n})},t)},arrayBuffer(){return sH(this,r=>new Uint8Array(r).buffer,t)},text(){return sH(this,k_e,t)},json(){return sH(this,wJt,t)},async formData(){dte.brandCheck(this,t),fte(this[Zf]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let s=new N_e,i;try{i=new sJt({headers:n,preservePath:!0})}catch(a){throw new D_e(`${a}`,"AbortError")}i.on("field",(a,A)=>{s.append(a,A)}),i.on("file",(a,A,c,u,l)=>{let d=[];if(u==="base64"||u.toLowerCase()==="base64"){let h="";A.on("data",g=>{h+=g.toString().replace(/[\r\n]/gm,"");let p=h.length-h.length%4;d.push(Buffer.from(h.slice(0,p),"base64")),h=h.slice(p)}),A.on("end",()=>{d.push(Buffer.from(h,"base64")),s.append(a,new S_e(d,c,{type:l}))})}else A.on("data",h=>{d.push(h)}),A.on("end",()=>{s.append(a,new S_e(d,c,{type:l}))})});let o=new Promise((a,A)=>{i.on("finish",a),i.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of R_e(this[Zf].body))i.write(a);return i.end(),await o,s}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let i="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of R_e(this[Zf].body)){if(!x_e(a))throw new TypeError("Expected Uint8Array chunk");i+=o.decode(a,{stream:!0})}i+=o.decode(),n=new URLSearchParams(i)}catch(i){throw Object.assign(new TypeError,{cause:i})}let s=new N_e;for(let[i,o]of n)s.append(i,o);return s}else throw await Promise.resolve(),fte(this[Zf]),dte.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function yJt(t){Object.assign(t.prototype,QJt(t))}async function sH(t,e,r){if(dte.brandCheck(t,r),fte(t[Zf]),bJt(t[Zf].body))throw new TypeError("Body is unusable");let n=AJt(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Zf].body==null?(i(new Uint8Array),n.promise):(await cJt(t[Zf].body,i,s),n.promise)}function bJt(t){return t!=null&&(t.stream.locked||$b.isDisturbed(t.stream))}function k_e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),CJt.decode(t))}function wJt(t){return JSON.parse(k_e(t))}function NJt(t){let{headersList:e}=t[Zf],r=e.get("content-type");return r===null?"failure":mJt(r)}F_e.exports={extractBody:T_e,safelyExtractBody:IJt,cloneBody:BJt,mixinBody:yJt}});var U_e=f((gNn,L_e)=>{"use strict";var{InvalidArgumentError:Yn,NotSupportedError:SJt}=Un(),$f=B("assert"),{kHTTP2BuildRequest:RJt,kHTTP2CopyHeaders:DJt,kHTTP1BuildRequest:xJt}=ts(),SA=qr(),M_e=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,v_e=/[^\t\x20-\x7e\x80-\xff]/,TJt=/[^\u0021-\u00ff]/,Cd=Symbol("handler"),xi={},pte;try{let t=B("diagnostics_channel");xi.create=t.channel("undici:request:create"),xi.bodySent=t.channel("undici:request:bodySent"),xi.headers=t.channel("undici:request:headers"),xi.trailers=t.channel("undici:request:trailers"),xi.error=t.channel("undici:request:error")}catch{xi.create={hasSubscribers:!1},xi.bodySent={hasSubscribers:!1},xi.headers={hasSubscribers:!1},xi.trailers={hasSubscribers:!1},xi.error={hasSubscribers:!1}}var mte=class t{constructor(e,{path:r,method:n,body:s,headers:i,query:o,idempotent:a,blocking:A,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:d,throwOnError:h,expectContinue:g},p){if(typeof r!="string")throw new Yn("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsLine truncated
`),this.body=C.stream,this.contentLength=C.length}else SA.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);SA.validateHandler(p,n,c),this.servername=SA.getServerName(this.host),this[Cd]=p,xi.create.hasSubscribers&&xi.create.publish({request:this})}onBodySent(e){if(this[Cd].onBodySent)try{return this[Cd].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xi.bodySent.hasSubscribers&&xi.bodySent.publish({request:this}),this[Cd].onRequestSent)try{return this[Cd].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if($f(!this.aborted),$f(!this.completed),this.error)e(this.error);else return this.abort=e,this[Cd].onConnect(e)}onHeaders(e,r,n,s){$f(!this.aborted),$f(!this.completed),xi.headers.hasSubscribers&&xi.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[Cd].onHeaders(e,r,n,s)}catch(i){this.abort(i)}}onData(e){$f(!this.aborted),$f(!this.completed);try{return this[Cd].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n){return $f(!this.aborted),$f(!this.completed),this[Cd].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),$f(!this.aborted),this.completed=!0,xi.trailers.hasSubscribers&&xi.trailers.publish({request:this,trailers:e});try{return this[Cd].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xi.error.hasSubscribers&&xi.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Cd].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return v1(this,e,r),this}static[xJt](e,r,n){return new t(e,r,n)}static[RJt](e,r,n){let s=r.headers;r={...r,headers:null};let i=new t(e,r,n);if(i.headers={},Array.isArray(s)){if(s.length%2!==0)throw new Yn("headers array must be even");for(let o=0;o<s.length;o+=2)v1(i,s[o],s[o+1],!0)}else if(s&&typeof s=="object"){let o=Object.keys(s);for(let a=0;a<o.length;a++){let A=o[a];v1(i,A,s[A],!0)}}else if(s!=null)throw new Yn("headers must be an object or an array");return i}static[DJt](e){let r=e.split(`\r
`),n={};for(let s of r){let[i,o]=s.split(": ");o==null||o.length===0||(n[i]?n[i]+=`,${o}`:n[i]=o)}return n}};function SB(t,e,r){if(e&&typeof e=="object")throw new Yn(`invalid ${t} header`);if(e=e!=null?`${e}`:"",v_e.exec(e)!==null)throw new Yn(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function v1(t,e,r,n=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new Yn(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(v_e.exec(r)!==null)throw new Yn(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new Yn("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=SB(e,r,n):t.headers+=SB(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Yn("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new Yn("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Yn("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Yn("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new SJt("expect header not supported");if(M_e.exec(e)===null)throw new Yn("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)n?t.headers[e]?t.headers[e]+=`,${SB(e,r[s],n)}`:t.headers[e]=SB(e,r[s],n):t.headers+=SB(e,r[s]);else n?t.headers[e]=SB(e,r,n):t.headers+=SB(e,r)}}}L_e.exports=mte});var iH=f((fNn,P_e)=>{"use strict";var kJt=B("events"),Ete=class extends kJt{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};P_e.exports=Ete});var U1=f((pNn,__e)=>{"use strict";var FJt=iH(),{ClientDestroyedError:Cte,ClientClosedError:MJt,InvalidArgumentError:ew}=Un(),{kDestroy:vJt,kClose:LJt,kDispatch:Ite,kInterceptors:RB}=ts(),tw=Symbol("destroyed"),L1=Symbol("closed"),ep=Symbol("onDestroyed"),rw=Symbol("onClosed"),oH=Symbol("Intercepted Dispatch"),Bte=class extends FJt{constructor(){super(),this[tw]=!1,this[ep]=null,this[L1]=!1,this[rw]=[]}get destroyed(){return this[tw]}get closed(){return this[L1]}get interceptors(){return this[RB]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[RB][r]!="function")throw new ew("interceptor must be an function")}this[RB]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((i,o)=>i?s(i):n(o))});if(typeof e!="function")throw new ew("invalid callback");if(this[tw]){queueMicrotask(()=>e(new Cte,null));return}if(this[L1]){this[rw]?this[rw].push(e):queueMicrotask(()=>e(null,null));return}this[L1]=!0,this[rw].push(e);let r=()=>{let n=this[rw];this[rw]=null;for(let s=0;s<n.length;s++)n[s](null,null)};this[LJt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,i)=>{this.destroy(e,(o,a)=>o?i(o):s(a))});if(typeof r!="function")throw new ew("invalid callback");if(this[tw]){this[ep]?this[ep].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new Cte),this[tw]=!0,this[ep]=this[ep]||[],this[ep].push(r);let n=()=>{let s=this[ep];this[ep]=null;for(let i=0;i<s.length;i++)s[i](null,null)};this[vJt](e).then(()=>{queueMicrotask(n)})}[oH](e,r){if(!this[RB]||this[RB].length===0)return this[oH]=this[Ite],this[Ite](e,r);let n=this[Ite].bind(this);for(let s=this[RB].length-1;s>=0;s--)n=this[RB][s](n);return this[oH]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new ew("handler must be an object");try{if(!e||typeof e!="object")throw new ew("opts must be an object.");if(this[tw]||this[ep])throw new Cte;if(this[L1])throw new MJt;return this[oH](e,r)}catch(n){if(typeof r.onError!="function")throw new ew("invalid onError method");return r.onError(n),!1}}};__e.exports=Bte});var P1=f((CNn,q_e)=>{"use strict";var UJt=B("net"),O_e=B("assert"),H_e=qr(),{InvalidArgumentError:PJt,ConnectTimeoutError:_Jt}=Un(),Qte,yte;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?yte=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:yte=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function OJt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new PJt("maxCachedSessions must be a positive integer or zero");let i={path:r,...s},o=new yte(e??100);return n=n??1e4,t Line truncated
`,this[iOe]=A??3e5,this[sOe]=s??3e5,this[Y1]=I??!0,this[pVt]=w,this[J1]=z,this[uE]=null,this[aOe]=W>-1?W:-1,this[Fh]="h1",this[Dc]=null,this[gH]=oe?{openStreams:0,maxConcurrentStreams:Z??100}:null,this[AOe]=`${this[Oo].hostname}${this[Oo].port?`:${this[Oo].port}`:""}`,this[rs]=[],this[ns]=0,this[Rc]=0}get pipelining(){return this[dE]}set pipelining(e){this[dE]=e,xc(this,!0)}get[TB](){return this[rs].length-this[Rc]}get[ks](){return this[Rc]-this[ns]}get[xB](){return this[rs].length-this[ns]}get[fVt](){return!!this[Vs]&&!this[sw]&&!this[Vs].destroyed}get[Tte](){let e=this[Vs];return e&&(e[qa]||e[np]||e[ow])||this[xB]>=(this[dE]||1)||this[TB]>0}[gVt](e){dOe(this),this.once("connect",e)}[CVt](e,r){let n=e.origin||this[Oo].origin,s=this[Fh]==="h2"?xte[BVt](n,e,r):xte[yVt](n,e,r);return this[rs].push(s),this[DB]||(ft.bodyLength(s.body)==null&&ft.isIterable(s.body)?(this[DB]=1,process.nextTick(xc,this)):xc(this,!0)),this[DB]&&this[lE]!==2&&this[Tte]&&(this[lE]=2),this[lE]<2}async[mVt](){return new Promise(e=>{this[xB]?this[uE]=e:e(null)})}async[EVt](e){return new Promise(r=>{let n=this[rs].splice(this[Rc]);for(let i=0;i<n.length;i++){let o=n[i];Ga(this,o,e)}let s=()=>{this[uE]&&(this[uE](),this[uE]=null),r()};this[Dc]!=null&&(ft.destroy(this[Dc],e),this[Dc]=null,this[gH]=null),this[Vs]?ft.destroy(this[Vs].on("close",s),e):queueMicrotask(s),xc(this)})}};function TVt(t){Ve(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vs][Ho]=t,EH(this[kh],t)}function kVt(t,e,r){let n=new Th(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[Vs][Ho]=n,EH(this[kh],n))}function FVt(){ft.destroy(this,new iw("other side closed")),ft.destroy(this[Vs],new iw("other side closed"))}function MVt(t){let e=this[kh],r=new Th(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Vs]=null,e[Dc]=null,e.destroyed){Ve(this[TB]===0);let n=e[rs].splice(e[ns]);for(let s=0;s<n.length;s++){let i=n[s];Ga(this,i,r)}}else if(e[ks]>0){let n=e[rs][e[ns]];e[rs][e[ns]++]=null,Ga(e,n,r)}e[Rc]=e[ns],Ve(e[ks]===0),e.emit("disconnect",e[Oo],[e],r),xc(e)}var Rh=Y_e(),vVt=cH(),LVt=Buffer.alloc(0);async function UVt(){let t=process.env.JEST_WORKER_ID?Ste():void 0,e;try{e=await WebAssembly.compile(Buffer.from(X_e(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Ste(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onStatus(new uH(Dh.buffer,i,s))||0},wasm_on_message_begin:r=>(Ve.strictEqual(qi.ptr,r),qi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onHeaderField(new uH(Dh.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onHeaderValue(new uH(Dh.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ve.strictEqual(qi.ptr,r),qi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ve.strictEqual(qi.ptr,r);let i=n-xh+Dh.byteOffset;return qi.onBody(new uH(Dh.buffer,i,s))||0},wasm_on_message_complete:r=>(Ve.strictEqual(qi.ptr,r),qi.onMessageComplete()||0)}})}var Dte=null,Mte=UVt();Mte.catch();var qi=null,Dh=null,lH=0,xh=null,aw=1,hH=2,vte=3,Lte=class{constructor(e,r,{exports:n}){Ve(Number.isFinite(e[dH])&&e[dH]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Rh.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.headersMaxSize=e[dH],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[aOe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(Rte.clearTimeout(this.timeout),e?(this.timeout=Rte.setTimeout(PVt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ve(this.ptr!=null),Ve(qi==null),this.llhttp.llhttp_resume(this.ptr),Ve(this.timeoutType===hH),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||LVt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ve(this.ptr!=null),Ve(qi==null),Ve(!this.paused);let{socket:r,llhttp:n}=this;e.length>lH&&(xh&&n.free(xh),lH=Math.ceil(e.length/4096)*4096,xh=n.malloc(lH)),new Uint8Array(n.memory.buffer,xh,lH).set(e);try{let s;try{Dh=e,qi=this,s=n.llhttp_execute(this.ptr,xh,e.length)}catch(o){throw o}finally{qi=null,Dh=null}let i=n.llhttp_get_error_pos(this.ptr)-xh;if(s===Rh.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(i));else if(s===Rh.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(i));else if(s!==Rh.ERROR.OK){let o=n.llhttp_get_error_reason(this.ptr),a="";if(o){let A=new Uint8Array(n.memory.buffer,o).indexOf(0);a="Response do Line truncated
`;return typeof i=="string"?g+=`host: ${i}\r
`:g+=t[tOe],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[dE]&&!h[qa]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),oa.sendHeaders.hasSubscribers&&oa.sendHeaders.publish({request:e,headers:g,socket:h}),!r||l===0?(d===0?h.write(`${g}content-length: 0\r
\r
`,"latin1"):(Ve(d===null,"no body must not have content length"),h.write(`${g}\r
`,"latin1")),e.onRequestSent()):ft.isBuffer(r)?(Ve(d===r.byteLength,"buffer body must have content length"),h.cork(),h.write(`${g}content-length: ${d}\r
\r
`,"latin1"),h.write(r),h.uncork(),e.onBodySent(r),e.onRequestSent(),u||(h[qa]=!0)):ft.isBlobLike(r)?typeof r.stream=="function"?pH({body:r.stream(),client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):fOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isStream(r)?gOe({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):ft.isIterable(r)?pH({body:r,client:t,request:e,socket:h,contentLength:d,header:g,expectsPayload:u}):Ve(!1),!0}function HVt(t,e,r){let{body:n,method:s,path:i,host:o,upgrade:a,expectContinue:A,signal:c,headers:u}=r,l;if(typeof u=="string"?l=xte[QVt](u.trim()):l=u,a)return Ga(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||Ga(t,r,I||new Pte)})}catch(I){Ga(t,r,I)}if(r.aborted)return!1;let d,h=t[gH];if(l[bVt]=o||t[AOe],l[wVt]=s,s==="CONNECT")return e.ref(),d=e.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++h.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++h.openStreams}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),!0;l[NVt]=i,l[SVt]="https";let g=s==="PUT"||s==="POST"||s==="PATCH";n&&typeof n.read=="function"&&n.read(0);let p=ft.bodyLength(n);if(p==null&&(p=r.contentLength),(p===0||!g)&&(p=null),hOe(s)&&p>0&&r.contentLength!=null&&r.contentLength!==p){if(t[Y1])return Ga(t,r,new rp),!1;process.emitWarning(new rp)}p!=null&&(Ve(n,"no body must not have content length"),l[RVt]=`${p}`),e.ref();let C=s==="GET"||s==="HEAD";return A?(l[DVt]="100-continue",d=e.request(l,{endStream:C,signal:c}),d.once("continue",m)):(d=e.request(l,{endStream:C,signal:c}),m()),++h.openStreams,d.once("response",I=>{let{[xVt]:y,...w}=I;r.onHeaders(Number(y),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{h.openStreams-=1,h.openStreams===0&&e.unref()}),d.once("error",function(I){t[Dc]&&!t[Dc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,I))}),d.once("frameError",(I,y)=>{let w=new Th(`HTTP/2: "frameError" received - type ${I}, code ${y}`);Ga(t,r,w),t[Dc]&&!t[Dc].destroyed&&!this.closed&&!this.destroyed&&(h.streams-=1,ft.destroy(d,w))}),!0;function m(){n?ft.isBuffer(n)?(Ve(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):ft.isBlobLike(n)?typeof n.stream=="function"?pH({client:t,request:r,contentLength:p,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Vs],header:""}):fOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,h2stream:d,header:"",socket:t[Vs]}):ft.isStream(n)?gOe({body:n,client:t,request:r,contentLength:p,expectsPayload:g,socket:t[Vs],h2stream:d,header:""}):ft.isIterable(n)?pH({body:n,client:t,request:r,contentLength:p,expectsPayload:g,header:"",h2stream:d,socket:t[Vs]}):Ve(!1):r.onRequestSent()}}function gOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){if(Ve(i!==0||r[ks]===0,"stream body cannot be pipelined"),r[Fh]==="h2"){let p=function(C){n.onBodySent(C)},g=sVt(e,t,C=>{C?(ft.destroy(e,C),ft.destroy(t,C)):n.onRequestSent()});g.on("data",p),g.once("end",()=>{g.removeListener("data",p),ft.destroy(g)});return}let A=!1,c=new mH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){ft.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(A)return;let g=new Pte;queueMicrotask(()=>h(g))},h=function(g){if(!A){if(A=!0,Ve(s.destroyed||s[np]&&r[ks]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("error",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ft.destroy(e,g):ft.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)}async function fOe({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i===e.size,"blob body must have content length");let A=r[Fh]==="h2";try{if(i!=null&&i!==e.size)throw new rp;let c=Buffer.from(await e.arrayBuffer());A?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork()),n.onBodySent(c),n.onRequestSent(),a||(s[qa]=!0),xc(r)}catch(c){ft.destroy(A?t:s,c)}}async function pH({h2stream:t,body:e,client:r,request:n,socket:s,contentLength:i,header:o,expectsPayload:a}){Ve(i!==0||r[ks]===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[Ho]?h(s[Ho]):A=d});if(r[Fh]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(s[Ho])throw s[Ho];let h=t.write(d);n.onBodySent(d),h||await u()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new mH({socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ho])throw s[Ho];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var mH=class{constructor({socket:e,request:r,contentLength:n,client:s,expectsPayload:i,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=i,this.header=o,e[np]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Ho])throw r[Ho];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[Y1])throw new rp;process.emitWarning(new rp)}r.cork(),o===0&&(a||(r[qa]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Js].timeout&&r[Js].timeoutType===aw&&r[Js].timeout.refresh&&r[Js].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[np]=!1,e[Ho])throw e[Ho];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[Y1])throw new rp;process.emitWarning(new rp)}e[Js].timeout&&e[Js].timeoutType===aw&&e[Js].timeout.refresh&&e[Js].timeout.refresh(),xc(n)}}destroy(e){let{socket:r,client:n}=this;r[np]=!1,e&&(Ve(n[ks]<=1,"pipeline should only contain this request"),ft.destroy(r,e))}};function Ga(t,e,r){try{e.onError(r),Ve(e.aborted)}catch(n){t.emit("error",n)}}pOe.exports=Fte});var EOe=f((RNn,mOe)=>{"use strict";var CH=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)}};mOe.exports=class{constructor(){this.head=this.tail=new CH}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new CH),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var IOe=f((DNn,COe)=>{var{kFree:qVt,kConnected:GVt,kPending:YVt,kQueued:JVt,kRunning:VVt,kSize:WVt}=ts(),kB=Symbol("pool"),_te=class{constructor(e){this[kB]=e}get connected(){return this[kB][GVt]}get free(){return this[kB][qVt]}get pending(){return this[kB][YVt]}get queued(){return this[kB][JVt]}get running(){return this[kB][VVt]}get size(){return this[kB][WVt]}};COe.exports=_te});var Jte=f((xNn,xOe)=>{"use strict";var zVt=U1(),jVt=EOe(),{kConnected:Ote,kSize:BOe,kRunning:QOe,kPending:yOe,kQueued:W1,kBusy:KVt,kFree:XVt,kUrl:ZVt,kClose:$Vt,kDestroy:eWt,kDispatch:tWt}=ts(),rWt=IOe(),RA=Symbol("clients"),Ya=Symbol("needDrain"),z1=Symbol("queue"),Hte=Symbol("closed resolve"),qte=Symbol("onDrain"),bOe=Symbol("onConnect"),wOe=Symbol("onDisconnect"),NOe=Symbol("onConnectionError"),Gte=Symbol("get dispatcher"),ROe=Symbol("add client"),DOe=Symbol("remove client"),SOe=Symbol("stats"),Yte=class extends zVt{constructor(){super(),this[z1]=new jVt,this[RA]=[],this[W1]=0;let e=this;this[qte]=function(n,s){let i=e[z1],o=!1;for(;!o;){let a=i.shift();if(!a)break;e[W1]--,o=!this.dispatch(a.opts,a.handler)}this[Ya]=o,!this[Ya]&&e[Ya]&&(e[Ya]=!1,e.emit("drain",n,[e,...s])),e[Hte]&&i.isEmpty()&&Promise.all(e[RA].map(a=>a.close())).then(e[Hte])},this[bOe]=(r,n)=>{e.emit("connect",r,[e,...n])},this[wOe]=(r,n,s)=>{e.emit("disconnect",r,[e,...n],s)},this[NOe]=(r,n,s)=>{e.emit("connectionError",r,[e,...n],s)},this[SOe]=new rWt(this)}get[KVt](){return this[Ya]}get[Ote](){return this[RA].filter(e=>e[Ote]).length}get[XVt](){return this[RA].filter(e=>e[Ote]&&!e[Ya]).length}get[yOe](){let e=this[W1];for(let{[yOe]:r}of this[RA])e+=r;return e}get[QOe](){let e=0;for(let{[QOe]:r}of this[RA])e+=r;return e}get[BOe](){let e=this[W1];for(let{[BOe]:r}of this[RA])e+=r;return e}get stats(){return this[SOe]}async[$Vt](){return this[z1].isEmpty()?Promise.all(this[RA].map(e=>e.close())):new Promise(e=>{this[Hte]=e})}async[eWt](e){for(;;){let r=this[z1].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[RA].map(r=>r.destroy(e)))}[tWt](e,r){let n=this[Gte]();return n?n.dispatch(e,r)||(n[Ya]=!0,this[Ya]=!this[Gte]()):(this[Ya]=!0,this[z1].push({opts:e,handler:r}),this[W1]++),!this[Ya]}[ROe](e){return e.on("drain",this[qte]).on("connect",this[bOe]).on("disconnect",this[wOe]).on("connectionError",this[NOe]),this[RA].push(e),this[Ya]&&process.nextTick(()=>{this[Ya]&&this[qte](e[ZVt],[this,e])}),this}[DOe](e){e.close(()=>{let r=this[RA].indexOf(e);r!==-1&&this[RA].splice(r,1)}),this[Ya]=this[RA].some(r=>!r[Ya]&&r.closed!==!0&&r.destroyed!==!0)}};xOe.exports={PoolBase:Yte,kClients:RA,kNeedDrain:Ya,kAddClient:ROe,kRemoveClient:DOe,kGetDispatcher:Gte}});var Aw=f((TNn,FOe)=>{"use strict";var{PoolBase:nWt,kClients:IH,kNeedDrain:sWt,kAddClient:iWt,kGetDispatcher:oWt}=Jte(),aWt=V1(),{InvalidArgumentError:Vte}=Un(),Wte=qr(),{kUrl:TOe,kInterceptors:AWt}=ts(),cWt=P1(),zte=Symbol("options"),jte=Symbol("connections"),kOe=Symbol("factory");function uWt(t,e){return new aWt(t,e)}var Kte=class extends nWt{constructor(e,{connections:r,factory:n=uWt,connect:s,connectTimeout:i,tls:o,maxCachedSessions:a,socketPath:A,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...d}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new Vte("invalid connections");if(typeof n!="function")throw new Vte("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new Vte("connect must be a function or an object");typeof s!="function"&&(s=cWt({...o,maxCachedSessions:a,allowH2:l,socketPath:A,timeout:i,...Wte.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[AWt]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[],this[jte]=r||null,this[TOe]=Wte.parseOrigin(e),this[zte]={...Wte.deepClone(d),connect:s,allowH2:l},this[zte].interceptors=d.interceptors?{...d.interceptors}:void 0,this[kOe]=n,this.on("con Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lqe.exports=Mre});var Eqe=f((rSn,mqe)=>{"use strict";var{kProxy:ljt,kClose:djt,kDestroy:hjt,kInterceptors:gjt}=ts(),{URL:hqe}=B("url"),gqe=K1(),fjt=Aw(),pjt=U1(),{InvalidArgumentError:tk,RequestAbortedError:mjt}=Un(),fqe=P1(),$1=Symbol("proxy agent"),HH=Symbol("proxy client"),ek=Symbol("proxy headers"),vre=Symbol("request tls settings"),Ejt=Symbol("proxy tls settings"),pqe=Symbol("connect endpoint function");function Cjt(t){return t==="https:"?443:80}function Ijt(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new tk("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Bjt(t,e){return new fjt(t,e)}var Lre=class extends pjt{constructor(e){if(super(e),this[ljt]=Ijt(e),this[$1]=new gqe(e),this[gjt]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new tk("Proxy opts.uri is mandatory");let{clientFactory:r=Bjt}=e;if(typeof r!="function")throw new tk("Proxy opts.clientFactory must be a function.");this[vre]=e.requestTls,this[Ejt]=e.proxyTls,this[ek]=e.headers||{};let n=new hqe(e.uri),{origin:s,port:i,host:o,username:a,password:A}=n;if(e.auth&&e.token)throw new tk("opts.auth cannot be used in combination with opts.token");e.auth?this[ek]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ek]["proxy-authorization"]=e.token:a&&A&&(this[ek]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);let c=fqe({...e.proxyTls});this[pqe]=fqe({...e.requestTls}),this[HH]=r(n,{connect:c}),this[$1]=new gqe({...e,connect:async(u,l)=>{let d=u.host;u.port||(d+=`:${Cjt(u.protocol)}`);try{let{socket:h,statusCode:g}=await this[HH].connect({origin:s,port:i,path:d,signal:u.signal,headers:{...this[ek],host:o}});if(g!==200&&(h.on("error",()=>{}).destroy(),l(new mjt(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,h);return}let p;this[vre]?p=this[vre].servername:p=u.servername,this[pqe]({...u,servername:p,httpSocket:h},l)}catch(h){l(h)}}})}dispatch(e,r){let{host:n}=new hqe(e.origin),s=Qjt(e.headers);return yjt(s),this[$1].dispatch({...e,headers:{...s,host:n}},r)}async[djt](){await this[$1].close(),await this[HH].close()}async[hjt](){await this[$1].destroy(),await this[HH].destroy()}};function Qjt(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function yjt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new tk("Proxy-Authorization should be sent in ProxyAgent constructor")}mqe.exports=Lre});var yqe=f((nSn,Qqe)=>{var PB=B("assert"),{kRetryHandlerDefaultRetry:Cqe}=ts(),{RequestRetryError:qH}=Un(),{isDisturbed:Iqe,parseHeaders:bjt,parseRangeHeader:Bqe}=qr();function wjt(t){let e=Date.now();return new Date(t).getTime()-e}var Ure=class t{constructor(e,r){let{retryOptions:n,...s}=e,{retry:i,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:d,statusCodes:h}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:i??t[Cqe],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:h??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Cqe](e,{state:r,opts:n},s){let{statusCode:i,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:u,timeout:l,maxTimeout:d,timeoutFactor:h,statusCodes:g,errorCodes:p,methods:C}=c,{counter:m,currentTimeout:I}=r;if(I=I!=null&&I>0?I:l,o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!p.includes(o)){s(e);return}if(Array.isArray(C)&&!C.includes(A)){s(e);return}if(i!=null&&Array.isArray(g)&&!g.includes(i)){s(e);return}if(m>u){s(e);return}let y=a!=null&&a["retry-after"];y&&(y=Number(y),y=isNaN(y)?wjt(y):y*1e3);let w=y>0?Math.min(y,d):Math.min(I*h**m,d);r.currentTimeout=w,setTimeout(()=>s(null),w)}onHeaders(e,r,n,s){let i=bjt(r);if(this.retryCount+=1,e>=300)return this.abort(new qH("Request failed",e,{headers:i,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let a=Bqe(i["content-range"]);if(!a)return this.abort(new qH("Content-Range mismatch",e,{headers:i,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==i.etag)return this.abort(new qH("ETag mismatch",e,{headers:i,count:this.retryCount})),!1;let{start:A,size:c,en Line truncated
Error Code : ${o.statusCode}
Error Message: ${o.message}`)})).result)===null||r===void 0?void 0:r.value;if(!i)throw new Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return k8e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,F8e.debug)(`ID token url is ${r}`);let n=yield t.getCall(r);return(0,F8e.setSecret)(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};Fw.OidcClient=Nne});var xne=f(FA=>{"use strict";var Sne=FA&&FA.__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(FA,"__esModule",{value:!0});FA.summary=FA.markdownSummary=FA.SUMMARY_DOCS_URL=FA.SUMMARY_ENV_VAR=void 0;var fZt=B("os"),Rne=B("fs"),{access:pZt,appendFile:mZt,writeFile:EZt}=Rne.promises;FA.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";FA.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var Dne=class{constructor(){this._buffer=""}filePath(){return Sne(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[FA.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${FA.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield pZt(e,Rne.constants.R_OK|Rne.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Sne(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?EZt:mZt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Sne(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(fZt.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:A,colspan:c,rowspan:u}=o,l=a?"th":"td",d=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,A,d)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},o=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},v8e=new Dne;FA.markdownSummary=v8e;FA.summary=v8e});var L8e=f(MA=>{"use strict";var CZt=MA&&MA.__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]})),IZt=MA&&MA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BZt=MA&&MA.__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)&&CZt(e,t,r);return IZt(e,t),e};Object.defineProperty(MA,"__esModule",{value:!0});MA.toPlatformPath=MA.toWin32Path=MA.toPosixPath=void 0;var QZt=BZt(B("path"));function yZt(t){return t.replace(/[\\]/g,"/")}MA.toPosixPath=yZt;function bZt(t){return t.replace(/[/]/g,"\\")}MA.toWin32Path=bZt;function wZt(t){return t.replace(/[/\\]/g,QZt.sep)}MA.toPlatformPath=wZt});var kne=f(Ze=>{"use strict";var NZt=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),tLine truncated
`);return{name:e,version:r}});Gr.platform=e3e.default.platform();Gr.arch=e3e.default.arch();Gr.isWindows=Gr.platform==="win32";Gr.isMacOS=Gr.platform==="darwin";Gr.isLinux=Gr.platform==="linux";function s$t(){return Pq(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gr.isWindows?t$t():Gr.isMacOS?r$t():n$t()),{platform:Gr.platform,arch:Gr.arch,isWindows:Gr.isWindows,isMacOS:Gr.isMacOS,isLinux:Gr.isLinux})})}Gr.getDetails=s$t});var Uc=f(We=>{"use strict";var i$t=We&&We.__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]})),o$t=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Une=We&&We.__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)&&i$t(e,t,r);return o$t(e,t),e},r3e=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.platform=We.toPlatformPath=We.toWin32Path=We.toPosixPath=We.markdownSummary=We.summary=We.getIDToken=We.getState=We.saveState=We.group=We.endGroup=We.startGroup=We.info=We.notice=We.warning=We.error=We.debug=We.isDebug=We.setFailed=We.setCommandEcho=We.setOutput=We.getBooleanInput=We.getMultilineInput=We.getInput=We.addPath=We.setSecret=We.exportVariable=We.ExitCode=void 0;var Ju=HUe(),VB=YUe(),vw=UO(),n3e=Une(B("os")),a$t=Une(B("path")),A$t=M8e(),Lne;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Lne||(We.ExitCode=Lne={}));function c$t(t,e){let r=(0,vw.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,VB.issueFileCommand)("ENV",(0,VB.prepareKeyValueMessage)(t,e));(0,Ju.issueCommand)("set-env",{name:t},r)}We.exportVariable=c$t;function u$t(t){(0,Ju.issueCommand)("add-mask",{},t)}We.setSecret=u$t;function l$t(t){process.env.GITHUB_PATH||""?(0,VB.issueFileCommand)("PATH",t):(0,Ju.issueCommand)("add-path",{},t),process.env.PATH=`${t}${a$t.delimiter}${process.env.PATH}`}We.addPath=l$t;function Pne(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}We.getInput=Pne;function d$t(t,e){let r=Pne(t,e).split(`
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}We.getMultilineInput=d$t;function h$t(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=Pne(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}We.getBooleanInput=h$t;function g$t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,VB.issueFileCommand)("OUTPUT",(0,VB.prepareKeyValueMessage)(t,e));process.stdout.write(n3e.EOL),(0,Ju.issueCommand)("set-output",{name:t},(0,vw.toCommandValue)(e))}We.setOutput=g$t;function f$t(t){(0,Ju.issue)("echo",t?"on":"off")}We.setCommandEcho=f$t;function p$t(t){process.exitCode=Lne.Failure,s3e(t)}We.setFailed=p$t;function m$t(){return process.env.RUNNER_DEBUG==="1"}We.isDebug=m$t;function E$t(t){(0,Ju.issueCommand)("debug",{},t)}We.debug=E$t;function s3e(t,e={}){(0,Ju.issueCommand)("error",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.error=s3e;function C$t(t,e={}){(0,Ju.issueCommand)("warning",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.warning=C$t;function I$t(t,e={}){(0,Ju.issueCommand)("notice",(0,vw.toCommandProperties)(e),t instanceof Error?t.toString():t)}We.notice=I$t;function B$t(t){process.stdout.write(t+n3e.EOL)}We.info=B$t;function i3e(t){(0,Ju.issue)("group",t)}We.startGroup=i3e;function o3e(){(0,Ju.issue)("endgroup")}We.endGroup=o3e;function Q$t(t,e){return r3e(this,void 0,void 0,function*(){i3e(t);let r;try{r=yield e()}finally{o3e()}return r})}We.group=Q$t;function y$t(t,e){if(process.env.GITHUB_STATE||"")return(0,VB.issueFileCommand)("STATE",(0,VB.prepareKeyValueMessage)(t,e));(0,Ju.issueCommand)("save-state",{name:t},(0,vw.toCommandValue)(e))}We.saveState=y$t;function b$t(t){return process.env[`STATE_${t}`]||""}We.getState=b$t;function w$t(t){return r3e(this,void 0,void 0,function*(){return yield A$t.OidcClient.getIDToken(t)})}We.getIDToken=w$t;var N$t=xne();Object.defineProperty(We,"summary",{enumerable:!0,get:function(){return N$t.summary}});var S$t=xne();Object.defineProperty(We,"markdownSummary",{enumerable:!0,get:function(){return S$t.markdownSummary}});var _ne=L8e();Object.defineProperty(We,"toPosixPath",{enumerable:!0,get:function(){return _ne.toPosixPath}});Object.defineProperty(We,"toWin32Path",{enumerable:!0,get:function(){return _ne.toWin32Path}});Object.defineProperty(We,"toPlatformPath",{enumerable:!0,get:function(){return _ne.toPlatformPath}});We.platform=Une(t3e())});var a3e=f(Hh=>{"use strict";var R$t=Hh&&Hh.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),D$t=Hh&&Hh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x$t=Hh&&Hh.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&R$t(e,t,r);return D$t(e,t),e};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.getOptions=void 0;var One=x$t(Uc());function T$t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,One.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,One.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,One.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Hh.getOptions=T$t});var Oq=f(zs=>{"use strict";var k$t=zs&&zs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),F$t=zs&&zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),M$t=zs&&zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&k$t(e,t,r);return F$t(e,t),e},v$t=zs&&zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zs,"__esModule",{value:!0});zs.safeTrimTrailingSeparator=zs.normalizeSeparators=zs.hasRoot=zs.hasAbsoluteRoot=zs.ensureAbsoluteRoot=zs.dirname=void 0;var _q=M$t(B("path")),WB=v$t(B("assert")),IE=process.platform==="win32";function L$t(t){if(t=qne(t),IE&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=_q.dirname(t);return IE&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=qne(e)),e}zs.dirname=L$t;function U$t(t,e){if(WB.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),WB.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hne(e))return e;if(IE){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return WB.default(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.endsLine truncated
%s`,H,H,I,n);var z=I.type==="*"?Vne:I.type==="?"?Jne:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+z+"\\("+H}g(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var W=a.length-1;W>-1;W--){var U=a[W],ee=n.slice(0,U.reStart),oe=n.slice(U.reStart,U.reEnd-8),Z=n.slice(U.reEnd-8,U.reEnd),he=n.slice(U.reEnd);Z+=he;var Se=ee.split("(").length-1,Je=he;for(p=0;p<Se;p++)Je=Je.replace(/\)[+*?]?/,"");he=Je;var He="";he===""&&e!==Gq&&(He="$");var $t=ee+oe+he+He+Z;n=$t}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=d+n),e===Gq)return[n,s];if(!s)return der(t);var en=r.nocase?"i":"";try{var er=new RegExp("^"+n+"$",en)}catch{return new RegExp("$.")}return er._glob=t,er._src=n,er}Pc.makeRe=function(t,e){return new Go(t,e||{}).makeRe()};Go.prototype.makeRe=ler;function ler(){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?Vne:e.dot?ner:ser,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Wne?r:typeof o=="string"?her(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}Pc.match=function(t,e,r){r=r||{};var n=new Go(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Go.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;mk.sep!=="/"&&(e=e.split(mk.sep).join("/")),e=e.split(S3e),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};Go.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var A=e[i],c=t[s];if(this.debug(e,A,c),A===!1)return!1;if(A===Wne){this.debug("GLOBSTAR",[e,A,c]);var u=s,l=i+1;if(l===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,l,d),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===o))}var h;if(typeof A=="string"?(h=c===A,this.debug("string match",A,c,h)):(h=c.match(A),this.debug("pattern match",A,c,h)),!h)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function der(t){return t.replace(/\\(.)/g,"$1")}function her(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var T3e=f(Vu=>{"use strict";var ger=Vu&&Vu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fer=Vu&&Vu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x3e=Vu&&Vu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&ger(e,t,r);return fer(e,t),e},per=Vu&&Vu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.Path=void 0;var Ek=x3e(B("path")),QE=x3e(Oq()),Ck=per(B("assert")),mer=process.platform==="win32",jne=class{constructor(e){if(this.segments=[],typeof e=="string")if(Ck.default(e,"Parameter 'itemPath' must not be empty"),e=QE.safeTrimTrailingSeparator(e),!QE.hasRoot(e))this.segments=e.split(Ek.sep);else{let r=e,n=QE.dirname(r);for(;n!==r;){let s=Ek.basename(r);this.segments.unshift(s),r=n,n=QE.dirname(r)}this.segments.unshift(r)}else{Ck.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];Ck.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=QE.normalizeSeparators(e[r]),r===0&&QE.hasRoot(n)?(n=QE.safeTrimTrailingSeparator(n),Ck.default(n===QE.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(Ck.default(!n.includes(Ek.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(Ek.sep)||mer&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=Ek.sep,e+=this.segments[n];return e}};Vu.Path=jne});var k3e=f(Wu=>{"use strict";var Eer=Wu&&Wu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Cer=Wu&&Wu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zne=Wu&&Wu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Eer(e,t,r);return Cer(e,t),e},Ier=Wu&&Wu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Pattern=void 0;var Ber=Zne(B("os")),Ik=Zne(B("path")),_A=Zne(Oq()),zB=Ier(B("assert")),Qer=zne(),Kne=Hq(),Jq=T3e(),Ap=process.platform==="win32",Xne=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],zB.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);zB.default(c&&_A.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),i=new Jq.Path(n).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!");)this.negate=!this.negate,i=i.substr(1).trim();i=t.fixupPattern(i,s),this.segments=new Jq.Path(i).segments,this.trailingSeparator=_A.normalizeSeparators(i).endsWith(Ik.sep),i=_A.safeTrimTrailingSeparator(i);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new Jq.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),Ap?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:Ap,nocomment:!0,noext:!0,nonegate:!0};i=Ap?i.replace(/\\/g,"/"):i,this.minimatch=new Qer.Minimatch(i,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=_A.normalizeSeparators(e),!e.endsWith(Ik.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Ik.sep}`)):e=_A.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?Kne.MatchKind.Directory:Kne.MatchKind.All:Kne.MatchKind.None}partialMatch(e){return e=_A.safeTrimTrailingSeparator(e),_A.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ap?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ap?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){zB.default(e,"pattern cannot be empty");let n=new Jq.Path(e).segments.map(s=>t.getLiteral(s));if(zB.default(n.every((s,i)=>(s!=="."||i===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),zB.default(!_A.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=_A.normalizeSeparators(e),e==="."||e.startsWith(`.${Ik.sep}`))e=t.globEscap 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 L3e.Pattern(i));return n.searchPaths.push(...Wq.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return ese(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Bk.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){tse.debug(`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 Bk.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Bk.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){tse.debug(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};Ao.DefaultGlobber=rse});var _3e=f(Uw=>{"use strict";var Der=Uw&&Uw.__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(Uw,"__esModule",{value:!0});Uw.create=void 0;var xer=P3e();function Ter(t,e){return Der(this,void 0,void 0,function*(){return yield xer.DefaultGlobber.create(t,e)})}Uw.create=Ter});var J3e=f((Ot,Y3e)=>{Ot=Y3e.exports=ur;var En;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?En=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:En=function(){};Ot.SEMVER_SPEC_VERSION="2.0.0";var yk=256,zq=Number.MAX_SAFE_INTEGER||9007199254740991,nse=16,ker=yk-6,Pw=Ot.re=[],mn=Ot.safeRe=[],me=Ot.src=[],ie=Ot.tokens={},q3e=0;function Er(t){ie[t]=q3e++}var ise="[a-zA-Z0-9-]",sse=[["\\s",1],["\\d",yk],[ise,ker]];function wk(t){for(var e=0;e<sse.length;e++){var r=sse[e][0],n=sse[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return t}Er("NUMERICIDENTIFIER");me[ie.NUMERICIDENTIFIER]="0|[1-9]\\d*";Er("NUMERICIDENTIFIERLOOSE");me[ie.NUMERICIDENTIFIERLOOSE]="\\d+";Er("NONNUMERICIDENTIFIER");me[ie.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ise+"*";Er("MAINVERSION");me[ie.MAINVERSION]="("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")\\.("+me[ie.NUMERICIDENTIFIER]+")";Er("MAINVERSIONLOOSE");me[ie.MAINVERSIONLOOSE]="("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")\\.("+me[ie.NUMERICIDENTIFIERLOOSE]+")";Er("PRERELEASEIDENTIFIER");me[ie.PRERELEASEIDENTIFIER]="(?:"+me[ie.NUMERICIDENTIFIER]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASEIDENTIFIERLOOSE");me[ie.PRERELEASEIDENTIFIERLOOSE]="(?:"+me[ie.NUMERICIDENTIFIERLOOSE]+"|"+me[ie.NONNUMERICIDENTIFIER]+")";Er("PRERELEASE");me[ie.PRERELEASE]="(?:-("+me[ie.PRERELEASEIDENTIFIER]+"(?:\\."+me[ie.PRERELEASEIDENTIFIER]+")*))";Er("PRERELEASELOOSE");me[ie.PRERELEASELOOSE]="(?:-?("+me[ie.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+me[ie.PRERELEASEIDENTIFIERLOOSE]+")*))";Er("BUILDIDENTIFIER");me[ie.BUILDIDENTIFIER]=ise+"+";Er("BUILD");me[ie.BUILD]="(?:\\+("+me[ie.BUILDIDENTIFIER]+"(?:\\."+me[ie.BUILDIDENTIFIER]+")*))";Er("FULL");Er("FULLPLAIN");me[ie.FULLPLAIN]="v?"+me[ie.MAINVERSION]+me[ie.PRERELEASE]+"?"+me[ie.BUILD]+"?";me[ie.FULL]="^"+me[ie.FULLPLAIN]+"$";Er("LOOSEPLAIN");me[ie.LOOSEPLAIN]="[v=\\s]*"+me[ie.MAINVERSIONLOOSE]+me[ie.PRERELEASELOOSE]+"?"+me[ie.BUILD]+"?";Er("LOOSE");me[ie.LOOSE]="^"+me[ie.LOOSEPLAIN]+"$";Er("GTLT");me[ie.GTLT]="((?:<|>)?=?)";Er("XRANGEIDENTIFIERLOOSE");me[ie.XRANGEIDENTIFIERLOOSE]=me[ie.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Er("XRANGEIDENTIFIER");me[ie.XRANGEIDENTIFIER]=me[ie.NUMERICIDENTIFIER]+"|x|X|\\*";Er("XRANGEPLAIN");me[ie.XRANGEPLAIN]="[v=\\s]*("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:\\.("+me[ie.XRANGEIDENTIFIER]+")(?:"+me[ie.PRERELEASE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGEPLAINLOOSE");me[ie.XRANGEPLAINLOOSE]="[v=\\s]*("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+me[ie.XRANGEIDENTIFIERLOOSE]+")(?:"+me[ie.PRERELEASELOOSE]+")?"+me[ie.BUILD]+"?)?)?";Er("XRANGE");me[ie.XRANGE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAIN]+"$";Er("XRANGELOOSE");me[ie.XRANGELOOSE]="^"+me[ie.GTLT]+"\\s*"+me[ie.XRANGEPLAINLOOSE]+"$";Er("COERCE");me[ie.COERCE]="(^|[^\\d])(\\d{1,"+nse+"})(?:\\.(\\d{1,"+nse+"}))?(?:\\.(\\d{1,"+nse+"}))?(?:$|[^\\d])";Er("COERCERTL");Pw[ie.COERCERTL]=new RegExp(me[ie.COERCE],"g");mn[ie.COERCERTL]=new RegExp(wk(me[ie.COERCE]),"g");Er("LONETILDE");me[ie.LONETILDE]="(?:~>?)";Er("TILDETRIM");me[ie.TILDETRIM]="(\\s*)"+me[ie.LONETILDE]+"\\s+";Pw[ie.TILDETRIM]=new RegExp(me[ie.TILDETRIM],"g");mn[ie.TILDETRIM]=new RegExp(wk(me[ie.TILDETRIM]),"g");var Fer="$1~";Er("TILDE");me[ie.TILDE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAIN]+"$";Er("TILDELOOSE");me[ie.TILDELOOSE]="^"+me[ie.LONETILDE]+me[ie.XRANGEPLAINLOOSE]+"$";Er("LONECARET");me[ie.LONECARET]="(?:\\^)";Er("CARETTRIM" Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=mtr(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let d=s,h=Zq.relative(a,d).replace(new RegExp(`\\${Zq.sep}`,"g"),"/");Nk.debug(`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})}Zr.resolvePaths=wtr;function Ntr(t){return Hw(this,void 0,void 0,function*(){return Btr.promisify(use.unlink)(t)})}Zr.unlinkFile=Ntr;function X3e(t,e=[]){return Hw(this,void 0,void 0,function*(){let r="";e.push("--version"),Nk.debug(`Checking ${t} ${e.join(" ")}`);try{yield Etr.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){Nk.debug(n.message)}return r=r.trim(),Nk.debug(r),r})}function Str(){return Hw(this,void 0,void 0,function*(){let t=yield X3e("zstd",["--quiet"]),e=Itr.clean(t);return Nk.debug(`zstd version: ${e}`),t===""?XB.CompressionMethod.Gzip:XB.CompressionMethod.ZstdWithoutLong})}Zr.getCompressionMethod=Str;function Rtr(t){return t===XB.CompressionMethod.Gzip?XB.CacheFilename.Gzip:XB.CacheFilename.Zstd}Zr.getCacheFileName=Rtr;function Dtr(){return Hw(this,void 0,void 0,function*(){return use.existsSync(XB.GnuTarPathOnWindows)?XB.GnuTarPathOnWindows:(yield X3e("tar")).toLowerCase().includes("gnu tar")?j3e.which("tar"):""})}Zr.getGnuTarPathOnWindows=Dtr;function xtr(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}Zr.assertDefined=xtr;function Ttr(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Qtr),K3e.createHash("sha256").update(n.join("|")).digest("hex")}Zr.getCacheVersion=Ttr;function ktr(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Zr.getRuntimeToken=ktr});var Vn={};Su(Vn,{__addDisposableResource:()=>Q4e,__assign:()=>$q,__asyncDelegator:()=>g4e,__asyncGenerator:()=>h4e,__asyncValues:()=>f4e,__await:()=>Gw,__awaiter:()=>a4e,__classPrivateFieldGet:()=>C4e,__classPrivateFieldIn:()=>B4e,__classPrivateFieldSet:()=>I4e,__createBinding:()=>tG,__decorate:()=>e4e,__disposeResources:()=>y4e,__esDecorate:()=>r4e,__exportStar:()=>c4e,__extends:()=>Z3e,__generator:()=>A4e,__importDefault:()=>E4e,__importStar:()=>m4e,__makeTemplateObject:()=>p4e,__metadata:()=>o4e,__param:()=>t4e,__propKey:()=>s4e,__read:()=>hse,__rest:()=>$3e,__rewriteRelativeImportExtension:()=>b4e,__runInitializers:()=>n4e,__setFunctionName:()=>i4e,__spread:()=>u4e,__spreadArray:()=>d4e,__spreadArrays:()=>l4e,__values:()=>eG,default:()=>vtr});function Z3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lse(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function $3e(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}function e4e(t,e,r,n){var s=arguments.length,i=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(s<3?o(i):s>3?o(e,r,i):o(e,r))||i);return s>3&&i&&Object.defineProperty(e,r,i),i}function t4e(t,e){return function(r,n){e(r,n,t)}}function r4e(t,e,r,n,s,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),l,d=!1,h=r.length-1;h>=0;h--){var g={};for(var p in n)g[p]=p==="access"?{}:n[p];for(var p in n.access)g.access[p]=n.access[p];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var C=(0,r[h])(a==="accessor"?{get:u.get,set:u.set}:u[A],g);if(a==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(l=o(C.get))&&(u.get=l),(l=o(C.set))&&(u.set=l),(l=o(C.init))&&s.unshift(l)}else(l=o(C))&&(a==="field"?s.unshift(l):u[A]=l)}c&&Object.defineProperty(c,n.name,u),d=!0}function n4e(t,e,r){for(var n=arguments.length>2,s=0;s<e.length;s++)r=n?e[s].call(t,r):e[s].call(t);return n?r:void 0}function s4e(t){return typeof t=="symbol"?t:"".concat(t)}function i4e(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function o4e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function a4e(t,e,r,n){function s(i){re Line truncated
${lrr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};xk.RestError=lG;function drr(t){return t instanceof lG?!0:(0,Arr.isError)(t)&&t.name==="RestError"}});var ZB=f(dG=>{"use strict";Object.defineProperty(dG,"__esModule",{value:!0});dG.uint8ArrayToString=hrr;dG.stringToUint8Array=grr;function hrr(t,e){return Buffer.from(t).toString(e)}function grr(t,e){return Buffer.from(t,e)}});var Tk=f(hG=>{"use strict";Object.defineProperty(hG,"__esModule",{value:!0});hG.logger=void 0;var frr=iG();hG.logger=(0,frr.createClientLogger)("ts-http-runtime")});var z4e=f(fG=>{"use strict";Object.defineProperty(fG,"__esModule",{value:!0});fG.getBodyLength=W4e;fG.createNodeHttpClient=yrr;var _se=(Wn(),$n(Vn)),Lse=_se.__importDefault(B("node:http")),Use=_se.__importDefault(B("node:https")),G4e=_se.__importDefault(B("node:zlib")),prr=B("node:stream"),Y4e=Sk(),mrr=wE(),Fk=Yw(),Jw=Tk(),Err=Dk(),Crr={};function kk(t){return t&&typeof t.pipe=="function"}function J4e(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 V4e(t){return t&&typeof t.byteLength=="number"}var gG=class extends prr.Transform{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}},Pse=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Y4e.AbortError("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 Err.Sanitizer;Jw.logger.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=W4e(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new gG(g);p.on("error",C=>{Jw.logger.error("Error in upload progress",C)}),kk(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irr(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?Brr(c,u):c;let h=e.onDownloadProgress;if(h){let g=new gG(h);g.on("error",p=>{Jw.logger.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await Qrr(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();kk(a)&&(c=J4e(a));let u=Promise.resolve();kk(A)&&(u=J4e(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Jw.logger.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?Lse.default.request(a,A):Use.default.request(a,A);u.once("error",l=>{c(new Fk.RestError(l.message,{code:l.code??Fk.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Y4e.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&kk(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):V4e(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Jw.logger.error("Unrecognized body type",n),c(new Fk.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Lse.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Lse.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Use.default.globalAgent;let s=e.tlsSettings??Crr,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Jw.logger.info("No cached TLS Agent exist, creating a new Agent"),i=new Use.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irr(t){let e=(0,mrr.createHttpHeaders)();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 Brr(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=G4e.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=G4e.default.createInflate Line truncated
`.trim())}};wse.exports=XU});var _S=E((C7t,Rse)=>{"use strict";var Nse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:tYe}=Lt(),rYe=Jp();xse()===void 0&&Tse(new rYe);function Tse(t){if(!t||typeof t.dispatch!="function")throw new tYe("Argument agent must implement Agent");Object.defineProperty(globalThis,Nse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function xse(){return globalThis[Nse]}Rse.exports={setGlobalDispatcher:Tse,getGlobalDispatcher:xse}});var FS=E((y7t,Dse)=>{"use strict";Dse.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 vse=E((B7t,kse)=>{"use strict";var nYe=hS();kse.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 nYe(r,o,s,i);return r(a,c)}}});var Fse=E((b7t,_se)=>{"use strict";var sYe=QS();_se.exports=t=>e=>function(n,s){return e(n,new sYe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Lse=E((Q7t,Mse)=>{"use strict";var iYe=lt(),{InvalidArgumentError:oYe,RequestAbortedError:aYe}=Lt(),cYe=FS(),ZU=class extends cYe{#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 oYe("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=iYe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new aYe(`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 AYe({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)}}Mse.exports=AYe});var Ose=E((w7t,Pse)=>{"use strict";var{isIP:uYe}=b("node:net"),{lookup:lYe}=b("node:dns"),dYe=FS(),{InvalidArgumentError:nm,InformationalError:hYe}=Lt(),Use=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 hYe("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){lYe(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===Use?(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===Use?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 dYe{#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":Iae(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&&Iae(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}}};yae.exports={EventSourceStream:OP}});var Rae=E((rWt,xae)=>{"use strict";var{pipeline:bJe}=b("node:stream"),{fetching:QJe}=OI(),{makeRequest:wJe}=om(),{webidl:uu}=Jn(),{EventSourceStream:SJe}=Bae(),{parseMIMEType:NJe}=Js(),{createFastMessageEvent:TJe}=dm(),{isNetworkError:bae}=UI(),{delay:xJe}=UP(),{kEnumerableProperty:$h}=lt(),{environmentSettingsObject:Qae}=wi(),wae=!1,Sae=3e3,ZI=0,Nae=1,ey=2,RJe="anonymous",DJe="use-credentials",mm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=ZI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),uu.util.markAsUncloneable(this);let n="EventSource constructor";uu.argumentLengthCheck(arguments,1,n),wae||(wae=!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:Sae};let s=Qae,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=RJe;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=Qae.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=wJe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===ey)return;this.#r=ZI;let e={request:this.#s,dispatcher:this.#a},r=n=>{bae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(bae(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?NJe(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=Nae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new SJe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(TJe(c.type,c.options))}});bJe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=QJe(e)}async#A(){this.#r!==ey&&(this.#r=ZI,this.dispatchEvent(new Event("error")),await xJe(this.#o.reconnectionTime),this.#r===ZI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){uu.brandCheck(this,t),this.#r!==ey&&(this.#r=ey,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}},Tae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ZI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Nae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ey,writable:!1}};Object.defineProperties(mm,Tae);Object.defineProperties(mm.prototype,Tae);Object.defineProperties(mm.prototype,{close:$h,onerror:$h,onmessage:$h,onopen:$h,readyState:$h,url:$h,withCredentials:$h});uu.converters.EventSourceInitDict=uu.dictionaryConverter([{key:"withCredentials",converter:uu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:uu.converters.any}]);xae.exports={EventSource:mm,defaultReconnectionTime:Sae}});var bN=E((nWt,Ye)=>{"use strict";var kJe=Vp(),Dae=sI(),vJe=Wp(),_Je=Tre(),FJe=Jp(),MJe=lU(),LJe=Xre(),UJe=sne(),kae=Lt(),BN=lt(),{InvalidArgumentError:yN}=kae,Em=Yne(),PJe=oI(),OJe=WU(),HJe=Sse(),GJe=jU(),qJe=vU(),YJe=QS(),{getGlobalDispatcher:vae,setGlobalDispatcher:VJe}=_S(),WJe=FS(),JJe=hS(),zJe=fS();Object.assign(Dae.prototype,Em);Ye.exports.Dispatcher=Dae;Ye.exports.Client=kJe;Ye.exports.Pool=vJe;Ye.exports.BalancedPool=_Je;Ye.exports.Agent=FJe;Ye.exports.ProxyAgent=MJe;Ye.exports.EnvHttpProxyAgent=LJe;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?MO:C.type==="?"?FO:"\\"+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 ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var Ke="";ce===""&&e!==VN&&(Ke="$");var st=z+Z+ce+Ke+ee;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===VN)return[n,s];if(!s)return qKe(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}_i.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=GKe;function GKe(){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?MO:e.dot?_Ke:FKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===nf?r:typeof o=="string"?YKe(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}_i.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;ly.sep!=="/"&&(e=e.split(ly.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(nf)!==-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]===nf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===nf){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===nf?(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===nf)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 qKe(t){return t.replace(/\\(.)/g,"$1")}function YKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Sm=E((XJt,SAe)=>{"use strict";var XKe="2.0.0",ZKe=Number.MAX_SAFE_INTEGER||9007199254740991,e$e=16,t$e=250,r$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];SAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:e$e,MAX_SAFE_BUILD_LENGTH:t$e,MAX_SAFE_INTEGER:ZKe,RELEASE_TYPES:r$e,SEMVER_SPEC_VERSION:XKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gy=E((ZJt,NAe)=>{"use strict";var n$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};NAe.exports=n$e});var Nm=E((Nc,TAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:UO,MAX_SAFE_BUILD_LENGTH:s$e,MAX_LENGTH:i$e}=Sm(),o$e=gy();Nc=TAe.exports={};var a$e=Nc.re=[],c$e=Nc.safeRe=[],me=Nc.src=[],A$e=Nc.safeSrc=[],Ee=Nc.t={},u$e=0,PO="[a-zA-Z0-9-]",l$e=[["\\s",1],["\\d",i$e],[PO,s$e]],d$e=t=>{for(let[e,r]of l$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+wG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mnr()+e+" "+t[0]}function Mnr(){return uo.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vnr(...t){return process.stderr.write(bG.formatWithOptions(uo.inspectOpts,...t)+`
`)}function Lnr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Unr(){return process.env.DEBUG}function Pnr(t){t.inspectOpts={};let e=Object.keys(uo.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=uo.inspectOpts[e[r]]}wG.exports=nie()(uo);var{formatters:mYe}=wG.exports;mYe.o=function(t){return this.inspectOpts.colors=this.useColors,bG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};mYe.O=function(t){return this.inspectOpts.colors=this.useColors,bG.inspect(t,this.inspectOpts)}});var NG=f((YRn,oie)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?oie.exports=lYe():oie.exports=EYe()});var BYe=f(HA=>{"use strict";var _nr=HA&&HA.__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]})),Onr=HA&&HA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CYe=HA&&HA.__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)&&_nr(e,t,r);return Onr(e,t),e};Object.defineProperty(HA,"__esModule",{value:!0});HA.req=HA.json=HA.toBuffer=void 0;var Hnr=CYe(B("http")),qnr=CYe(B("https"));async function IYe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}HA.toBuffer=IYe;async function Gnr(t){let r=(await IYe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}HA.json=Gnr;function Ynr(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qnr:Hnr).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}HA.req=Ynr});var Aie=f(_c=>{"use strict";var yYe=_c&&_c.__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]})),Jnr=_c&&_c.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bYe=_c&&_c.__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)&&yYe(e,t,r);return Jnr(e,t),e},Vnr=_c&&_c.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yYe(e,t,r)};Object.defineProperty(_c,"__esModule",{value:!0});_c.Agent=void 0;var Wnr=bYe(B("net")),QYe=bYe(B("http")),znr=B("https");Vnr(BYe(),_c);var Gh=Symbol("AgentBaseInternalState"),aie=class extends QYe.Agent{constructor(e){super(e),this[Gh]={}}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 Wnr.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)?znr.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 QYe.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[Gh].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gh].currentSocket;if(this[Gh].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gh].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gh]&&(this[Gh].defaultPort=e)}get protocol(){return this[Gh].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gh]&&(this[Gh].protocol=e)}};_c.Agent=aie});var wYe=f(nN=>{"use strict";var jnr=nN&&nN.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nN,"__esModule",{value:!0});nN.parseProxyResponse=void 0;var Knr=jnr(NG()),SG=(0,Knr.default)("https-proxy-agent:parse-proxy-response");function Xnr(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(),SG("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),SG("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+xT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ttt()+e+" "+t[0]}function ttt(){return Rn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function rtt(...t){return process.stderr.write(TT.formatWithOptions(Rn.inspectOpts,...t)+`
`)}function ntt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function stt(){return process.env.DEBUG}function itt(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]]}xT.exports=T3()(Rn);var{formatters:nde}=xT.exports;nde.o=function(t){return this.inspectOpts.colors=this.useColors,TT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};nde.O=function(t){return this.inspectOpts.colors=this.useColors,TT.inspect(t,this.inspectOpts)}});var RT=E((xKt,D3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?D3.exports=$le():D3.exports=sde()});var ade=E(ri=>{"use strict";var ott=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]})),att=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ide=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)&&ott(e,t,r);return att(e,t),e};Object.defineProperty(ri,"__esModule",{value:!0});ri.req=ri.json=ri.toBuffer=void 0;var ctt=ide(b("http")),Att=ide(b("https"));async function ode(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ri.toBuffer=ode;async function utt(t){let r=(await ode(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ri.json=utt;function ltt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Att:ctt).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=ltt});var v3=E(Li=>{"use strict";var Ade=Li&&Li.__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]})),dtt=Li&&Li.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ude=Li&&Li.__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)&&Ade(e,t,r);return dtt(e,t),e},htt=Li&&Li.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ade(e,t,r)};Object.defineProperty(Li,"__esModule",{value:!0});Li.Agent=void 0;var ftt=ude(b("net")),cde=ude(b("http")),gtt=b("https");htt(ade(),Li);var Rc=Symbol("AgentBaseInternalState"),k3=class extends cde.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 ftt.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)?gtt.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 cde.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)}};Li.Agent=k3});var lde=E(Mm=>{"use strict";var ptt=Mm&&Mm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.parseProxyResponse=void 0;var mtt=ptt(RT()),DT=(0,mtt.default)("https-proxy-agent:parse-proxy-response");function Ett(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(),DT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),DT("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){SG("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),g=h.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=g.split(" "),C=+p[1],m=p.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let w=y.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let H=y.slice(0,w).toLowerCase(),z=y.slice(w+1).trimStart(),F=I[H];typeof F=="string"?I[H]=[F,z]:Array.isArray(F)?F.push(z):I[H]=z}SG("got proxy server response: %o %o",g,I),o(),e({connect:{statusCode:C,statusText:m,headers:I},buffered:l})}t.on("error",A),t.on("end",a),i()})}nN.parseProxyResponse=Xnr});var cie=f(Ku=>{"use strict";var Znr=Ku&&Ku.__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]})),$nr=Ku&&Ku.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DYe=Ku&&Ku.__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)&&Znr(e,t,r);return $nr(e,t),e},xYe=Ku&&Ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ku,"__esModule",{value:!0});Ku.HttpsProxyAgent=void 0;var RG=DYe(B("net")),NYe=DYe(B("tls")),esr=xYe(B("assert")),tsr=xYe(NG()),rsr=Aie(),nsr=B("url"),ssr=wYe(),Lk=(0,tsr.default)("https-proxy-agent"),SYe=t=>t.servername===void 0&&t.host&&!RG.isIP(t.host)?{...t,servername:t.host}:t,DG=class extends rsr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new nsr.URL(e):e,this.proxyHeaders=r?.headers??{},Lk("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?RYe(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:"?(Lk("Creating `tls.Socket`: %o",this.connectOpts),s=NYe.connect(SYe(this.connectOpts))):(Lk("Creating `net.Socket`: %o",this.connectOpts),s=RG.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=RG.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){DT("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}DT("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()})}Mm.parseProxyResponse=Ett});var mde=E(To=>{"use strict";var Ctt=To&&To.__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]})),Itt=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gde=To&&To.__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)&&Ctt(e,t,r);return Itt(e,t),e},pde=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpsProxyAgent=void 0;var kT=gde(b("net")),dde=gde(b("tls")),ytt=pde(b("assert")),Btt=pde(RT()),btt=v3(),Qtt=b("url"),wtt=lde(),xy=(0,Btt.default)("https-proxy-agent"),hde=t=>t.servername===void 0&&t.host&&!kT.isIP(t.host)?{...t,servername:t.host}:t,vT=class extends btt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Qtt.URL(e):e,this.proxyHeaders=r?.headers??{},xy("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?fde(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:"?(xy("Creating `tls.Socket`: %o",this.connectOpts),s=dde.connect(hde(this.connectOpts))):(xy("Creating `net.Socket`: %o",this.connectOpts),s=kT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=kT.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 A=(0,ssr.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",isr),r.secureEndpoint?(Lk("Upgrading socket connection to TLS"),NYe.connect({...RYe(SYe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new RG.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Lk("Replaying proxy buffer for failed request"),(0,esr.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};DG.protocols=["http","https"];Ku.HttpsProxyAgent=DG;function isr(t){t.resume()}function RYe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var uie=f(Xu=>{"use strict";var osr=Xu&&Xu.__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]})),asr=Xu&&Xu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kYe=Xu&&Xu.__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)&&osr(e,t,r);return asr(e,t),e},Asr=Xu&&Xu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xu,"__esModule",{value:!0});Xu.HttpProxyAgent=void 0;var csr=kYe(B("net")),usr=kYe(B("tls")),lsr=Asr(NG()),dsr=B("events"),hsr=Aie(),TYe=B("url"),sN=(0,lsr.default)("http-proxy-agent"),xG=class extends hsr.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new TYe.URL(e):e,this.proxyHeaders=r?.headers??{},sN("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?gsr(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 TYe.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;sN("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(sN("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,wtt.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",Stt),r.secureEndpoint?(xy("Upgrading socket connection to TLS"),dde.connect({...fde(hde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new kT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{xy("Replaying proxy buffer for failed request"),(0,ytt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};vT.protocols=["http","https"];To.HttpsProxyAgent=vT;function Stt(t){t.resume()}function fde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ide=E(xo=>{"use strict";var Ntt=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]})),Ttt=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cde=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)&&Ntt(e,t,r);return Ttt(e,t),e},xtt=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpProxyAgent=void 0;var Rtt=Cde(b("net")),Dtt=Cde(b("tls")),ktt=xtt(RT()),vtt=b("events"),_tt=v3(),Ede=b("url"),Lm=(0,ktt.default)("http-proxy-agent"),_T=class extends _tt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ede.URL(e):e,this.proxyHeaders=r?.headers??{},Lm("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?Ftt(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 Ede.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;Lm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Lm("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),sN("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(sN("Creating `tls.Socket`: %o",this.connectOpts),i=usr.connect(this.connectOpts)):(sN("Creating `net.Socket`: %o",this.connectOpts),i=csr.connect(this.connectOpts)),await(0,dsr.once)(i,"connect"),i}};xG.protocols=["http","https"];Xu.HttpProxyAgent=xG;function gsr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var lie=f(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.globalNoProxyList=Zu.proxyPolicyName=void 0;Zu.loadNoProxy=UYe;Zu.getDefaultProxySettings=bsr;Zu.proxyPolicy=Nsr;var fsr=cie(),psr=uie(),msr=Tk(),Esr="HTTPS_PROXY",Csr="HTTP_PROXY",Isr="ALL_PROXY",Bsr="NO_PROXY";Zu.proxyPolicyName="proxyPolicy";Zu.globalNoProxyList=[];var vYe=!1,Qsr=new Map;function TG(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function LYe(){if(!process)return;let t=TG(Esr),e=TG(Isr),r=TG(Csr);return t||e||r}function ysr(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let i of e)i[0]==="."?(n.endsWith(i)||n.length===i.length-1&&n===i.slice(1))&&(s=!0):n===i&&(s=!0);return r?.set(n,s),s}function UYe(){let t=TG(Bsr);return vYe=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function bsr(t){if(!t&&(t=LYe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function wsr(){let t=LYe();return t?new URL(t):void 0}function FYe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function MYe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&msr.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new psr.HttpProxyAgent(r,{headers:i})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new fsr.HttpsProxyAgent(r,{headers:i})),t.agent=e.httpsProxyAgent)}function Nsr(t,e){vYe||Zu.globalNoProxyList.push(...UYe());let r=t?FYe(t):wsr(),n={};return{name:Zu.proxyPolicyName,async sendRequest(s,i){return!s.proxySettings&&r&&!ysr(s.url,e?.customNoProxyList??Zu.globalNoProxyList,e?.customNoProxyList?void 0:Qsr)?MYe(s,n,r):s.proxySettings&&MYe(s,n,FYe(s.proxySettings)),i(s)}}}});var die=f(iN=>{"use strict";Object.defineProperty(iN,"__esModule",{value:!0});iN.agentPolicyName=void 0;iN.agentPolicy=Ssr;iN.agentPolicyName="agentPolicy";function Ssr(t){return{name:iN.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var hie=f(oN=>{"use strict";Object.defineProperty(oN,"__esModule",{value:!0});oN.tlsPolicyName=void 0;oN.tlsPolicy=Rsr;oN.tlsPolicyName="tlsPolicy";function Rsr(t){return{name:oN.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var Uk=f(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.isNodeReadableStream=PYe;t0.isWebReadableStream=_Ye;t0.isBinaryBody=Dsr;t0.isReadableStream=OYe;t0.isBlob=xsr;function PYe(t){return!!(t&&typeof t.pipe=="function")}function _Ye(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function Dsr(t){return t!==void 0&&(t instanceof Uint8Array||OYe(t)||typeof t=="function"||t instanceof Blob)}function OYe(t){return PYe(t)||_Ye(t)}function xsr(t){return typeof t.stream=="function"}});var GYe=f(fie=>{"use strict";Object.defineProperty(fie,"__esModule",{value:!0});fie.concat=Msr;var gie=B("stream"),Tsr=Uk();async function*HYe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function ksr(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=HYe.bind(t)),t.values||(t.values=HYe.bind(t))}function qYe(t){return t instanceof ReadableStream?(ksr(t),gie.Readable.fromWeb(t)):t}function Fsr(t){return t instanceof Uint8Array?gie.Readable.from(Buffer.from(t)):(0,Tsr.isBlob)(t)?qYe(t.stream()):qYe(t)}async function Msr(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(Fsr);return gie.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}});var pie=f(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});AN.multipartPolicyName=void 0;AN.multipartPolicy=Vsr;var aN=ZB(),vsr=Uk(),Lsr=aG(),Usr=GYe();function Psr(){return`----AzSDKFormBoundary${(0,Lsr.randomUUID)()}`}function _sr(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}function Osr(t){return t instanceof Uint8Array?t.byteLength:(0,vsr.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Hsr(t){let e=0;for(let r of t){let n=Osr(r);if(n===void 0)return;e+=n}return e}async function qsr(t,e,r){let n=[(0,aN.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(i=>[(0,aN.stringToUint8Array)(`\r
`,"utf-8"),(0,aN.stringToUint8Array)(_sr(i.headers),"utf-8"),(0,aN.stringToUint8Array)(`\r
`,"utf-8"),i.body,(0,aN.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,aN.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Hsr(n);s&&t.headers.set("Content-Length",s),t.body=await(0,Usr.concat)(n)}AN.multipartPolicyName="multipartPolicy";var Gsr=70,Ysr=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Jsr(t){if(t.length>Gsr)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Ysr.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Vsr(){return{name:AN.multipartPolicyName,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?Jsr(r):r=Psr(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await qsr(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var VYe=f(mie=>{"use strict";Object.defineProperty(mie,"__esModule",{value:!0});mie.createPipelineFromOptions=nir;var Wsr=qse(),zsr=xse(),jsr=Gse(),Ksr=Vse(),Xsr=Wse(),Zsr=tie(),$sr=rie(),YYe=vk(),eir=lie(),tir=die(),rir=hie(),JYe=pie();function nir(t){let e=(0,zsr.createEmptyPipeline)();return YYe.isNodeLike&&(t.agent&&e.addPolicy((0,tir.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,rir.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,eir.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,Xsr.decompressResponsePolicy)())),e.addPolicy((0,$sr.formDataPolicy)(),{beforePolicies:[JYe.multipartPolicyName]}),e.addPolicy((0,Ksr.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,JYe.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,Zsr.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),YYe.isNodeLike&&e.addPolicy((0,jsr.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,Wsr.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var WYe=f(cN=>{"use strict";Object.defineProperty(cN,"__esModule",{value:!0});cN.apiVersionPolicyName=void 0;cN.apiVersionPolicy=sir;cN.apiVersionPolicyName="ApiVersionPolicy";function sir(t){return{name:cN.apiVersionPolicyName,sendRequest:(e,r)=>{let n=new URL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var zYe=f(uN=>{"use strict";Object.defineProperty(uN,"__esModule",{value:!0});uN.isOAuth2TokenCredential=iir;uN.isBearerTokenCredential=oir;uN.isBasicCredential=air;uN.isApiKeyCredential=Air;function iir(t){return"getOAuth2Token"in t}function oir(t){return"getBearerToken"in t}function air(t){return"username"in t&&"password"in t}function Air(t){return"key"in t}});var Pk=f(Eie=>{"use strict";Object.defineProperty(Eie,"__esModule",{value:!0});Eie.ensureSecureConnection=dir;var cir=Tk(),jYe=!1;function uir(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function lir(){let t="Sending token over insecure transport. Assume any token issued is compromised.";cir.logger.warning(t),typeof process?.emitWarning=="function"&&!jYe&&(jYe=!0,process.emitWarning(t))}function dir(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(uir(t,e))lir();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var KYe=f(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0});lN.apiKeyAuthenticationPolicyName=void 0;lN.apiKeyAuthenticationPolicy=gir;var hir=Pk();lN.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function gir(t){return{name:lN.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,hir.ensureSecureConnection)(e,t);let n=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!n)return r(e);if(n.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${n.apiKeyLocation}`);return e.headers.set(n.name,t.credential.key),r(e)}}}});var ZYe=f(dN=>{"use strict";Object.defineProperty(dN,"__esModule",{value:!0});dN.basicAuthenticationPolicyName=void 0;dN.basicAuthenticationPolicy=pir;var XYe=ZB(),fir=Pk();dN.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function pir(t){return{name:dN.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,fir.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(a=>a.kind==="http"&&a.scheme==="basic"))return r(e);let{username:s,password:i}=t.credential,o=(0,XYe.uint8ArrayToString)((0,XYe.stringToUint8Array)(`${s}:${i}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${o}`),r(e)}}}});var $Ye=f(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.bearerAuthenticationPolicyName= Line truncated
`).join(""))}return e(t)}}}});var V6e=f(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.auxiliaryAuthenticationHeaderPolicyName=void 0;i0.auxiliaryAuthenticationHeaderPolicy=tcr;var ZAr=Boe(),$Ar=Hk();i0.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var J6e="x-ms-authorization-auxiliary";async function ecr(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions};return(await r(e,s))?.token??""}function tcr(t){let{credentials:e,scopes:r}=t,n=t.logger||$Ar.logger,s=new WeakMap;return{name:i0.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(i,o){if(!i.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${i0.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),o(i);let a=[];for(let c of e){let u=s.get(c);u||(u=(0,ZAr.createTokenCycler)(c),s.set(c,u)),a.push(ecr({scopes:Array.isArray(r)?r:[r],request:i,getAccessToken:u,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`None of the auxiliary tokens are valid. ${J6e} header will not be set.`),o(i)):(i.headers.set(J6e,A.map(c=>`Bearer ${c}`).join(", ")),o(i))}}}});var Yi=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createFileFromStream=ye.createFile=ye.agentPolicyName=ye.agentPolicy=ye.auxiliaryAuthenticationHeaderPolicyName=ye.auxiliaryAuthenticationHeaderPolicy=ye.ndJsonPolicyName=ye.ndJsonPolicy=ye.bearerTokenAuthenticationPolicyName=ye.bearerTokenAuthenticationPolicy=ye.formDataPolicyName=ye.formDataPolicy=ye.tlsPolicyName=ye.tlsPolicy=ye.userAgentPolicyName=ye.userAgentPolicy=ye.defaultRetryPolicy=ye.tracingPolicyName=ye.tracingPolicy=ye.retryPolicy=ye.throttlingRetryPolicyName=ye.throttlingRetryPolicy=ye.systemErrorRetryPolicyName=ye.systemErrorRetryPolicy=ye.redirectPolicyName=ye.redirectPolicy=ye.getDefaultProxySettings=ye.proxyPolicyName=ye.proxyPolicy=ye.multipartPolicyName=ye.multipartPolicy=ye.logPolicyName=ye.logPolicy=ye.setClientRequestIdPolicyName=ye.setClientRequestIdPolicy=ye.exponentialRetryPolicyName=ye.exponentialRetryPolicy=ye.decompressResponsePolicyName=ye.decompressResponsePolicy=ye.isRestError=ye.RestError=ye.createPipelineRequest=ye.createHttpHeaders=ye.createDefaultHttpClient=ye.createPipelineFromOptions=ye.createEmptyPipeline=void 0;var rcr=Die();Object.defineProperty(ye,"createEmptyPipeline",{enumerable:!0,get:function(){return rcr.createEmptyPipeline}});var ncr=R6e();Object.defineProperty(ye,"createPipelineFromOptions",{enumerable:!0,get:function(){return ncr.createPipelineFromOptions}});var scr=D6e();Object.defineProperty(ye,"createDefaultHttpClient",{enumerable:!0,get:function(){return scr.createDefaultHttpClient}});var icr=x6e();Object.defineProperty(ye,"createHttpHeaders",{enumerable:!0,get:function(){return icr.createHttpHeaders}});var ocr=T6e();Object.defineProperty(ye,"createPipelineRequest",{enumerable:!0,get:function(){return ocr.createPipelineRequest}});var W6e=$G();Object.defineProperty(ye,"RestError",{enumerable:!0,get:function(){return W6e.RestError}});Object.defineProperty(ye,"isRestError",{enumerable:!0,get:function(){return W6e.isRestError}});var z6e=$ie();Object.defineProperty(ye,"decompressResponsePolicy",{enumerable:!0,get:function(){return z6e.decompressResponsePolicy}});Object.defineProperty(ye,"decompressResponsePolicyName",{enumerable:!0,get:function(){return z6e.decompressResponsePolicyName}});var j6e=F6e();Object.defineProperty(ye,"exponentialRetryPolicy",{enumerable:!0,get:function(){return j6e.exponentialRetryPolicy}});Object.defineProperty(ye,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return j6e.exponentialRetryPolicyName}});var K6e=soe();Object.defineProperty(ye,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return K6e.setClientRequestIdPolicy}});Object.defineProperty(ye,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return K6e.setClientRequestIdPolicyName}});var X6e=Pie();Object.defineProperty(ye,"logPolicy",{enumerable:!0,get:function(){return X6e.logPolicy}});Object.defineProperty(ye,"logPolicyName",{enumerable:!0,get:function(){return X6e.logPolicyName}});var Z6e=Zie();Object.defineProperty(ye,"multipartPolicy",{enumerable:!0,get:function(){return Z6e.multipartPolicy}});Object.defineProperty(ye,"multipartPolicyName",{enumerable:!0,get:function(){return Z6e.multipartPolicyName}});var Qoe=noe();Object.defineProperty(ye,"proxyPolicy",{enumerable:!0,get:function(){return Qoe.proxyPolicy}});Object.defineProperty(ye,"proxyPolicyName",{enumerable:!0,get:function(){return Qoe.proxyPolicyName}});Object.defineProperty(ye,"getDefaultProxySettings",{enumerable:!0,get:function(){return Qoe.getDefaultProxySettings}});var $6e=_ie();Object.defineProperty(ye,"redirectPolicy",{enumerable:!0,get:function(){return $6e.re Line truncated
`&&Q[J]!=="\r";J++)Ee+=Q[J];if(Ee=Ee.trim(),Ee[Ee.length-1]==="/"&&(Ee=Ee.substring(0,Ee.length-1),J--),!i(Ee)){let bt;return bt=Ee.trim().length===0?"Invalid space after '<'.":"Tag '"+Ee+"' is an invalid name.",m("InvalidTag",bt,y(Q,J))}let Fe=h(Q,J);if(Fe===!1)return m("InvalidAttr","Attributes for '"+Ee+"' have open quote.",y(Q,J));let zt=Fe.value;if(J=Fe.index,zt[zt.length-1]==="/"){let bt=J-zt.length;zt=zt.substring(0,zt.length-1);let pr=p(zt,b);if(pr!==!0)return m(pr.err.code,pr.err.msg,y(Q,bt+pr.err.line));j=!0}else if(ae){if(!Fe.tagClosed)return m("InvalidTag","Closing tag '"+Ee+"' doesn't have proper closing.",y(Q,J));if(zt.trim().length>0)return m("InvalidTag","Closing tag '"+Ee+"' can't have attributes or invalid starting.",y(Q,ue));if(P.length===0)return m("InvalidTag","Closing tag '"+Ee+"' has not been opened.",y(Q,ue));{let bt=P.pop();if(Ee!==bt.tagName){let pr=y(Q,bt.tagStartPos);return m("InvalidTag","Expected closing tag '"+bt.tagName+"' (opened in line "+pr.line+", col "+pr.col+") instead of closing tag '"+Ee+"'.",y(Q,ue))}P.length==0&&(q=!0)}}else{let bt=p(zt,b);if(bt!==!0)return m(bt.err.code,bt.err.msg,y(Q,J-zt.length+bt.err.line));if(q===!0)return m("InvalidXml","Multiple possible root nodes found.",y(Q,J));b.unpairedTags.indexOf(Ee)!==-1||P.push({tagName:Ee,tagStartPos:ue}),j=!0}for(J++;J<Q.length;J++)if(Q[J]==="<"){if(Q[J+1]==="!"){J++,J=u(Q,J);continue}if(Q[J+1]!=="?")break;if(J=c(Q,++J),J.err)return J}else if(Q[J]==="&"){let bt=C(Q,J);if(bt==-1)return m("InvalidChar","char '&' is not expected.",y(Q,J));J=bt}else if(q===!0&&!A(Q[J]))return m("InvalidXml","Extra text at the end",y(Q,J));Q[J]==="<"&&J--}}}return j?P.length==1?m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",y(Q,P[0].tagStartPos)):!(P.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(P.map((J=>J.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function A(Q){return Q===" "||Q===" "||Q===`
`||Q==="\r"}function c(Q,b){let P=b;for(;b<Q.length;b++)if(!(Q[b]!="?"&&Q[b]!=" ")){let j=Q.substr(P,b-P);if(b>5&&j==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",y(Q,b));if(Q[b]=="?"&&Q[b+1]==">"){b++;break}}return b}function u(Q,b){if(Q.length>b+5&&Q[b+1]==="-"&&Q[b+2]==="-"){for(b+=3;b<Q.length;b++)if(Q[b]==="-"&&Q[b+1]==="-"&&Q[b+2]===">"){b+=2;break}}else if(Q.length>b+8&&Q[b+1]==="D"&&Q[b+2]==="O"&&Q[b+3]==="C"&&Q[b+4]==="T"&&Q[b+5]==="Y"&&Q[b+6]==="P"&&Q[b+7]==="E"){let P=1;for(b+=8;b<Q.length;b++)if(Q[b]==="<")P++;else if(Q[b]===">"&&(P--,P===0))break}else if(Q.length>b+9&&Q[b+1]==="["&&Q[b+2]==="C"&&Q[b+3]==="D"&&Q[b+4]==="A"&&Q[b+5]==="T"&&Q[b+6]==="A"&&Q[b+7]==="["){for(b+=8;b<Q.length;b++)if(Q[b]==="]"&&Q[b+1]==="]"&&Q[b+2]===">"){b+=2;break}}return b}let l='"',d="'";function h(Q,b){let P="",j="",q=!1;for(;b<Q.length;b++){if(Q[b]===l||Q[b]===d)j===""?j=Q[b]:j!==Q[b]||(j="");else if(Q[b]===">"&&j===""){q=!0;break}P+=Q[b]}return j===""&&{value:P,index:b,tagClosed:q}}let g=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p(Q,b){let P=s(Q,g),j={};for(let q=0;q<P.length;q++){if(P[q][1].length===0)return m("InvalidAttr","Attribute '"+P[q][2]+"' has no space in starting.",w(P[q]));if(P[q][3]!==void 0&&P[q][4]===void 0)return m("InvalidAttr","Attribute '"+P[q][2]+"' is without value.",w(P[q]));if(P[q][3]===void 0&&!b.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[q][2]+"' is not allowed.",w(P[q]));let J=P[q][2];if(!I(J))return m("InvalidAttr","Attribute '"+J+"' is an invalid name.",w(P[q]));if(j.hasOwnProperty(J))return m("InvalidAttr","Attribute '"+J+"' is repeated.",w(P[q]));j[J]=1}return!0}function C(Q,b){if(Q[++b]===";")return-1;if(Q[b]==="#")return(function(j,q){let J=/\d/;for(j[q]==="x"&&(q++,J=/[\da-fA-F]/);q<j.length;q++){if(j[q]===";")return q;if(!j[q].match(J))break}return-1})(Q,++b);let P=0;for(;b<Q.length;b++,P++)if(!(Q[b].match(/\w/)&&P<20)){if(Q[b]===";")break;return-1}return b}function m(Q,b,P){return{err:{code:Q,msg:b,line:P.line||P,col:P.col}}}function I(Q){return i(Q)}function y(Q,b){let P=Q.substring(0,b).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function w(Q){return Q.startIndex+Q[1].length}let H={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Q,b,P){return Q},captureMetaData:!1},z;z=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class F{constructor(b){this.tagname=b,this.child=[],this[":@"]={}}add(b,P){b==="__proto__"&&(b="#__proto__"),this.child.push({[b]:P})}addChild(b,P){b.tagname==="__proto__"&&(b.tagname="#__proto__"),b[":@"]&&Object.keys(b[":@"]).length>0?this.child.push({[b.tagname]:b.child,":@":b[":@"]}):this.child.push({[b.tagname]:b.child}),P!==void 0&&(this.child[this.child.length-1][z]={startIndex:P})}static getMetaDataSymbol(){return z}}function W(Q,b){let P={};if(Q[b+3]!=="O"||Q[b+4]!=="C"||Q[b+5]!=="T"||Q[b+6]!=="Y"||Q[b+7]!=="P"||Q[b+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{b+=9;let j=1,q=!1,J=!1,ue="";for(;b<Q.length;b++)if(Q[b]!=="<"||J)if(Q[b]===">"){if(J?Q[b-1]==="-"&&Q[b-2]==="-"&&(J=!1,j--):j--,j===0)break}else Q[b]==="["?q=!0:ue+=Q[b];else{if(q&&oe(Q,b)){let ae,Ee;b+=7,[ae,Ee,b]=U(Q,b+1),Ee.indexOf("&")===-1&&(P[Je(ae)]={regx:RegExp(`&${ae};`,"g"),val:Ee})}else if(q&&Z(Q,b))b+=8;else if(q&&he(Q,b))b+=8;else if(q&&Se(Q,b))b+=9;else{if(!ee)throw new Error("Invalid DOCTYPE");J=!0}j++,ue=""}if(j!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:b}}function U(Q,b){let P="";for(;b<Q.length&&Q[b]!=="'"&&Q[b]!=='"';b++)P+=Q[b];if(P=P.trim(),P.indexOf(" ")!==-1)throw new Error("External entites are not supported");let j=Q[b++],q="";for(;b<Q.length&&Q[b]!==j;b++)q+=Q[b];return[P,q,b]}function ee(Q,b){return Q[b+1]==="!"&&Q[b+2]==="-"&&Q[b+3]==="-"}function oe(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="N"&&Q[b+4]==="T"&&Q[b+5]==="I"&&Q[b+6]==="T"&&Q[b+7]==="Y"}function Z(Q,b){return Q[b+1]==="!"&&Q[b+2]==="E"&&Q[b+3]==="L"&&Q[b+4]==="E"&&Q[b+5]==="M"&&Q[b+6]==="E"&&Q[b+7]==="N"&&Q[b+8]==="T"}function he(Q,b){return Q[b+1]==="!"&&Q[b+2]==="A"&&Q[b+3]==="T"&&Q[b+4]==="T"&&Q[b+5]==="L"&&Q[b+6]==="I"&&Q[b+7]==="S"&&Q[b+8]==="T"}function Se(Q,b){return Q[b+1]==="!"&&Q[b+2]==="N"&&Q[b+3]==="O"&&Q[b+4]==="T"&&Q[b+5]==="A"&&Q[b+6]==="T"&&Q[b+7]==="I"&&Q[b+8]==="O"&&Q[b+9]==="N"}function Je(Q){if(i(Q))return Q;throw new Error(`Invalid entity name ${Q}`)}let He=/^[-+]Line truncated
`);let b=new F("!xml"),P=b,j="",q="";for(let J=0;J<Q.length;J++)if(Q[J]==="<")if(Q[J+1]==="/"){let ue=mc(Q,">",J,"Closing Tag is not closed."),ae=Q.substring(J+2,ue).trim();if(this.options.removeNSPrefix){let zt=ae.indexOf(":");zt!==-1&&(ae=ae.substr(zt+1))}this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&(j=this.saveTextToParentTag(j,P,q));let Ee=q.substring(q.lastIndexOf(".")+1);if(ae&&this.options.unpairedTags.indexOf(ae)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ae}>`);let Fe=0;Ee&&this.options.unpairedTags.indexOf(Ee)!==-1?(Fe=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Fe=q.lastIndexOf("."),q=q.substring(0,Fe),P=this.tagsNodeStack.pop(),j="",J=ue}else if(Q[J+1]==="?"){let ue=HI(Q,J,!1,"?>");if(!ue)throw new Error("Pi Tag is not closed.");if(j=this.saveTextToParentTag(j,P,q),!(this.options.ignoreDeclaration&&ue.tagName==="?xml"||this.options.ignorePiTags)){let ae=new F(ue.tagName);ae.add(this.options.textNodeName,""),ue.tagName!==ue.tagExp&&ue.attrExpPresent&&(ae[":@"]=this.buildAttributesMap(ue.tagExp,q,ue.tagName)),this.addChild(P,ae,q,J)}J=ue.closeIndex+1}else if(Q.substr(J+1,3)==="!--"){let ue=mc(Q,"-->",J+4,"Comment is not closed.");if(this.options.commentPropName){let ae=Q.substring(J+4,ue-2);j=this.saveTextToParentTag(j,P,q),P.add(this.options.commentPropName,[{[this.options.textNodeName]:ae}])}J=ue}else if(Q.substr(J+1,2)==="!D"){let ue=W(Q,J);this.docTypeEntities=ue.entities,J=ue.i}else if(Q.substr(J+1,2)==="!["){let ue=mc(Q,"]]>",J,"CDATA is not closed.")-2,ae=Q.substring(J+9,ue);j=this.saveTextToParentTag(j,P,q);let Ee=this.parseTextData(ae,P.tagname,q,!0,!1,!0,!0);Ee==null&&(Ee=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:ae}]):P.add(this.options.textNodeName,Ee),J=ue+2}else{let ue=HI(Q,J,this.options.removeNSPrefix),ae=ue.tagName,Ee=ue.rawTagName,Fe=ue.tagExp,zt=ue.attrExpPresent,bt=ue.closeIndex;this.options.transformTagName&&(ae=this.options.transformTagName(ae)),P&&j&&P.tagname!=="!xml"&&(j=this.saveTextToParentTag(j,P,q,!1));let pr=P;pr&&this.options.unpairedTags.indexOf(pr.tagname)!==-1&&(P=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),ae!==b.tagname&&(q+=q?"."+ae:ae);let hn=J;if(this.isItStopNode(this.options.stopNodes,q,ae)){let Gs="";if(Fe.length>0&&Fe.lastIndexOf("/")===Fe.length-1)ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Fe=ae):Fe=Fe.substr(0,Fe.length-1),J=ue.closeIndex;else if(this.options.unpairedTags.indexOf(ae)!==-1)J=ue.closeIndex;else{let bu=this.readStopNodeData(Q,Ee,bt+1);if(!bu)throw new Error(`Unexpected end of ${Ee}`);J=bu.i,Gs=bu.tagContent}let Ua=new F(ae);ae!==Fe&&zt&&(Ua[":@"]=this.buildAttributesMap(Fe,q,ae)),Gs&&(Gs=this.parseTextData(Gs,ae,q,!0,zt,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),Ua.add(this.options.textNodeName,Gs),this.addChild(P,Ua,q,hn)}else{if(Fe.length>0&&Fe.lastIndexOf("/")===Fe.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),q=q.substr(0,q.length-1),Fe=ae):Fe=Fe.substr(0,Fe.length-1),this.options.transformTagName&&(ae=this.options.transformTagName(ae));let Gs=new F(ae);ae!==Fe&&zt&&(Gs[":@"]=this.buildAttributesMap(Fe,q,ae)),this.addChild(P,Gs,q,hn),q=q.substr(0,q.lastIndexOf("."))}else{let Gs=new F(ae);this.tagsNodeStack.push(P),ae!==Fe&&zt&&(Gs[":@"]=this.buildAttributesMap(Fe,q,ae)),this.addChild(P,Gs,q,hn),P=Gs}j="",J=bt}}else j+=Q[J];return b.child};function _I(Q,b,P,j){this.options.captureMetaData||(j=void 0);let q=this.options.updateTag(b.tagname,P,b[":@"]);q===!1||(typeof q=="string"&&(b.tagname=q),Q.addChild(b,j))}let OI=function(Q){if(this.options.processEntities){for(let b in this.docTypeEntities){let P=this.docTypeEntities[b];Q=Q.replace(P.regx,P.val)}for(let b in this.lastEntities){let P=this.lastEntities[b];Q=Q.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let b in this.htmlEntities){let P=this.htmlEntities[b];Q=Q.replace(P.regex,P.val)}Q=Q.replace(this.ampEntity.regex,this.ampEntity.val)}return Q};function id(Q,b,P,j){return Q&&(j===void 0&&(j=b.child.length===0),(Q=this.parseTextData(Q,b.tagname,P,!1,!!b[":@"]&&Object.keys(b[":@"]).length!==0,j))!==void 0&&Q!==""&&b.add(this.options.textNodeName,Q),Q=""),Q}function od(Q,b,P){let j="*."+P;for(let q in Q){let J=Q[q];if(j===J||b===J)return!0}return!1}function mc(Q,b,P,j){let q=Q.indexOf(b,P);if(q===-1)throw new Error(j);return q+b.length-1}function HI(Q,b,P,j=">"){let q=(function(bt,pr,hn=">"){let Gs,Ua="";for(let bu=pr;bu<bt.length;bu++){let Ec=bt[bu];if(Gs)Ec===Gs&&(Gs="");else if(Ec==='"'||Ec==="'")Gs=Ec;else if(Ec===hn[0]){if(!hn[1])return{data:Ua,index:bu};if(bt[bu+1]===hn[1])return{data:Ua,index:bu}}else Ec===" "&&(Ec=" ");Ua+=Ec}})(Q,b+1,j);if(!q)return;let J=q.data,ue=q.index,ae=J.search(/\s/),Ee=J,Fe=!0;ae!==-1&&(Ee=J.substring(0,ae),J=J.substring(ae+1).trimStart());let zt=Ee;if(P){let bt=Ee.indexOf(":");bt!==-1&&(Ee=Ee.substr(bt+1),Fe=Ee!==q.data.substr(bt+1))}return{tagName:EeLine truncated
`),Tf(Q,b,"",P)}function Tf(Q,b,P,j){let q="",J=!1;for(let ue=0;ue<Q.length;ue++){let ae=Q[ue],Ee=mA(ae);if(Ee===void 0)continue;let Fe="";if(Fe=P.length===0?Ee:`${P}.${Ee}`,Ee===b.textNodeName){let hn=ae[Ee];vm(Fe,b)||(hn=b.tagValueProcessor(Ee,hn),hn=zI(hn,b)),J&&(q+=j),q+=hn,J=!1;continue}if(Ee===b.cdataPropName){J&&(q+=j),q+=`<![CDATA[${ae[Ee][0][b.textNodeName]}]]>`,J=!1;continue}if(Ee===b.commentPropName){q+=j+`<!--${ae[Ee][0][b.textNodeName]}-->`,J=!0;continue}if(Ee[0]==="?"){let hn=EA(ae[":@"],b),Gs=Ee==="?xml"?"":j,Ua=ae[Ee][0][b.textNodeName];Ua=Ua.length!==0?" "+Ua:"",q+=Gs+`<${Ee}${Ua}${hn}?>`,J=!0;continue}let zt=j;zt!==""&&(zt+=b.indentBy);let bt=j+`<${Ee}${EA(ae[":@"],b)}`,pr=Tf(ae[Ee],b,Fe,zt);b.unpairedTags.indexOf(Ee)!==-1?b.suppressUnpairedNode?q+=bt+">":q+=bt+"/>":pr&&pr.length!==0||!b.suppressEmptyNode?pr&&pr.endsWith(">")?q+=bt+`>${pr}${j}</${Ee}>`:(q+=bt+">",pr&&j!==""&&(pr.includes("/>")||pr.includes("</"))?q+=j+b.indentBy+pr+j:q+=pr,q+=`</${Ee}>`):q+=bt+"/>",J=!0}return q}function mA(Q){let b=Object.keys(Q);for(let P=0;P<b.length;P++){let j=b[P];if(Q.hasOwnProperty(j)&&j!==":@")return j}}function EA(Q,b){let P="";if(Q&&!b.ignoreAttributes)for(let j in Q){if(!Q.hasOwnProperty(j))continue;let q=b.attributeValueProcessor(j,Q[j]);q=zI(q,b),q===!0&&b.suppressBooleanAttributes?P+=` ${j.substr(b.attributeNamePrefix.length)}`:P+=` ${j.substr(b.attributeNamePrefix.length)}="${q}"`}return P}function vm(Q,b){let P=(Q=Q.substr(0,Q.length-b.textNodeName.length-1)).substr(Q.lastIndexOf(".")+1);for(let j in b.stopNodes)if(b.stopNodes[j]===Q||b.stopNodes[j]==="*."+P)return!0;return!1}function zI(Q,b){if(Q&&Q.length>0&&b.processEntities)for(let P=0;P<b.entities.length;P++){let j=b.entities[P];Q=Q.replace(j.regex,j.val)}return Q}let Ke={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Q,b){return b},attributeValueProcessor:function(Q,b){return b},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};function $(Q){this.options=Object.assign({},Ke,Q),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=er(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=le),this.processTextOrObjNode=M,this.options.format?(this.indentate=ne,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function M(Q,b,P,j){let q=this.j2x(Q,P+1,j.concat(b));return Q[this.options.textNodeName]!==void 0&&Object.keys(Q).length===1?this.buildTextValNode(Q[this.options.textNodeName],b,q.attrStr,P):this.buildObjectNode(q.val,b,q.attrStr,P)}function ne(Q){return this.options.indentBy.repeat(Q)}function le(Q){return!(!Q.startsWith(this.options.attributeNamePrefix)||Q===this.options.textNodeName)&&Q.substr(this.attrPrefixLen)}$.prototype.build=function(Q){return this.options.preserveOrder?WI(Q,this.options):(Array.isArray(Q)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Q={[this.options.arrayNodeName]:Q}),this.j2x(Q,0,[]).val)},$.prototype.j2x=function(Q,b,P){let j="",q="",J=P.join(".");for(let ue in Q)if(Object.prototype.hasOwnProperty.call(Q,ue))if(Q[ue]===void 0)this.isAttribute(ue)&&(q+="");else if(Q[ue]===null)this.isAttribute(ue)||ue===this.options.cdataPropName?q+="":ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(Q[ue]instanceof Date)q+=this.buildTextValNode(Q[ue],ue,"",b);else if(typeof Q[ue]!="object"){let ae=this.isAttribute(ue);if(ae&&!this.ignoreAttributesFn(ae,J))j+=this.buildAttrPairStr(ae,""+Q[ue]);else if(!ae)if(ue===this.options.textNodeName){let Ee=this.options.tagValueProcessor(ue,""+Q[ue]);q+=this.replaceEntitiesValue(Ee)}else q+=this.buildTextValNode(Q[ue],ue,"",b)}else if(Array.isArray(Q[ue])){let ae=Q[ue].length,Ee="",Fe="";for(let zt=0;zt<ae;zt++){let bt=Q[ue][zt];if(bt!==void 0)if(bt===null)ue[0]==="?"?q+=this.indentate(b)+"<"+ue+"?"+this.tagEndChar:q+=this.indentate(b)+"<"+ue+"/"+this.tagEndChar;else if(typeof bt=="object")if(this.options.oneListGroup){let pr=this.j2x(bt,b+1,P.concat(ue));Ee+=pr.val,this.options.attributesGroupName&&bt.hasOwnProperty(this.options.attributesGroupName)&&(Fe+=pr.attrStr)}else Ee+=this.processTextOrObjNode(bt,ue,b,P);else if(this.options.oneListGroup){let pr=this.options.tagValueProcessor(ue,bt);pr=this.replaceEntitiesValue(pr),Ee+=pr}else Ee+=this.buildTextValNode(bt,ue,"",b)}this.options.oneListGroup&&(Ee=this.buildObjectNode(Ee,ue,Fe,b)),q+=Ee}else if(this.options.attributesGroupName&&ue===this.options.attributesGroupName){let ae=Object.keys(Q[ue]),Ee=ae.length;for(let Fe=0;Fe<Ee;Fe++)j+=this.buildAttrPairStr(ae[Fe],""+Q[ue][ae[Fe]])}else q+=this.processTextOrObjNode(Q[ue],ue,b,P);return{attrStr:j,val:q}},$.prototype.buildAttrPairStr=function(Q,b){return b=this.options.attributeValueProcessor(Q,""+b),b=this.replaceEntitiesValue(b),this.options.suppressBooleanAttributes&&b==="true"?" "+Q:" "+Q+'="'+b+'"'},$.prototype.buildObjectNode=function(Q,b,P,j){if(Q==="")return b[0]==="?"?this.indentate(j)+"<"+b+P+"?"+this.tagEndChar:this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar;{let q="</"+b+this.tagEndChar,J="";return b[0]==="?"&&(J="?",q=""),!P&&P!==""||Q.indexOf("<")!==-1?this.options.commentPropName!==!1&&b===this.options.commentPropName&&J.length===0?this.indentate(j)+`<!--${Q}-->`+this.newLine:this.indentate(j)+"<"+b+P+J+this.tagEndChar+Q+this.indentate(j)+q:this.indentate(j)+"<"+b+P+J+">"+Q+q}},$.prototype.closeTag=function(Q){let b="";return this.options.unpairedTags.indexOf(Q)!==-1?this.options.suppressUnpairedNode||(b="/"):b=this.options.suppressEmptyNode?"/":`></${Q}`,b},$.prototype.buildTextValNode=function(Q,b,P,j){if(this.options.cdataPropName!==!1&&b===this.options.cdataPropName)return this.indentate(j)+`<![CDATA[${Q}]]>`+this.newLine;if(this.options.commentPropName!==!1&&b===this.options.commentPropName)return this.indentate(j)+`<!--${Q}-->`+this.newLine;if(b[0]==="?")return this.indentate(j)+"<"+b+P+"?"+this.tagEndChar;{let q=this.options.tagValueProcessor(b,Q);return q=this.replaceEntitiesValue(q),q===""?this.indentate(j)+"<"+b+P+this.closeTag(b)+this.tagEndChar:this.indentate(j)+"<"+b+P+">"+q+"</"+b+this.tagEndChar}},$.prototype.replaceEntitiesValue=function(Q){if(Q&&Q.length>0&&this.options.processEntities)for(let b=0;b<this.options.entities.length;b++){let P=this.options.entities[b];Q=Q.replace(P.regex,P.val)}return Q};let ge={validate:a};AJe.exports=e})()});var joe=f(vN=>{"use strict";Object.defineProperty(vN,"__esModule",{value:!0});vN.XML_CHARKEY=vN.XML_ATTRKEY=void 0;vN.XML_ATTRKEY="$";vN.XML_CHARKEY="_"});var dJe=f(B8=>{"use strict";Object.defineProperty(B8,"__esModule",{value:!0});B8.stringifyXML=mlr;B8.parseXML=Elr;var Koe=cJe(),uJe=joe();function lJe(t){var e;return{attributesGroupName:uJe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:uJe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function flr(t={}){var e,r;return Object.assign(Object.assign({},lJe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function plr(t={}){return Object.assign(Object.assign({},lJe(t)),{parseAttributeValue:!1Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(la.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===la.HeaderConstants.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(la.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,i)=>(0,cdr.compareHeader)(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=(0,FJe.getURLPath)(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=(0,FJe.getURLQueries)(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}};L8.StorageSharedKeyCredentialPolicy=gae});var MJe=f(U8=>{"use strict";Object.defineProperty(U8,"__esModule",{value:!0});U8.StorageSharedKeyCredential=void 0;var udr=B("node:crypto"),ldr=fae(),ddr=M8(),pae=class extends ddr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ldr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,udr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};U8.StorageSharedKeyCredential=pae});var vJe=f(P8=>{"use strict";Object.defineProperty(P8,"__esModule",{value:!0});P8.AbortError=void 0;var mae=class extends Error{constructor(e){super(e),this.name="AbortError"}};P8.AbortError=mae});var Eae=f(_8=>{"use strict";Object.defineProperty(_8,"__esModule",{value:!0});_8.AbortError=void 0;var hdr=vJe();Object.defineProperty(_8,"AbortError",{enumerable:!0,get:function(){return hdr.AbortError}})});var Cae=f(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0});O8.logger=void 0;var gdr=r0();O8.logger=(0,gdr.createClientLogger)("storage-common")});var Iae=f(H8=>{"use strict";Object.defineProperty(H8,"__esModule",{value:!0});H8.StorageRetryPolicyType=void 0;var LJe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(LJe||(H8.StorageRetryPolicyType=LJe={}))});var PJe=f(g2=>{"use strict";Object.defineProperty(g2,"__esModule",{value:!0});g2.StorageRetryPolicy=void 0;g2.NewRetryPolicyFactory=mdr;var fdr=Eae(),pdr=h2(),UJe=dp(),Bae=a0(),kE=Cae(),Qae=Iae();function mdr(t){return{create:(e,r)=>new q8(e,r,t)}}var FE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Qae.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Edr=new fdr.AbortError("The operation was aborted."),q8=class extends pdr.BaseRequestPolicy{retryOptions;constructor(e,r,n=FE){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:FE.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):FE.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:FE.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:FE.maxRetryDelayInMs):FE.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:FE.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:FE.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=(0,Bae.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,Bae.setURLParameter)(s.url,UJe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(kE.logger.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(kE.logger.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 kE.logger.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 kE.logger.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 kE.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return kE.logger.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(UJe.HeaderConstants.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')?(kE.logger.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 Qae.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Qae.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return kE.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,Bae.delay)(s,n,Edr)}};g2.StorageRetryPolicy=q8});var wae=f(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{val Line truncated
`)+`
`+n(i)+s(i),a=(0,xdr.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(da.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===da.HeaderConstants.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(da.HeaderConstants.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>(0,Tdr.compareHeader)(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=(0,YJe.getURLPath)(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=(0,YJe.getURLQueries)(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:qN.storageSharedKeyCredentialPolicyName,async sendRequest(i,o){return e(i),o(i)}}}});var VJe=f(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.storageRequestFailureDetailsParserPolicyName=void 0;GN.storageRequestFailureDetailsParserPolicy=Fdr;GN.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function Fdr(){return{name:GN.storageRequestFailureDetailsParserPolicyName,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}});var WJe=f(G8=>{"use strict";Object.defineProperty(G8,"__esModule",{value:!0});G8.UserDelegationKeyCredential=void 0;var Mdr=B("node:crypto"),Dae=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Mdr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};G8.UserDelegationKeyCredential=Dae});var yd=f(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.BaseRequestPolicy=js.getCachedDefaultHttpClient=void 0;var ha=(Wn(),$n(Vn));ha.__exportStar(mJe(),js);var vdr=EJe();Object.defineProperty(js,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return vdr.getCachedDefaultHttpClient}});ha.__exportStar(IJe(),js);ha.__exportStar(TJe(),js);ha.__exportStar(kJe(),js);ha.__exportStar(M8(),js);ha.__exportStar(MJe(),js);ha.__exportStar(wae(),js);var Ldr=h2();Object.defineProperty(js,"BaseRequestPolicy",{enumerable:!0,get:function(){return Ldr.BaseRequestPolicy}});ha.__exportStar(cae(),js);ha.__exportStar(T8(),js);ha.__exportStar(_Je(),js);ha.__exportStar(OJe(),js);ha.__exportStar(GJe(),js);ha.__exportStar(fae(),js);ha.__exportStar(JJe(),js);ha.__exportStar(VJe(),js);ha.__exportStar(WJe(),js)});var Oc=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.PathStylePorts=at.BlobDoesNotUseCustomerSpecifiedEncryption=at.BlobUsesCustomerSpecifiedEncryptionMsg=at.StorageBlobLoggingAllowedQueryParameters=at.StorageBlobLoggingAllowedHeaderNames=at.DevelopmentConnectionString=at.EncryptionAlgorithmAES25=at.HTTP_VERSION_1_1=at.HTTP_LINE_ENDING=at.BATCH_MAX_PAYLOAD_IN_BYTES=at.BATCH_MAX_REQUEST=at.SIZE_1_MB=at.ETagAny=at.ETagNone=at.HeaderConstants=at.HTTPURLConnection=at.URLConstants=at.StorageOAuthScopes=at.REQUEST_TIMEOUT=at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=at.BLOCK_BLOB_MAX_BLOCKS=at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=at.SERVICE_VERSION=at.SDK_VERSION=void 0;at.SDK_VERSION="12.31.0";at.SERVICE_VERSION="2026-02-06";at.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;at.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;at.BLOCK_BLOB_MAX_BLOCKS=5e4;at.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;at.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;at.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;at.REQUEST_TIMEOUT=100*1e3;at.StorageOAuthScopes="https://storage.azure.com/.default";at.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};at.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};at.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};at.ETagNone="";at.ETagAny="*";at.SIZE_1_MB=1*1024*1024;at.BATCH_MAX_REQUEST=256;at.BATCH_MAX_PAYLOAD_IN_BYTES=4*at.SIZE_1_MB;at.HTTP_LINE_ENDING=`\r
`;at.HTTP_VERSION_1_1="HTTP/1.1";at.EncryptionAlgorithmAES25="AES256";at.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";at.StorageBlobLoggingAllowedHeaderNames=["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"];at.StorageBlobLoggingAllowedQueryParameters=["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"];at.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";at.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";at.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var ME=f(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.Pipeline=zh.StorageOAuthScopes=void 0;zh.isPipelineLike=Pdr;zh.newPipeline=_dr;zh.getCoreClientOptions=Hdr;zh.getCredentialFromPipeline=ZJe;var XJe=I8(),zJe=Yi(),jJe=Jh(),KJe=Xoe(),xae=xN(),Udr=y8(),Hc=yd(),f2=Oc();Object.defineProperty(zh,"StorageOAuthScopes",{enumerable:!0,get:function(){return f2.StorageOAuthScopes}});function Pdr(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 Y8=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};zh.Pipeline=Y8;function _dr(t,e={}){t||(t=new Hc.AnonymousCredential);let r=new Y8([],e);return r._credential=t,r}function Odr(t){let e=[qdr,$Je,Gdr,Ydr,Jdr,Vdr,zdr];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Wdr(s));return{wrappedPolicies:(0,XJe.createRequestPolicyFactoryPolicy)(r),afterRetry:n}}}}function Hdr(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?(0,XJe.convertHttpClient)(e):(0,Hc.getCachedDefaultHttpClient)(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${f2.SDK_VERSION}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=(0,jJe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:f2.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:f2.StorageBlobLoggingAllowedQueryParameters,logger:Udr.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:KJe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserial Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new h0.SASQueryParameters(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 ifr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,d0.ipRangeToString)(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 h0.SASQueryParameters(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 ofr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,d0.ipRangeToString)(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 h0.SASQueryParameters(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 afr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,d0.ipRangeToString)(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 h0.SASQueryParameters(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 Afr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,d0.ipRangeToString)(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 h0.SASQueryParameters(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 cfr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,d0.ipRangeToString)(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 h0.SASQueryParameters(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 ufr(t,e){if(t=f0(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=u0.BlobSASPermissions.parse(t.permissions.toString()).toString():s=l0.ContainerSASPermissions.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?(0,Ks.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,Ks.truncatedISO8061Date)(t.expiresOn,!1):"",g0(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,Ks.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,d0.ipRangeToString)(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 h0.SASQueryParameters(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 g0(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function f0(t){let e=t.version?t.version:PVe.SERVICE_VERSION;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 g3=f(h3=>{"use strict";Object.defineProperty(h3,"__esModule",{value:!0});h3.BlobLeaseClient=void 0;var lfr=Is(),Kh=Oc(),m2=c0(),d3=el(),$ae=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=(0,lfr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Kh.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Kh.ETagNone||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 m2.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async n=>(0,d3.assertResponse)(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!==Kh.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Kh.ETagNone||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 m2.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=(0,d3.assertResponse)(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!==Kh.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Kh.ETagNone||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 m2.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,d3.assertResponse)(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!==Kh.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${iWe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=o(c,r);if(l!==void 0)return{response:await e(l).catch(sWe({state:r,stateProxy:n,isOperationError:a})),status:u}}return{response:c,status:u}}async function _fr(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:d,updateState:h,setDelay:g,isDone:p,setErrorAsResult:C}=t,{operationLocation:m}=r.config;if(m!==void 0){let{response:I,status:y}=await Pfr({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:m,getResourceLocation:o,isOperationError:A,options:s});if(oWe({status:y,response:I,state:r,stateProxy:n,isDone:p,processResult:l,getError:d,setErrorAsResult:C}),!iWe.terminalStates.includes(y)){let w=u?.(I);w&&g(w);let H=a?.(I,r);if(H!==void 0){let z=m!==H;r.config.operationLocation=H,c?.(H,z)}else c?.(m,!1)}h?.(r,I)}}qE.pollOperation=_fr});var QAe=f(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.pollHttpOperation=Xs.isOperationError=Xs.getResourceLocation=Xs.getOperationStatus=Xs.getOperationLocation=Xs.initHttpOperation=Xs.getStatusFromInitialResponse=Xs.getErrorFromResponse=Xs.parseRetryAfter=Xs.inferLroMode=void 0;var aWe=S3(),CAe=w3();function AWe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function cWe(t){return t.headers.location}function uWe(t){return t.headers["operation-location"]}function lWe(t){return t.headers["azure-asyncoperation"]}function Ofr(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function dWe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=uWe(e),o=lWe(e),a=AWe({operationLocation:i,azureAsyncOperation:o}),A=cWe(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Ofr({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:s})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Xs.inferLroMode=dWe;function hWe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return IAe(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return CAe.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Hfr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return hWe({status:r,statusCode:t.statusCode})}function qfr(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return hWe({status:i,statusCode:t.statusCode})}function IAe(t){return t===202?"running":t<300?"succeeded":"failed"}function gWe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Gfr(new Date(e)):r*1e3}}Xs.parseRetryAfter=gWe;function fWe(t){let e=EWe(t,"error");if(!e){CAe.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){CAe.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Xs.getErrorFromResponse=fWe;function Gfr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function pWe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return IAe(e.rawResponse.statusCode);case"Body":return BAe(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}Xs.getStatusFromInitialResponse=pWe;async function Yfr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return(0,aWe.initOperation)({init:async()=>{let o=await s.sendInitialRequest(),a=dWe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:pWe,setErrorAsResult:i})}Xs.initHttpOperation=Yfr;function mWe({rawResponse:t},e){var r;sLine truncated
`):o=[e.accountName,n,s,i,t.startsOn?(0,A4.truncatedISO8061Date)(t.startsOn,!1):"",(0,A4.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,VWe.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xpr.SASQueryParameters(r,a,n.toString(),s,i,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}});var ZWe=f(l4=>{"use strict";Object.defineProperty(l4,"__esModule",{value:!0});l4.BlobServiceClient=void 0;var emr=xN(),tmr=Yi(),zWe=Is(),B2=ME(),rmr=WAe(),u4=el(),C0=yd(),tg=el(),rg=c0(),nmr=$3(),smr=n3(),jWe=s4(),KWe=ZAe(),XWe=a4(),$Ae=class t extends smr.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let n=(0,u4.extractConnectionStringParts)(e);if(n.kind==="AccountConnString")if(zWe.isNodeLike){let s=new C0.StorageSharedKeyCredential(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=(0,tmr.getDefaultProxySettings)(n.proxyUri));let i=(0,B2.newPipeline)(s,r);return new t(n.url,i)}else throw new Error("Account connection string is only supported in Node.js environment");else if(n.kind==="SASConnString"){let s=(0,B2.newPipeline)(new C0.AnonymousCredential,r);return new t(n.url+"?"+n.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){let s;(0,B2.isPipelineLike)(r)?s=r:zWe.isNodeLike&&r instanceof C0.StorageSharedKeyCredential||r instanceof C0.AnonymousCredential||(0,emr.isTokenCredential)(r)?s=(0,B2.newPipeline)(r,n):s=(0,B2.newPipeline)(new C0.AnonymousCredential,n),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new rmr.ContainerClient((0,u4.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-createContainer",r,async n=>{let s=this.getContainerClient(e),i=await s.create(n);return{containerClient:s,containerCreateResponse:i}})}async deleteContainer(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async n=>this.getContainerClient(e).delete(n))}async undeleteContainer(e,r,n={}){return rg.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,async s=>{let i=this.getContainerClient(n.destinationContainerName||e),o=i.storageClientContext.container,a=(0,tg.assertResponse)(await o.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:i,containerUndeleteResponse:a}})}async getProperties(e={}){return rg.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,tg.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-setProperties",r,async n=>(0,tg.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}async getStatistics(e={}){return rg.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,tg.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return rg.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,tg.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return rg.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async n=>(0,tg.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions})))}async findBlobsByTagsSegment(e,r,n={}){return rg.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,async s=>{let i=(0,tg.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:s.tracingOptions}));return{...i,_response:i._response,blobs:i.blobs.map(a=>{let A="";return a.tags?.blobTagSet.length===1&&(A=a.tags.blobTagSet[0].value),{...a,tags:(0,u4.toTags)(a.tags),tagValue:A}})}})}async*findBlobsByTagsSegments(e,r,n={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,n),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let n;for await(let s of this.findBlobsByTagsSegments(e,n,r))yield*s.blobs}findBlobsByTags(e,r={}){let n={...r},s=this.findBlobsByTagsItems(e,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(e,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async*listSegments(e,r={}){let n;if(e||e===void 0)do n=await this.listContainersSegment(e,r),n.containerItems=n.containerItems||[],e=n.continuationToken,yield await n;while(e)}async*listItems(e={}){let r;for await(let n of this.listSegments(r,e))yield*n.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};JA.NetworkError=f4;f4.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var p4=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};JA.UsageError=p4;p4.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var nze=f(VA=>{"use strict";var cmr=VA&&VA.__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]})),umr=VA&&VA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lmr=VA&&VA.__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)&&cmr(e,t,r);return umr(e,t),e},dmr=VA&&VA.__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(VA,"__esModule",{value:!0});VA.uploadCacheArchiveSDK=VA.UploadProgress=void 0;var oce=lmr(Uc()),hmr=ece(),gmr=ice(),m4=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);oce.info(`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()}};VA.UploadProgress=m4;function fmr(t,e,r){var n;return dmr(this,void 0,void 0,function*(){let s=new hmr.BlobClient(t),i=s.getBlockBlobClient(),o=new m4((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(),oce.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new gmr.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw oce.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}VA.uploadCacheArchiveSDK=fmr});var Ace=f($s=>{"use strict";var pmr=$s&&$s.__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]})),mmr=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Emr=$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)&&pmr(e,t,r);return mmr(e,t),e},C4=$s&&$s.__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($s,"__esModule",{value:!0});$s.retryHttpClientResponse=$s.retryTypedResponse=$s.retry=$s.isRetryableStatusCode=$s.isServerErrorStatusCode=$s.isSuccessStatusCode=void 0;var sze=Emr(Uc()),E4=JB(),sS=Ow();function Cmr(t){return t?t>=200&&t<300:!1}$s.isSuccessStatusCode=Cmr;function ize(t){return t?t>=500:!0}$s.isServerErrorStatusCode=ize;function oze(t){return t?[E4.HttpCodes.BadGateway,E4.HttpCodes.ServiceUnavailable,E4.HttpCodes.GatewayTimeout].includes(t):!1}$s.isRetryableStatusCode=oze;function Imr(t){return C4(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ace(t,e,r,n=sS.DefaultRetryAttempts,s=sS.DefaultRetryDelay,i=void 0){return C4(this,void 0,void 0,function*(){let o="",a=1;for(;a<=n;){let A,c,u=!1;try{A=yield e()}catch(l){i&&(A=i(l)),u=!0,o=l.message}if(A&&(c=r(A),!ize(c)))return A;if(c&&(u=oze(c),o=`Cache service responded with ${c}`),sze.debug(`${t} - Attempt ${a} of Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])Yc.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nEr(t,e,r){return WA(this,void 0,void 0,function*(){let n=new jmr.URL(t),s=(0,fce.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,y4.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,y4.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,y4.downloadCacheHttpClient)(t,e):yield(0,y4.downloadCacheHttpClient)(t,e)})}po.downloadCache=nEr;function sEr(t,e,r){return WA(this,void 0,void 0,function*(){let n=pce(),s=aS.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,VE.retryTypedResponse)("reserveCache",()=>WA(this,void 0,void 0,function*(){return n.postJson(S2("caches"),i)}))})}po.reserveCache=sEr;function Eze(t,e){return`bytes ${t}-${e}/*`}function iEr(t,e,r,n,s){return WA(this,void 0,void 0,function*(){Yc.debug(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eze(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eze(n,s)},o=yield(0,VE.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${s})`,()=>WA(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!(0,VE.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function oEr(t,e,r,n){return WA(this,void 0,void 0,function*(){let s=aS.getArchiveFileSizeInBytes(r),i=S2(`caches/${e.toString()}`),o=hce.openSync(r,"r"),a=(0,fce.getUploadOptions)(n),A=aS.assertDefined("uploadConcurrency",a.uploadConcurrency),c=aS.assertDefined("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];Yc.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>WA(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,g=l+d-1;l+=c,yield iEr(t,i,()=>hce.createReadStream(r,{fd:o,start:h,end:g,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,g)}})))}finally{hce.closeSync(o)}})}function aEr(t,e,r){return WA(this,void 0,void 0,function*(){let n={size:r};return yield(0,VE.retryTypedResponse)("commitCache",()=>WA(this,void 0,void 0,function*(){return t.postJson(S2(`caches/${e.toString()}`),n)}))})}function AEr(t,e,r,n){return WA(this,void 0,void 0,function*(){if((0,fce.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Kmr.uploadCacheArchiveSDK)(r,e,n)}else{let i=pce();Yc.debug("Upload cache"),yield oEr(i,t,e,n),Yc.debug("Commiting cache");let o=aS.getArchiveFileSizeInBytes(e);Yc.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield aEr(i,t,o);if(!(0,VE.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Yc.info("Cache saved successfully")}})}po.saveCache=AEr});var b4=f(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.isJsonObject=AS.typeofJsonValue=void 0;function cEr(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}AS.typeofJsonValue=cEr;function uEr(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}AS.isJsonObject=uEr});var N4=f(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.base64encode=cS.base64decode=void 0;var pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),w4=[];for(let t=0;t<pp.length;t++)w4[pp[t].charCodeAt(0)]=t;w4[45]=pp.indexOf("+");w4[95]=pp.indexOf("/");function lEr(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=w4[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)}cS.base64decode=lEr;function dEr(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=pp[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=pp[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=pp[s|n>>6],e+=pp[n&63],r=0;break}return r&&(e+=pp[s],e+="=",r==1&&(e+="=")),e}cS.base64encode=dEr});var Ize=f(S4=>{"use strict";Object.defineProperty(S4,"__esModule",{value:!0});S4.utf8read=void 0;var mce=t=>String.fromCharCode.apply(String,t);function hEr(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(mce(n)),s=0);return r.length?(s&&r.push(mce(n.slice(0,s))),r.join("")):mce(n.slice(0,s))}S4.utf8read=hEr});var R2=f(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.WireType=ng.mergeBinaryOptions=ng.UnknownFieldHandler=void 0;var gEr;(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])})(gEr=ng.UnknownFieldHandler||(ng.UnknownFieldHandler={}));function fEr(t,e){return Object.assign(Object.assign({},t),e)}ng.mergeBinaryOptions=fEr;var pEr;(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"})(pEr=ng.WireType||(ng.WireType={}))});var D4=f(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA.varint32read=zA.varint32write=zA.int64toString=zA.int64fromString=zA.varint64write=zA.varint64read=void 0;function mEr(){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")}zA.varint64read=mEr;function EEr(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)}}zA.varint64write=EEr;var R4=65536*65536;function CEr(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>=R4&&(s=s+(n/R4|0),n=n%R4)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}zA.int64fromString=CEr;function IEr(t,e){if(e>>>0<=2097151)return""+(R4*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)}zA.int64toString=IEr;function BEr(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)}}zA.varint32write=BEr;function QEr(){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}zA.varint32read=QEr});var zE=f(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});WE.PbLong=WE.PbULong=WE.detectBi=void 0;var D2=D4(),_n;function Bze(){let t=new DataView(new ArrayBuffer(8));_n=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}WE.detectBi=Bze;Bze();function Qze(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var yze=/^-?[0-9]+$/,T4=4294967296,x4=2147483648, Line truncated
`)}};rY.RpcError=Yce});var Vce=f(sY=>{"use strict";Object.defineProperty(sY,"__esModule",{value:!0});sY.mergeRpcOptions=void 0;var $ze=lr();function YCr(t,e){if(!e)return t;let r={};nY(t,r),nY(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$ze.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$ze.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},nY(t.meta,r.meta),nY(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}sY.mergeRpcOptions=YCr;function nY(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 zce=f(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.Deferred=Q0.DeferredState=void 0;var og;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(og=Q0.DeferredState||(Q0.DeferredState={}));var Wce=class{constructor(e=!0){this._state=og.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!==og.PENDING)throw new Error(`cannot resolve ${og[this.state].toLowerCase()}`);this._resolve(e),this._state=og.RESOLVED}reject(e){if(this.state!==og.PENDING)throw new Error(`cannot reject ${og[this.state].toLowerCase()}`);this._reject(e),this._state=og.REJECTED}resolvePending(e){this._state===og.PENDING&&this.resolve(e)}rejectPending(e){this._state===og.PENDING&&this.reject(e)}};Q0.Deferred=Wce});var Kce=f(iY=>{"use strict";Object.defineProperty(iY,"__esModule",{value:!0});iY.RpcOutputStreamController=void 0;var eje=zce(),y0=lr(),jce=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){y0.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){y0.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){y0.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(){y0.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;y0.assert(e,"bad state"),y0.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 eje.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;y0.assert(n.state==eje.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};iY.RpcOutputStreamController=jce});var Zce=f(pS=>{"use strict";var JCr=pS&&pS.__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(pS,"__esModule",{value:!0});pS.UnaryCall=void 0;var Xce=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 JCr(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}})}};pS.UnaryCall=Xce});var eue=f(mS=>{"use strict";var VCr=mS&&mS.__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(mS,"__esModule",{value:!0});mS.ServerStreamingCall=void 0;var $ce=class Line truncated
`));let n=yield yue(r,"create");yield bue(n,t)})}ga.createTar=OIr});var V2=f(Mi=>{"use strict";var HIr=Mi&&Mi.__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]})),qIr=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Y2=Mi&&Mi.__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)&&HIr(e,t,r);return qIr(e,t),e},FS=Mi&&Mi.__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(Mi,"__esModule",{value:!0});Mi.saveCache=Mi.restoreCache=Mi.isFeatureAvailable=Mi.ReserveCacheError=Mi.ValidationError=void 0;var dr=Y2(Uc()),hY=Y2(B("path")),ys=Y2(qw()),TS=Y2(Cze()),Cje=Y2(fje()),J2=B4(),XE=Eje(),GIr=Ow(),i2n=JB(),ZE=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Mi.ValidationError=ZE;var G2=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Mi.ReserveCacheError=G2;function Ije(t){if(!t||t.length===0)throw new ZE("Path Validation Error: At least one directory or file path is required")}function wue(t){if(t.length>512)throw new ZE(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ZE(`Key Validation Error: ${t} cannot contain commas.`)}function YIr(){return(0,J2.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}Mi.isFeatureAvailable=YIr;function JIr(t,e,r,n,s=!1){return FS(this,void 0,void 0,function*(){let i=(0,J2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${i}`),Ije(t),i==="v2"?yield WIr(t,e,r,n,s):yield VIr(t,e,r,n,s)})}Mi.restoreCache=JIr;function VIr(t,e,r,n,s=!1){return FS(this,void 0,void 0,function*(){r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new ZE("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of i)wue(A);let o=yield ys.getCompressionMethod(),a="";try{let A=yield TS.getCacheEntry(i,t,{compressionMethod:o,enableCrossOsArchive:s});if(!A?.archiveLocation)return;if(n?.lookupOnly)return dr.info("Lookup only - skipping download"),A.cacheKey;a=hY.join(yield ys.createTempDirectory(),ys.getCacheFileName(o)),dr.debug(`Archive Path: ${a}`),yield TS.downloadCache(A.archiveLocation,a,n),dr.isDebug()&&(yield(0,XE.listTar)(a,o));let c=ys.getArchiveFileSizeInBytes(a);return dr.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,XE.extractTar)(a,o),dr.info("Cache restored successfully"),new kS(A.cacheKey,c)}finally{try{yield ys.unlinkFile(a)}catch(A){dr.debug(`Failed to delete archive: ${A}`)}}})}function WIr(t,e,r,n,s=!1){return FS(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let i=[e,...r];if(dr.debug("Resolved Keys:"),dr.debug(JSON.stringify(i)),i.length>10)throw new ZE("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of i)wue(a);let o="";try{let a=Cje.internalCacheTwirpClient(),A=yield ys.getCompressionMethod(),c={key:e,restoreKeys:r,version:ys.getCacheVersion(t,A,s)},u=yield a.GetCacheEntryDownloadURL(c);if(!u.ok){dr.debug(`Cache not found for version ${c.version} of keys: ${i.join(", ")}`);return}if(c.key!==u.matchedKey?dr.info(`Cache hit for restore-key: ${u.matchedKey}`):dr.info(`Cache hit for: ${u.matchedKey}`),n?.lookupOnly)return dr.info("Lookup only - skipping download"),u.matchedKey;o=hY.join(yield ys.createTempDirectory(),ys.getCacheFileName(A)),dr.debug(`Archive path: ${o}`),dr.debug(`Starting download of archive to: ${o}`),yield TS.downloadCache(u.signedDownloadUrl,o,n);let d=ys.getArchiveFileSizeInBytes(o);return dr.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),dr.isDebug()&&(yield(0,XE.listTar)(o,A)),yield(0,XE.extractTar)(o,A),dr.info("Cache restored successfully"),new kS(u.matchedKey,d)}finally{try{o&&(yield ys.unlinkFile(o))}catch(a){dr.debug(`Failed to delete archive: ${a}`)}}})}function zIr(t,e,r,n=!1){return FS(this,void 0,void 0,function*(){let s=(0,J2.getCacheServiceVersion)();return dr.debug(`Cache service version: ${s}`),Ije(t),wue(e),s==="v2"?yield KIr(t,e,r,n):yield jIr(t,e,r,n)})}Mi.saveCache=zIr;function jIr(t,e,r,n=!1){var s,i,o,a,A;return FS(this,void 0,void 0,function*(){let c=yield ys.getCompressionMethod(),u=-1,l=yield ys.resolvePaths(t);if(dr.debug("C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vQr(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(CQr.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function LQr(){return"allowed"}function UQr(){return"success"}function PQr(){return"success"}function _Qr(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function OQr(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&&wle(t.origin)&&!wle(oF(t))&&(e=null);break;case"same-origin":qY(t,oF(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function WS(t,e){return t}function HQr(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:WS(t.domainLookupStartTime,r),domainLookupEndTime:WS(t.domainLookupEndTime,r),connectionStartTime:WS(t.connectionStartTime,r),connectionEndTime:WS(t.connectionEndTime,r),secureConnectionStartTime:WS(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function qQr(t){return WS(bQr.now(),t)}function GQr(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 TKe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function YQr(t){return{referrerPolicy:t.referrerPolicy}}function JQr(t){let e=t.referrerPolicy;T0(e);let r=null;if(t.referrer==="client"){let a=wKe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=ble(r),s=ble(r,!0);n.toString().length>4096&&(n=s);let i=qY(t,n),o=iF(n)&&!iF(t.url);switch(e){case"origin":return s??ble(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=oF(t);return qY(n,a)?n:iF(n)&&!iF(a)?"no-referrer":s}default:return o?"no-referrer":s}}function ble(t,e){return T0(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 iF(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 VQr(t,e){if(HY===void 0)return!0;let r=kKe(e);if(r==="no metadata"||r.length===0)return!0;let n=zQr(r),s=jQr(r,n);for(let i of s){let o=i.algo,a=i.hash,A=HY.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)),KQr(A,a))return!0}return!1}var WQr=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kKe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=WQr.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();SKe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function zQr(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 jQr(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 KQr(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 XQr(t){}function qY(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ZQr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $Qr(t){return t.controller.state==="aborted"}function eyr(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function tyr(t){return SQr[t.toLowerCase()]??t}function ryr(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return T0(typeof e=="string"),e}var nyr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function FKe(t,e,r=0,n=1){cl Line truncated
`);function Fyr(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Myr(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 vyr(t,e){YY(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&&JY(t,Tyr,i)||i.position===t.length-4&&JY(t,kyr,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Lyr(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let g=t.indexOf(n.subarray(2),i.position);if(g===-1)return"failure";d=t.subarray(i.position,g-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",Fyr(u)||(u=""),h=new Dyr([d],c,{type:u})):h=byr(Buffer.from(d)),YY(JKe(A)),YY(typeof h=="string"&&JKe(h)||Nyr(h)),s.push(Syr(A,h,c))}}function Lyr(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=jS(a=>a!==10&&a!==13&&a!==58,t,e);if(o=kle(o,!0,!0,a=>a===9||a===32),!wyr.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jS(a=>a===32||a===9,t,e),yyr(o)){case"content-disposition":{if(r=n=null,!JY(t,xyr,e)||(e.position+=17,r=zKe(t,e),r===null))return"failure";if(JY(t,WKe,e)){let a=e.position+WKe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=zKe(t,e),n===null))return"failure"}break}case"content-type":{let a=jS(A=>A!==10&&A!==13,t,e);a=kle(a,!1,!0,A=>A===9||A===32),s=VKe(a);break}case"content-transfer-encoding":{let a=jS(A=>A!==10&&A!==13,t,e);a=kle(a,!1,!0,A=>A===9||A===32),i=VKe(a);break}default:jS(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function zKe(t,e){YY(t[e.position-1]===34);let r=jS(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 jS(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function kle(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 JY(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}jKe.exports={multipartFormDataParser:vyr,validateBoundary:Myr}});var ZS=f((eFn,oXe)=>{"use strict";var cF=Ir(),{ReadableStreamFrom:Uyr,isBlobLike:XKe,isReadableStreamLike:Pyr,readableStreamClose:_yr,createDeferredPromise:Oyr,fullyReadBody:Hyr,extractMimeType:qyr,utf8DecodeBytes:eXe}=Vc(),{FormData:ZKe}=AF(),{kState:XS}=rC(),{webidl:Gyr}=Jo(),{Blob:Yyr}=B("node:buffer"),Fle=B("node:assert"),{isErrored:tXe,isDisturbed:Jyr}=B("node:stream"),{isArrayBuffer:Vyr}=B("node:util/types"),{serializeAMimeType:Wyr}=KA(),{multipartFormDataParser:zyr}=KKe(),Mle;try{let t=B("node:crypto");Mle=e=>t.randomInt(0,e)}catch{Mle=t=>Math.floor(Math.random(t))}var VY=new TextEncoder;function jyr(){}var rXe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nXe;rXe&&(nXe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Jyr(e)&&!tXe(e)&&e.cancel("Response object has been garbage collected").catch(jyr)}));function sXe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:XKe(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?VY.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>_yr(A))},start(){},type:"bytes"}),Fle(Pyr(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(Vyr(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(cF.isFormDataLike(t)){let A=`----formdata-undici-0${`${Mle(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let g=!1;for(let[C,m]of t)if(typeof m=="string"){let I=VY.encode(c+`; name="${u(l(C))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=VY.encode(`${c}; name="${u(l(C))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:g=!0}let p=VY.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,g&&(i=null),s=t,n=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${A}`}else if(XKe(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(cF.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Uyr(t)}if((typeof s=="string"||cF.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(!tXe(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 Kyr(t,e=!1){return t instanceof ReadableStream&&(Fle(!cF.isDisturbed(t),"The body has already been consumed."),Fle(!t.locked,"The stream is locked.")),sXe(t,e)}function Xyr(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function Zyr(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $yr(t){return{blob(){return KS(this,r=>{let n=$Ke(this);return n===null?n="":n&&(n=Wyr(n)),new Yyr([r],{type:n})},t)},arrayBuffer(){return KS(this,r=>new Uint8Array(r).buffer,t)},text(){return KS(this,eXe,t)},json(){return KS(this,tbr,t)},formData(){return KS(this,r=>{let n=$Ke(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=zyr(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ZKe;return i[XS]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ZKe;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 KS(this,r=>new Uint8Array(r),t)}}}function ebr(t){Object.assign(t.prototype,$yr(t))}async function KS(t,e,r){if(Gyr.brandCheck(t,r),iXe(t))throw new TypeError("Body is unusable: Body has already been read");Zyr(t[XS]);let n=Oyr(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[XS].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Hyr(t[XS].body,i,s),n.promise)}function iXe(t){let e=t[XS].body;return e!=null&&(e.stream.locked||cF.isDisturbed(e.stream))}function tbr(t){return JSON.parse(eXe(t))}function $Ke(t){let e=t[XS].headersList,r=qyr(e);return r==="failure"?null:r}oXe.exports={extractBody:sXe,safelyExtractBody:Kyr,cloneBody:Xyr,mixinBody:ebr,streamRegistry:nXe,hasFinalizationRegistry:rXe,bodyUnusable:iXe}});var mXe=f((tFn,pXe)=>{"use strict";var kt=B("node:assert"),Vt=Ir(),{channels:aXe}=_S(),vle=ple(),{RequestContentLengthMismatchError:k0,ResponseContentLengthMismatchError:rbr,RequestAbortedError:hXe,HeadersTimeoutError:nbr,HeadersOverflowError:sbr,SocketError:ZY,InformationalError:$S,BodyTimeoutError:ibr,HTTPParserError:obr,ResponseExceededMaxSizeError:abr}=sn(),{kUrl:gXe,kReset:XA,kClient:_le,kParser:ni,kBlocking:dF,kRunning:fa,kPending:Abr,kSize:AXe,kWriting:sC,kQueue:xd,kNoRef:uF,kKeepAliveDefaultTimeout:cbr,kHostHeader:ubr,kPendingIdx:lbr,kRunningIdx:ll,kError:dl,kPipelining:KY,kSocket:eR,kKeepAliveTimeoutValue:$Y,kMaxHeadersSize:Lle,kKeepAliveMaxTimeout:dbr,kKeepAliveTimeoutThreshold:hbr,kHeadersTimeout:gbr,kBodyTimeout:fbr,kStrictContentLength:Ole,kMaxRequests:cXe,kCounter:pbr,kMaxResponseSize:mbr,kOnError:Ebr,kResume:nC,kHTTPContext:fXe}=bs(),ug=nKe(),Cbr=Buffer.alloc(0),WY=Buffer[Symbol.species],zY=Vt.addListener,Ibr=Vt.removeAllListeners,Ule;async function Bbr(){let t=process.env.JEST_WORKER_ID?Cle():void 0,e;try{e=await WebAssembly.compile(oKe())}catch{e=await WebAssembly.compile(t||Cle())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onStatus(new WY(lg.buffer,i,s))||0},wasm_on_message_begin:r=>(kt(Wi.ptr===r),Wi.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onHeaderField(new WY(lg.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onHeaderValue(new WY(lg.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(kt(Wi.ptr===r),Wi.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{kt(Wi.ptr===r);let i=n-dg+lg.byteOffset;return Wi.onBody(new WY(lg.buffer,i,s))||0},wasm_on_message_complete:r=>(kt(Wi.ptr===r),Wi.onMessageComplete()||0)}})}var Ple=null,Hle=Bbr();Hle.catch();var Wi=null,lg=null,jY=0,dg=null,Qbr=0,lF=1,tR=2|lF,XY=4|lF,qle=8|Qbr,Gle=class{constructor(e,r,{exports:n}){kt(Number.isFinite(e[Lle])&&e[Lle]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ug.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,th Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[ubr],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[KY]&&!h[XA]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return aXe.sendHeaders.hasSubscribers&&aXe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?lXe(g,null,t,e,h,u,p,l):Vt.isBuffer(A)?lXe(g,A,t,e,h,u,p,l):Vt.isBlobLike(A)?typeof A.stream=="function"?dXe(g,A.stream(),t,e,h,u,p,l):Rbr(g,A,t,e,h,u,p,l):Vt.isStream(A)?Sbr(g,A,t,e,h,u,p,l):Vt.isIterable(A)?dXe(g,A,t,e,h,u,p,l):kt(!1),!0}function Sbr(t,e,r,n,s,i,o,a){kt(i!==0||r[fa]===0,"stream body cannot be pipelined");let A=!1,c=new e5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Vt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new hXe;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,kt(s.destroyed||s[sC]&&r[fa]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Vt.destroy(e,g):Vt.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 lXe(t,e,r,n,s,i,o,a){try{e?Vt.isBuffer(e)&&(kt(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[XA]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(kt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[nC]()}catch(A){t(A)}}async function Rbr(t,e,r,n,s,i,o,a){kt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new k0;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[XA]=!0),r[nC]()}catch(A){t(A)}}async function dXe(t,e,r,n,s,i,o,a){kt(i!==0||r[fa]===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)=>{kt(A===null),s[dl]?h(s[dl]):A=d});s.on("close",c).on("drain",c);let l=new e5({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[dl])throw s[dl];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var e5=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[sC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[dl])throw r[dl];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[Ole])throw new k0;process.emitWarning(new k0)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[XA]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ni].timeout&&r[ni].timeoutType===tR&&r[ni].timeout.refresh&&r[ni].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[sC]=!1,e[dl])throw e[dl];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[Ole])throw new k0;process.emitWarning(new k0)}e[ni].timeout&&e[ni].timeoutType===tR&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),n[nC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[sC]=!1,e&&(kt(n[fa]<=1,"pipeline should only contain this request"),s(e))}};pXe.exports=ybr});var wXe=f((rFn,bXe)=>{"use strict";var hl=B("node:assert"),{pipeline:Dbr}=B("node:stream"),Tr=Ir(),{RequestContentLengthMismatchError:Yle,RequestAbortedError:EXe,SocketError:hF,InformationalError:Jle}=sn(),{kUrl:t5,kReset:n5,kClient:rR,kRunning:s5,kPending:xbr,kQueue:iC,kPendingIdx:Vle,kRunningIdx:Td,kError:Fd,kSocket:Io,kStrictContentLength:Tbr,kOnError:Wle,kMaxConcurrentStreams:yXe,kHTTP2Session:kd,kResume:oC,kSize:kbr,kHTTPContext:Fbr}=bs(),Sp=Symbol("open streams"),CXe,IXe=!1,r5;try{r5=B("node:http2")}catch{r5={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Mbr,HTTP2_HEADER_METHOD:vbr,HTTP2_HEADER_PATH:Lbr,HTTP2_HEADER_SCHEME:Ubr,HTTP2_HEADER_CONTENT_LENGTH:Pbr,HTTP2_HEADER_EXPECT:_br,HTTP2_HEADER_STATUS:Obr}}=r5;function Hbr(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 qbr(t,e){t[Io]=e,IXe||(IXe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=r5.connect(t[t5],{createConnection:()=>e,peerMaxConcurrentStreams:t[yXe]});r[Sp]=0,r[rR]=t,r[Io]=e,Tr.addListener(r,"error",Ybr),Tr.addListener(r,"frameError",Jbr),Tr.addListener(r,"end",Vbr),Tr.addListener(r,"goaway",Wbr),Tr.addListener(r,"close",function(){let{[rR]:s}=this,{[Io]:i}=s,o=this[Io][Fd]||this[Fd]||new hF("closed",Tr.getSocketInfo(i));if(s[kd]=null,s.destroyed){hl(s[xbr]===0);let a=s[iC].splice(s[Td]);for(let A=0;A<a.length;A++){let c=a[A];Tr.errorRequest(s,c,o)}}}),r.unref(),t[kd]=r,e[kd]=r,Tr.addListener(e,"error",function(s){hl(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Fd]=s,this[rR][Wle](s)}),Tr.addListener(e,"end",function(){Tr.destroy(this,new hF("other side closed",Tr.getSocketInfo(this)))}),Tr.addListener(e,"close",function(){let s=this[Fd]||new hF("closed",Tr.getSocketInfo(this));t[Io]=null,this[kd]!=null&&this[kd].destroy(s),t[Vle]=t[Td],hl(t[s5]===0),t.emit("disconnect",t[t5],[t],s),t[oC]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jbr(t,...s)},resume(){Gbr(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Gbr(t){let e=t[Io];e?.destroyed===!1&&(t[kbr]===0&&t[yXe]===0?(e.unref(),t[kd].unref()):(e.ref(),t[kd].ref()))}function Ybr(t){hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Io][Fd]=t,this[rR][Wle](t)}function Jbr(t,e,r){if(r===0){let n=new Jle(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Io][Fd]=n,this[rR][Wle](n)}}function Vbr(){let t=new hF("other side closed",Tr.getSocketInfo(this[Io]));this.destroy(t),Tr.destroy(this[Io],t)}function Wbr(t){let e=this[Fd]||new hF(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tr.getSocketInfo(this)),r=this[rR];if(r[Io]=null,r[Fbr]=null,this[kd]!=null&&(this[kd].destroy(e),this[kd]=null),Tr.destroy(this[Io],e),r[Td]<r[iC].length){let n=r[iC][r[Td]];r[iC][r[Td]++]=null,Tr.errorRequest(r,n,e),r[Vle]=r[Td]}hl(r[s5]===0),r.emit("disconnect",r[t5],[r],e),r[oC]()}function zbr(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function jbr(t,e){let r=t[kd],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Tr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let w=0;w<c.length;w+=2){let H=c[w+0],z=c[w+1];if(Array.isArray(z))for(let F=0;F<z.length;F++)l[H]?l[H]+=`,${z[F]}`:l[H]=z[F];else l[H]=z}let d,{hostname:h,port:g}=t[t5];l[Mbr]=i||`${h}${g?`:${g}`:""}`,l[vbr]=n;let p=w=>{e.aborted||e.completed||(w=w||new EXe,Tr.errorRequest(t,e,w),d!=null&&Tr.destroy(d,w),Tr.destroy(u,w),t[iC][t[Td]++]=null,t[oC]())};try{e.onConnect(p)}catch(w){Tr.errorRequest(t,e,w)}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[Sp],t[iC][t[Td]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Sp],t[iC][t[Td]++]=null}),d.once("close",()=>{r[Sp]-=1,r[Sp]===0&&r.unref()}),!0;l[Lbr]=s,l[Ubr]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Tr.bodyLength(u);if(Tr.isFormDataLike(u)){CXe??=ZS().extractBody;let[w,H]=CXe(u);l["content-type"]=H,u=w.stream,m=w.length}if(m==null&&(m=e.contentLength),(m===0||!C)&&(m=null),zbr(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[Tbr])return Tr.errorRequest(t,e,new Yle),!1;process.emitWarning(new Yle)}m!=null&&(hl(u,"no body must not have content length"),l[Pbr]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[_br]="100-continue",d=r.request(l,{endStream:I,signal:A}) Line truncated
`,this[Bwr]=A??3e5,this[Iwr]=s??3e5,this[Qwr]=I??!0,this[ywr]=w,this[Xle]=z,this[AC]=null,this[Rwr]=W>-1?W:-1,this[xwr]=oe??100,this[Bi]=null,this[Md]=[],this[Dp]=0,this[vd]=0,this[mF]=he=>$le(this,he),this[Dwr]=he=>UXe(this,he)}get pipelining(){return this[A5]}set pipelining(e){this[A5]=e,this[mF](!0)}get[IF](){return this[Md].length-this[vd]}get[CF](){return this[vd]-this[Dp]}get[EF](){return this[Md].length-this[Dp]}get[hwr](){return!!this[Bi]&&!this[sR]&&!this[Bi].destroyed}get[Kle](){return!!(this[Bi]?.busy(null)||this[EF]>=(LXe(this)||1)||this[IF]>0)}[dwr](e){PXe(this),this.once("connect",e)}[Swr](e,r){let n=e.origin||this[gg].origin,s=new owr(n,e,r);return this[Md].push(s),this[M0]||(F0.bodyLength(s.body)==null&&F0.isIterable(s.body)?(this[M0]=1,queueMicrotask(()=>$le(this))):this[mF](!0)),this[M0]&&this[cC]!==2&&this[Kle]&&(this[cC]=2),this[cC]<2}async[wwr](){return new Promise(e=>{this[EF]?this[AC]=e:e(null)})}async[Nwr](e){return new Promise(r=>{let n=this[Md].splice(this[vd]);for(let i=0;i<n.length;i++){let o=n[i];F0.errorRequest(this,o,e)}let s=()=>{this[AC]&&(this[AC](),this[AC]=null),r(null)};this[Bi]?(this[Bi].destroy(e,s),this[Bi]=null):queueMicrotask(s),this[mF]()})}},Fwr=a5();function UXe(t,e){if(t[CF]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Rp(t[vd]===t[Dp]);let r=t[Md].splice(t[Dp]);for(let n=0;n<r.length;n++){let s=r[n];F0.errorRequest(t,s,e)}Rp(t[EF]===0)}}async function PXe(t){Rp(!t[sR]),Rp(!t[Bi]);let{host:e,hostname:r,protocol:n,port:s}=t[gg];if(r[0]==="["){let i=r.indexOf("]");Rp(i!==-1);let o=r.substring(1,i);Rp(vXe.isIP(o)),r=o}t[sR]=!0,nR.beforeConnect.hasSubscribers&&nR.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Bi]?.version,servername:t[aC],localAddress:t[pF]},connector:t[fF]});try{let i=await new Promise((o,a)=>{t[fF]({host:e,hostname:r,protocol:n,port:s,servername:t[aC],localAddress:t[pF]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){F0.destroy(i.on("error",FXe),new cwr);return}Rp(i);try{t[Bi]=i.alpnProtocol==="h2"?await kwr(t,i):await Twr(t,i)}catch(o){throw i.destroy().on("error",FXe),o}t[sR]=!1,i[bwr]=0,i[Xle]=t[Xle],i[lwr]=t,i[fwr]=null,nR.connected.hasSubscribers&&nR.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Bi]?.version,servername:t[aC],localAddress:t[pF]},connector:t[fF],socket:i}),t.emit("connect",t[gg],[t])}catch(i){if(t.destroyed)return;if(t[sR]=!1,nR.connectError.hasSubscribers&&nR.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Bi]?.version,servername:t[aC],localAddress:t[pF]},connector:t[fF],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Rp(t[CF]===0);t[IF]>0&&t[Md][t[vd]].servername===t[aC];){let o=t[Md][t[vd]++];F0.errorRequest(t,o,i)}else UXe(t,i);t.emit("connectionError",t[gg],[t],i)}t[mF]()}function MXe(t){t[cC]=0,t.emit("drain",t[gg],[t])}function $le(t,e){t[M0]!==2&&(t[M0]=2,Mwr(t,e),t[M0]=0,t[Dp]>256&&(t[Md].splice(0,t[Dp]),t[vd]-=t[Dp],t[Dp]=0))}function Mwr(t,e){for(;;){if(t.destroyed){Rp(t[IF]===0);return}if(t[AC]&&!t[EF]){t[AC](),t[AC]=null;return}if(t[Bi]&&t[Bi].resume(),t[Kle])t[cC]=2;else if(t[cC]===2){e?(t[cC]=1,queueMicrotask(()=>MXe(t))):MXe(t);continue}if(t[IF]===0||t[CF]>=(LXe(t)||1))return;let r=t[Md][t[vd]];if(t[gg].protocol==="https:"&&t[aC]!==r.servername){if(t[CF]>0)return;t[aC]=r.servername,t[Bi]?.destroy(new Awr("servername changed"),()=>{t[Bi]=null,$le(t)})}if(t[sR])return;if(!t[Bi]){PXe(t);return}if(t[Bi].destroyed||t[Bi].busy(r))return;!r.aborted&&t[Bi].write(r)?t[vd]++:t[Md].splice(t[vd],1)}}_Xe.exports=Zle});var ede=f((aFn,OXe)=>{"use strict";var c5=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)}};OXe.exports=class{constructor(){this.head=this.tail=new c5}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new c5),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var qXe=f((AFn,HXe)=>{var{kFree:vwr,kConnected:Lwr,kPending:Uwr,kQueued:Pwr,kRunning:_wr,kSize:Owr}=bs(),v0=Symbol("pool"),tde=class{constructor(e){this[v0]=e}get connected(){return this[v0][Lwr]}get free(){return this[v0][vwr]}get pending(){return this[v0][Uwr]}get queued(){return this[v0][Pwr]}get running(){return this[v0][_wr]}get size(){return this[v0][Owr]}};HXe.exports=tde});var ade=f((cFn,ZXe)=>{"use strict";var Hwr=GS(),qwr=ede(),{kConnected:rde,kSize:GXe,kRunning:YXe,kPending:JXe,kQueued:BF,kBusy:Gwr,kFree:Ywr,kUrl:Jwr,kClose:Vwr,kDestroy:Wwr,kDispatch:zwr}=bs(),jwr=qXe(),ZA=Symbol("clients"),$a=Symbol("needDrain"),QF=Symbol("queue"),nde=Symbol("closed resolve"),sde=Symbol("onDrain"),VXe=Symbol("onConnect"),WXe=Symbol("onDisconnec Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};set.exports=ahe});var S5=f((UFn,cet)=>{"use strict";var oet=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:BRr}=sn(),QRr=aR();Aet()===void 0&&aet(new QRr);function aet(t){if(!t||typeof t.dispatch!="function")throw new BRr("Argument agent must implement Agent");Object.defineProperty(globalThis,oet,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Aet(){return globalThis[oet]}cet.exports={setGlobalDispatcher:aet,getGlobalDispatcher:Aet}});var R5=f((_Fn,uet)=>{"use strict";uet.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 het=f((OFn,det)=>{"use strict";var yRr=o5();det.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 yRr(r,o,s,i);return r(a,A)}}});var fet=f((HFn,get)=>{"use strict";var bRr=m5();get.exports=t=>e=>function(n,s){return e(n,new bRr({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var met=f((qFn,pet)=>{"use strict";var wRr=Ir(),{InvalidArgumentError:NRr,RequestAbortedError:SRr}=sn(),RRr=R5(),Ahe=class extends RRr{#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 NRr("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=wRr.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new SRr(`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 DRr({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new Ahe({maxSize:i},s);return e(n,o)}}pet.exports=DRr});var Iet=f((GFn,Cet)=>{"use strict";var{isIP:xRr}=B("node:net"),{lookup:TRr}=B("node:dns"),kRr=R5(),{InvalidArgumentError:mR,InformationalError:FRr}=sn(),Eet=Math.pow(2,31)-1,che=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 FRr("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){TRr(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===Eet?(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===Eet?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 uhe(this,e,r)}},uhe=class extends kRr{#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)=> Line truncated
${i}`;break;case"retry":ent(i)&&(r[s]=i);break;case"id":tnt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&ent(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&tnt(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}}};rnt.exports={EventSourceStream:jhe}});var lnt=f((IMn,unt)=>{"use strict";var{pipeline:H1r}=B("node:stream"),{fetching:q1r}=vF(),{makeRequest:G1r}=IR(),{webidl:Mp}=Jo(),{EventSourceStream:Y1r}=nnt(),{parseMIMEType:J1r}=KA(),{createFastMessageEvent:V1r}=NR(),{isNetworkError:snt}=FF(),{delay:W1r}=Whe(),{kEnumerableProperty:K0}=Ir(),{environmentSettingsObject:int}=Vc(),ont=!1,ant=3e3,WF=0,Ant=1,zF=2,z1r="anonymous",j1r="use-credentials",TR=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=WF;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Mp.util.markAsUncloneable(this);let n="EventSource constructor";Mp.argumentLengthCheck(arguments,1,n),ont||(ont=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Mp.converters.USVString(e,n,"url"),r=Mp.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ant};let s=int,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=z1r;r.withCredentials&&(o=j1r,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=int.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=G1r(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===zF)return;this.#r=WF;let e={request:this.#s,dispatcher:this.#a},r=n=>{snt(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(snt(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?J1r(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=Ant,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Y1r({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(V1r(A.type,A.options))}});H1r(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=q1r(e)}async#c(){this.#r!==zF&&(this.#r=WF,this.dispatchEvent(new Event("error")),await W1r(this.#o.reconnectionTime),this.#r===WF&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Mp.brandCheck(this,t),this.#r!==zF&&(this.#r=zF,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}},cnt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:WF,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Ant,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zF,writable:!1}};Object.defineProperties(TR,cnt);Object.defineProperties(TR.prototype,cnt);Object.defineProperties(TR.prototype,{close:K0,onerror:K0,onmessage:K0,onopen:K0,readyState:K0,url:K0,withCredentials:K0});Mp.converters.EventSourceInitDict=Mp.dictionaryConverter([{key:"withCredentials",converter:Mp.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Mp.converters.any}]);unt.exports={EventSource:TR,defaultReconnectionTime:ant}});var Khe=f((BMn,vt)=>{"use strict";var K1r=iR(),dnt=$2(),X1r=oR(),Z1r=aZe(),$1r=aR(),ekr=Ide(),tkr=TZe(),rkr=UZe(),hnt=sn(),p6=Ir(),{InvalidArgumentError:f6}=hnt,kR=y$e(),nkr=tF(),skr=the(),ikr=iet(),okr=she(),akr=qde(),Akr=m5(),{getGlobalDispatcher:gnt,setGlobalDispatcher:ckr}=S5(),ukr=R5(),lkr=o5(),dkr=a5();Object.assign(dnt.prototype,kR);vt.exports.Dispatcher=dnt;vt.exports.Client=K1r;vt.exports.Pool=X1r;vt.exports.BalancedPool=Z1r;vt.exports.Agent=$1r;vt.exports.ProxyAgent=ekr;vt.exports.EnvHttpProxyAgent=tkr;vt. Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Lm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Lm("Creating `tls.Socket`: %o",this.connectOpts),i=Dtt.connect(this.connectOpts)):(Lm("Creating `net.Socket`: %o",this.connectOpts),i=Rtt.connect(this.connectOpts)),await(0,vtt.once)(i,"connect"),i}};_T.protocols=["http","https"];xo.HttpProxyAgent=_T;function Ftt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ehe=E(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.state=void 0;jT.state={instrumenterImplementation:void 0}});var mhe=E(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});ex.state=void 0;ex.state={operationRequestMap:new WeakMap}});var $ge=E((khr,jat)=>{jat.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 Zge=E((vhr,Xge)=>{var Kat=$ge();Xge.exports={version:Kat.version}});var kR=E(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.isJsonObject=c0.typeofJsonValue=void 0;function ict(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}c0.typeofJsonValue=ict;function oct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}c0.isJsonObject=oct});var _R=E(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.base64encode=A0.base64decode=void 0;var Ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),vR=[];for(let t=0;t<Ru.length;t++)vR[Ru[t].charCodeAt(0)]=t;vR[45]=Ru.indexOf("+");vR[95]=Ru.indexOf("/");function act(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=vR[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)}A0.base64decode=act;function cct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ru[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ru[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ru[s|n>>6],e+=Ru[n&63],r=0;break}return r&&(e+=Ru[s],e+="=",r==1&&(e+="=")),e}A0.base64encode=cct});var spe=E(FR=>{"use strict";Object.defineProperty(FR,"__esModule",{value:!0});FR.utf8read=void 0;var DH=t=>String.fromCharCode.apply(String,t);function Act(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(DH(n)),s=0);return r.length?(s&&r.push(DH(n.slice(0,s))),r.join("")):DH(n.slice(0,s))}FR.utf8read=Act});var wB=E(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.WireType=tA.mergeBinaryOptions=tA.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=tA.UnknownFieldHandler||(tA.UnknownFieldHandler={}));function lct(t,e){return Object.assign(Object.assign({},t),e)}tA.mergeBinaryOptions=lct;var dct;(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"})(dct=tA.WireType||(tA.WireType={}))});var LR=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 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")}Ai.varint64read=hct;function fct(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=fct;var MR=65536*65536;function gct(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>=MR&&(s=s+(n/MR|0),n=n%MR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Ai.int64fromString=gct;function pct(t,e){if(e>>>0<=2097151)return""+(MR*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=pct;function mct(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=mct;function Ect(){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=Ect});var cd=E(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.PbLong=ad.PbULong=ad.detectBi=void 0;var SB=LR(),ir;function ipe(){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=ipe;ipe();function ope(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ape=/^-?[0-9]+$/,PR=4294967296,UR=2147483648,OR=c Line truncated
`)}};uD.RpcError=s9});var o9=E(dD=>{"use strict";Object.defineProperty(dD,"__esModule",{value:!0});dD.mergeRpcOptions=void 0;var Lpe=ct();function OAt(t,e){if(!e)return t;let r={};lD(t,r),lD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Lpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Lpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},lD(t.meta,r.meta),lD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}dD.mergeRpcOptions=OAt;function lD(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 c9=E(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.Deferred=Mf.DeferredState=void 0;var sA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sA=Mf.DeferredState||(Mf.DeferredState={}));var a9=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)}};Mf.Deferred=a9});var u9=E(hD=>{"use strict";Object.defineProperty(hD,"__esModule",{value:!0});hD.RpcOutputStreamController=void 0;var Upe=c9(),Lf=ct(),A9=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){Lf.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){Lf.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){Lf.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(){Lf.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;Lf.assert(e,"bad state"),Lf.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 Upe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Lf.assert(n.state==Upe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};hD.RpcOutputStreamController=A9});var d9=E(p0=>{"use strict";var HAt=p0&&p0.__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(p0,"__esModule",{value:!0});p0.UnaryCall=void 0;var l9=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 HAt(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}})}};p0.UnaryCall=l9});var f9=E(m0=>{"use strict";var GAt=m0&&m0.__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(m0,"__esModule",{value:!0});m0.ServerStreamingCall=void 0;var h9=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 hut=f(dut=>{"use strict";var nme=Jp().Buffer;dut._dbcs=Vp;var Wo=-1,lut=-2,Ml=-10,iA=-1e3,AD=new Array(256),WM=-1;for(mJ=0;mJ<256;mJ++)AD[mJ]=Wo;var mJ;function Vp(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]=AD.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(AD.slice(0));var i=this.decodeTables.length;this.decodeTables.push(AD.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[iA-o[n]],A=48;A<=57;A++){if(a[A]===Wo)a[A]=iA-s;else if(a[A]>iA)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[iA-a[A]],u=129;u<=254;u++){if(c[u]===Wo)c[u]=iA-i;else{if(c[u]===iA-i)continue;if(c[u]>iA)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[iA-c[u]],d=48;d<=57;d++)l[d]===Wo&&(l[d]=lut)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function E4r(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(n4r.has(s)){r=s;break}}return r}function C4r(t,e){let r=E4r(e);r!==""&&(t.referrerPolicy=r)}function I4r(){return"allowed"}function B4r(){return"success"}function Q4r(){return"success"}function y4r(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function b4r(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&&mEe(t.origin)&&!mEe(QQ(t))&&(e=null);break;case"same-origin":nv(t,QQ(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function fD(t,e){return t}function w4r(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:fD(t.domainLookupStartTime,r),domainLookupEndTime:fD(t.domainLookupEndTime,r),connectionStartTime:fD(t.connectionStartTime,r),connectionEndTime:fD(t.connectionEndTime,r),secureConnectionStartTime:fD(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function N4r(t){return fD(a4r.now(),t)}function S4r(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 Gdt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R4r(t){return{referrerPolicy:t.referrerPolicy}}function D4r(t){let e=t.referrerPolicy;sv(e);let r=null;if(t.referrer==="client"){let i=Pdt();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else OC.is.URL(t.referrer)&&(r=t.referrer);let n=pEe(r),s=pEe(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??pEe(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=QQ(t);return BQ(n)&&!BQ(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=QQ(t);return nv(n,i)?n:BQ(n)&&!BQ(i)?"no-referrer":s}case"same-origin":return nv(t,n)?n:"no-referrer";case"origin-when-cross-origin":return nv(t,n)?n:s;case"no-referrer-when-downgrade":{let i=QQ(t);return BQ(n)&&!BQ(i)?"no-referrer":n}}}function pEe(t,e=!1){return sv(OC.is.URL(t)),t=new URL(t),Wdt(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var x4r=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)$/),T4r=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Ydt(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),T4r(t)):x4r(t)}function k4r(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Ydt(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function BQ(t){return OC.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:k4r(t.origin):!1}function F4r(t){}function nv(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function M4r(t){return t.controller.state==="aborted"}function v4r(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function L4r(t){return c4r[t.toLowerCase()]??t}var U4r=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Jdt(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,U4r),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 P4r(t,e,r,n=0,s=1){let i=Jdt(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return OC.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return OC.brandCheck(this,e),i(this, Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ul(a=>NEe(a)&&a!==59,t,e);i=bEe.decode(o)}return{name:n,value:i}}function AYr(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 Ac("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Ul(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wEe(o,!0,!0,a=>a===9||a===32),!eYr.test(o.toString()))throw Ac("header name does not match the field-name token production");if(t[e.position]!==58)throw Ac("expected :");switch(e.position++,Ul(a=>a===32||a===9,t,e),$4r(o)){case"content-disposition":{if(r=n=null,Ul(A=>NEe(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ac("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=aYr(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ac("name attribute is required in content-disposition header");break}case"content-type":{let a=Ul(A=>A!==10&&A!==13,t,e);a=wEe(a,!1,!0,A=>A===9||A===32),s=$dt(a);break}case"content-transfer-encoding":{let a=Ul(A=>A!==10&&A!==13,t,e);a=wEe(a,!1,!0,A=>A===9||A===32),i=$dt(a);break}default:Ul(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ac("expected CRLF");e.position+=2}}function Ul(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wEe(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 cYr(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 Ac(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function uYr(t){return t<=31||t===127}function lYr(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 NEe(t){return t<=127&&t!==32&&t!==9&&!uYr(t)&&!lYr(t)}eht.exports={multipartFormDataParser:oYr,validateBoundary:iYr}});var iv=f(($qn,rht)=>{"use strict";function dYr(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}rht.exports={createDeferredPromise:dYr}});var ED=f((eGn,aht)=>{"use strict";var DEe=Wt(),{ReadableStreamFrom:hYr,readableStreamClose:gYr,fullyReadBody:fYr,extractMimeType:pYr}=su(),{FormData:nht,setFormDataState:mYr}=HJ(),{webidl:Jd}=zo(),SEe=B("node:assert"),{isErrored:REe,isDisturbed:EYr}=B("node:stream"),{isUint8Array:CYr}=B("node:util/types"),{serializeAMimeType:IYr}=Ll(),{multipartFormDataParser:BYr}=tht(),{createDeferredPromise:QYr}=iv(),{parseJSONFromBytes:yYr}=jp(),{utf8DecodeBytes:bYr}=ev(),{runtimeFeatures:wYr}=Kp(),NYr=wYr.has("crypto")?B("node:crypto").randomInt:t=>Math.floor(Math.random()*t),qJ=new TextEncoder;function SYr(){}var RYr=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!EYr(e)&&!REe(e)&&e.cancel("Response object has been garbage collected").catch(SYr)});function iht(t,e=!1){let r=null,n=null;Jd.is.ReadableStream(t)?r=t:Jd.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),SEe(Jd.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(Jd.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Jd.is.BufferSource(t))i=Jd.util.getCopyOfBytesHeldByBufferSource(t);else if(Jd.is.FormData(t)){let c=`----formdata-undici-0${`${NYr(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 KCe=E(jCe=>{"use strict";var cY=Gu().Buffer;jCe._dbcs=qu;var $n=-1,zCe=-2,Xo=-10,Ms=-1e3,K0=new Array(256),Sb=-1;for(G2=0;G2<256;G2++)K0[G2]=$n;var G2;function qu(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]=K0.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(K0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(K0.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]=zCe)}}}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 tIt(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(OCt.has(s)){r=s;break}}return r}function rIt(t,e){let r=tIt(e);r!==""&&(t.referrerPolicy=r)}function nIt(){return"allowed"}function sIt(){return"success"}function iIt(){return"success"}function oIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function aIt(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&&SV(t.origin)&&!SV(dg(t))&&(e=null);break;case"same-origin":Fb(t,dg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function tE(t,e){return t}function cIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:tE(t.domainLookupStartTime,r),domainLookupEndTime:tE(t.domainLookupEndTime,r),connectionStartTime:tE(t.connectionStartTime,r),connectionEndTime:tE(t.connectionEndTime,r),secureConnectionStartTime:tE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function AIt(t){return tE(YCt.now(),t)}function uIt(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 SBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function lIt(t){return{referrerPolicy:t.referrerPolicy}}function dIt(t){let e=t.referrerPolicy;Mb(e);let r=null;if(t.referrer==="client"){let i=yBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Dd.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=dg(t);return lg(n)&&!lg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=dg(t);return Fb(n,i)?n:lg(n)&&!lg(i)?"no-referrer":s}case"same-origin":return Fb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Fb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=dg(t);return lg(n)&&!lg(i)?"no-referrer":n}}}function wV(t,e=!1){return Mb(Dd.is.URL(t)),t=new URL(t),RBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var hIt=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)$/),fIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function NBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),fIt(t)):hIt(t)}function gIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||NBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function lg(t){return Dd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:gIt(t.origin):!1}function pIt(t){}function Fb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function mIt(t){return t.controller.state==="aborted"}function EIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function CIt(t){return WCt[t.toLowerCase()]??t}var IIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TBe(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,IIt),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 yIt(t,e,r,n=0,s=1){let i=TBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Dd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Dd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ta(a=>FV(a)&&a!==59,t,e);i=vV.decode(o)}return{name:n,value:i}}function VIt(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=ta(a=>a!==10&&a!==13&&a!==58,t,e);if(o=_V(o,!0,!0,a=>a===9||a===32),!LIt.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++,ta(a=>a===32||a===9,t,e),MIt(o)){case"content-disposition":{if(r=n=null,ta(c=>FV(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=YIt(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=ta(c=>c!==10&&c!==13,t,e);a=_V(a,!1,!0,c=>c===9||c===32),s=MBe(a);break}case"content-transfer-encoding":{let a=ta(c=>c!==10&&c!==13,t,e);a=_V(a,!1,!0,c=>c===9||c===32),i=MBe(a);break}default:ta(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 ta(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function _V(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 WIt(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 JIt(t){return t<=31||t===127}function zIt(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 FV(t){return t<=127&&t!==32&&t!==9&&!JIt(t)&&!zIt(t)}LBe.exports={multipartFormDataParser:qIt,validateBoundary:GIt}});var Lb=E((MIr,PBe)=>{"use strict";function jIt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}PBe.exports={createDeferredPromise:jIt}});var sE=E((LIr,YBe)=>{"use strict";var UV=Xe(),{ReadableStreamFrom:KIt,readableStreamClose:$It,fullyReadBody:XIt,extractMimeType:ZIt}=ji(),{FormData:OBe,setFormDataState:eyt}=hk(),{webidl:Xa}=Xn(),MV=b("node:assert"),{isErrored:LV,isDisturbed:tyt}=b("node:stream"),{isUint8Array:ryt}=b("node:util/types"),{serializeAMimeType:nyt}=ea(),{multipartFormDataParser:syt}=UBe(),{createDeferredPromise:iyt}=Lb(),{parseJSONFromBytes:oyt}=Wu(),{utf8DecodeBytes:ayt}=ak(),{runtimeFeatures:cyt}=Ju(),Ayt=cyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),fk=new TextEncoder;function uyt(){}var lyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!tyt(e)&&!LV(e)&&e.cancel("Response object has been garbage collected").catch(uyt)});function GBe(t,e=!1){let r=null,n=null;Xa.is.ReadableStream(t)?r=t:Xa.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),MV(Xa.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Xa.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Xa.is.BufferSource(t))i=Xa.util.getCopyOfBytesHeldByBufferSource(t);else if(Xa.is.FormData(t)){let A=`----formdata-undici-0${`${Ayt(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=[],g=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,I]of t)if(typeof I=="string"){let y=qJ.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 y=fk.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=qJ.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=fk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,I,g),typeof I.size=="number"?o+=y.byteLength+I.size+g.byteLength:p=!0}let C=qJ.encode(`--${c}--\r
`);h.push(C),o+=C.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=${c}`}else if(Jd.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(DEe.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Jd.is.ReadableStream(t)?t:hYr(t)}return(typeof i=="string"||CYr(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(REe(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!REe(r)&&n.enqueue(typeof c=="string"?qJ.encode(c):new Uint8Array(c));queueMicrotask(()=>gYr(n))})(),[{stream:r,source:i,length:o},a]}function DYr(t,e=!1){return Jd.is.ReadableStream(t)&&(SEe(!DEe.isDisturbed(t),"The body has already been consumed."),SEe(!t.locked,"The stream is locked.")),iht(t,e)}function xYr(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function TYr(t,e){return{blob(){return mD(this,n=>{let s=sht(e(this));return s===null?s="":s&&(s=IYr(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return mD(this,n=>new Uint8Array(n).buffer,t,e)},text(){return mD(this,bYr,t,e)},json(){return mD(this,yYr,t,e)},formData(){return mD(this,n=>{let s=sht(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=BYr(n,s),o=new nht;return mYr(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new nht;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 mD(this,n=>new Uint8Array(n),t,e)}}}function kYr(t,e){Object.assign(t.prototype,TYr(t,e))}function mD(t,e,r,n){try{Jd.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),oht(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=QYr(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(fYr(t.body,o,i),s.promise)}function oht(t){let e=t.body;return e!=null&&(e.stream.locked||DEe.isDisturbed(e.stream))}function sht(t){let e=t.headersList,r=pYr(e);return r==="failure"?null:r}aht.exports={extractBody:iht,safelyExtractBody:DYr,cloneBody:xYr,mixinBody:kYr,streamRegistry:RYr,bodyUnusable:oht}});var Eht=f((tGn,mht)=>{"use strict";var Lt=B("node:assert"),Pt=Wt(),{channels:Aht}=PC(),xEe=fme(),{RequestContentLengthMismatchError:yQ,ResponseContentLengthMismatchError:FYr,RequestAbortedError:ght,HeadersTimeoutError:MYr,HeadersOverflowError:vYr,SocketError:Av,InformationalError:CD,BodyTimeoutError:LYr,HTTPParserError:UYr,ResponseExceededMaxSizeError:PYr}=or(),{kUrl:fht,kReset:cc,kClient:UEe,kParser:oi,kBlocking:cv,kRunning:ba,kPending:_Yr,kSize:cht,kWriting:qC,kQueue:Vd,kNoRef:ov,kKeepAliveDefaultTimeout:OYr,kHostHeader:HYr,kPendingIdx:qYr,kRunningIdx:Pl,kError:_l,kPipelining:JJ,kSocket:ID,kKeepAliveTimeoutValue:WJ,kMaxHeadersSize:GYr,kKeepAliveMaxTimeout:YYr,kKeepAliveTimeoutThreshold:JYr,kHeadersTimeout:VYr,kBodyTimeout:WYr,kStrictContentLength:FEe,kMaxRequests:uht,kCounter:zYr,kMaxResponseSize:jYr,kOnError:KYr,kResume:HC,kHTTPContext:pht,kClosed:MEe}=Mn(),Sg=adt(),XYr=Buffer.alloc(0),GJ=Buffer[Symbol.species],ZYr=Pt.removeAllListeners,TEe;function $Yr(){let t=process.env.JEST_WORKER_ID?nEe():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(udt())}catch{}return e||(e=new WebAssembly.Module(t||nEe())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onStatus(new GJ(Rg.buffer,o,i))},wasm_on_message_begin:n=>(Lt(ji.ptr===n),ji.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onHeaderField(new GJ(Rg.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onHeaderValue(new GJ(Rg.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Lt(ji.ptr===n),ji.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Lt(ji.ptr===n);let o=s-Dg+Rg.byteOffset;return ji.onBody(new GJ(Rg.buffer,o,i))},wasm_on_message_complete:n=>(Lt(ji.ptr===n),ji.onMessageComplete())}})}var kEe=null,ji=null,Rg=null,YJ=0,Dg=null,e5r=0,av=1,BD=2|av,VJ=4|av,vEe=8|e5r,LEe=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sg.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[GYr],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxRespons Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=fk.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(Xa.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(UV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Xa.is.ReadableStream(t)?t:KIt(t)}return(typeof i=="string"||ryt(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(LV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!LV(r)&&n.enqueue(typeof A=="string"?fk.encode(A):new Uint8Array(A));queueMicrotask(()=>$It(n))})(),[{stream:r,source:i,length:o},a]}function dyt(t,e=!1){return Xa.is.ReadableStream(t)&&(MV(!UV.isDisturbed(t),"The body has already been consumed."),MV(!t.locked,"The stream is locked.")),GBe(t,e)}function hyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function fyt(t,e){return{blob(){return nE(this,n=>{let s=HBe(e(this));return s===null?s="":s&&(s=nyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return nE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return nE(this,ayt,t,e)},json(){return nE(this,oyt,t,e)},formData(){return nE(this,n=>{let s=HBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=syt(n,s),o=new OBe;return eyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new OBe;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 nE(this,n=>new Uint8Array(n),t,e)}}}function gyt(t,e){Object.assign(t.prototype,fyt(t,e))}function nE(t,e,r,n){try{Xa.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),qBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=iyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(XIt(t.body,o,i),s.promise)}function qBe(t){let e=t.body;return e!=null&&(e.stream.locked||UV.isDisturbed(e.stream))}function HBe(t){let e=t.headersList,r=ZIt(e);return r==="failure"?null:r}YBe.exports={extractBody:GBe,safelyExtractBody:dyt,cloneBody:hyt,mixinBody:gyt,streamRegistry:lyt,bodyUnusable:qBe}});var tbe=E((UIr,ebe)=>{"use strict";var Ve=b("node:assert"),We=Xe(),{channels:VBe}=xd(),PV=IY(),{RequestContentLengthMismatchError:hg,ResponseContentLengthMismatchError:pyt,RequestAbortedError:$Be,HeadersTimeoutError:myt,HeadersOverflowError:Eyt,SocketError:Ob,InformationalError:iE,BodyTimeoutError:Cyt,HTTPParserError:Iyt,ResponseExceededMaxSizeError:yyt}=je(),{kUrl:XBe,kReset:Ei,kClient:WV,kParser:Yr,kBlocking:Hb,kRunning:gs,kPending:Byt,kSize:WBe,kWriting:vd,kQueue:Za,kNoRef:Ub,kKeepAliveDefaultTimeout:byt,kHostHeader:Qyt,kPendingIdx:wyt,kRunningIdx:ra,kError:na,kPipelining:mk,kSocket:oE,kKeepAliveTimeoutValue:Ck,kMaxHeadersSize:Syt,kKeepAliveMaxTimeout:Nyt,kKeepAliveTimeoutThreshold:Tyt,kHeadersTimeout:xyt,kBodyTimeout:Ryt,kStrictContentLength:GV,kMaxRequests:JBe,kCounter:Dyt,kMaxResponseSize:kyt,kOnError:vyt,kResume:kd,kHTTPContext:ZBe,kClosed:qV}=Kt(),hA=Yye(),_yt=Buffer.alloc(0),gk=Buffer[Symbol.species],Fyt=We.removeAllListeners,OV;function Myt(){let t=process.env.JEST_WORKER_ID?dV():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(Jye())}catch{}return e||(e=new WebAssembly.Module(t||dV())),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 gk(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 gk(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 gk(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 gk(fA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var HV=null,yn=null,fA=null,pk=0,gA=null,Lyt=0,Pb=1,aE=2|Pb,Ek=4|Pb,YV=8|Lyt,VV=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[Syt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[HYr],i?p+=`connection: upgrade\r
`:p+=t[Qyt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[JJ]&&!h[cc]?p+=`connection: keep-alive\r
`:t[mk]&&!h[Ei]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let m=c[C+0],I=c[C+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)p+=`${m}: ${I[y]}\r
`;else p+=`${m}: ${I}\r
`}return Aht.sendHeaders.hasSubscribers&&Aht.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?dht(g,null,t,e,h,u,p,l):Pt.isBuffer(A)?dht(g,A,t,e,h,u,p,l):Pt.isBlobLike(A)?typeof A.stream=="function"?hht(g,A.stream(),t,e,h,u,p,l):l5r(g,A,t,e,h,u,p,l):Pt.isStream(A)?u5r(g,A,t,e,h,u,p,l):Pt.isIterable(A)?hht(g,A,t,e,h,u,p,l):Lt(!1),!0}function u5r(t,e,r,n,s,i,o,a){Lt(i!==0||r[ba]===0,"stream body cannot be pipelined");let A=!1,c=new zJ({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(p){Pt.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let g=new ght;queueMicrotask(()=>h(g))}},h=function(g){if(!A){if(A=!0,Lt(s.destroyed||s[qC]&&r[ba]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!g)try{c.end()}catch(p){g=p}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Pt.destroy(e,g):Pt.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 dht(t,e,r,n,s,i,o,a){try{e?Pt.isBuffer(e)&&(Lt(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\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 VBe.sendHeaders.hasSubscribers&&VBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?jBe(f,null,t,e,h,u,p,l):We.isBuffer(c)?jBe(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):zyt(f,c,t,e,h,u,p,l):We.isStream(c)?Jyt(f,c,t,e,h,u,p,l):We.isIterable(c)?KBe(f,c,t,e,h,u,p,l):Ve(!1),!0}function Jyt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,A=new Ik({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 $Be;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[vd]&&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 jBe(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
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[cc]=!0)):i===0?s.write(`${o}content-length: 0\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
\r
`,"latin1"):(Lt(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[HC]()}catch(A){t(A)}}async function l5r(t,e,r,n,s,i,o,a){Lt(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new yQ;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[kd]()}catch(c){t(c)}}async function zyt(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 hg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[cc]=!0),r[HC]()}catch(A){t(A)}}async function hht(t,e,r,n,s,i,o,a){Lt(i!==0||r[ba]===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)=>{Lt(A===null),s[_l]?h(s[_l]):A=d});s.on("close",c).on("drain",c);let l=new zJ({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[_l])throw s[_l];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var zJ=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[qC]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[_l])throw r[_l];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[FEe])throw new yQ;process.emitWarning(new yQ)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[cc]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ei]=!0),r[kd]()}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[na]?h(s[na]):c=d});s.on("close",A).on("drain",A);let l=new Ik({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[na])throw s[na];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Ik=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[na])throw r[na];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[GV])throw new hg;process.emitWarning(new hg)}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
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[oi].timeout&&r[oi].timeoutType===BD&&r[oi].timeout.refresh&&r[oi].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qC]=!1,e[_l])throw e[_l];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\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===aE&&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[vd]=!1,e[na])throw e[na];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[FEe])throw new yQ;process.emitWarning(new yQ)}e[oi].timeout&&e[oi].timeoutType===BD&&e[oi].timeout.refresh&&e[oi].timeout.refresh(),n[HC]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[qC]=!1,e&&(Lt(n[ba]<=1,"pipeline should only contain this request"),s(e))}};mht.exports=t5r});var Sht=f((rGn,Nht)=>{"use strict";var Hl=B("node:assert"),{pipeline:d5r}=B("node:stream"),hr=Wt(),{RequestContentLengthMismatchError:HEe,RequestAbortedError:h5r,SocketError:hv,InformationalError:GC,InvalidArgumentError:g5r}=or(),{kUrl:dv,kReset:ZJ,kClient:iu,kRunning:gv,kPending:f5r,kQueue:YC,kPendingIdx:GEe,kRunningIdx:Wd,kError:ou,kSocket:Ps,kStrictContentLength:p5r,kOnError:QD,kMaxConcurrentStreams:KJ,kPingInterval:Cht,kHTTP2Session:Zp,kHTTP2InitialWindowSize:m5r,kHTTP2ConnectionWindowSize:E5r,kResume:xg,kSize:C5r,kHTTPContext:YEe,kClosed:qEe,kBodyTimeout:I5r,kEnableConnectProtocol:uv,kRemoteSettings:lv,kHTTP2Stream:jJ,kHTTP2SessionState:JEe}=Mn(),{channels:Iht}=PC(),Ol=Symbol("open streams"),Bht,XJ;try{XJ=B("node:http2")}catch{XJ={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:B5r,HTTP2_HEADER_METHOD:Qht,HTTP2_HEADER_PATH:yht,HTTP2_HEADER_SCHEME:PEe,HTTP2_HEADER_CONTENT_LENGTH:Q5r,HTTP2_HEADER_EXPECT:y5r,HTTP2_HEADER_STATUS:_Ee,HTTP2_HEADER_PROTOCOL:b5r,NGHTTP2_REFUSED_STREAM:w5r,NGHTTP2_CANCEL:N5r}}=XJ;function OEe(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 S5r(t,e){t[Ps]=e;let r=t[m5r],n=t[E5r],s=XJ.connect(t[dv],{createConnection:()=>e,peerMaxConcurrentStreams:t[KJ],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Ps]=e,s[Ol]=0,s[iu]=t,s[Ps]=e,s[JEe]={ping:{interval:t[Cht]===0?null:setInterval(T5r,t[Cht],s).unref()}},s[uv]=!1,s[lv]=!1,n&&hr.addListener(s,"connect",D5r.bind(s,n)),hr.addListener(s,"error",k5r),hr.addListener(s,"frameError",F5r),hr.addListener(s,"end",M5r),hr.addListener(s,"goaway",v5r),hr.addListener(s,"close",L5r),hr.addListener(s,"remoteSettings",x5r),s.unref(),t[Zp]=s,e[Zp]=s,hr.addListener(e,"error",P5r),hr.addListener(e,"end",_5r),hr.addListener(e,"close",U5r),e[qEe]=!1,e.on("close",O5r),{version:"h2",defaultPipelining:1/0,write(i){return q5r(t,i)},resume(){R5r(t)},destroy(i,o){e[qEe]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[gv]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[lv]===!1||hr.bodyLength(i.body)!==0&&(hr.isStream(i.body)||hr.isAsyncIterable(i.body)||hr.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[lv]===!1;return!1}}}function R5r(t){let e=t[Ps];e?.destroyed===!1&&(t[C5r]===0||t[KJ]===0?(e.unref(),t[Zp].unref()):(e.ref(),t[Zp].ref()))}function D5r(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function x5r(t){if(this[iu][KJ]=t.maxConcurrentStreams??this[iu][KJ],this[lv]===!0&&this[uv]===!0&&t.enableConnectProtocol===!1){let e=new GC("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Ps][ou]=e,this[iu][QD](e);return}this[uv]=t.enableConnectProtocol??this[uv],this[lv]=!0,this[iu][xg]()}function T5r(t){let e=t[JEe];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[iu],o=this[iu];if(n!=null){let a=new GC(`HTTP/2: "PING" errored - type ${n.message}`);o[ou]=a,i[QD](a)}else i.emit("ping",s)}}function k5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ps][ou]=t,this[iu][QD](t)}function F5r(t,e,r){if(r===0){let n=new GC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ps][ou]=n,this[iu][QD](n)}}function M5r(){let t=new hv("other side closed",hr.getSocketInfo(this[Ps]));this.destroy(t),hr.destroy(this[Ps],t)}function v5r(t){let e=this[ou]||new hv(`HTTP/2: "GOAWAY" frame received with code ${t}`,hr.getSocketInfo(this[Ps])),r=this[iu];if(r[Ps]=null,r[YEe]=null,this.close(),this[Zp]=null,hr.destroy(this[Ps],e),r[Wd]<r[YC].length){let n=r[YC][r[Wd]];r[YC][r[Wd]++]=null,hr.errorRequest(r,n,e),r[GEe]=r[Wd]}Hl(r[gv]===0),r.emit("disconnect",r[dv],[r],e),r.emit("connectionError",r[dv],[r],e),r[xg]()}function L5r(){let{[iu]:t,[JEe]:e}=this,{[Ps]:r}=t,n=this[Ps][ou]||this[ou]||new hv("closed",hr.getSocketInfo(r));if(t[Ps]=null,t[YEe]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Hl(t[f5r]===0);let s=t[YC].splice(t[Wd]);for(let i=0;i<s.length;i++){let o=s[i];hr.errorRequest(t,o,n)}}}function U5r(){let t=this[ou]||new hv("closed",hr.getSocketInfo(this)),e=this[Zp][iu];e[Ps]=null,e[YEe]=null,this[Zp]!==null&&this[Zp].destroy(t),e[GEe]=e[Wd],Hl(e[gv]===0),e.emit("disconnect",e[dv],[e],t),e[xg]()}function P5r(t){Hl(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ou]=t,this[iu][QD](t)}function _5r(){hr.destroy(this,new hv("other side closed",hr.getSock Line truncated
`;Iht.sendHeaders.publish({request:e,headers:F,socket:n[Ps]})}let w=s==="GET"||s==="HEAD"||d===null;A?(h[y5r]="100-continue",g=n.request(h,{endStream:w,signal:c}),g[jJ]=!0,g.once("continue",z)):(g=n.request(h,{endStream:w,signal:c}),g[jJ]=!0,z()),++n[Ol],g.setTimeout(r);let H=!1;return g.once("response",F=>{let{[_Ee]:W,...U}=F;if(e.onResponseStarted(),H=!0,e.aborted){g.removeAllListeners("data");return}e.onHeaders(Number(W),OEe(U),g.resume.bind(g),"")===!1&&g.pause()}),g.on("data",F=>{e.onData(F)===!1&&g.pause()}),g.once("end",()=>{g.removeAllListeners("data"),H?(!e.aborted&&!e.completed&&e.onComplete({}),t[YC][t[Wd]++]=null,t[xg]()):(m(new GC("HTTP/2: stream half-closed (remote)")),t[YC][t[Wd]++]=null,t[GEe]=t[Wd],t[xg]())}),g.once("close",()=>{g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref()}),g.once("error",function(F){g.removeAllListeners("data"),m(F)}),g.once("frameError",(F,W)=>{g.removeAllListeners("data"),m(new GC(`HTTP/2: "frameError" received - type ${F}, code ${W}`))}),g.on("aborted",()=>{g.removeAllListeners("data")}),g.on("timeout",()=>{let F=new GC(`HTTP/2: "stream timeout after ${r}"`);g.removeAllListeners("data"),n[Ol]-=1,n[Ol]===0&&n.unref(),m(F)}),g.once("trailers",F=>{e.aborted||e.completed||e.onComplete(F)}),!0;function z(){!d||y===0?bht(m,g,null,t,e,t[Ps],y,I):hr.isBuffer(d)?bht(m,g,d,t,e,t[Ps],y,I):hr.isBlobLike(d)?typeof d.stream=="function"?wht(m,g,d.stream(),t,e,t[Ps],y,I):Y5r(m,g,d,t,e,t[Ps],y,I):hr.isStream(d)?G5r(m,t[Ps],I,g,d,t,e,y):hr.isIterable(d)?wht(m,g,d,t,e,t[Ps],y,I):Hl(!1)}}function bht(t,e,r,n,s,i,o,a){try{r!=null&&hr.isBuffer(r)&&(Hl(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[ZJ]=!0),s.onRequestSent(),n[xg]()}catch(A){t(A)}}function G5r(t,e,r,n,s,i,o,a){Hl(a!==0||i[gv]===0,"stream body cannot be pipelined");let A=d5r(s,n,u=>{u?(hr.destroy(A,u),t(u)):(hr.removeAllListeners(A),o.onRequestSent(),r||(e[ZJ]=!0),i[xg]())});hr.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Y5r(t,e,r,n,s,i,o,a){Hl(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new HEe;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[ZJ]=!0),n[xg]()}catch(A){t(A)}}async function wht(t,e,r,n,s,i,o,a){Hl(o!==0||n[gv]===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)=>{Hl(A===null),i[ou]?d(i[ou]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ou])throw i[ou];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[ZJ]=!0),n[xg]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Nht.exports=S5r});var jC=f((nGn,Lht)=>{"use strict";var $p=B("node:assert"),kht=B("node:net"),fv=B("node:http"),bQ=Wt(),{ClientStats:J5r}=qme(),{channels:yD}=PC(),V5r=jlt(),W5r=hD(),{InvalidArgumentError:us,InformationalError:z5r,ClientDestroyedError:j5r}=or(),K5r=gD(),{kUrl:Tg,kServerName:zC,kClient:X5r,kBusy:VEe,kConnect:Z5r,kResuming:wQ,kRunning:Cv,kPending:Iv,kSize:pv,kQueue:zd,kConnected:$5r,kConnecting:bD,kNeedDrain:VC,kKeepAliveDefaultTimeout:Rht,kHostHeader:e6r,kPendingIdx:jd,kRunningIdx:em,kError:t6r,kPipelining:$J,kKeepAliveTimeoutValue:r6r,kMaxHeadersSize:n6r,kKeepAliveMaxTimeout:s6r,kKeepAliveTimeoutThreshold:i6r,kHeadersTimeout:o6r,kBodyTimeout:a6r,kStrictContentLength:A6r,kConnector:mv,kMaxRequests:WEe,kCounter:c6r,kClose:u6r,kDestroy:l6r,kDispatch:d6r,kLocalAddress:Ev,kMaxResponseSize:h6r,kOnError:g6r,kHTTPContext:yi,kMaxConcurrentStreams:f6r,kHTTP2InitialWindowSize:p6r,kHTTP2ConnectionWindowSize:m6r,kResume:WC,kPingInterval:E6r}=Mn(),C6r=Eht(),I6r=Sht(),JC=Symbol("kClosedResolve"),B6r=fv&&fv.maxHeaderSize&&Number.isInteger(fv.maxHeaderSize)&&fv.maxHeaderSize>0?()=>fv.maxHeaderSize:()=>{throw new us("http module not available or http.maxHeaderSize invalid")},Dht=()=>{};function Fht(t){return t[$J]??t[yi]?.defaultPipelining??1}var zEe=class extends W5r{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:g,pipelining:p,tls:C,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:w,localAddress:H,maxResponseSize:z,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:W,maxConcurrentStreams:U,allowH2:ee,useH2c:oe,initialWindowSize:Z,connectionWindowSize:he,pingInterval:Se}={}){if(c!==void 0)throw new us("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new us("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new us("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new us("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new us("unsupported maxKeepAliveTimeout, use keepAliveMaxT Line truncated
`,this[a6r]=a??3e5,this[o6r]=n??3e5,this[A6r]=m??!0,this[WEe]=w,this[JC]=null,this[h6r]=z>-1?z:-1,this[yi]=null,this[f6r]=U??100,this[p6r]=Z??262144,this[m6r]=he??524288,this[E6r]=Se??6e4,this[zd]=[],this[em]=0,this[jd]=0,this[WC]=Je=>jEe(this,Je),this[g6r]=Je=>Mht(this,Je)}get pipelining(){return this[$J]}set pipelining(e){this[$J]=e,this[WC](!0)}get stats(){return new J5r(this)}get[Iv](){return this[zd].length-this[jd]}get[Cv](){return this[jd]-this[em]}get[pv](){return this[zd].length-this[em]}get[$5r](){return!!this[yi]&&!this[bD]&&!this[yi].destroyed}get[VEe](){return!!(this[yi]?.busy(null)||this[pv]>=(Fht(this)||1)||this[Iv]>0)}[Z5r](e){vht(this),this.once("connect",e)}[d6r](e,r){let n=new V5r(this[Tg].origin,e,r);return this[zd].push(n),this[wQ]||(bQ.bodyLength(n.body)==null&&bQ.isIterable(n.body)?(this[wQ]=1,queueMicrotask(()=>jEe(this))):this[WC](!0)),this[wQ]&&this[VC]!==2&&this[VEe]&&(this[VC]=2),this[VC]<2}[u6r](){return new Promise(e=>{this[pv]?this[JC]=e:e(null)})}[l6r](e){return new Promise(r=>{let n=this[zd].splice(this[jd]);for(let i=0;i<n.length;i++){let o=n[i];bQ.errorRequest(this,o,e)}let s=()=>{this[JC]&&(this[JC](),this[JC]=null),r(null)};this[yi]?(this[yi].destroy(e,s),this[yi]=null):queueMicrotask(s),this[WC]()})}};function Mht(t,e){if(t[Cv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$p(t[jd]===t[em]);let r=t[zd].splice(t[em]);for(let n=0;n<r.length;n++){let s=r[n];bQ.errorRequest(t,s,e)}$p(t[pv]===0)}}function vht(t){$p(!t[bD]),$p(!t[yi]);let{host:e,hostname:r,protocol:n,port:s}=t[Tg];if(r[0]==="["){let i=r.indexOf("]");$p(i!==-1);let o=r.substring(1,i);$p(kht.isIPv6(o)),r=o}t[bD]=!0,yD.beforeConnect.hasSubscribers&&yD.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[zC],localAddress:t[Ev]},connector:t[mv]}),t[mv]({host:e,hostname:r,protocol:n,port:s,servername:t[zC],localAddress:t[Ev]},(i,o)=>{if(i){xht(t,i,{host:e,hostname:r,protocol:n,port:s}),t[WC]();return}if(t.destroyed){bQ.destroy(o.on("error",Dht),new j5r),t[WC]();return}$p(o);try{t[yi]=o.alpnProtocol==="h2"?I6r(t,o):C6r(t,o)}catch(a){o.destroy().on("error",Dht),xht(t,a,{host:e,hostname:r,protocol:n,port:s}),t[WC]();return}t[bD]=!1,o[c6r]=0,o[WEe]=t[WEe],o[X5r]=t,o[t6r]=null,yD.connected.hasSubscribers&&yD.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yi]?.version,servername:t[zC],localAddress:t[Ev]},connector:t[mv],socket:o}),t.emit("connect",t[Tg],[t]),t[WC]()})}function xht(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[bD]=!1,yD.connectError.hasSubscribers&&yD.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[yi]?.version,servername:t[zC],localAddress:t[Ev]},connector:t[mv],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($p(t[Cv]===0);t[Iv]>0&&t[zd][t[jd]].servername===t[zC];){let o=t[zd][t[jd]++];bQ.errorRequest(t,o,e)}else Mht(t,e);t.emit("connectionError",t[Tg],[t],e)}}function Tht(t){t[VC]=0,t.emit("drain",t[Tg],[t])}function jEe(t,e){t[wQ]!==2&&(t[wQ]=2,Q6r(t,e),t[wQ]=0,t[em]>256&&(t[zd].splice(0,t[em]),t[jd]-=t[em],t[em]=0))}function Q6r(t,e){for(;;){if(t.destroyed){$p(t[Iv]===0);return}if(t[JC]&&!t[pv]){t[JC](),t[JC]=null;return}if(t[yi]&&t[yi].resume(),t[VEe])t[VC]=2;else if(t[VC]===2){e?(t[VC]=1,queueMicrotask(()=>Tht(t))):Tht(t);continue}if(t[Iv]===0||t[Cv]>=(Fht(t)||1))return;let r=t[zd][t[jd]];if(t[Tg].protocol==="https:"&&t[zC]!==r.servername){if(t[Cv]>0)return;t[zC]=r.servername,t[yi]?.destroy(new z5r("servername changed"),()=>{t[yi]=null,jEe(t)})}if(t[bD])return;if(!t[yi]){vht(t);return}if(t[yi].destroyed||t[yi].busy(r))return;!r.aborted&&t[yi].write(r)?t[jd]++:t[zd].splice(t[jd],1)}}Lht.exports=zEe});var KEe=f((iGn,Uht)=>{"use strict";var eV=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Uht.exports=class{constructor(){this.head=this.tail=new eV}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eV),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var tV=f((oGn,Vht)=>{"use strict";var{PoolStats:y6r}=qme(),b6r=hD(),w6r=KEe(),{kConnected:XEe,kSize:Pht,kRunning:_ht,kPending:Oht,kQueued:Bv,kBusy:N6r,kFree:S6r,kUrl:R6r,kClose:D6r,kDestroy:x6r,kDispatch:T6r}=Mn(),So=Symbol("clients"),oA=Symbol("needDrain"),Qv=Symbol("queue"),ZEe=Symbol("closed resolve"),$Ee=Symbol("onDrain"),Hht=Symbol("onConnect"),qht=Symbol("onDisconnect"),Ght=Symbol("onConnectionError"),eCe=Symbol("get dispatcher"),Yht=Symbol("add client"),Jht=Symbol("remove client"),tCe=class extends b6r{[Qv]=new w6r;[Bv]=0;[So]=[];[oA]=!1;[$Ee](e,r,n){let s=this[Qv],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[GV])throw new hg;process.emitWarning(new hg)}e[Yr].timeout&&e[Yr].timeoutType===aE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[kd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[vd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};ebe.exports=Uyt});var ube=E((PIr,Abe)=>{"use strict";var ia=b("node:assert"),{pipeline:jyt}=b("node:stream"),At=Xe(),{RequestContentLengthMismatchError:KV,RequestAbortedError:Kyt,SocketError:Vb,InformationalError:_d,InvalidArgumentError:$yt}=je(),{kUrl:Yb,kReset:Qk,kClient:Ki,kRunning:Wb,kPending:Xyt,kQueue:Fd,kPendingIdx:XV,kRunningIdx:ec,kError:$i,kSocket:Rr,kStrictContentLength:Zyt,kOnError:cE,kMaxConcurrentStreams:Bk,kPingInterval:rbe,kHTTP2Session:ju,kHTTP2InitialWindowSize:eBt,kHTTP2ConnectionWindowSize:tBt,kResume:pA,kSize:rBt,kHTTPContext:ZV,kClosed:$V,kBodyTimeout:nBt,kEnableConnectProtocol:Gb,kRemoteSettings:qb,kHTTP2Stream:yk,kHTTP2SessionState:e7}=Kt(),{channels:nbe}=xd(),sa=Symbol("open streams"),sbe,bk;try{bk=b("node:http2")}catch{bk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:sBt,HTTP2_HEADER_METHOD:ibe,HTTP2_HEADER_PATH:obe,HTTP2_HEADER_SCHEME:JV,HTTP2_HEADER_CONTENT_LENGTH:iBt,HTTP2_HEADER_EXPECT:oBt,HTTP2_HEADER_STATUS:zV,HTTP2_HEADER_PROTOCOL:aBt,NGHTTP2_REFUSED_STREAM:cBt,NGHTTP2_CANCEL:ABt}}=bk;function jV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function uBt(t,e){t[Rr]=e;let r=t[eBt],n=t[tBt],s=bk.connect(t[Yb],{createConnection:()=>e,peerMaxConcurrentStreams:t[Bk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[sa]=0,s[Ki]=t,s[Rr]=e,s[e7]={ping:{interval:t[rbe]===0?null:setInterval(fBt,t[rbe],s).unref()}},s[Gb]=!1,s[qb]=!1,n&&At.addListener(s,"connect",dBt.bind(s,n)),At.addListener(s,"error",gBt),At.addListener(s,"frameError",pBt),At.addListener(s,"end",mBt),At.addListener(s,"goaway",EBt),At.addListener(s,"close",CBt),At.addListener(s,"remoteSettings",hBt),s.unref(),t[ju]=s,e[ju]=s,At.addListener(e,"error",yBt),At.addListener(e,"end",BBt),At.addListener(e,"close",IBt),e[$V]=!1,e.on("close",bBt),{version:"h2",defaultPipelining:1/0,write(i){return wBt(t,i)},resume(){lBt(t)},destroy(i,o){e[$V]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Wb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[qb]===!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[qb]===!1;return!1}}}function lBt(t){let e=t[Rr];e?.destroyed===!1&&(t[rBt]===0||t[Bk]===0?(e.unref(),t[ju].unref()):(e.ref(),t[ju].ref()))}function dBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function hBt(t){if(this[Ki][Bk]=t.maxConcurrentStreams??this[Ki][Bk],this[qb]===!0&&this[Gb]===!0&&t.enableConnectProtocol===!1){let e=new _d("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][$i]=e,this[Ki][cE](e);return}this[Gb]=t.enableConnectProtocol??this[Gb],this[qb]=!0,this[Ki][pA]()}function fBt(t){let e=t[e7];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[Ki],o=this[Ki];if(n!=null){let a=new _d(`HTTP/2: "PING" errored - type ${n.message}`);o[$i]=a,i[cE](a)}else i.emit("ping",s)}}function gBt(t){ia(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][$i]=t,this[Ki][cE](t)}function pBt(t,e,r){if(r===0){let n=new _d(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][$i]=n,this[Ki][cE](n)}}function mBt(){let t=new Vb("other side closed",At.getSocketInfo(this[Rr]));this.destroy(t),At.destroy(this[Rr],t)}function EBt(t){let e=this[$i]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[Rr])),r=this[Ki];if(r[Rr]=null,r[ZV]=null,this.close(),this[ju]=null,At.destroy(this[Rr],e),r[ec]<r[Fd].length){let n=r[Fd][r[ec]];r[Fd][r[ec]++]=null,At.errorRequest(r,n,e),r[XV]=r[ec]}ia(r[Wb]===0),r.emit("disconnect",r[Yb],[r],e),r.emit("connectionError",r[Yb],[r],e),r[pA]()}function CBt(){let{[Ki]:t,[e7]:e}=this,{[Rr]:r}=t,n=this[Rr][$i]||this[$i]||new Vb("closed",At.getSocketInfo(r));if(t[Rr]=null,t[ZV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ia(t[Xyt]===0);let s=t[Fd].splice(t[ec]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function IBt(){let t=this[$i]||new Vb("closed",At.getSocketInfo(this)),e=this[ju][Ki];e[Rr]=null,e[ZV]=null,this[ju]!==null&&this[ju].destroy(t),e[XV]=e[ec],ia(e[Wb]===0),e.emit("disconnect",e[Yb],[e],t),e[pA]()}function yBt(t){ia(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$i]=t,this[Ki][cE](t)}function BBt(){At.destroy(this,new Vb("other side closed",At.getSocketInfo(this)))}func Line truncated
`;nbe.sendHeaders.publish({request:e,headers:k,socket:n[Rr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[oBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[yk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[yk]=!0,O()),++n[sa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[zV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),jV(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[Fd][t[ec]++]=null,t[pA]()):(m(new _d("HTTP/2: stream half-closed (remote)")),t[Fd][t[ec]++]=null,t[XV]=t[ec],t[pA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[sa]-=1,n[sa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new _d(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new _d(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[sa]-=1,n[sa]===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?abe(m,f,null,t,e,t[Rr],y,C):At.isBuffer(d)?abe(m,f,d,t,e,t[Rr],y,C):At.isBlobLike(d)?typeof d.stream=="function"?cbe(m,f,d.stream(),t,e,t[Rr],y,C):NBt(m,f,d,t,e,t[Rr],y,C):At.isStream(d)?SBt(m,t[Rr],C,f,d,t,e,y):At.isIterable(d)?cbe(m,f,d,t,e,t[Rr],y,C):ia(!1)}}function abe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ia(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Qk]=!0),s.onRequestSent(),n[pA]()}catch(c){t(c)}}function SBt(t,e,r,n,s,i,o,a){ia(a!==0||i[Wb]===0,"stream body cannot be pipelined");let c=jyt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[Qk]=!0),i[pA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function NBt(t,e,r,n,s,i,o,a){ia(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new KV;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Qk]=!0),n[pA]()}catch(c){t(c)}}async function cbe(t,e,r,n,s,i,o,a){ia(o!==0||n[Wb]===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)=>{ia(c===null),i[$i]?d(i[$i]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[$i])throw i[$i];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Qk]=!0),n[pA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Abe.exports=uBt});var Od=E((OIr,Cbe)=>{"use strict";var Ku=b("node:assert"),gbe=b("node:net"),Jb=b("node:http"),fg=Xe(),{ClientStats:TBt}=jY(),{channels:AE}=xd(),xBt=kye(),RBt=cg(),{InvalidArgumentError:fr,InformationalError:DBt,ClientDestroyedError:kBt}=je(),vBt=Ag(),{kUrl:mA,kServerName:Pd,kClient:_Bt,kBusy:t7,kConnect:FBt,kResuming:gg,kRunning:$b,kPending:Xb,kSize:zb,kQueue:tc,kConnected:MBt,kConnecting:uE,kNeedDrain:Ld,kKeepAliveDefaultTimeout:lbe,kHostHeader:LBt,kPendingIdx:rc,kRunningIdx:$u,kError:UBt,kPipelining:wk,kKeepAliveTimeoutValue:PBt,kMaxHeadersSize:OBt,kKeepAliveMaxTimeout:HBt,kKeepAliveTimeoutThreshold:GBt,kHeadersTimeout:qBt,kBodyTimeout:YBt,kStrictContentLength:VBt,kConnector:jb,kMaxRequests:r7,kCounter:WBt,kClose:JBt,kDestroy:zBt,kDispatch:jBt,kLocalAddress:Kb,kMaxResponseSize:KBt,kOnError:$Bt,kHTTPContext:rn,kMaxConcurrentStreams:XBt,kHTTP2InitialWindowSize:ZBt,kHTTP2ConnectionWindowSize:ebt,kResume:Ud,kPingInterval:tbt}=Kt(),rbt=tbe(),nbt=ube(),Md=Symbol("kClosedResolve"),sbt=Jb&&Jb.maxHeaderSize&&Number.isInteger(Jb.maxHeaderSize)&&Jb.maxHeaderSize>0?()=>Jb.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},dbe=()=>{};function pbe(t){return t[wk]??t[rn]?.defaultPipelining??1}var n7=class extends RBt{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:ge}={}){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[YBt]=a??3e5,this[qBt]=n??3e5,this[VBt]=m??!0,this[r7]=N,this[Md]=null,this[KBt]=O>-1?O:-1,this[rn]=null,this[XBt]=D??100,this[ZBt]=ee??262144,this[ebt]=ce??524288,this[tbt]=ge??6e4,this[tc]=[],this[$u]=0,this[rc]=0,this[Ud]=De=>s7(this,De),this[$Bt]=De=>mbe(this,De)}get pipelining(){return this[wk]}set pipelining(e){this[wk]=e,this[Ud](!0)}get stats(){return new TBt(this)}get[Xb](){return this[tc].length-this[rc]}get[$b](){return this[rc]-this[$u]}get[zb](){return this[tc].length-this[$u]}get[MBt](){return!!this[rn]&&!this[uE]&&!this[rn].destroyed}get[t7](){return!!(this[rn]?.busy(null)||this[zb]>=(pbe(this)||1)||this[Xb]>0)}[FBt](e){Ebe(this),this.once("connect",e)}[jBt](e,r){let n=new xBt(this[mA].origin,e,r);return this[tc].push(n),this[gg]||(fg.bodyLength(n.body)==null&&fg.isIterable(n.body)?(this[gg]=1,queueMicrotask(()=>s7(this))):this[Ud](!0)),this[gg]&&this[Ld]!==2&&this[t7]&&(this[Ld]=2),this[Ld]<2}[JBt](){return new Promise(e=>{this[zb]?this[Md]=e:e(null)})}[zBt](e){return new Promise(r=>{let n=this[tc].splice(this[rc]);for(let i=0;i<n.length;i++){let o=n[i];fg.errorRequest(this,o,e)}let s=()=>{this[Md]&&(this[Md](),this[Md]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Ud]()})}};function mbe(t,e){if(t[$b]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[rc]===t[$u]);let r=t[tc].splice(t[$u]);for(let n=0;n<r.length;n++){let s=r[n];fg.errorRequest(t,s,e)}Ku(t[zb]===0)}}function Ebe(t){Ku(!t[uE]),Ku(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku(gbe.isIPv6(o)),r=o}t[uE]=!0,AE.beforeConnect.hasSubscribers&&AE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Pd],localAddress:t[Kb]},connector:t[jb]}),t[jb]({host:e,hostname:r,protocol:n,port:s,servername:t[Pd],localAddress:t[Kb]},(i,o)=>{if(i){hbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Ud]();return}if(t.destroyed){fg.destroy(o.on("error",dbe),new kBt),t[Ud]();return}Ku(o);try{t[rn]=o.alpnProtocol==="h2"?nbt(t,o):rbt(t,o)}catch(a){o.destroy().on("error",dbe),hbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Ud]();return}t[uE]=!1,o[WBt]=0,o[r7]=t[r7],o[_Bt]=t,o[UBt]=null,AE.connected.hasSubscribers&&AE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Pd],localAddress:t[Kb]},connector:t[jb],socket:o}),t.emit("connect",t[mA],[t]),t[Ud]()})}function hbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[uE]=!1,AE.connectError.hasSubscribers&&AE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Pd],localAddress:t[Kb]},connector:t[jb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[$b]===0);t[Xb]>0&&t[tc][t[rc]].servername===t[Pd];){let o=t[tc][t[rc]++];fg.errorRequest(t,o,e)}else mbe(t,e);t.emit("connectionError",t[mA],[t],e)}}function fbe(t){t[Ld]=0,t.emit("drain",t[mA],[t])}function s7(t,e){t[gg]!==2&&(t[gg]=2,ibt(t,e),t[gg]=0,t[$u]>256&&(t[tc].splice(0,t[$u]),t[rc]-=t[$u],t[$u]=0))}function ibt(t,e){for(;;){if(t.destroyed){Ku(t[Xb]===0);return}if(t[Md]&&!t[zb]){t[Md](),t[Md]=null;return}if(t[rn]&&t[rn].resume(),t[t7])t[Ld]=2;else if(t[Ld]===2){e?(t[Ld]=1,queueMicrotask(()=>fbe(t))):fbe(t);continue}if(t[Xb]===0||t[$b]>=(pbe(t)||1))return;let r=t[tc][t[rc]];if(r===null)return;if(t[mA].protocol==="https:"&&t[Pd]!==r.servername){if(t[$b]>0)return;t[Pd]=r.servername,t[rn]?.destroy(new DBt("servername changed"),()=>{t[rn]=null,s7(t)})}if(t[uE])return;if(!t[rn]){Ebe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[rc]++:t[tc].splice(t[rc],1)}}Cbe.exports=n7});var i7=E((GIr,Ibe)=>{"use strict";var Sk=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)}};Ibe.exports=class{constructor(){this.head=this.tail=new Sk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Sk),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 Nk=E((qIr,xbe)=>{"use strict";var{PoolStats:obt}=jY(),abt=cg(),cbt=i7(),{kConnected:o7,kSize:ybe,kRunning:Bbe,kPending:bbe,kQueued:Zb,kBusy:Abt,kFree:ubt,kUrl:lbt,kClose:dbt,kDestroy:hbt,kDispatch:fbt}=Kt(),Gn=Symbol("clients"),Ls=Symbol("needDrain"),eQ=Symbol("queue"),a7=Symbol("closed resolve"),c7=Symbol("onDrain"),Qbe=Symbol("onConnect"),wbe=Symbol("onDisconnect"),Sbe=Symbol("onConnectionError"),A7=Symbol("get dispatcher"),Nbe=Symbol("add client"),Tbe=Symbol("remove client"),u7=class extends abt{[eQ]=new cbt;[Zb]=0;[Gn]=[];[Ls]=!1;[c7](e,r,n){let s=this[eQ],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";var{InvalidArgumentError:uVr}=or(),{runtimeFeatures:lVr}=Kp();function dVr(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 rpt=lVr.has("crypto")?B("node:crypto"):null,hVr=rpt?.hash?t=>rpt.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function spt(t){return Array.isArray(t)&&(t.length&1)===0}function gVr(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 fVr(t){let e={};if(!t)return e;if(spt(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 npt=["record","playback","update"];function pVr(t){if(!npt.includes(t))throw new uVr(`Invalid snapshot mode: ${t}. Must be one of: ${npt.join(", ")}`)}ipt.exports={createHeaderFilters:dVr,hashId:hVr,isUndiciHeaders:spt,normalizeHeaders:fVr,isUrlExcludedFactory:gVr,validateSnapshotMode:pVr}});var gpt=f((vGn,hpt)=>{"use strict";var{writeFile:mVr,readFile:EVr,mkdir:CVr}=B("node:fs/promises"),{dirname:IVr,resolve:opt}=B("node:path"),{setTimeout:BVr,clearTimeout:apt}=B("node:timers"),{InvalidArgumentError:Apt,UndiciError:QVr}=or(),{hashId:yVr,isUrlExcludedFactory:bVr,normalizeHeaders:cpt,createHeaderFilters:upt}=fIe();function Mv(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||cpt(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:lpt(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function lpt(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 dpt(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 vv(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 yVr(r)}var pIe=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=upt(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=bVr(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Mv(e,this.#a,this.matchOptions),s=vv(n),i=cpt(r.headers),o={statusCode:r.statusCode,headers:dpt(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 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.#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=Mv(e,this.#a,this.matchOptions),n=vv(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 Apt("Snapshot path is required");try{let n=await EVr(opt(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 QVr(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Apt("Snapshot path is required");let n=opt(r);await CVr(IVr(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await mVr(n,JS Line truncated
${e.format(r)}`.trim())}};$we.exports=wW});var NW=E((Iyr,t1e)=>{"use strict";var{InvalidArgumentError:l1t}=je(),{runtimeFeatures:d1t}=Ju();function h1t(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 Xwe=d1t.has("crypto")?b("node:crypto"):null,f1t=Xwe?.hash?t=>Xwe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function e1e(t){return Array.isArray(t)&&(t.length&1)===0}function g1t(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 p1t(t){let e={};if(!t)return e;if(e1e(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 Zwe=["record","playback","update"];function m1t(t){if(!Zwe.includes(t))throw new l1t(`Invalid snapshot mode: ${t}. Must be one of: ${Zwe.join(", ")}`)}t1e.exports={createHeaderFilters:h1t,hashId:f1t,isUndiciHeaders:e1e,normalizeHeaders:p1t,isUrlExcludedFactory:g1t,validateSnapshotMode:m1t}});var u1e=E((yyr,A1e)=>{"use strict";var{writeFile:E1t,readFile:C1t,mkdir:I1t}=b("node:fs/promises"),{dirname:y1t,resolve:r1e}=b("node:path"),{setTimeout:B1t,clearTimeout:n1e}=b("node:timers"),{InvalidArgumentError:s1e,UndiciError:b1t}=je(),{hashId:Q1t,isUrlExcludedFactory:w1t,normalizeHeaders:i1e,createHeaderFilters:o1e}=NW();function fQ(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:a1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function a1e(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 c1e(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 gQ(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 Q1t(r)}var TW=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=o1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=w1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=fQ(e,this.#a,this.matchOptions),s=gQ(n),i=i1e(r.headers),o={statusCode:r.statusCode,headers:c1e(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=fQ(e,this.#a,this.matchOptions),n=gQ(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 s1e("Snapshot path is required");try{let n=await C1t(r1e(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 b1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new s1e("Snapshot path is required");let n=r1e(r);await I1t(y1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await E1t(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${cu} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${eo} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -282,8 +133,8 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${cu}_getValuesQuery ON cacheInterceptorV${cu}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${cu}_deleteByUrlQuery ON cacheInterceptorV${cu}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${eo}_getValuesQuery ON cacheInterceptorV${eo}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${eo}_deleteByUrlQuery ON cacheInterceptorV${eo}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -297,14 +148,14 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${cu}
FROM cacheInterceptorV${eo}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${cu} SET
UPDATE cacheInterceptorV${eo} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -317,7 +168,7 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${cu} (
INSERT INTO cacheInterceptorV${eo} (
url,
method,
body,
@@ -331,137 +182,88 @@ ${e.format(r)}`.trim())}};tpt.exports=hIe});var fIe=f((MGn,ipt)=>{"use strict";v
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${cu} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${cu}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${cu} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${cu}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${eo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${eo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${eo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${eo}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${cu}
FROM cacheInterceptorV${eo}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){PIe(e);let r=this.#g(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){PIe(e);let n=this.#h(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#g(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){PIe(e),szr(r);let n=0,s=[],i=this;return new nzr({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.#h(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}#h(e){return`${e.origin}/${e.path}`}#g(e,r=!1){let n=this.#h(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)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!izr(s[l],u[l])){c=!1;break}}if(c)return A}}};function izr(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 vQ=f((n8n,Cmt)=>{"use strict";var{kConstruct:ozr}=Mn(),{kEnumerableProperty:_D}=Wt(),{iteratorMixin:azr,isValidHeaderName:_v,isValidHeaderValue:gmt}=su(),{webidl:Pr}=zo(),OIe=B("node:assert"),kV=B("node:util");function hmt(t){return t===10||t===13||t===9||t===32}function fmt(t){let e=0,r=t.length;for(;r>e&&hmt(t.charCodeAt(r-1));)--r;for(;r>e&&hmt(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function pmt(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Pr.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});HIe(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)HIe(t,r[n],e[r[n]])}else throw Pr.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function HIe(t,e,r){if(r=fmt(r),_v(e)){if(!gmt(r))throw Pr.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pr.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Emt(t)==="immutable")throw new TypeError("immutable");return MV(t).append(e,r,!1)}function Azr(t){let e=MV(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 mmt(t,e){return t[0]<e[0]?-1:1}var FV=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.headersMa Line truncated
${i}`;break;case"retry":wCt(i)&&(r[s]=i);break;case"id":NCt(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&wCt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&NCt(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}}};SCt.exports={EventSourceStream:yBe}});var LCt=f((R8n,vCt)=>{"use strict";var{pipeline:bXr}=B("node:stream"),{fetching:wXr}=Yv(),{makeRequest:NXr}=HD(),{webidl:AA}=zo(),{EventSourceStream:SXr}=RCt(),{parseMIMEType:RXr}=Ll(),{createFastMessageEvent:DXr}=iW(),{isNetworkError:DCt}=Hv(),{kEnumerableProperty:GQ}=Wt(),{environmentSettingsObject:xCt}=su(),TCt=!1,kCt=3e3,Kv=0,FCt=1,Xv=2,xXr="anonymous",TXr="use-credentials",XD=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=Kv;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),AA.util.markAsUncloneable(this);let n="EventSource constructor";AA.argumentLengthCheck(arguments,1,n),TCt||(TCt=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=AA.converters.USVString(e),r=AA.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=xCt,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=xXr;r.withCredentials===!0&&(o=TXr,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xCt.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=NXr(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===Xv)return;this.#r=Kv;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!DCt(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(DCt(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?RXr(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=FCt,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new SXr({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(DXr(A.type,A.options))}});bXr(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=wXr(e)}#c(){this.#r!==Xv&&(this.#r=Kv,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===Kv&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){AA.brandCheck(this,t),this.#r!==Xv&&(this.#r=Xv,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=AA.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=AA.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=AA.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},MCt={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Kv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:FCt,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xv,writable:!1}};Object.defineProperties(XD,MCt);Object.defineProperties(XD.prototype,MCt);Object.defineProperties(XD.prototype,{close:GQ,onerror:GQ,onmessage:GQ,onopen:GQ,readyState:GQ,url:GQ,withCredentials:GQ});AA.converters.EventSourceInitDict=AA.dictionaryConverter([{key:"withCredentials",converter:AA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:AA.converters.any},{key:"node",converter:AA.dictionaryConverter([{key:"reconnectionTime",converter:AA.converters["unsigned long"],defaultValue:()=>kCt},{key:"dispatcher",converter:AA.converters.any}]),defaultValue:()=>({})}]);vCt.exports={EventSource:XD,defaultReconnectionTime:kCt}});var qCt=f((D8n,Oe)=>{"use strict";var kXr=jC(),PCt=XM(),FXr=wD(),MXr=egt(),vXr=sgt(),LXr=RQ(),UXr=ECe(),PXr=Rgt(),_Xr=Mgt(),OXr=Ugt(),_Ct=or(),CW=Wt(),{InvalidArgumentError:EW}=_Ct,ZD=Eft(),HXr=gD(),qXr=rIe(),{MockCallHistory:GXr,Mock Line truncated
`)}close(){this.#n.close()}get(e){KW(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){KW(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){KW(e),lNt(r);let n=0,s=[],i=this;return new uNt({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(!dNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function dNt(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 xg=E((qyr,mSe)=>{"use strict";var{kConstruct:hNt}=Kt(),{kEnumerableProperty:wE}=Xe(),{iteratorMixin:fNt,isValidHeaderName:CQ,isValidHeaderValue:dSe}=ji(),{webidl:wt}=Xn(),XW=b("node:assert"),sv=b("node:util");function lSe(t){return t===10||t===13||t===9||t===32}function hSe(t){let e=0,r=t.length;for(;r>e&&lSe(t.charCodeAt(r-1));)--r;for(;r>e&&lSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function fSe(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}.`});ZW(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)ZW(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 ZW(t,e,r){if(r=hSe(r),CQ(e)){if(!dSe(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(pSe(t)==="immutable")throw new TypeError("immutable");return ov(t).append(e,r,!1)}function gNt(t){let e=ov(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 gSe(t,e){return t[0]<e[0]?-1:1}var iv=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":QTe(i)&&(r[s]=i);break;case"id":wTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&QTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&wTe(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}}};STe.exports={EventSourceStream:MJ}});var FTe=E((fBr,_Te)=>{"use strict";var{pipeline:kDt}=b("node:stream"),{fetching:vDt}=QQ(),{makeRequest:_Dt}=NE(),{webidl:Ps}=Xn(),{EventSourceStream:FDt}=NTe(),{parseMIMEType:MDt}=ea(),{createFastMessageEvent:LDt}=Dv(),{isNetworkError:TTe}=yQ(),{kEnumerableProperty:Lg}=Xe(),{environmentSettingsObject:xTe}=ji(),RTe=!1,DTe=3e3,DQ=0,kTe=1,kQ=2,UDt="anonymous",PDt="use-credentials",LE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=DQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),RTe||(RTe=!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=xTe,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=UDt;r.withCredentials===!0&&(o=PDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xTe.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=_Dt(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=DQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!TTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(TTe(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?MDt(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=kTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new FDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(LDt(c.type,c.options))}});kDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=vDt(e)}#A(){this.#r!==kQ&&(this.#r=DQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===DQ&&(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!==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=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}},vTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:DQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:kQ,writable:!1}};Object.defineProperties(LE,vTe);Object.defineProperties(LE.prototype,vTe);Object.defineProperties(LE.prototype,{close:Lg,onerror:Lg,onmessage:Lg,onopen:Lg,readyState:Lg,url:Lg,withCredentials:Lg});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:()=>DTe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);_Te.exports={EventSource:LE,defaultReconnectionTime:DTe}});var HTe=E((gBr,pe)=>{"use strict";var ODt=Od(),LTe=Rb(),HDt=pg(),GDt=Lbe(),qDt=Hbe(),YDt=Cg(),VDt=R7(),WDt=S7(),JDt=QQe(),zDt=RQe(),jDt=vQe(),UTe=je(),Yv=Xe(),{InvalidArgumentError:qv}=UTe,UE=fwe(),KDt=Ag(),$Dt=fW(),{MockCallHistory:XD Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}Oe.exports.fetch=function(e,r=void 0){return eZr(e,r).catch(n=>{throw UCt?HCt(n,UCt):n&&typeof n=="object"&&Error.captureStackTrace(n,Oe.exports.fetch),n})};Oe.exports.Headers=vQ().Headers;Oe.exports.Response=Hv().Response;Oe.exports.Request=HD().Request;Oe.exports.FormData=HJ().FormData;var{setGlobalOrigin:tZr,getGlobalOrigin:rZr}=oEe();Oe.exports.setGlobalOrigin=tZr;Oe.exports.getGlobalOrigin=rZr;var{CacheStorage:nZr}=QEt(),{kConstruct:sZr}=Mn();Oe.exports.caches=new nZr(sZr);var{deleteCookie:iZr,getCookies:oZr,getSetCookies:aZr,setCookie:AZr,parseCookie:cZr}=vEt();Oe.exports.deleteCookie=iZr;Oe.exports.getCookies=oZr;Oe.exports.getSetCookies=aZr;Oe.exports.setCookie=AZr;Oe.exports.parseCookie=cZr;var{parseMIMEType:uZr,serializeAMimeType:lZr}=Ll();Oe.exports.parseMIMEType=uZr;Oe.exports.serializeAMimeType=lZr;var{CloseEvent:dZr,ErrorEvent:hZr,MessageEvent:gZr}=iW(),{WebSocket:fZr,ping:pZr}=gCt();Oe.exports.WebSocket=fZr;Oe.exports.CloseEvent=dZr;Oe.exports.ErrorEvent=hZr;Oe.exports.MessageEvent=gZr;Oe.exports.ping=pZr;Oe.exports.WebSocketStream=QCt().WebSocketStream;Oe.exports.WebSocketError=EBe().WebSocketError;Oe.exports.request=Zv(ZD.request);Oe.exports.stream=Zv(ZD.stream);Oe.exports.pipeline=Zv(ZD.pipeline);Oe.exports.connect=Zv(ZD.connect);Oe.exports.upgrade=Zv(ZD.upgrade);Oe.exports.MockClient=qXr;Oe.exports.MockCallHistory=GXr;Oe.exports.MockCallHistoryLog=YXr;Oe.exports.MockPool=VXr;Oe.exports.MockAgent=JXr;Oe.exports.SnapshotAgent=WXr;Oe.exports.mockErrors=zXr;var{EventSource:mZr}=LCt();Oe.exports.EventSource=mZr;function EZr(){globalThis.fetch=Oe.exports.fetch,globalThis.Headers=Oe.exports.Headers,globalThis.Response=Oe.exports.Response,globalThis.Request=Oe.exports.Request,globalThis.FormData=Oe.exports.FormData,globalThis.WebSocket=Oe.exports.WebSocket,globalThis.CloseEvent=Oe.exports.CloseEvent,globalThis.ErrorEvent=Oe.exports.ErrorEvent,globalThis.MessageEvent=Oe.exports.MessageEvent,globalThis.EventSource=Oe.exports.EventSource}Oe.exports.install=EZr});var $v=f(sI=>{"use strict";sI.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");sI.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");sI.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";sI.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);sI.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);sI.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());sI.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 YCt=f((k8n,GCt)=>{"use strict";var{asciiLowercase:IW,solelyContainsHTTPTokenCodePoints:CZr,soleyContainsHTTPQuotedStringTokenCodePoints:IZr}=$v();GCt.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=IW(String(e)),this._map.get(e)}has(e){return e=IW(String(e)),this._map.has(e)}set(e,r){if(e=IW(String(e)),r=String(r),!CZr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!IZr(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=IW(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 WCt=f((F8n,VCt)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:BZr,removeTrailingHTTPWhitespace:JCt,isHTTPWhitespaceChar:QZr,solelyContainsHTTPTokenCodePoints:bBe,soleyContainsHTTPQuotedStringTokenCodePoints:yZr,asciiLowercase:wBe,collectAnHTTPQuotedString:bZr}=$v();VCt.exports=t=>{t=BZr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!bBe(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=JCt(n),n.length===0||!bBe(n))return null;let s={type:wBe(r),subtype:wBe(n),parameters:new Map};for(;e<t.length;){for(++e;QZr(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=wBe(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=bZr(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=JCt(o),o==="")continue}i.length>0&&bBe(i)&&yZr(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var jCt=f((M8n,zCt)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:wZr}=$v();zCt.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+="=",(!wZr(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var $Ct=f((L8n,ZCt)=>{"use strict";var NZr=YCt(),SZr=WCt(),RZr=jCt(),{asciiLowercase:KCt,solelyContainsHTTPTokenCodePoints:XCt}=$v();ZCt.exports=class{constructor(e){e=String(e);let r=SZr(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 NZr(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=KCt(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!XCt(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=KCt(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!XCt(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return RZr(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 fIt=f((V3n,zZr)=>{zZr.exports={name:"@actions/artifact",version:"6.1.0",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 inLine truncated
globstar while`,e,l,r,d,h),this.matchOne(e.slice(l),r.slice(d),n))return this.debug("globstar found match!",l,a,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,l,r,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,l,r,d),l===a))}var g;if(typeof c=="string"?(g=u===c,this.debug("string match",c,u,g)):(g=u.match(c),this.debug("pattern match",c,u,g)),!g)return!1}if(i===a&&o===A)return!0;if(i===a)return n;if(o===A)return i===a-1&&e[i]==="";throw new Error("wtf?")}braceExpand(){return uyt(this.pattern,this.options)}parse(e,r){Bj(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return oh;if(e==="")return"";let s="",i=!1,o=!1,a=[],A=[],c,u=!1,l=-1,d=-1,h,g,p,C=e.charAt(0)===".",m=n.dot||C,I=()=>C?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=F=>F.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=()=>{if(c){switch(c){case"*":s+=ENe,i=!0;break;case"?":s+=BNe,i=!0;break;default:s+="\\"+c;break}this.debug("clearStateChar %j %j",c,s),c=!1}};for(let F=0,W;F<e.length&&(W=e.charAt(F));F++){if(this.debug("%s %s %s %j",e,F,s,W),o){if(W==="/")return!1;ayt[W]&&(s+="\\"),s+=W,o=!1;continue}switch(W){case"/":return!1;case"\\":if(u&&e.charAt(F+1)==="-"){s+=W;continue}w(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,F,s,W),u){this.debug(" in class"),W==="!"&&F===d+1&&(W="^"),s+=W;continue}this.debug("call clearStateChar %j",c),w(),c=W,n.noext&&w();continue;case"(":{if(u){s+="(";continue}if(!c){s+="\\(";continue}let U={type:c,start:F-1,reStart:s.length,open:oyt[c].open,close:oyt[c].close};this.debug(this.pattern," ",U),a.push(U),s+=U.open,U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1))),this.debug("plType %j %j",c,s),c=!1;continue}case")":{let U=a[a.length-1];if(u||!U){s+="\\)";continue}a.pop(),w(),i=!0,g=U,s+=g.close,g.type==="!"&&A.push(Object.assign(g,{reEnd:s.length}));continue}case"|":{let U=a[a.length-1];if(u||!U){s+="\\|";continue}w(),s+="|",U.start===0&&U.type!=="!"&&(C=!0,s+=y(e.slice(F+1)));continue}case"[":if(w(),u){s+="\\"+W;continue}u=!0,d=F,l=s.length,s+=W;continue;case"]":if(F===d+1||!u){s+="\\"+W;continue}h=e.substring(d+1,F);try{RegExp("["+Rin(Nin(h))+"]"),s+=W}catch{s=s.substring(0,l)+"(?:$.)"}i=!0,u=!1;continue;default:w(),ayt[W]&&!(W==="^"&&u)&&(s+="\\"),s+=W;break}}for(u&&(h=e.slice(d+1),p=this.parse(h,CNe),s=s.substring(0,l)+"\\["+p[0],i=i||p[1]),g=a.pop();g;g=a.pop()){let F;F=s.slice(g.reStart+g.open.length),this.debug("setting tail",s,g),F=F.replace(/((?:\\{2}){0,64})(\\?)\|/g,(U,ee,oe)=>(oe||(oe="\\"),ee+ee+oe+"|")),this.debug(`tail=%j
%s`,F,F,g,s);let W=g.type==="*"?ENe:g.type==="?"?BNe:"\\"+g.type;i=!0,s=s.slice(0,g.reStart)+W+"\\("+F}w(),o&&(s+="\\\\");let H=yin[s.charAt(0)];for(let F=A.length-1;F>-1;F--){let W=A[F],U=s.slice(0,W.reStart),ee=s.slice(W.reStart,W.reEnd-8),oe=s.slice(W.reEnd),Z=s.slice(W.reEnd-8,W.reEnd)+oe,he=U.split(")").length,Se=U.split("(").length-he,Je=oe;for(let $t=0;$t<Se;$t++)Je=Je.replace(/\)[+*?]?/,"");oe=Je;let He=oe===""&&r!==CNe?"(?:$|\\/)":"";s=U+ee+oe+He+Z}if(s!==""&&i&&(s="(?=.)"+s),H&&(s=I()+s),r===CNe)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return win(e);let z=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_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?ENe:r.dot?Bin:Qin,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Sin(a):a===oh?oh:a._src).reduce((a,A)=>(a[a.length-1]===oh&&A===oh||a.push(A),a),[]),o.forEach((a,A)=>{a!==oh||o[A-1]===oh||(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]=oh))}),o.filter(a=>a!==oh).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;INe.sep!=="/"&&(e=e.split(INe.sep).join("/")),e=e.split(Ayt),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 Cu.defaults(e).Minimatch}};Cu.Minimatch=Qx});var pyt=f((Hrs,fyt)=>{fyt.exports=gyt;var bNe=B("fs"),{EventEmitter:Din}=B("events"),{Minimatch:yNe}=lyt(),{resolve:xin}=B("path");function Tin(t,e){return new Promise((r,n)=>{bNe.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 dyt(t,e){return new Promise((r,n)=>{(e?bNe.stat:bNe.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?dyt(t,!1):null):r(null):r(o)})})}async function*hyt(t,e,r,n,s,i){let o=await Tin(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 dyt(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*hyt(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*kin(t,e,r,n){yield*hyt("",t,e,r,n,!0)}function Fin(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 Qj=class extends Din{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Fin(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new yNe(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new yNe(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new yNe(i,{dot:!0}))}this.iterator=kin(xin(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)} Line truncated
`,T);T=te===-1?D.length:te}else if(G!==-1&&D[T]==="/"&&D[T+1]==="*"){let te=D.indexOf("*/",T);te!==-1?(T=te+2,G=D.indexOf("*/",T)):(S+=D[T],T++)}else S+=D[T],T++;return S}function Fm(D){let S=GI(D.toString()),T=S.match(HI);if(T||(T=S.match(ET)),!T)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return A2t(e,r).catch(n=>{throw MTe?OTe(n,MTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=xg().Headers;pe.exports.Response=yQ().Response;pe.exports.Request=NE().Request;pe.exports.FormData=hk().FormData;var{setGlobalOrigin:u2t,getGlobalOrigin:l2t}=gV();pe.exports.setGlobalOrigin=u2t;pe.exports.getGlobalOrigin=l2t;var{CacheStorage:d2t}=INe(),{kConstruct:h2t}=Kt();pe.exports.caches=new d2t(h2t);var{deleteCookie:f2t,getCookies:g2t,getSetCookies:p2t,setCookie:m2t,parseCookie:E2t}=vNe();pe.exports.deleteCookie=f2t;pe.exports.getCookies=g2t;pe.exports.getSetCookies=p2t;pe.exports.setCookie=m2t;pe.exports.parseCookie=E2t;var{parseMIMEType:C2t,serializeAMimeType:I2t}=ea();pe.exports.parseMIMEType=C2t;pe.exports.serializeAMimeType=I2t;var{CloseEvent:y2t,ErrorEvent:B2t,MessageEvent:b2t}=Dv(),{WebSocket:Q2t,ping:w2t}=hTe();pe.exports.WebSocket=Q2t;pe.exports.CloseEvent=y2t;pe.exports.ErrorEvent=B2t;pe.exports.MessageEvent=b2t;pe.exports.ping=w2t;pe.exports.WebSocketStream=yTe().WebSocketStream;pe.exports.WebSocketError=DJ().WebSocketError;pe.exports.request=vQ(UE.request);pe.exports.stream=vQ(UE.stream);pe.exports.pipeline=vQ(UE.pipeline);pe.exports.connect=vQ(UE.connect);pe.exports.upgrade=vQ(UE.upgrade);pe.exports.MockClient=$Dt;pe.exports.MockCallHistory=XDt;pe.exports.MockCallHistoryLog=ZDt;pe.exports.MockPool=t2t;pe.exports.MockAgent=e2t;pe.exports.SnapshotAgent=r2t;pe.exports.mockErrors=n2t;var{EventSource:S2t}=FTe();pe.exports.EventSource=S2t;function N2t(){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=N2t});var _Q=E(Zd=>{"use strict";Zd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Zd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Zd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Zd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Zd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Zd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Zd.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 qTe=E((EBr,GTe)=>{"use strict";var{asciiLowercase:Vv,solelyContainsHTTPTokenCodePoints:T2t,soleyContainsHTTPQuotedStringTokenCodePoints:x2t}=_Q();GTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Vv(String(e)),this._map.get(e)}has(e){return e=Vv(String(e)),this._map.has(e)}set(e,r){if(e=Vv(String(e)),r=String(r),!T2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!x2t(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=Vv(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 WTe=E((CBr,VTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:R2t,removeTrailingHTTPWhitespace:YTe,isHTTPWhitespaceChar:D2t,solelyContainsHTTPTokenCodePoints:LJ,soleyContainsHTTPQuotedStringTokenCodePoints:k2t,asciiLowercase:UJ,collectAnHTTPQuotedString:v2t}=_Q();VTe.exports=t=>{t=R2t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!LJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=YTe(n),n.length===0||!LJ(n))return null;let s={type:UJ(r),subtype:UJ(n),parameters:new Map};for(;e<t.length;){for(++e;D2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=UJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=v2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=YTe(o),o==="")continue}i.length>0&&LJ(i)&&k2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var zTe=E((IBr,JTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:_2t}=_Q();JTe.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+="=",(!_2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var XTe=E((BBr,$Te)=>{"use strict";var F2t=qTe(),M2t=WTe(),L2t=zTe(),{asciiLowercase:jTe,solelyContainsHTTPTokenCodePoints:KTe}=_Q();$Te.exports=class{constructor(e){e=String(e);let r=M2t(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 F2t(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=jTe(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=jTe(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 L2t(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 fxe=E((Fbr,X2t)=>{X2t.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==="*"?Tz:f.type==="?"?Dz:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=hkt[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,ge=D.split("(").length-ce,De=Z;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==xz?"(?:$|\\/)":"";s=D+z+Z+Ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===xz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return gkt(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?Tz:r.dot?lkt:dkt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?mkt(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;Rz.sep!=="/"&&(e=e.split(Rz.sep).join("/")),e=e.split(Hxe),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 oo.defaults(e).Minimatch}};oo.Minimatch=VE});var jxe=E((lQr,zxe)=>{zxe.exports=Jxe;var _z=b("fs"),{EventEmitter:Ckt}=b("events"),{Minimatch:vz}=Yxe(),{resolve:Ikt}=b("path");function ykt(t,e){return new Promise((r,n)=>{_z.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 Vxe(t,e){return new Promise((r,n)=>{(e?_z.stat:_z.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Vxe(t,!1):null):r(null):r(o)})})}async function*Wxe(t,e,r,n,s,i){let o=await ykt(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 Vxe(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*Wxe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Bkt(t,e,r,n){yield*Wxe("",t,e,r,n,!0)}function bkt(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 Ckt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=bkt(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 vz(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 vz(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 vz(i,{dot:!0}))}this.iterator=Bkt(Ikt(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 WC(Q){let B=VC(Q.toString()),w=B.match(oM);if(w||(w=B.match(aM)),!w)throw new Error(`could not parse args in autoInject
Source:
`+S);let[,G]=T;return G.replace(/\s/g,"").split(qI).map(te=>te.replace(km,"").trim())}function YI(D,S){var T={};return Object.keys(D).forEach(G=>{var te=D[G],se,ce=h(te),de=!ce&&te.length===1||ce&&te.length===0;if(Array.isArray(te))se=[...te],te=se.pop(),T[G]=se.concat(se.length>0?Ce:te);else if(de)T[G]=te;else{if(se=Fm(te),te.length===0&&!ce&&se.length===0)throw new Error("autoInject task functions require explicit parameters.");ce||se.pop(),T[G]=se.concat(Ce)}function Ce(nt,vr){var Kr=se.map(_r=>nt[_r]);Kr.push(vr),C(te)(...Kr)}}),mc(T,S)}class JI{constructor(){this.head=this.tail=null,this.length=0}removeLink(S){return S.prev?S.prev.next=S.next:this.head=S.next,S.next?S.next.prev=S.prev:this.tail=S.prev,S.prev=S.next=null,this.length-=1,S}empty(){for(;this.head;)this.shift();return this}insertAfter(S,T){T.prev=S,T.next=S.next,S.next?S.next.prev=T:this.tail=T,S.next=T,this.length+=1}insertBefore(S,T){T.prev=S.prev,T.next=S,S.prev?S.prev.next=T:this.head=T,S.prev=T,this.length+=1}unshift(S){this.head?this.insertBefore(this.head,S):VI(this,S)}push(S){this.tail?this.insertAfter(this.tail,S):VI(this,S)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var S=this.head;S;)yield S.data,S=S.next}remove(S){for(var T=this.head;T;){var{next:G}=T;S(T)&&this.removeLink(T),T=G}return this}}function VI(D,S){D.length=1,D.head=D.tail=S}function Mm(D,S,T){if(S==null)S=1;else if(S===0)throw new RangeError("Concurrency must not be zero");var G=C(D),te=0,se=[];let ce={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function de(wt,tt){ce[wt].push(tt)}function Ce(wt,tt){let Nt=(...Or)=>{nt(wt,Nt),tt(...Or)};ce[wt].push(Nt)}function nt(wt,tt){if(!wt)return Object.keys(ce).forEach(Nt=>ce[Nt]=[]);if(!tt)return ce[wt]=[];ce[wt]=ce[wt].filter(Nt=>Nt!==tt)}function vr(wt,...tt){ce[wt].forEach(Nt=>Nt(...tt))}var Kr=!1;function _r(wt,tt,Nt,Or){if(Or!=null&&typeof Or!="function")throw new Error("task callback must be a function");Xr.started=!0;var fs,no;function Nu(KI,...yT){if(KI)return Nt?no(KI):fs();if(yT.length<=1)return fs(yT[0]);fs(yT)}var Jy=Xr._createTaskItem(wt,Nt?Nu:Or||Nu);if(tt?Xr._tasks.unshift(Jy):Xr._tasks.push(Jy),Kr||(Kr=!0,c(()=>{Kr=!1,Xr.process()})),Nt||!Or)return new Promise((KI,yT)=>{fs=KI,no=yT})}function wu(wt){return function(tt,...Nt){te-=1;for(var Or=0,fs=wt.length;Or<fs;Or++){var no=wt[Or],Nu=se.indexOf(no);Nu===0?se.shift():Nu>0&&se.splice(Nu,1),no.callback(tt,...Nt),tt!=null&&vr("error",tt,no.data)}te<=Xr.concurrency-Xr.buffer&&vr("unsaturated"),Xr.idle()&&vr("drain"),Xr.process()}}function Yy(wt){return wt.length===0&&Xr.idle()?(c(()=>vr("drain")),!0):!1}let jI=wt=>tt=>{if(!tt)return new Promise((Nt,Or)=>{Ce(wt,(fs,no)=>{if(fs)return Or(fs);Nt(no)})});nt(wt),de(wt,tt)};var QT=!1,Xr={_tasks:new JI,_createTaskItem(wt,tt){return{data:wt,callback:tt}},*[Symbol.iterator](){yield*Xr._tasks[Symbol.iterator]()},concurrency:S,payload:T,buffer:S/4,started:!1,paused:!1,push(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!1,tt)):_r(wt,!1,!1,tt)},pushAsync(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!1,!0,tt)):_r(wt,!1,!0,tt)},kill(){nt(),Xr._tasks.empty()},unshift(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!1,tt)):_r(wt,!0,!1,tt)},unshiftAsync(wt,tt){return Array.isArray(wt)?Yy(wt)?void 0:wt.map(Nt=>_r(Nt,!0,!0,tt)):_r(wt,!0,!0,tt)},remove(wt){Xr._tasks.remove(wt)},process(){if(!QT){for(QT=!0;!Xr.paused&&te<Xr.concurrency&&Xr._tasks.length;){var wt=[],tt=[],Nt=Xr._tasks.length;Xr.payload&&(Nt=Math.min(Nt,Xr.payload));for(var Or=0;Or<Nt;Or++){var fs=Xr._tasks.shift();wt.push(fs),se.push(fs),tt.push(fs.data)}te+=1,Xr._tasks.length===0&&vr("empty"),te===Xr.concurrency&&vr("saturated");var no=Z(wu(wt));G(tt,no)}QT=!1}},length(){return Xr._tasks.length},running(){return te},workersList(){return se},idle(){return Xr._tasks.length+te===0},pause(){Xr.paused=!0},resume(){Xr.paused!==!1&&(Xr.paused=!1,c(Xr.process))}};return Object.defineProperties(Xr,{saturated:{writable:!1,value:jI("saturated")},unsaturated:{writable:!1,value:jI("unsaturated")},empty:{writable:!1,value:jI("empty")},drain:{writable:!1,value:jI("drain")},error:{writable:!1,value:jI("error")}}),Xr}function WI(D,S){return Mm(D,1,S)}function Tf(D,S,T){return Mm(D,S,T)}function mA(D,S,T,G){G=z(G);var te=C(T);return qn(D,(se,ce,de)=>{te(S,se,(Ce,nt)=>{S=nt,de(Ce)})},se=>G(se,S))}var EA=m(mA,4);function vm(...D){var S=D.map(C);return function(...T){var G=this,te=T[T.length-1];return typeof te=="function"?T.pop():te=od(),EA(S,T,(se,ce,de)=>{ce.apply(G,se.concat((Ce,...nt)=>{de(Ce,nt)}))},(se,ce)=>te(se,...ce)),te[id]}}function zI(...D){return vm(...D.reverse())}function Ke(D,S,T,G){return y(Se(S),D,T,G)}var $=m(Ke,4);function M(D,S,T,G){var te=C(T);return $(D,S,(se,ce)=>{te(se,(de,...Ce)=>de?ce(de):ce(de,Ce))},(se,ce)=>{for(var de=[],Ce=0;Ce<ce.length;Ce++)ce[Ce]&&(de=de.concat(...ce[Ce]));return Line truncated
GFS4: `),console.error(t)});Os[Ko]||(Nyt=global[Ko]||[],Ryt(Os,Nyt),Os.close=(function(t){function e(r,n){return t.call(Os,r,function(s){s||Syt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Sj,{value:t}),e})(Os.close),Os.closeSync=(function(t){function e(r){t.apply(Os,arguments),Syt()}return Object.defineProperty(e,Sj,{value:t}),e})(Os.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){gy(Os[Ko]),B("assert").equal(Os[Ko].length,0)}));var Nyt;global[Ko]||Ryt(global,Os[Ko]);RNe.exports=NNe(qin(Os));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Os.__patched&&(RNe.exports=NNe(Os),Os.__patched=!0);function NNe(t){Oin(t),t.gracefulify=NNe,t.createReadStream=H,t.createWriteStream=z;var e=t.readFile;t.readFile=r;function r(U,ee,oe){return typeof ee=="function"&&(oe=ee,ee=null),Z(U,ee,oe);function Z(he,Se,Je,He){return e(he,Se,function($t){$t&&($t.code==="EMFILE"||$t.code==="ENFILE")?yx([Z,[he,Se,Je],$t,He||Date.now(),Date.now()]):typeof Je=="function"&&Je.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return n(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return i(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=0),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return a(Se,Je,He,function(er){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(U,ee,oe){typeof ee=="function"&&(oe=ee,ee=null);var Z=u.test(process.version)?function(Je,He,$t,en){return c(Je,he(Je,He,$t,en))}:function(Je,He,$t,en){return c(Je,He,he(Je,He,$t,en))};return Z(U,ee,oe);function he(Se,Je,He,$t){return function(en,er){en&&(en.code==="EMFILE"||en.code==="ENFILE")?yx([Z,[Se,Je,He],en,$t||Date.now(),Date.now()]):(er&&er.sort&&er.sort(),typeof He=="function"&&He.call(this,en,er))}}}if(process.version.substr(0,4)==="v0.8"){var d=Hin(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var g=t.WriteStream;g&&(y.prototype=Object.create(g.prototype),y.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(U){m=U},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(U){y=U},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(U){p=U},enumerable:!0,configurable:!0});var C=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(U){C=U},enumerable:!0,configurable:!0});function m(U,ee){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.autoClose&&U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe),U.read())})}function y(U,ee){return this instanceof y?(g.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function w(){var U=this;W(U.path,U.flags,U.mode,function(ee,oe){ee?(U.destroy(),U.emit("error",ee)):(U.fd=oe,U.emit("open",oe))})}function H(U,ee){return new t.ReadStream(U,ee)}function z(U,ee){return new t.WriteStream(U,ee)}var F=t.open;t.open=W;function W(U,ee,oe,Z){return typeof oe=="function"&&(Z=oe,oe=null),he(U,ee,oe,Z);function he(Se,Je,He,$t,en){return F(Se,Je,He,function(er,Ln){er&&(er.code==="EMFILE"||er.code==="ENFILE")?yx([he,[Se,Je,He,$t],er,en||Date.now(),Date.now()]):typeof $t=="function"&&$t.apply(this,arguments)})}}return t}function yx(t){gy("ENQUEUE",t[0].name,t[1]),Os[Ko].push(t),SNe()}var Nj;function Syt(){for(var t=Date.now(),e=0;e<Os[Ko].length;++e)Os[Ko][e].length>2&&(Os[Ko][e][3]=t,Os[Ko][e][4]=t);SNe()}function SNe(){if(clearTimeout(Nj),Nj=void 0,Os[Ko].length!==0){var t=Os[Ko].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)gy("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){gy("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?(gy("RETRY",e.name,r),e.apply(null,r.concat([s]))):Os[Ko].push(t)}Nj===void 0&&(Nj=setTimeout(SNe,0))}}});var Rj=f((Vrs,Dyt)=>{"use strict";var mf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mf.writable=t=>mf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};aNt.exports={AggregateError:uSe,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 lSe=f((rss,ANt)=>{"use strict";ANt.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 Fa=f((nss,lNt)=>{"use strict";var{format:lun,inspect:Wj}=lSe(),{AggregateError:dun}=Ds(),hun=globalThis.AggregateError||dun,gun=Symbol("kIsNodeError"),fun=["string","function","number","object","Function","Object","boolean","bigint","symbol"],pun=/^([A-Z][a-z0-9]*)+$/,mun="__node_internal_",zj={};function my(t,e){if(!t)throw new zj.ERR_INTERNAL_ASSERTION(e)}function cNt(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 Eun(t,e,r){if(typeof e=="function")return my(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 my(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:lun(e,...r)}function Zo(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Eun(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[gun]=!0,zj[t]=n}function uNt(t){let e=mun+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Cun(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new hun([e,t],e.message);return r.code=e.code,r}return t||e}var dSe=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new zj.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Zo("ERR_ASSERTION","%s",Error);Zo("ERR_INVALID_ARG_TYPE",(t,e,r)=>{my(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)my(typeof A=="string","All expected entries have to be of type string"),fun.includes(A)?s.push(A.toLowerCase()):pun.test(A)?i.push(A):(my(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;defaulLine truncated
globstar while`,e,d,r,h,g),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,A,g),!0;if(g==="."||g===".."||!s.dot&&g.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===A))}let p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=u.test(l),this.debug("pattern match",u,l,p)),!p)return!1}if(o===A&&a===c)return!0;if(o===A)return n;if(a===c)return o===A-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,et.braceExpand)(this.pattern,this.options)}parse(e){(0,L7.assertValidPattern)(e);let r=this.options;if(e==="**")return et.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(WEn))?s=r.dot?jEn:zEn:(n=e.match(UEn))?s=(r.nocase?r.dot?HEn:OEn:r.dot?_En:PEn)(n[1]):(n=e.match(KEn))?s=(r.nocase?r.dot?ZEn:XEn:r.dot?$En:eCn)(n):(n=e.match(qEn))?s=r.dot?YEn:GEn:(n=e.match(JEn))&&(s=VEn);let i=CTt.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}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?rCn:r.dot?nCn:sCn,s=new Set(r.nocase?["i"]:[]),i=e.map(A=>{let c=A.map(u=>{if(u instanceof RegExp)for(let l of u.flags.split(""))s.add(l);return typeof u=="string"?uCn(u):u===et.GLOBSTAR?et.GLOBSTAR:u._src});return c.forEach((u,l)=>{let d=c[l+1],h=c[l-1];u!==et.GLOBSTAR||h===et.GLOBSTAR||(h===void 0?d!==void 0&&d!==et.GLOBSTAR?c[l+1]="(?:\\/|"+n+"\\/)?"+d:c[l]=n:d===void 0?c[l-1]=h+"(?:\\/|"+n+")?":d!==et.GLOBSTAR&&(c[l-1]=h+"(?:\\/|\\/"+n+"\\/)"+d,c[l+1]=et.GLOBSTAR))}),c.filter(u=>u!==et.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let A=i[a],c=s;if(n.matchBase&&A.length===1&&(c=[o]),this.matchOne(c,A,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return et.minimatch.defaults(e).Minimatch}};et.Minimatch=Dy;var lCn=LRe();Object.defineProperty(et,"AST",{enumerable:!0,get:function(){return lCn.AST}});var dCn=URe();Object.defineProperty(et,"escape",{enumerable:!0,get:function(){return dCn.escape}});var hCn=T7();Object.defineProperty(et,"unescape",{enumerable:!0,get:function(){return hCn.unescape}});et.minimatch.AST=CTt.AST;et.minimatch.Minimatch=Dy;et.minimatch.escape=MEn.escape;et.minimatch.unescape=vEn.unescape});var STt=f(P7=>{"use strict";Object.defineProperty(P7,"__esModule",{value:!0});P7.LRUCache=void 0;var Xx=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bTt=new Set,PRe=typeof process=="object"&&process?process:{},wTt=(t,e,r,n)=>{typeof PRe.emitWarning=="function"?PRe.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},U7=globalThis.AbortController,yTt=globalThis.AbortSignal;if(typeof U7>"u"){yTt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},U7=class{constructor(){e()}signal=new yTt;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=PRe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,wTt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var gCn=t=>!bTt.has(t),wI=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),NTt=t=>wI(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Zx:null:null,Zx=class extends Array{constructor(e){super(e),this.fill(0)}},_Re=class t{heap;length;static#e=!1;static create(e){let r=NTt(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ORe=class t{#e;#t;#n;#r;#s;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#A;#c;#u;#h;#g;#f;#p;#y;#E;#b;#w;#I;#B;#Q; Line truncated
`)),e.linkname&&(r+=YDe(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=YDe(" "+s+"="+n[s]+`
`);return zr.from(r)};uT.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(zr.toString(e.subarray(0,n)),10);if(!s)return r;let i=zr.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};uT.encode=function(e){let r=zr.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),zr.byteLength(n)!==n.length)return null;for(;zr.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 zr.byteLength(n)>100||zr.byteLength(s)>155||e.linkname&&zr.byteLength(e.linkname)>100?null:(zr.write(r,n),zr.write(r,FI(e.mode&R0n,6),100),zr.write(r,FI(e.uid,6),108),zr.write(r,FI(e.gid,6),116),v0n(e.size,r,124),zr.write(r,FI(e.mtime.getTime()/1e3|0,11),136),r[156]=BK+F0n(e.type),e.linkname&&zr.write(r,e.linkname,157),zr.copy(kkt,r,iP),zr.copy(w0n,r,JDe),e.uname&&zr.write(r,e.uname,265),e.gname&&zr.write(r,e.gname,297),zr.write(r,FI(e.devmajor||0,6),329),zr.write(r,FI(e.devminor||0,6),337),s&&zr.write(r,s,345),zr.write(r,FI(Mkt(r),6),148),r)};uT.decode=function(e,r,n){let s=e[156]===0?0:e[156]-BK,i=cT(e,0,100,r),o=kI(e,100,8),a=kI(e,108,8),A=kI(e,116,8),c=kI(e,124,12),u=kI(e,136,12),l=k0n(s),d=e[157]===0?null:cT(e,157,100,r),h=cT(e,265,32),g=cT(e,297,32),p=kI(e,329,8),C=kI(e,337,8),m=Mkt(e);if(m===256)return null;if(m!==kI(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(D0n(e))e[345]&&(i=cT(e,345,155,r)+"/"+i);else if(!x0n(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,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:g,devmajor:p,devminor:C,pax:null}};function D0n(t){return zr.equals(kkt,t.subarray(iP,iP+6))}function x0n(t){return zr.equals(N0n,t.subarray(iP,iP+6))&&zr.equals(S0n,t.subarray(JDe,JDe+2))}function T0n(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function k0n(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 F0n(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 Fkt(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function Mkt(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 FI(t,e){return t=t.toString(8),t.length>e?b0n.slice(0,e)+" ":y0n.slice(0,e-t.length)+t+" "}function M0n(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function v0n(t,e,r){t.toString(8).length>11?M0n(t,e,r):zr.write(e,FI(t,11),r)}function L0n(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 kI(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return L0n(t);{for(;e<t.length&&t[e]===32;)e++;let n=T0n(Fkt(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(zr.toString(t.subarray(e,n)),8)}}function cT(t,e,r,n){return zr.toString(t.subarray(e,Fkt(t,0,e,e+r)),n)}function YDe(t){let e=zr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var _kt=f((Dos,Pkt)=>{var{Writable:U0n,Readable:P0n,getStreamError:vkt}=GDe(),_0n=RDe(),Lkt=sT(),lT=VDe(),O0n=Lkt.alloc(0),zDe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new _0n,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 O0n;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 Lkt.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)}},jDe=class extends P0n{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(vkt(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=Ukt(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},KDe=class extends U Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function vO(t){process.exitCode=pee.Failure,LO(t)}function yB(){return process.env.RUNNER_DEBUG==="1"}function _e(t){Ff("debug",{},t)}function LO(t,e={}){Ff("error",xP(e),t instanceof Error?t.toString():t)}function tr(t,e={}){Ff("warning",xP(e),t instanceof Error?t.toString():t)}function UUe(t,e={}){Ff("notice",xP(e),t instanceof Error?t.toString():t)}function pe(t){process.stdout.write(t+LUe.EOL)}function VYt(t){LK("group",t)}function WYt(){LK("endgroup")}function iE(t,e){return JYt(this,void 0,void 0,function*(){VYt(t);let r;try{r=yield e()}finally{WYt()}return r})}function bB(t,e){if(process.env.GITHUB_STATE||"")return UK("STATE",PK(t,e));Ff("save-state",{name:t},kf(e))}function NA(t){return process.env[`STATE_${t}`]||""}var Rje=Xe(V2(),1),XIr="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",ZIr="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",$Ir="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",eBr="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.";var Bje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",tBr="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",Qje="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.",Dje="[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). Use `cache-cleanup: always` to override this behavior.",xje="[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). This is expected.",gY=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=XIr;this.cacheCleanupMessage=Qje}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Rje.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=ZIr){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Bje}setDisabled(e=$Ir){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=Bje}setWriteOnly(e=eBr){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=tBr}setCacheCleanupDisabled(e=Qje){this.cacheCleanupMessage=e}entry(e){for(let n of this.cacheEntries)if(n.entryName===e)return n;let r=new fY(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),n=r.cacheEntries;for(let s=0;s<n.length;s++){let i=n[s];n[s]=Object.assign(new fY(i.entryName),i)}return r}},fY=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,n){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=n,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,n){return this.savedKey=e,this.savedSize=r,this.savedTime=n,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};function Tje(t){let e=t.cacheEntries;return`
<details>
<summary><h4>Caching for Gradle actions was ${t.cacheStatus} - expand for details</h4></summary>
- ${t.cacheStatusReason}
- ${t.cacheCleanupMessage}
${rBr(e)}
<h5>Cache Entry Details</h5>
<pre>
${nBr(t)}
</pre>
</details>
`}function rBr(t){return`
<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</tr>
<tr><td>Entries Restored</td>
<td>${yje(t,e=>e.restoredSize)}</td>
<td>${bje(t,e=>e.restoredSize)}</td>
<td>${wje(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${yje(t,e=>e.savedSize)}</td>
<td>${bje(t,e=>e.savedSize)}</td>
<td>${wje(t,e=>e.savedTime)}</td>
</tr>
</table>
`}function nBr(t){return t.cacheEntries.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Nje(e.restoredSize)}
Time: ${Sje(e.restoredTime)}
${sBr(e,t.cacheWriteOnly)}
Saved Key : ${e.savedKey??""}
Size: ${Nje(e.savedSize)}
Time: ${Sje(e.savedTime)}
${iBr(e,t.cacheReadOnly)}
`).join(`---
`)}function sBr(t,e){return t.notRestored?`(Entry not restored: ${t.notRestored})`:e?"(Entry not restored: cache is write-only)":t.requestedKey===void 0?"(Entry not restored: not requested)":t.restoredKey===void 0?"(Entry not restored: no match found)":t.restoredKey===t.requestedKey?"(Entry restored: exact match found)":"(Entry restored: partial match found)"}function iBr(t,e){return t.notSaved?`(Entry not saved: ${t.notSaved})`:t.savedKey===void 0?e?"(Entry not saved: cache is read-only)":t.notRestored?"(Entry not saved: not restored)":"(Entry not saved: reason unknown)":t.savedSize===0?"(Entry not saved: entry with key already exists)":"(Entry saved)"}function yje(t,e){return t.filter(r=>e(r)).length}function bje(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function wje(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function Nje(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Sje(t){return t===void 0||t===0?"":`${t} ms`}import*as LS from"fs";function Nue(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,_e(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,_e(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,_e(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,_e(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,_e(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as EY from"path";import*as MS from"path";import b0 from"assert";var $E=process.platform==="win32";function Ip(t){if(t=Cp(t),$E&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=MS.dirname(t);return $E&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Cp(e)),e}function pY(t,e){if(b0(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),b0(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),W2(e))return e;if($E){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return b0(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(Rd(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return b0(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return b0(W2(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||$E&&t.endsWith("\\")||(t+=MS.sep),t+e}function W2(t){return b0(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Rd(t),$E?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function z2(t){return b0(t,"isRooted parameter 'itemPath' must not be empty"),t=Rd(t),$E?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Rd(t){return t=t||"",$E?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Cp(t){return t?(t=Rd(t),!t.endsWith(MS.sep)||t===MS.sep||$E&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Dd;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Dd||(Dd={}));var kje=process.platform==="win32";function Rue(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=kje?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=kje?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Ip(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Ip(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function Fje(t,e){let r=Dd.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function Mje(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as vje from"os";import*as vS from"path";var Lje=Xe(zne(),1);import S0 from"assert";import*as w0 from"path";import j2 from"assert";var ABr=process.platform==="win32",N0=class{constructor(e){if(this.segments=[],typeof e=="string")if(j2(e,"Parameter 'itemPath' must not be empty"),e=Cp(e),!z2(e))this.segments=e.split(w0.sep);else{let r=e,n=Ip(r);for(;n!==r;){let s=w0.basename(r);this.segments.unshift(s),r=n,n=Ip(r)}this.segments.unshift(r)}else{j2(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];j2(n,"Parameter 'itemPath' must not contain any empty segments"),n=Rd(e[r]),r===0&&z2(n)?(n=Cp(n),j2(n===Ip(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push( Line truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(n1).map(G=>G.replace(s1,"").trim())}function JC(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=WC(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)}}),YC(w,B)}class zC{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):jC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):jC(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 jC(Q,B){Q.length=1,Q.head=Q.tail=B}function Ep(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 fo(Nh,...rI){if(Nh)return Pe?Sn(Nh):Cr();if(rI.length<=1)return Cr(rI[0]);Cr(rI)}var Bp=Mt._createTaskItem(Ue,Pe?fo:Nt||fo);if(be?Mt._tasks.unshift(Bp):Mt._tasks.push(Bp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Nh,rI)=>{Cr=Nh,Sn=rI})}function ho(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var Sn=Ue[Nt],fo=Y.indexOf(Sn);fo===0?Y.shift():fo>0&&Y.splice(fo,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 yp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>yt("drain")),!0):!1}let Sh=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 tI=!1,Mt={_tasks:new zC,_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)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?yp(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)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?yp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!tI){for(tI=!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(ho(Ue));F(be,Sn)}tI=!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:Sh("saturated")},unsaturated:{writable:!1,value:Sh("unsaturated")},empty:{writable:!1,value:Sh("empty")},drain:{writable:!1,value:Sh("drain")},error:{writable:!1,value:Sh("error")}}),Mt}function KC(Q,B){return Ep(Q,1,B)}function Cp(Q,B,w){return Ep(Q,B,w)}function lo(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 Ia=m(lo,4);function Ip(...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(),Ia(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>G(Y,...J)),G[jA]}}function i1(...Q){return Ip(...Q.reverse())}function we(Q,B,w,F){return y(ge(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]||(iRe=global[es]||[],aRe(kr,iRe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||oRe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,r_,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),oRe()}return Object.defineProperty(e,r_,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Hg(kr[es]),b("assert").equal(kr[es].length,0)}));var iRe;global[es]||aRe(global,kr[es]);Uz.exports=Mz(kkt(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(Uz.exports=Mz(kr),kr.__patched=!0);function Mz(t){Rkt(t),t.gracefulify=Mz,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,ge,De,Ke){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?WE([ee,[ce,ge,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(ge,De,Ke,st,Yt){return n(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,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(ge,De,Ke,st,Yt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,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(ge,De,Ke,st,Yt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,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(ge,De,Ke,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?WE([ee,[ge,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=Dkt(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(ge,De,Ke,st,Yt){return k(ge,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?WE([ce,[ge,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function WE(t){Hg("ENQUEUE",t[0].name,t[1]),kr[es].push(t),Lz()}var t_;function oRe(){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);Lz()}function Lz(){if(clearTimeout(t_),t_=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)Hg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Hg("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?(Hg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[es].push(t)}t_===void 0&&(t_=setTimeout(Lz,0))}}});var n_=E((pQr,cRe)=>{"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}};O2e.exports={AggregateError:Ij,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 yj=E((Swr,H2e)=>{"use strict";H2e.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((Nwr,Y2e)=>{"use strict";var{format:tLt,inspect:B_}=yj(),{AggregateError:rLt}=Nr(),nLt=globalThis.AggregateError||rLt,sLt=Symbol("kIsNodeError"),iLt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],oLt=/^([A-Z][a-z0-9]*)+$/,aLt="__node_internal_",b_={};function Yg(t,e){if(!t)throw new b_.ERR_INTERNAL_ASSERTION(e)}function G2e(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 cLt(t,e,r){if(typeof e=="function")return Yg(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 Yg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:tLt(e,...r)}function rs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(cLt(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[sLt]=!0,b_[t]=n}function q2e(t){let e=aLt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function ALt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new nLt([e,t],e.message);return r.code=e.code,r}return t||e}var Bj=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)=>{Yg(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)Yg(typeof c=="string","All expected entries have to be of type string"),iLt.includes(c)?s.push(c.toLowerCase()):oLt.test(c)?i.push(c):(Yg(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+=eX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=eX(" "+s+"="+n[s]+`
`);return kt.from(r)};vC.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};vC.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,Eh(e.mode&Iqt,6),100),kt.write(r,Eh(e.uid,6),108),kt.write(r,Eh(e.gid,6),116),Nqt(e.size,r,124),kt.write(r,Eh(e.mtime.getTime()/1e3|0,11),136),r[156]=$F+wqt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(dPe,r,zw),kt.copy(mqt,r,tX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Eh(e.devmajor||0,6),329),kt.write(r,Eh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Eh(fPe(r),6),148),r)};vC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-$F,i=kC(e,0,100,r),o=mh(e,100,8),a=mh(e,108,8),c=mh(e,116,8),A=mh(e,124,12),u=mh(e,136,12),l=Qqt(s),d=e[157]===0?null:kC(e,157,100,r),h=kC(e,265,32),f=kC(e,297,32),p=mh(e,329,8),I=mh(e,337,8),m=fPe(e);if(m===256)return null;if(m!==mh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(yqt(e))e[345]&&(i=kC(e,345,155,r)+"/"+i);else if(!Bqt(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 yqt(t){return kt.equals(dPe,t.subarray(zw,zw+6))}function Bqt(t){return kt.equals(Eqt,t.subarray(zw,zw+6))&&kt.equals(Cqt,t.subarray(tX,tX+2))}function bqt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Qqt(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 wqt(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 hPe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function fPe(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 Eh(t,e){return t=t.toString(8),t.length>e?pqt.slice(0,e)+" ":gqt.slice(0,e-t.length)+t+" "}function Sqt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function Nqt(t,e,r){t.toString(8).length>11?Sqt(t,e,r):kt.write(e,Eh(t,11),r)}function Tqt(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 mh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Tqt(t);{for(;e<t.length&&t[e]===32;)e++;let n=bqt(hPe(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 kC(t,e,r,n){return kt.toString(t.subarray(e,hPe(t,0,e,e+r)),n)}function eX(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 CPe=E((ZSr,EPe)=>{var{Writable:xqt,Readable:Rqt,getStreamError:gPe}=Z$(),Dqt=U$(),pPe=NC(),_C=rX(),kqt=pPe.alloc(0),sX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Dqt,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 kqt;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 pPe.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)}},iX=class extends Rqt{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(gPe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=mPe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},oX=class extends xqt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function tO(t){process.exitCode=ZP.Failure,Bo(t)}function Ol(){return process.env.RUNNER_DEBUG==="1"}function V(t){Th("debug",{},t)}function Bo(t,e={}){Th("error",w1(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Th("warning",w1(e),t instanceof Error?t.toString():t)}function zae(t,e={}){Th("notice",w1(e),t instanceof Error?t.toString():t)}function ne(t){process.stdout.write(t+Jae.EOL)}function iy(t,e){if(process.env.GITHUB_STATE||"")return oZ("STATE",aZ(t,e));Th("save-state",{name:t},El(e))}function Sc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Lze,existsSync as Uze}from"fs";import{EOL as Pze}from"os";var Cm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Uze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Lze(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${Pze}`)}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=fe(Zae(),1),ece=fe(bN(),1),Xze=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 tce(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 rce(t){return new iO.HttpClient().getAgent(t)}function Zze(t){return new iO.HttpClient().getAgentDispatcher(t)}function nce(t){let e=Zze(t);return(n,s)=>Xze(this,void 0,void 0,function*(){return(0,ece.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function sce(){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 LN(){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 UN(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)=>UN.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 ice(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 oce(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 ace=Function.bind,cce=ace.bind(ace);function Ace(t,e,r){let n=cce(oce,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]=cce(ice,null).apply(null,i)})}function tje(){let t=Symbol("Singular"),e={registry:{}},r=UN.bind(null,e,t);return Ace(r,e,t),r}function rje(){let t={registry:{}},e=UN.bind(null,t);return Ace(e,t),e}var uce={Singular:tje,Collection:rje};var bO=fe(CO(),1);var Mce=fe(CO(),1);var jje="0.0.0-development";function Kje(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var $je=class extends Error{constructor(t,e,r){super(Kje(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},Xje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Zje=["query","method","url"],Fce=/\/api\/v3\/?$/;function eKe(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(Zje.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)=>Xje.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 Fce.test(i)&&(s.url=i.replace(Fce,"/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 $je(s,a,o.data)}return o.data.data})}function IO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>eKe(r,s,i),{defaults:IO.bind(null,r),endpoint:r.endpoint})}var nJt=IO(Mce.request,{headers:{"user-agent":`octokit-graphql.js/${jje} ${LN()}`},method:"POST",url:"/graphql"});function Lce(t){return IO(t,{method:"POST",url:"/graphql"})}var yO="(?:[a-zA-Z0-9_-]+)",Uce="\\.",Pce=new RegExp(`^${yO}${Uce}${yO}${Uce}${yO}$`),tKe=Pce.test.bind(Pce);async function rKe(t){let e=tKe(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 nKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function sKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=nKe(t),e(s)}var Oce=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(rKe.bind(null,e),{hook:sKe.bind(null,e)})};var BO="7.0.6";var Hce=()=>{},iKe=console.warn.bind(console),oKe=console.error.bind(console);function aKe(t={}){return typeof t.debug!="function"&&(t.debug=Hce),typeof t.info!="function"&&(t.info=Hce),typeof t.warn!="function"&&(t.warn=iKe),typeof t.error!="function"&&(t.error=oKe),t}var Gce=`octokit-core.js/${BO} ${LN()}`,HN=class{static VERSION=BO;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 uce.Collection,n={baseUrl:bO.request.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} ${Gce}`:Gce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=bO.request.defaults(n),this.graphql=Lce(this.request).defaults(n),this.log=aKe(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=Oce(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var QO="17.0.0";var cKe={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 K2(i));return n.searchPaths.push(...Rue(n.patterns)),n})}static stat(e,r,n){return Due(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield LS.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){_e(`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 LS.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield LS.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){_e(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as xue from"crypto";import*as CY from"fs";import*as Uje from"stream";import*as Pje from"util";import*as _je from"path";var hBr=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())})},gBr=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 Oje(t,e){return hBr(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?pe:_e,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=xue.createHash("sha256"),g=0;try{for(var p=!0,C=gBr(r.globGenerator()),m;m=yield C.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let I=A;if(u(I),!I.startsWith(`${d}${_je.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(CY.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=xue.createHash("sha256");yield Pje.promisify(Uje.pipeline)(CY.createReadStream(I),y),h.write(y.digest()),g++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!p&&!i&&(a=C.return)&&(yield a.call(C))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${g} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Hje=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 tC(t,e){return Hje(this,void 0,void 0,function*(){return yield mY.create(t,e)})}function qje(t){return Hje(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield tC(e,{followSymbolicLinks:i});return Oje(o,r,s)})}import Pp from"path";import rc from"fs";import{readFileSync as fBr,existsSync as pBr}from"fs";import{EOL as mBr}from"os";var US=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(pBr(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(fBr(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${mBr}`)}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 ege=Xe(pnt(),1),mnt=Xe(Khe(),1),Pkr=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 Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var U2r=class extends Error{constructor(t,e,r){super(L2r(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},P2r=["method","baseUrl","url","headers","request","query","mediaType","operationName"],_2r=["query","method","url"],Znt=/\/api\/v3\/?$/;function O2r(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(_2r.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)=>P2r.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 Znt.test(i)&&(s.url=i.replace(Znt,"/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 U2r(s,a,o.data)}return o.data.data})}function gge(t,e){let r=t.defaults(e);return Object.assign((s,i)=>O2r(r,s,i),{defaults:gge.bind(null,r),endpoint:r.endpoint})}var OMn=gge($nt.request,{headers:{"user-agent":`octokit-graphql.js/${v2r} ${B6()}`},method:"POST",url:"/graphql"});function est(t){return gge(t,{method:"POST",url:"/graphql"})}var fge="(?:[a-zA-Z0-9_-]+)",tst="\\.",rst=new RegExp(`^${fge}${tst}${fge}${tst}${fge}$`),H2r=rst.test.bind(rst);async function q2r(t){let e=H2r(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 G2r(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Y2r(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=G2r(t),e(s)}var nst=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(q2r.bind(null,e),{hook:Y2r.bind(null,e)})};var pge="7.0.6";var sst=()=>{},J2r=console.warn.bind(console),V2r=console.error.bind(console);function W2r(t={}){return typeof t.debug!="function"&&(t.debug=sst),typeof t.info!="function"&&(t.info=sst),typeof t.warn!="function"&&(t.warn=J2r),typeof t.error!="function"&&(t.error=V2r),t}var ist=`octokit-core.js/${pge} ${B6()}`,w6=class{static VERSION=pge;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 Snt.Collection,n={baseUrl:mge.request.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} ${ist}`:ist,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=mge.request.defaults(n),this.graphql=est(this.request).defaults(n),this.log=W2r(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=nst(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 Ege="17.0.0";var z2r={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 Line truncated
It is likely locked by another process. Output of 'jps -ml':
${await pFr()}`),n;Vo(`Attempt to delete ${t} failed. Will try again.`),await fFr(1e3)}}}async function fFr(t){return new Promise(e=>setTimeout(e,t))}async function pFr(){return(await nE("jps",["-lm"])).stdout}var mFr="v1",EFr="GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX",CFr="GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT",IFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB",BFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE",QFr="GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION",M6=class{constructor(e,r){this.key=e,this.restoreKeys=r}};function Rge(t,e){let s=`${`${process.env[EFr]||""}${v6(t,mFr)}`}|${yFr()}`,i=`${s}|${bFr()}`,o=`${i}[${wFr()}]`,a=`${o}-${NFr()}`;return e.isCacheStrictMatch()?new M6(a,[o]):new M6(a,[o,i,s])}function v6(t,e){return`gradle-${t}-${e}`}function yFr(){let t=process.env.RUNNER_OS||"",e=process.env.RUNNER_ARCH||"";return process.env[CFr]||`${t}-${e}`}function bFr(){return process.env[IFr]||Cl.job}function wFr(){let t=process.env[BFr];if(t)return t;let e=Cl.workflow,r=Nge();return Sge([e,r])}function NFr(){return process.env[QFr]||Cl.sha}import OR from"path";import gM from"fs";import*as yl from"fs";import*as Up from"path";var tat=Xe(qst(),1),sQ=Xe(z6(),1);import*as _R from"fs";import*as Kot from"os";import*as nQ from"path";var t9=Xe(V2(),1);import{ok as GLr}from"assert";import*as Cg from"path";import*as j6 from"fs";import*as yC from"path";var MLr=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())})},{chmod:vLr,copyFile:LLr,lstat:ULr,mkdir:kot,open:dLn,readdir:Fot,rename:PLr,rm:Mot,rmdir:hLn,stat:jge,symlink:_Lr,unlink:OLr}=j6.promises,QC=process.platform==="win32";var gLn=j6.constants.O_RDONLY;function vot(t){if(t=HLr(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return QC?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Kge(t,e){return MLr(this,void 0,void 0,function*(){let r;try{r=yield jge(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(QC){let s=yC.extname(t).toUpperCase();if(e.some(i=>i.toUpperCase()===s))return t}else if(Tot(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield jge(t)}catch(i){i.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${i}`)}if(r&&r.isFile()){if(QC){try{let i=yC.dirname(t),o=yC.basename(t).toUpperCase();for(let a of yield Fot(i))if(o===a.toUpperCase()){t=yC.join(i,a);break}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${i}`)}return t}else if(Tot(r))return t}}return""})}function HLr(t){return t=t||"",QC?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Tot(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}var K6=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 Lot(t){return K6(this,void 0,void 0,function*(){if(QC&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Mot(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}function Xge(t){return K6(this,void 0,void 0,function*(){GLr(t,"a path argument must be provided"),yield kot(t,{recursive:!0})})}function dM(t,e){return K6(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield dM(t,!1);if(!n)throw QC?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield YLr(t);return r&&r.length>0?r[0]:""})}function YLr(t){return K6(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(QC&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(Cg.delimiter))s&&e.push(s);if(vot(t)){let s=yield Kge(t,e);return s?[s]:[]}if(t.includes(Cg.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(Cg.delimiter))s&&r.push(s);let n=[];for(let s of r){let i=yield Kge(Cg.join(s,t),e)Line truncated
`),r,[],s)?new fM(e,n,r):(pe(`Did not restore ${e} with key ${r} to ${n}`),new fM(e,n,void 0))}async extract(e){let r=this.getExtractedCacheEntryDefinitions();Vo(`Extracting cache entries for ${this.extractorName}: ${JSON.stringify(r,null,2)}`);let n=this.loadExtractedCacheEntries(),s=[];for(let i of r){let o=i.artifactType,a=i.pattern;if(i.notCacheableReason){e.entry(a).markNotSaved(i.notCacheableReason);continue}let c=await(await tC(a,{implicitDescendants:!1})).glob();if(c.length===0){Vo(`No files found to cache for ${o}`);continue}if(i.bundle)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry(c,o,a,i.uniqueFileNames,n,e.entry(a))));else for(let u of c)s.push(this.awaitForDebugging(this.saveExtractedCacheEntry([u],o,u,i.uniqueFileNames,n,e.entry(u))))}this.saveMetadataForCacheResults(await Promise.all(s))}async saveExtractedCacheEntry(e,r,n,s,i,o){let a=s?this.createCacheKeyFromFileNames(r,e):await this.createCacheKeyFromFileContents(r,n);i.find(c=>c.artifactType===r&&c.pattern===n)?.cacheKey===a?(Vo(`No change to previously restored ${r}. Not saving.`),o.markNotSaved("contents unchanged")):await F6(n.split(`
`),a,o);for(let c of e)sM(c);return new fM(r,n,a)}createCacheKeyFromFileNames(e,r){let n=r.map(i=>OR.relative(this.gradleUserHome,i)),s=Nst(n);return Vo(`Generating cache key for ${e} from file names: ${n}`),`${v6(e,sat)}-${s}`}async createCacheKeyFromFileContents(e,r){let n=await qje(r);return Vo(`Generating cache key for ${e} from files matching: ${r}`),`${v6(e,sat)}-${n}`}async awaitForDebugging(e){return rM()&&await e,e}loadExtractedCacheEntries(){let e=this.getCacheMetadataFile();if(!gM.existsSync(e))return[];let r=gM.readFileSync(e,"utf-8");return Vo(`Loaded cache metadata for ${this.extractorName}: ${r}`),JSON.parse(r).entries}saveMetadataForCacheResults(e){let r=new sfe;r.entries=e.filter(s=>s.cacheKey!==void 0);let n=JSON.stringify(r);Vo(`Saving cache metadata for ${this.extractorName}: ${n}`),gM.writeFileSync(this.getCacheMetadataFile(),n,"utf-8")}getCacheMetadataFile(){let e=OR.resolve(this.gradleUserHome,UR);return gM.mkdirSync(e,{recursive:!0}),OR.resolve(e,`${this.extractorName}-entry-metadata.json`)}},pM=class extends i9{constructor(e,r){super(e,"gradle-home",r)}async extract(e){return await this.deleteWrapperZips(),super.extract(e)}async deleteWrapperZips(){let e=OR.resolve(this.gradleUserHome,"wrapper/dists/*/*/*.zip"),r=await tC(e,{implicitDescendants:!1});for(let n of await r.glob())Vo(`Deleting wrapper zip: ${n}`),await sM(n)}getExtractedCacheEntryDefinitions(){let e=(r,n,s)=>{let i=n.map(o=>{let a=o.endsWith("/"),A=OR.resolve(this.gradleUserHome,o);return a?`${A}/`:A}).join(`
`);return new s9(r,i,s)};return[e("generated-gradle-jars",["caches/*/generated-gradle-jars/*.jar"],!1),e("wrapper-zips",["wrapper/dists/*/*/"],!1),e("java-toolchains",["jdks/*/"],!1),e("dependencies",["caches/modules-*/files-*/*/*/*/*"],!0),e("instrumented-jars",["caches/jars-*/*/"],!0),e("kotlin-dsl",["caches/*/kotlin-dsl/accessors/*/","caches/*/kotlin-dsl/scripts/*/"],!0),e("groovy-dsl",["caches/*/groovy-dsl/*/"],!0),e("transforms",["caches/transforms-4/*/","caches/*/transforms/*/"],!0)]}},mM=class extends i9{constructor(e,r){super(e,"configuration-cache",r)}async restore(e){if(!e.fullyRestored){this.markNotRestored(e,"Gradle User Home was not fully restored");return}if(!this.cacheConfig.getCacheEncryptionKey()){this.markNotRestored(e,"Encryption Key was not provided");return}return await super.restore(e)}markNotRestored(e,r){let n=this.loadExtractedCacheEntries();if(n.length>0){pe(`Not restoring configuration-cache state, as ${r}`);for(let s of n)e.entry(s.pattern).markNotRestored(r);this.saveMetadataForCacheResults([])}}async extract(e){if(!this.cacheConfig.getCacheEncryptionKey()){let r=this.getExtractedCacheEntryDefinitions();if(r.length>0){pe("Not saving configuration-cache state, as no encryption key was provided");for(let n of r)e.entry(n.pattern).markNotSaved("No encryption key provided")}return}await super.extract(e)}getExtractedCacheEntryDefinitions(){let e=this.getConfigCacheDirectoriesWithAssociatedBuildResults();return Object.entries(e).map(([r,n])=>{let s=new s9("configuration-cache",r,!0).withNonUniqueFileNames();return n.find(i=>!bC(i.gradleVersion,"8.6.0"))&&(pe(`Not saving config-cache data for ${r}. Configuration cache data is only saved for Gradle 8.6+`),s.notCacheableBecause("Configuration cache data only saved for Gradle 8.6+")),s})}getConfigCacheDirectoriesWithAssociatedBuildResults(){return n9().results.reduce((e,r)=>{let n=OR.resolve(r.rootProjectDir,".gradle/configuration-cache");return gM.existsSync(n)&&(e[n]||(e[n]=[]),e[n].push(r)),e},{})}};import iat from"path";import pUr from"fs";import{fileURLToPath as mUr}from"url";function oat(...t){let e=iat.dirname(mUr(import.meta.url)),r=iat.resolve(e,"..","..","..","sources","src","resources",...t);return pUr.readFileSync(r,"utf8")}function aat(){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>
<type>jdk</type>
<provides>
<version>${e}</version>
</provides>
<configuration>
<jdkHome>${r}</jdkHome>
</configuration>
</toolchain>`).join(`
`)}
</toolchains>
`}function Aat(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var cat="restored-cache-key",o9=class{constructor(e,r,n){this.cacheName="home";this.cacheDescription="Gradle User Home";this.userHome=e,this.gradleUserHome=r,this.cacheConfig=n}init(){this.initializeGradleUserHome();let e=this.cacheConfig.getCacheEncryptionKey();e&&sE("GRADLE_ENCRYPTION_KEY",e)}cacheOutputExists(){let e=Pp.resolve(this.gradleUserHome,"caches");return rc.existsSync(e)?(Vo(`Cache output exists at ${e}`),!0):!1}async restore(e){let r=e.entry(this.cacheDescription),n=Rge(this.cacheName,this.cacheConfig);Vo(`Requesting ${this.cacheDescription} with
key:${n.key}
restoreKeys:[${n.restoreKeys}]`);let s=this.getCachePath(),i=await k6(s,n.key,n.restoreKeys,r);if(!i){pe(`${this.cacheDescription} cache not found. Will initialize empty.`);return}bB(cat,i.key);try{await this.afterRestore(e)}catch(o){tr(`Restore ${this.cacheDescription} failed in 'afterRestore': ${o}`)}}async afterRestore(e){await this.debugReportGradleUserHomeSize("as restored from cache"),await new pM(this.gradleUserHome,this.cacheConfig).restore(e),await new mM(this.gradleUserHome,this.cacheConfig).restore(e),await this.deleteExcludedPaths(),await this.debugReportGradleUserHomeSize("after restoring common artifacts")}async save(e){let r=Rge(this.cacheName,this.cacheConfig).key,n=NA(cat),s=e.entry(this.cacheDescription);if(n&&r===n){pe(`Cache hit occurred on the cache key ${r}, not saving cache.`);for(let o of e.cacheEntries)o===s?o.markNotSaved("cache key not changed"):o.markNotSaved(`referencing '${this.cacheDescription}' cache entry not saved`);return}try{await this.beforeSave(e)}catch(o){tr(`Save ${this.cacheDescription} failed in 'beforeSave': ${o}`);return}let i=this.getCachePath();await F6(i,r,s)}async beforeSave(e){await this.debugReportGradleUserHomeSize("before saving common artifacts"),await this.deleteExcludedPaths(),await Promise.all([new pM(this.gradleUserHome,this.cacheConfig).extract(e),new mM(this.gradleUserHome,this.cacheConfig).extract(e)]),await this.debugReportGradleUserHomeSize("after extracting common artifacts (only 'caches' and 'notifications' will be stored)")}async deleteExcludedPaths(){let e=this.cacheConfig.getCacheExcludes();e.push("caches/*/cc-keystore");let r=e.map(n=>Pp.resolve(this.gradleUserHome,n));for(let n of r){Vo(`Removing excluded path: ${n}`);let s=await tC(n,{implicitDescendants:!1});for(let i of await s.glob())Vo(`Removing excluded file: ${i}`),await sM(i)}}getCachePath(){let e=this.cacheConfig.getCacheIncludes();e.push(UR);let r=e.map(n=>this.resolveCachePath(n));return Vo(`Using cache paths: ${r}`),r}resolveCachePath(e){return e.startsWith("!")?`!${this.resolveCachePath(e.substring(1))}`:Pp.resolve(this.gradleUserHome,e)}initializeGradleUserHome(){let e=Pp.resolve(this.gradleUserHome,UR);rc.mkdirSync(e,{recursive:!0}),this.copyInitScripts(),this.registerToolchains(),yB()&&this.configureInfoLogLevel()}copyInitScripts(){let e=Pp.resolve(this.gradleUserHome,"init.d");rc.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=oat("init-scripts",n),i=Pp.resolve(e,n);rc.writeFileSync(i,s)}}registerToolchains(){let e=aat();if(e==null)return;let r=Pp.resolve(this.userHome,".m2"),n=Pp.resolve(r,"toolchains.xml");if(!rc.existsSync(n))rc.mkdirSync(r,{recursive:!0}),rc.writeFileSync(n,e),pe(`Wrote default JDK locations to ${n}`);else{let s=rc.readFileSync(n,"utf8"),i=Aat(s,e);rc.writeFileSync(n,i),pe(`Merged default JDK locations into ${n}`)}}configureInfoLogLevel(){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Pp.resolve(this.gradleUserHome,"gradle.properties");if(rc.existsSync(r)){pe(`Merged --info and --stacktrace into existing ${r} file`);let n=rc.readFileSync(r,"utf-8");rc.writeFileSync(r,`${e}
${n}`)}else pe(`Created a new ${r} with --info and --stacktrace`),rc.writeFileSync(r,e)}async debugReportGradleUserHomeSize(e){if(!rM()&&!yB()||!rc.existsSync(this.gradleUserHome))return;let r=await nE("du",["-h","-c","-t","5M"],{cwd:this.gradleUserHome,silent:!0,ignoreReturnCode:!0});pe(`Gradle User Home (directories >5M): ${e}`),pe(r.stdout.trimEnd().replace(/\t/g," ").split(`
`).map(n=>` ${n}`).join(`
`)),pe("-----------------------")}};import a9 from"fs";import EM from"path";var A9=class{constructor(e,r){this.gradleUserHome=e,this.tmpDir=r}async prepare(){let e=Date.now().toString();return bB("clean-timestamp",e),e}async forceCleanup(e){let r=await this.gradleExecutableForCleanup(e),n=NA("clean-timestamp");await this.forceCleanupFilesOlderThan(n,r)}async gradleExecutableForCleanup(e){let r=e.highestGradleVersion();if(r&&bC(r,"8.11"))try{let n=e.results.map(s=>this.findGradleWrapperScript(s)).filter(Boolean);return await rfe(r,n)}catch{pe(`Failed to provision Gradle ${r} for cache cleanup. Falling back to default version.`)}return await rfe("8.11")}findGradleWrapperScript(e){try{let r=tfe(e.rootProjectDir);return EM.resolve(e.rootProjectDir,r)}catch(r){return _e(`No Gradle Wrapper found for ${e.rootProjectName}: ${r}`),null}}async forceCleanupFilesOlderThan(e,r){let n=EM.resolve(this.tmpDir,"dummy-cleanup-project");a9.mkdirSync(n,{recursive:!0}),a9.writeFileSync(EM.resolve(n,"settings.gradle"),'rootProject.name = "dummy-cleanup-project"'),a9.writeFileSync(EM.resolve(n,"init.gradle"),`
beforeSettings { settings ->
def cleanupTime = ${e}
settings.caches {
cleanup = Cleanup.ALWAYS
releasedWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
snapshotWrappers.setRemoveUnusedEntriesOlderThan(cleanupTime)
downloadedResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
createdResources.setRemoveUnusedEntriesOlderThan(cleanupTime)
buildCache.setRemoveUnusedEntriesOlderThan(cleanupTime)
}
}
`),a9.writeFileSync(EM.resolve(n,"build.gradle"),'task("noop") {}'),await iE("Executing Gradle to clean up caches",async()=>{pe(`Cleaning up caches last used before ${e}`),await this.executeCleanupBuild(r,n)})}async executeCleanupBuild(e,r){let n=["-g",this.gradleUserHome,"-I","init.gradle","--info","--no-daemon","--no-scan","--build-cache","-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false","-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true","noop"];await Nh(e,n,{cwd:r})}};var EUr="GRADLE_BUILD_ACTION_CACHE_RESTORED";async function uat(t,e,r,n,s,i){if(i.isCacheDisabled()){pe("Cache is disabled: will not save state for later builds.");return}if(!NA(EUr)){pe("Cache will not be saved: not restored in main action step.");return}if(i.isCacheReadOnly()){pe("Cache is read-only: will not save state for use in subsequent builds."),r.setReadOnly();return}await iE("Stopping Gradle daemons",async()=>{await n.stopAllDaemons()}),i.isCacheCleanupEnabled()&&(s.anyConfigCacheHit()?(pe("Not performing cache-cleanup due to config-cache reuse"),r.setCacheCleanupDisabled(xje)):i.shouldPerformCacheCleanup(s.anyFailed())?(r.setCacheCleanupEnabled(),await CUr(e,s)):(pe("Not performing cache-cleanup due to build failure"),r.setCacheCleanupDisabled(Dje))),await iE("Caching Gradle state",async()=>new o9(t,e,i).save(r))}async function CUr(t,e){let r=new A9(t,process.env.RUNNER_TEMP);try{await r.forceCleanup(e)}catch(n){tr(`Cache cleanup failed. Will continue. ${String(n)}`)}}async function dat(t,e,r){let n=bUr();if(n){IB.addRaw(n),await IB.write();return}let s=yUr(t.results),i=t.anyFailed();r.shouldGenerateJobSummary(i)?(pe("Generating Job Summary"),IB.addRaw(s),IB.addRaw(e),await IB.write()):(pe("============================"),pe(s),pe("============================"),pe(e),pe("============================")),r.shouldAddPRComment(i)&&await BUr(s)}async function BUr(t){let e=Cl;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 n=`<h3>Job Summary for Gradle</h3>
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new hy(i));return n.searchPaths.push(...kO(n.patterns)),n})}static stat(e,r,n){return LO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield wm.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 wm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield wm.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 KKe=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 wAe(t,e){return KKe(this,void 0,void 0,function*(){return yield JN.create(t,e)})}var Ele=fe(ple(),1);import*as AT from"crypto";import*as xm from"fs";import*as cf from"path";import*as Cle from"util";var Iy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Iy||(Iy={}));var Ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ts||(Ts={}));var Fi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fi||(Fi={}));var aT=2,cT=5e3,s3=5e3,i3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,mle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,yy="cache.tar",o3="manifest.txt",qzt=10*Math.pow(1024,3);var Tm=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())})},set=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)}},iet="1.0";function By(){return Tm(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=cf.join(n,"actions","temp")}let r=cf.join(e,AT.randomUUID());return yield NN(r),r})}function Tc(t){return xm.statSync(t).size}function a3(t){return Tm(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 wAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=set(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=cf.relative(a,s).replace(new RegExp(`\\${cf.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 by(t){return Tm(this,void 0,void 0,function*(){return Cle.promisify(xm.unlink)(t)})}function Ile(t){return Tm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield RN(`${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 Qy(){return Tm(this,void 0,void 0,function*(){let t=yield Ile("zstd",["--quiet"]),e=Ele.clean(t);return V(`zstd version: ${e}`),t===""?Ts.Gzip:Ts.ZstdWithoutLong})}function Wl(t){return t===Ts.Gzip?Iy.Gzip:Iy.Zstd}function yle(){return Tm(this,void 0,void 0,function*(){return xm.existsSync(i3)?i3:(yield Ile("tar")).toLowerCase().includes("gnu tar")?hu("tar"):""})}function c3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Rm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(iet),AT.createHash("sha256").update(n.join("|")).digest("hex")}function Ble(){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 $at}from"url";var xc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as oet}from"node:os";import aet from"node:util";import cet from"node:process";function ble(t,...e){cet.stderr.write(`${aet.format(t,...e)}${oet}`)}import wy from"node:process";function lT(t){return wy.env[t]}var Qle=typeof wy.versions.deno=="string"&&wy.versions.deno.length>0,wle=typeof wy.versions.bun=="string"&&wy.versions.bun.length>0,dT=!0;var Sle=lT("DEBUG"),Tle,A3=[],u3=[],hT=[];Sle&&l3(Sle);var xle=Object.assign(t=>Rle(t),{enable:l3,enabled:d3,disable:Aet,log:ble});function l3(t){Tle=t,A3=[],u3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?u3.push(r.substring(1)):A3.push(r);for(let r of hT)r.enabled=d3(r.namespace)}function d3(t){if(t.endsWith("*"))return!0;for(let e of u3)if(Nle(t,e))return!1;for(let e of A3)if(Nle(t,e))return!0;return!1}function Nle(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 Aet(){let t=Tle||"";return l3(""),t}function Rle(t){let e=Object.assign(r,{enabled:d3(t),destroy:uet,log:xle.log,namespace:t,extend:det});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return hT.push(e),e}function uet(){let t=hT.indexOf(this);return t>=0?(hT.splice(t,1),!0):!1}function det(t){let e=Rle(`${this.namespace}:${t}`);return e.log=this.log,e}var Dm=xle;var h3=["verbose","info","warning","error"],Dle={verbose:400,info:300,warning:200,error:100};function kle(t,e){e.log=(...r)=>{t.log(...r)}}function vle(t){return h3.includes(t)}function het(t){let e=new Set,r=lT(t.logLevelEnvVarName),n,s=Dm(t.namespace);s.log=(...u)=>{Dm.log(...u)};function i(u){if(u&&!vle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${h3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Dm.enable(l.join(","))}r&&(vle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${h3.join(", ")}.`));function o(u){return!!(n&&Dle[u.level]<=Dle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(kle(u,d),o(d)){let h=Dm.disable();Dm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return kle(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 _le=het({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),fet=_le.logger;function Sy(t){return _le.createClientLogger(t)}function fT(t){return t.toLowerCase()}function get(t){return String(t).trim().replace(/[\r\n]/g,"")}function*pet(t){for(let e of t.values())yield[e.name,e.value]}var f3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(fT(e),{name:e,value:get(r)})}get(e){return this._headersMap.get(fT(e))?.value}has(e){return this Line truncated
${Iet.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function km(t){return t instanceof xs?!0:uf(t)&&t.name==="RestError"}function Zs(t,e){return Buffer.from(t,e)}import E3 from"node:http";import C3 from"node:https";import Lle from"node:zlib";import{Transform as yet}from"node:stream";var ei=Sy("ts-http-runtime");var Bet={};function Ny(t){return t&&typeof t.pipe=="function"}function Ule(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 Ple(t){return t&&typeof t.byteLength=="number"}var mT=class extends yet{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}},I3=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 _a;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=Net(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new mT(f);p.on("error",I=>{ei.error("Error in upload progress",I)}),Ny(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=bet(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Qet(A,u):A;let h=e.onDownloadProgress;if(h){let f=new mT(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 wet(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ny(a)&&(A=Ule(a));let u=Promise.resolve();Ny(c)&&(u=Ule(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?E3.request(a,c):C3.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&&Ny(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ple(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?E3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new E3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return C3.globalAgent;let s=e.tlsSettings??Bet,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ei.info("No cached TLS Agent exist, creating a new Agent"),i=new C3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function bet(t){let e=Mi();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 Qet(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Lle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Lle.createInflate();return t.pipe(n),n}return t}function wet(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 Net(t){return t?Buffer.isBuffer(t)?t.length:Ny(t)?null:Ple(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Ole(){return new I3}function ET(){return Ole()}var y3="logPolicy";function CT(t={}){let e=t.logger??ei.info,r=new _a({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:y3,asy Line truncated
`;return e}function ztt(t){return t instanceof Uint8Array?t.byteLength:Ry(t)?t.size===-1?void 0:t.size:void 0}function jtt(t){let e=0;for(let r of t){let n=ztt(r);if(n===void 0)return;e+=n}return e}async function Ktt(t,e,r){let n=[Zs(`--${r}`,"utf-8"),...e.flatMap(i=>[Zs(`\r
`,"utf-8"),Zs(Jtt(i.headers),"utf-8"),Zs(`\r
`,"utf-8"),i.body,Zs(`\r
--${r}`,"utf-8")]),Zs(`--\r
\r
`,"utf-8")],s=jtt(n);s&&t.headers.set("Content-Length",s),t.body=await kde(n)}var Dy="multipartPolicy",$tt=70,Xtt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ztt(t){if(t.length>$tt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Xtt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function HT(){return{name:Dy,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?Ztt(r):r=Wtt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ktt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function GT(){return pT()}import{EOL as trt}from"node:os";import rrt from"node:util";import*as vde from"node:process";function _de(t,...e){vde.stderr.write(`${rrt.format(t,...e)}${trt}`)}var Fde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Mde,P3=[],O3=[],qT=[];Fde&&H3(Fde);var Lde=Object.assign(t=>Ude(t),{enable:H3,enabled:G3,disable:nrt,log:_de});function H3(t){Mde=t,P3=[],O3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?O3.push(new RegExp(`^${n.substr(1)}$`)):P3.push(new RegExp(`^${n}$`));for(let n of qT)n.enabled=G3(n.namespace)}function G3(t){if(t.endsWith("*"))return!0;for(let e of O3)if(e.test(t))return!1;for(let e of P3)if(e.test(t))return!0;return!1}function nrt(){let t=Mde||"";return H3(""),t}function Ude(t){let e=Object.assign(r,{enabled:G3(t),destroy:srt,log:Lde.log,namespace:t,extend:irt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return qT.push(e),e}function srt(){let t=qT.indexOf(this);return t>=0?(qT.splice(t,1),!0):!1}function irt(t){let e=Ude(`${this.namespace}:${t}`);return e.log=this.log,e}var Um=Lde;var Ode=new Set,YT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,q3,Y3=Um("azure");Y3.log=(...t)=>{Um.log(...t)};var V3=["verbose","info","warning","error"];YT&&(qde(YT)?ort(YT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${YT}'; logging is not enabled. Acceptable values: ${V3.join(", ")}.`));function ort(t){if(t&&!qde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${V3.join(",")}`);q3=t;let e=[];for(let r of Ode)Gde(r)&&e.push(r.namespace);Um.enable(e.join(","))}var Pde={verbose:400,info:300,warning:200,error:100};function Ro(t){let e=Y3.extend(t);return Hde(Y3,e),{error:VT(e,"error"),warning:VT(e,"warning"),info:VT(e,"info"),verbose:VT(e,"verbose")}}function Hde(t,e){e.log=(...r)=>{t.log(...r)}}function VT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Hde(t,r),Gde(r)){let n=Um.disable();Um.enable(n+","+r.namespace)}return Ode.add(r),r}function Gde(t){return!!(q3&&Pde[t.level]<=Pde[q3])}function qde(t){return V3.includes(t)}var Dc=Ro("core-rest-pipeline");function W3(t={}){return CT({logger:Dc.info,...t})}var J3=PT;function z3(t={}){return OT(t)}import j3 from"node:os";import jl from"node:process";function Yde(){return"User-Agent"}async function Vde(t){if(jl&&jl.versions){let e=`${j3.type()} ${j3.release()}; ${j3.arch()}`;jl.versions.bun?t.set("Bun",`${jl.versions.bun} (${e})`):jl.versions.deno?t.set("Deno",`${jl.versions.deno} (${e})`):jl.versions.node&&t.set("Node",`${jl.versions.node} (${e})`)}}var WT="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 Wde(){return Yde()}async function JT(t){let e=new Map;e.set("core-rest-pipeline",WT),await Vde(e);let r=hrt(e);return t?`${t} ${r}`:r}var Jde=Wde(),zde="userAgentPolicy";function K3(t={}){let e=JT(t.userAgentPrefix);return{name:zde,async sendRequest(r,n){return r.headers.has(Jde)||r.headers.set(Jde,await e),n(r)}}}var jde=Symbol("rawContent");function $3(t){return typeof t[jde]=="function"}function Kde(t){return $3(t)?t[jde]():t}var zT=Dy;function X3(){let t=HT();return{name:zT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)$3(n.body)&&(n.body=Kde(n.body));return t.sendRequest(e,r)}}}var Z3=LT;function e8(){return UT()}function t8(t={}){return BT(t)}function r8(){return bT()}var ky=class extends Error{constructor(e){super(e),this.name="AbortError"}};function n8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new ky(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 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--),!Wnt(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=Hnt(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=Mhe(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=Mhe(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=_he(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Ynt(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rs(t,i));i=l}else if(s===!0&&!vhe(t[i]))return Xr("InvalidXml","Extra text at the end",Rs(t,i));t[i]==="<"&&i--}}else{if(vhe(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 vhe(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 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 Pnt='"',Ont="'";function Hnt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Pnt||t[e]===Ont)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 Gnt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Mhe(t,e){let r=ix(t,Gnt),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.",Yy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Yy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Yy(r[s]));let i=r[s][2];if(!Vnt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Yy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Yy(r[s]))}return!0}function qnt(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 Ynt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,qnt(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 Vnt(t){return N8(t)}function Wnt(t){return N8(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 Yy(t){return t.startIndex+t[1].length}var Lhe={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"},Uhe={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"},Phe={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 Jy(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=F8(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=M8(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=M8(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}=F8(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=Est(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=mst(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}=F8(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 Qst(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 wst(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 Sst(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 Nst(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Tst(t,e,r=">"){Line truncated
`;function Mst(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(G8(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function lfe(t,e,r,n,s){return!r.sanitizeName||mf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function H8(t,e){let r="";e.format&&(r=Fst);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 Oi(a)):a instanceof Oi&&n.push(a)}let s=Mst(t,e),i=new _c;return dfe(t,e,r,i,n,s)}function dfe(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=O8(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=G8(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:lfe(u,!1,e,n,i),h=Lst(A[":@"],e);n.push(d,h);let f=Pst(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=O8(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=px(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=gx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=ufe(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=ufe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=hfe(A[u],e):C=dfe(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 Lst(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]=ed(t[s]),n=!0}return n?r:null}function hfe(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=G8(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=Ust(s[":@"],e),a=hfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Ust(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)}="${ed(s)}"`}return r}function G8(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 ufe(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:lfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=O8(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ed(A)}"`}return i}function Pst(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 O8(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 q8(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 Ost={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({},Ost,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 Oi(r)):r instanceof Oi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Hst(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 Y8(t,e,r,n,s){return!r.sanitizeName||mf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}oi.prototype.build=function(t){if(this.options.preserveOrder)return H8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new _c,r=Hst(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:Y8(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=Y8(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=Y8(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+'="'+ed(e)+'"'};function Gst(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]=ed(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]=ed(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.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)=>Nx(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=Qx(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 Mr=class extends If{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Xy(e,r,this)}computeHMACSHA256(e){return eit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var yf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=Ro("storage-common");var Do;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Do||(Do={}));var rd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},tit=new yf("The operation was aborted."),Zy=class extends Fc{retryOptions;constructor(e,r,n=rd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:rd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):rd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:rd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:rd.maxRetryDelayInMs):rd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:rd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:rd.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=bx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=td(s.url,yu.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 Do.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Do.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),Sx(s,n,tit)}};var eB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Zy(e,r,this.retryOptions)}};var rit="storageBrowserPolicy";function Efe(){return{name:rit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=td(t.url,yu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var nit="StorageCorrectContentLengthPolicy";function Cfe(){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:nit,async sendRequest(e,r){return t(e),r(e)}}}var sit="storageRetryPolicy",jm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Do.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],oit=new yf("The operation was aborted.");function Ife(t={}){let e=t.retryPolicyType??jm.retryPolicyType,r=t.maxTries??jm.maxTries,n=t.retryDelayInMs??jm.retryDelayInMs,s=t.maxRetryDelayInMs??jm.maxRetryDelayInMs,i=t.secondaryHost??jm.secondaryHost,o=t.tryTimeoutInMs??jm.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 iit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=ait("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)=>Nx(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=Qx(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:cit,async sendRequest(i,o){return e(i),o(i)}}}var Ait="storageRequestFailureDetailsParserPolicy";function yfe(){return{name:Ait,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 Tx=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 xx="12.31.0",Rx="2026-02-06";var Dx="https://storage.azure.com/.default",Bu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fa="",K8="*",lit=1*1024*1024;var dit=4*lit;var Bfe="AES256",bfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Qfe=["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"],wfe=["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"],Sfe="BlobUsesCustomerSpecifiedEncryption",Nfe="BlobDoesNotUseCustomerSpecifiedEncryption",Tfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function bu(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 tB=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 tB([],e);return r._credential=t,r}function hit(t){let e=[fit,xfe,git,pit,mit,Eit,Iit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Cit(s));return{wrappedPolicies:w8(r),afterRetry:n}}}}function $8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?S8(e):z8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${xx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Ly({...r,loggingOptions:{additionalAllowedHeaderNames:Qfe,additionalAllowedQueryParameters:wfe,logger:Ex.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:mx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:W8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Z3}),s.addPolicy(Cfe()),s.addPolicy(Ife(r.retryOptions),{phase:"Retry"}),s.addPolicy(yfe()),s.addPolicy(Efe());let a=hit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=X8(t);Ui(c)?s.addPolicy(Gm({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Oa(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 fat(t,e){if(t=Rf(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):"",xf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pa(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 Oa(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 gat(t,e){if(t=Rf(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):"",xf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pa(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 Oa(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 pat(t,e){if(t=Rf(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):"",xf(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?Pa(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 Oa(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 mat(t,e){if(t=Rf(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):"",xf(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?Pa(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 Oa(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 Eat(t,e){if(t=Rf(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):"",xf(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?Pa(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 Oa(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 Cat(t,e){if(t=Rf(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):"",xf(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?Pa(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 Oa(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 xf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Rf(t){let e=t.version?t.version:Rx;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 hB=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=Om()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return 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!==Fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return 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!==Fa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return 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!==Fa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return 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"}};i0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var vf=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"}};vf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var yB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Gat=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())})},wH=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);ne(`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 Gge(t,e,r){return Gat(this,void 0,void 0,function*(){var n;let s=new Ha(t),i=s.getBlockBlobClient(),o=new wH((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 wR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Yge from"buffer";import*as eA from"fs";import*as Vge from"stream";import*as Wge from"util";var SR=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 NR(t){return t?t>=200&&t<300:!1}function qat(t){return t?t>=500:!0}function Yat(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Vat(t){return SR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function qge(t,e,r){return SR(this,arguments,void 0,function*(n,s,i,o=aT,a=cT,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),!qat(d)))return l;if(d&&(h=Yat(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 Vat(a),u++}throw Error(`${n} failed: ${A}`)})}function BB(t,e){return SR(this,arguments,void 0,function*(r,n,s=aT,i=cT){return yield qge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof bc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function o0(t,e){return SR(this,arguments,void 0,function*(r,n,s=aT,i=cT){return yield qge(r,n,o=>o.message.statusCode,s,i)})}var Mo=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 Wat(t,e){return Mo(this,void 0,void 0,function*(){yield Wge.promisify(Vge.pipeline)(t.message,e)})}var TR=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);ne(`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 xH(t,e,r){return ci(this,void 0,void 0,function*(){let n=new $at(t),s=Kge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield zge(t,e,s):s.concurrentBlobDownloads?yield Jge(t,e,s):yield xR(t,e):yield xR(t,e)})}function npe(t,e,r){return ci(this,void 0,void 0,function*(){let n=TH(),s=Rm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield BB("reserveCache",()=>ci(this,void 0,void 0,function*(){return n.postJson(QB("caches"),i)}))})}function tpe(t,e){return`bytes ${t}-${e}/*`}function tct(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: ${tpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":tpe(n,s)},o=yield o0(`uploadChunk (start: ${n}, end: ${s})`,()=>ci(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!NR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function rct(t,e,r,n){return ci(this,void 0,void 0,function*(){let s=Tc(r),i=QB(`caches/${e.toString()}`),o=a0.openSync(r,"r"),a=SH(n),c=c3("uploadConcurrency",a.uploadConcurrency),A=c3("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 tct(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 nct(t,e,r){return ci(this,void 0,void 0,function*(){let n={size:r};return yield BB("commitCache",()=>ci(this,void 0,void 0,function*(){return t.postJson(QB(`caches/${e.toString()}`),n)}))})}function RH(t,e,r,n){return ci(this,void 0,void 0,function*(){if(SH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Gge(r,e,n)}else{let i=TH();V("Upload cache"),yield rct(i,t,e,n),V("Commiting cache");let o=Tc(e);ne(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield nct(i,t,o);if(!NR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ne("Cache saved successfully")}})}var Kpe=fe(y9(),1),tn=fe(ct(),1),qi=fe(ct(),1),Uf=fe(ct(),1),Pf=fe(ct(),1),Of=fe(ct(),1);var w9=fe(ct(),1),S9=fe(ct(),1),Jpe=fe(ct(),1),zpe=fe(ct(),1),jpe=fe(ct(),1);var B9=fe(ct(),1),b9=fe(ct(),1),Ype=fe(ct(),1),Vpe=fe(ct(),1),Wpe=fe(ct(),1),Q9=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,Vpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ype.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?b9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,B9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,B9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?b9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},pD=new Q9;var N9=class extends jpe.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:()=>pD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Jpe.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(pD.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?S9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,w9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)pD.internalBinaryWrite(e.scope[i],r.tag(2,w9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?S9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield G9(r,"create");yield q9(n,t)})}var Q0=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())})},Ya=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},b0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},CD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function eme(t){if(!t||t.length===0)throw new Ya("Path Validation Error: At least one directory or file path is required")}function W9(t){if(t.length>512)throw new Ya(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ya(`Key Validation Error: ${t} cannot contain commas.`)}function tme(){return bB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function rme(t,e,r,n){return Q0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=bB();return V(`Cache service version: ${A}`),eme(s),A==="v2"?yield Iut(s,i,o,a,c):yield Cut(s,i,o,a,c)})}function Cut(t,e,r,n){return Q0(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 Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)W9(d);let u=yield Qy(),l="";try{let d=yield rpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ne("Lookup only - skipping download"),d.cacheKey;l=OB.join(yield By(),Wl(u)),V(`Archive Path: ${l}`),yield xH(d.archiveLocation,l,a),Ol()&&(yield PB(l,u));let h=Tc(l);return ne(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield Y9(l,u),ne("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Ya.name)throw d;h instanceof bc&&typeof h.statusCode=="number"&&h.statusCode>=500?Bo(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{yield by(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function Iut(t,e,r,n){return Q0(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 Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)W9(l);let u="";try{let l=H9(),d=yield Qy(),h={key:i,restoreKeys:o,version:Rm(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?ne(`Cache hit for restore-key: ${f.matchedKey}`):ne(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ne("Lookup only - skipping download"),f.matchedKey;u=OB.join(yield By(),Wl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield xH(f.signedDownloadUrl,u,a);let I=Tc(u);return ne(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Ol()&&(yield PB(u,d)),yield Y9(u,d),ne("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Ya.name)throw l;d instanceof bc&&typeof d.statusCode=="number"&&d.statusCode>=500?Bo(`Failed to restore: ${l.message}`):Ze(`Failed to restore: ${l.message}`)}finally{try{u&&(yield by(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function nme(t,e,r){return Q0(this,arguments,void 0,function*(n,s,i,o=!1){let a=bB();return V(`Cache service version: ${a}`),eme(n),W9(s),a==="v2"?yield But(n,s,i,o):yield yut(n,s,i,o)})}function yut(t,e,r){return Q0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Qy(),h=-1,f=yield a3(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 By(),I=OB.join(p,Wl(d));V(`Archive Path: ${I}`);try{yield V9(p,f,d),Ol()&&(yield PB(I,d));let m=10*1024*1024*1024,C=Tc(I);if(V(`File Size: ${C}`),C>m&&!NH())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 npe(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 b0(`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 RH(h,I,"",i)}catch(m){let C=m;if(C.name===Ya.name)throw m;C.name Line truncated
<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=T6(),i=Il(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")tr(QUr(o));else throw o}}function QUr(t){let e=`Failed to generate PR comment.
${t}`,s=ND(),i=Qo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Ze(Rut(o));else throw o}}function Rut(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 yUr(t){return`${wUr()}
${SUr(t)}`}function bUr(){let t=Cst();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function wUr(){let t=Est();return t.length===0?"":`
`:e}function Dut(t){return`${vut()}
${Fut(t)}`}function kut(){let t=ame();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function vut(){let t=ome();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${S6()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${yD()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${NUr(e)}</li>`).join("")}
${t.map(e=>`<li>${_ut(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function NUr(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function SUr(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function _ut(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Fut(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -469,104 +271,89 @@ This job uses deprecated functionality from the <code>${S6()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>RUr(e)).join("")}
</tr>${t.map(e=>Lut(e)).join("")}
</table>
`}function RUr(t){return`
`}function Mut(t){return t.some(e=>e.buildFailed)}function Lut(t){return`
<tr>
<td>${lat(t.rootProjectName,30)}</td>
<td>${lat(t.requestedTasks,60)}</td>
<td>${lme(t.rootProjectName,30)}</td>
<td>${lme(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${DUr(t)}</td>
<td>${xUr(t)}</td>
</tr>`}function DUr(t){return t.buildFailed?":x:":":white_check_mark:"}function xUr(t){return t.buildScanFailed?ife({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?ife({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):ife({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function ife({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 lat(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var hat=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 gat from"fs";import*as fat from"path";var c9=class{constructor(e){this.gradleHomes=e.uniqueGradleHomes()}async stopAllDaemons(){let e=[],r=["--stop"];for(let n of this.gradleHomes){let s=fat.resolve(n,"bin","gradle");if(!gat.existsSync(s)){tr(`Gradle executable not found at ${s}. Could not stop Gradle daemons.`);continue}pe(`Stopping Gradle daemons for ${n}`),e.push(Nh(s,r,{ignoreReturnCode:!0}))}await Promise.all(e)}};import*as Iat from"util";var PUr=Xe(Cat(),1);import*as ofe from"fs";var xUn=Iat.promisify(ofe.readdir);var OUr={_useHtmlParser2:!1};function HR(t,e){if(!t)return e??OUr;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 xfe={};Su(xfe,{contains:()=>b9,extract:()=>MPr,html:()=>xPr,merge:()=>Gat,parseHTML:()=>kPr,root:()=>FPr,text:()=>uQ,xml:()=>TPr});var RC={};Su(RC,{DocumentPosition:()=>Nl,append:()=>dPr,appendChild:()=>lPr,compareDocumentPosition:()=>_at,existsOne:()=>Uat,filter:()=>VR,find:()=>I9,findAll:()=>pPr,findOne:()=>B9,findOneChild:()=>fPr,getAttributeValue:()=>aPr,getChildren:()=>JR,getElementById:()=>IPr,getElements:()=>CPr,getElementsByClassName:()=>BPr,getElementsByTagName:()=>cQ,getElementsByTagType:()=>QPr,getFeed:()=>Dfe,getInnerHTML:()=>oPr,getName:()=>cPr,getOuterHTML:()=>vat,getParent:()=>Lat,getSiblings:()=>Sfe,getText:()=>m9,hasAttrib:()=>APr,hasChildren:()=>kn,innerText:()=>yM,isCDATA:()=>qR,isComment:()=>AQ,isDocument:()=>wl,isTag:()=>rt,isText:()=>nc,nextElementSibling:()=>E9,prepend:()=>gPr,prependChild:()=>hPr,prevElementSibling:()=>C9,removeElement:()=>Hp,removeSubsets:()=>yPr,replaceElement:()=>uPr,testElement:()=>EPr,textContent:()=>Op,uniqueSort:()=>NC});var bl={};Su(bl,{CDATA:()=>ffe,Comment:()=>lfe,Directive:()=>ufe,Doctype:()=>pfe,ElementType:()=>Lr,Root:()=>Afe,Script:()=>dfe,Style:()=>hfe,Tag:()=>gfe,Text:()=>cfe,isTag:()=>afe});var Lr;(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"})(Lr||(Lr={}));function afe(t){return t.type===Lr.Tag||t.type===Lr.Script||t.type===Lr.Style}var Afe=Lr.Root,cfe=Lr.Text,ufe=Lr.Directive,lfe=Lr.Comment,dfe=Lr.Script,hfe=Lr.Style,gfe=Lr.Tag,ffe=Lr.CDATA,pfe=Lr.Doctype;var u9=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 GR(this,e)}},CM=class extends u9{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Ig=class extends CM{constructor(){super(...arguments),this.type=Lr.Text}get nodeType(){return 3}},iQ=class extends CM{constructor(){super(...arguments),this.type=Lr.Comment}get nodeType(){return 8}},oQ=class extends CM{constructor(e,r){super(r),this.name=e,this.type=Lr.Directive}get nodeType(){return 1}},IM=class extends u9{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}},BM=class extends IM{constructor(){super(...arguments),this.type=Lr.CDATA}get nodeType(){return 4}},eu=class extends IM{constructor(){super(...arguments),this.type=Lr.Root}get nodeType(){return 9}},aQ=class e Line truncated
`:m9(t.children):qR(t)?m9(t.children):nc(t)?t.data:""}function Op(t){return Array.isArray(t)?t.map(Op).join(""):kn(t)&&!AQ(t)?Op(t.children):nc(t)?t.data:""}function yM(t){return Array.isArray(t)?t.map(yM).join(""):kn(t)&&(t.type===Lr.Tag||qR(t))?yM(t.children):nc(t)?t.data:""}function JR(t){return kn(t)?t.children:[]}function Lat(t){return t.parent||null}function Sfe(t){let e=Lat(t);if(e!=null)return JR(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 aPr(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function APr(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function cPr(t){return t.name}function E9(t){let{next:e}=t;for(;e!==null&&!rt(e);)({next:e}=e);return e}function C9(t){let{prev:e}=t;for(;e!==null&&!rt(e);)({prev:e}=e);return e}function Hp(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 uPr(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 lPr(t,e){if(Hp(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 dPr(t,e){Hp(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 hPr(t,e){if(Hp(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 gPr(t,e){Hp(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 VR(t,e,r=!0,n=1/0){return I9(t,Array.isArray(e)?e:[e],r,n)}function I9(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&&kn(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function fPr(t,e){return e.find(t)}function B9(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(rt(i)&&t(i))return i;if(r&&kn(i)&&i.children.length>0){let o=B9(t,i.children,!0);if(o)return o}}return null}function Uat(t,e){return(Array.isArray(e)?e:[e]).some(r=>rt(r)&&t(r)||kn(r)&&Uat(t,r.children))}function pPr(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]++];rt(i)&&t(i)&&r.push(i),kn(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var Q9={tag_name(t){return typeof t=="function"?e=>rt(e)&&t(e.name):t==="*"?rt:e=>rt(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=>nc(e)&&t(e.data):e=>nc(e)&&e.data===t}};function Rfe(t,e){return typeof e=="function"?r=>rt(r)&&e(r.attribs[t]):r=>rt(r)&&r.attribs[t]===e}function mPr(t,e){return r=>t(r)||e(r)}function Pat(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(Q9,r)?Q9[r](n):Rfe(r,n)});return e.length===0?null:e.reduce(mPr)}function EPr(t,e){let r=Pat(t);return r?r(e):!0}function CPr(t,e,r,n=1/0){let s=Pat(t);return s?VR(s,e,r,n):[]}function IPr(t,e,r=!0){return Array.isArray(e)||(e=[e]),B9(Rfe("id",t),e,r)}function cQ(t,e,r=!0,n=1/0){return VR(Q9.tag_name(t),e,r,n)}function BPr(t,e,r=!0,n=1/0){return VR(Rfe("class",t),e,r,n)}function QPr(t,e,r=!0,n=1/0){return VR(Q9.tag_type(t),e,r,n)}function yPr(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 Nl;(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"})(Nl||(Nl={}));function _at(t,e){let r=[],n=[];if(t===e)return 0;let s=kn(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=kn(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 Nl.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Nl.FOLLOWING|Nl.CONTAINED_BY:Nl.FOLLOWING:a===t?Nl.PRECEDING|Nl.CONTAINS:Nl.PRECEDING}function NC(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=_at(e,r);return n&Nl.PRECEDING?-1:n&Nl.FOLLOWING?1:0}),t}function Dfe(t){let e=y9(RPr,t);return e?e.name==="feed"?bPr(e):wPr(e):null}function bPr(t){var e;let r=t.children,n={type:"atom",items:cQ("entry",r).map(o=>{var a;let{children:A}=o,c={media:Oat(A)};sc(c,"id","id",A),sc(c,"title","title",A);let u=(a=y9("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=SC("summary",A)||SC(" Line truncated
<td align='center'>${Uut(t)}</td>
<td>${Put(t)}</td>
</tr>`}function Uut(t){return t.buildFailed?":x:":":white_check_mark:"}function Put(t){return t.buildScanFailed?z9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?z9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):z9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function z9({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 lme(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var hme=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 Oo from"fs";import*as ku from"path";function fme(){return pme().map(e=>{let r=Oo.readFileSync(e,"utf8"),n=JSON.parse(r);return Gut(e,n),n})}function gme(){pme().forEach(Yut)}function pme(){let t=ku.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Oo.existsSync(t)?Oo.readdirSync(t).map(e=>ku.resolve(t,e)).filter(e=>ku.extname(e)===".json"&&!qut(e)):[]}function Gut(t,e){let r=ku.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Oo.existsSync(r))return;let n=ku.resolve(r,ku.basename(t));if(Oo.existsSync(n)){let s=Oo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function qut(t){let e=`${t}.processed`;return Oo.existsSync(e)}function Yut(t){let e=`${t}.processed`;Oo.writeFileSync(e,"")}import*as Kme from"fs";import*as $me from"path";import{pathToFileURL as idt}from"url";import*as T0 from"fs";function j9(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 DD from"path";import*as S0 from"path";import Gf from"assert";var dd=process.platform==="win32";function _u(t){if(t=vu(t),dd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=S0.dirname(t);return dd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=vu(e)),e}function TD(t,e){if(Gf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Gf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),YB(e))return e;if(dd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Gf(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 Gf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Gf(YB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||dd&&t.endsWith("\\")||(t+=S0.sep),t+e}function YB(t){return Gf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Va(t),dd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function VB(t){return Gf(t,"isRooted parameter 'itemPath' must not be empty"),t=Va(t),dd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Va(t){return t=t||"",dd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function vu(t){return t?(t=Va(t),!t.endsWith(S0.sep)||t===S0.sep||dd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Wa;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Wa||(Wa={}));var mme=process.platform==="win32";function $9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=mme?n.sea 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 KB(i));return n.searchPaths.push(...$9(n.patterns)),n})}static stat(e,r,n){return sG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield T0.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 T0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield T0.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 iG from"crypto";import*as kD from"fs";import*as Ome from"stream";import*as Hme from"util";import*as Gme from"path";var tdt=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 qme(t,e){return tdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ne:V,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=iG.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}${Gme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(kD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=iG.createHash("sha256");yield Hme.promisify(Ome.pipeline)(kD.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 Yme=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 oG(t,e){return Yme(this,void 0,void 0,function*(){return yield RD.create(t,e)})}function Vme(t){return Yme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield oG(e,{followSymbolicLinks:i});return qme(o,r,s)})}import*as cG from"path";var Jme="BASIC_CACHE_PRIMARY_KEY",aG="BASIC_CACHE_RESTORED_KEY",ndt="setup-java",zme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],vD=class{async restore(e,r){let n=jme(e),s=await sdt();iy(Jme,s);try{let i=await rme(n,s);i?(iy(aG,i),ne(`Basic caching restored from cache key: ${i}`)):ne("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=Sc(aG);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=Sc(Jme);if(Sc(aG)===s)return ne(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=jme(e);try{return await nme(o,s),ne(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return Ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function jme(t){return[cG.join(t,"caches"),cG.join(t,"wrapper")]}async function sdt(){let t=await Vme(zme.join(`
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${zme}], make sure you have checked out the target repository`);return`${ndt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var odt=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,adt="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.",cdt=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,Adt="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: 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.",udt=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,uG=class{async restore(e,r){}async save(e,r,n){return odt}},_D=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function Xme(t){if(t.isCacheDisabled())return AG("Cache is disabled: will not restore state from previous builds."),new uG;if(t.getCacheProvider()==="basic")return AG(Adt),new _D(new vD,udt);AG(adt);let e=await ldt();return t.isCacheLicenseAccepted()?e:new _D(e,cdt)}async function ldt(){let t=ddt();return await import(idt(t).href)}function ddt(){let t=import.meta.dirname,e=$me.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Kme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function AG(t){console.info(t)}import*as n0e from"util";var Cdt=fe(r0e(),1);import*as lG from"fs";var hpr=n0e.promisify(lG.readdir);var ydt={_useHtmlParser2:!1};function x0(t,e){if(!t)return e??ydt;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 FG={};ya(FG,{contains:()=>jD,extract:()=>ght,html:()=>lht,merge:()=>S0e,parseHTML:()=>hht,root:()=>fht,text:()=>Xf,xml:()=>dht});var Cd={};ya(Cd,{DocumentPosition:()=>Yo,append:()=>Jdt,appendChild:()=>Wdt,compareDocumentPosition:()=>B0e,existsOne:()=>I0e,filter:()=>_0,find:()=>VD,findAll:()=>$dt,findOne:()=>WD,findOneChild:()=>Kdt,getAttributeValue:()=>Gdt,getChildren:()=>v0,getElementById:()=>tht,getElements:()=>eht,getElementsByClassName:()=>rht,getElementsByTagName:()=>$f,getElementsByTagType:()=>nht,getFeed:()=>_G,getInnerHTML:()=>Hdt,getName:()=>Ydt,getOuterHTML:()=>E0e,getParent:()=>C0e,getSiblings:()=>kG,getText:()=>GD,hasAttrib:()=>qdt,hasChildren:()=>tr,innerText:()=>rb,isCDATA:()=>R0,isComment:()=>Kf,isDocument:()=>qo,isTag:()=>Qe,isText:()=>di,nextElementSibling:()=>qD,prepend:()=>jdt,prependChild:()=>zdt,prevElementSibling:()=>YD,removeElement:()=>Uu,removeSubsets:()=>sht,replaceElement:()=>Vdt,testElement:()=>Zdt,textContent:()=>Lu,uniqueSort:()=>md});var Go={};ya(Go,{CDATA:()=>IG,Comment:()=>pG,Directive:()=>gG,Doctype:()=>yG,ElementType:()=>bt,Root:()=>hG,Script:()=>mG,Style:()=>EG,Tag:()=>CG,Text:()=>fG,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 hG=bt.Root,fG=bt.Text,gG=bt.Directive,pG=bt.Comment,mG=bt.Script,EG=bt.Style,CG=bt.Tag,IG=bt.CDATA,yG=bt.Doctype;var FD=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 D0(this,e)}},XB=class extends FD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},oA=class extends XB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Jf=class extends XB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},zf=class extends XB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},ZB=class extends FD{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}},eb=class extends ZB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Vi=class extends ZB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},jf=class extends ZB{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]}})}};function Qe(t){return dG(t)}function R0(t){return t.type===bt.CDATA}function di(t){return t.type===bt.Text}function Kf(t){return t.type===bt.Comment}function MD(t){return t.type===bt.Directive}function qo(t){return t.type===bt.Root}function tr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function D0(t,e=!1){let r;if(di(t))r=new oA(t.data);else if(Kf(t))r=new Jf(t.data);else if(Qe(t)){let n=e?BG(t.children):[],s=new jf(t.name,{...t.attribs},n);n.forEach(i=>i.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=s}else if(R0(t)){let n=e?BG(t.children):[],s=new eb(n);n.forEach(i=>i.parent=s),r=s}else i Line truncated
`:GD(t.children):R0(t)?GD(t.children):di(t)?t.data:""}function Lu(t){return Array.isArray(t)?t.map(Lu).join(""):tr(t)&&!Kf(t)?Lu(t.children):di(t)?t.data:""}function rb(t){return Array.isArray(t)?t.map(rb).join(""):tr(t)&&(t.type===bt.Tag||R0(t))?rb(t.children):di(t)?t.data:""}function v0(t){return tr(t)?t.children:[]}function C0e(t){return t.parent||null}function kG(t){let e=C0e(t);if(e!=null)return v0(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 Gdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function qdt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ydt(t){return t.name}function qD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function YD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Uu(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 Vdt(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 Wdt(t,e){if(Uu(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 Jdt(t,e){Uu(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 zdt(t,e){if(Uu(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 jdt(t,e){Uu(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 _0(t,e,r=!0,n=1/0){return VD(t,Array.isArray(e)?e:[e],r,n)}function VD(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 Kdt(t,e){return e.find(t)}function WD(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=WD(t,i.children,!0);if(o)return o}}return null}function I0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&I0e(t,r.children))}function $dt(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 JD={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 vG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Xdt(t,e){return r=>t(r)||e(r)}function y0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(JD,r)?JD[r](n):vG(r,n)});return e.length===0?null:e.reduce(Xdt)}function Zdt(t,e){let r=y0e(t);return r?r(e):!0}function eht(t,e,r,n=1/0){let s=y0e(t);return s?_0(s,e,r,n):[]}function tht(t,e,r=!0){return Array.isArray(e)||(e=[e]),WD(vG("id",t),e,r)}function $f(t,e,r=!0,n=1/0){return _0(JD.tag_name(t),e,r,n)}function rht(t,e,r=!0,n=1/0){return _0(vG("class",t),e,r,n)}function nht(t,e,r=!0,n=1/0){return _0(JD.tag_type(t),e,r,n)}function sht(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 Yo;(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"})(Yo||(Yo={}));function B0e(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 Yo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Yo.FOLLOWING|Yo.CONTAINED_BY:Yo.FOLLOWING:a===t?Yo.PRECEDING|Yo.CONTAINS:Yo.PRECEDING}function md(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=B0e(e,r);return n&Yo.PRECEDING?-1:n&Yo.FOLLOWING?1:0}),t}function _G(t){let e=zD(Aht,t);return e?e.name==="feed"?iht(e):oht(e):null}function iht(t){var e;let r=t.children,n={type:"atom",items:$f("entry",r).map(o=>{var a;let{children:c}=o,A={media:b0e(c)};hi(A,"id","id",c),hi(A,"title","title",c);let u=(a=zD("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Ed("summary",c)||Ed("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 Dl=Xe(DC(),1);var Vfe={};function Wfe(t,e){return t===Dl.default.falseFunc?Dl.default.falseFunc:r=>e.isTag(r)&&t(r)}function zfe(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 Jfe(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 Yfe=(t,e,r,n,s)=>{let i=s(e,Jfe(r),n);return i===Dl.default.trueFunc?t:i===Dl.default.falseFunc?Dl.default.falseFunc:o=>i(o)&&t(o)},L9={is:Yfe,matches:Yfe,where:Yfe,not(t,e,r,n,s){let i=s(e,Jfe(r),n);return i===Dl.default.falseFunc?t:i===Dl.default.trueFunc?Dl.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Jfe(r);o.relativeSelector=!0;let a=e.some(u=>u.some(xM))?[Vfe]:void 0,A=s(e,o,a);if(A===Dl.default.falseFunc)return Dl.default.falseFunc;let c=Wfe(A,i);if(a&&A!==Dl.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,...zfe(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function RAt(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in L9))throw new Error(`Unknown pseudo-class :${o}(${a})`);return L9[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:v9[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,SAt.parse)(c);return L9.is(t,u,r,n,s)}if(typeof A=="function")return Gfe(A,o,a,1),u=>A(u,a)&&t(u);if(o in tD)return tD[o](t,a,r,n);if(o in kM){let u=kM[o];return Gfe(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var xl=Xe($R(),1);function jfe(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function DAt(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case xl.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case xl.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case xl.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()),yAt[e.action](t,e,r)}case xl.SelectorType.Pseudo:return RAt(t,e,r,n,s);case xl.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 xl.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=jfe(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=jfe(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=jfe(c,i));return!1};case xl.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case xl.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case xl.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 xl.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 xl.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function xAt(t,e,r){let n=U9(t,e,r);return Wfe(n,e.adapter)}function U9(t,e,r){let n=typeof t=="string"?(0,Hd.parse)(t):t;return P9(n,e,r)}function TAt(t){return t.type===Hd.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(TAt)))}var C_r={type:Hd.SelectorType.Descendant},I_r={type:"_flexibleDescendant"},B_r={type:Hd.SelectorType.Pseudo,name:"scope",data:null};function Q_r(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===V Line truncated
`)})):{name:s,value:i.replace(WAt,`\r
`)}}).toArray()}var lpe={};Su(lpe,{extract:()=>UOr});function LOr(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 UOr(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=LOr(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 kC=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}}};kC.prototype.cheerio="[cheerio object]";kC.prototype.splice=Array.prototype.splice;kC.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(kC.prototype,Pfe,ape,Ape,cpe,upe,lpe);function zAt(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=HR(s),a=t(n,o,i,null);class A extends kC{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,g){return t(l,d,h,g)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Sl(u))return u;let g=HR(h,o),p=typeof d=="string"?[t(d,g,!1,null)]:"length"in d?d:[d],C=Sl(p)?p:new A(p,null,g);if(C._root=C,!u)return new A(void 0,C,g);let m=typeof u=="string"&&bM(u)?t(u,g,!1,null).children:POr(u)?[u]:Array.isArray(u)?u:void 0,I=new A(m,C,g);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,w=l?typeof l=="string"?bM(l)?new A([t(l,g,!1,null)],C,g):(y=`${l} ${y}`,C):Sl(l)?l:new A(Array.isArray(l)?l:[l],C,g):C;return w?w.find(y):I}return Object.assign(c,xfe,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function POr(t){return!!t.name||t.type===bl.Root||t.type===bl.Text||t.type===bl.Comment}var _Or=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]),Zn="\uFFFD",k;(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"})(k||(k={}));var sA={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y9(t){return t>=55296&&t<=57343}function jAt(t){return t>=56320&&t<=57343}function KAt(t,e){return(t-55296)*1024+9216+e}function J9(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function V9(t){return t>=64976&&t<=65007||_Or.has(t)}var Ae;(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-pu Line truncated
`," Line feed \\n"]]),hIt=new Map([...g0e,["\\"," Backslash \\"],["/"," Forward slash /"]]);function gIt(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of hIt)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 Jo=fe(Id(),1);var $G={};function XG(t,e){return t===Jo.default.falseFunc?Jo.default.falseFunc:r=>e.isTag(r)&&t(r)}function ZG(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 KG(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 jG=(t,e,r,n,s)=>{let i=s(e,KG(r),n);return i===Jo.default.trueFunc?t:i===Jo.default.falseFunc?Jo.default.falseFunc:o=>i(o)&&t(o)},a2={is:jG,matches:jG,where:jG,not(t,e,r,n,s){let i=s(e,KG(r),n);return i===Jo.default.falseFunc?t:i===Jo.default.trueFunc?Jo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=KG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Ab))?[$G]:void 0,c=s(e,o,a);if(c===Jo.default.falseFunc)return Jo.default.falseFunc;let A=XG(c,i);if(a&&c!==Jo.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,...ZG(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function lEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in a2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return a2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:o2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,uEe.parse)(A);return a2.is(t,u,r,n,s)}if(typeof c=="function")return zG(c,o,a,1),u=>c(u,a)&&t(u);if(o in q0)return q0[o](t,a,r,n);if(o in lb){let u=lb[o];return zG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var zo=fe(H0(),1);function eq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function dEe(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()),oEe[e.action](t,e,r)}case zo.SelectorType.Pseudo:return lEe(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=eq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=eq(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=eq(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 hEe(t,e,r){let n=c2(t,e,r);return XG(n,e.adapter)}function c2(t,e,r){let n=typeof t=="string"?(0,za.parse)(t):t;return A2(n,e,r)}function fEe(t){return t.type===za.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(fEe)))}var eft={type:za.SelectorType.Descendant},tft={type:"_flexibleDescendant"},rft={type:za.SelectorType.Pseudo,name:"scope",data:null};function nft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===$G||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(REe,`\r
`)}}).toArray()}var pq={};ya(pq,{extract:()=>Egt});function mgt(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 Egt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=mgt(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 bd=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}}};bd.prototype.cheerio="[cheerio object]";bd.prototype.splice=Array.prototype.splice;bd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(bd.prototype,qG,dq,hq,fq,gq,pq);function DEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=x0(s),a=t(n,o,i,null);class c extends bd{_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&&Vo(u))return u;let f=x0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Vo(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&nb(u)?t(u,f,!1,null).children:Cgt(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"?nb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Vo(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,FG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Cgt(t){return!!t.name||t.type===Go.Root||t.type===Go.Text||t.type===Go.Comment}var Igt=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 g2(t){return t>=55296&&t<=57343}function kEe(t){return t>=56320&&t<=57343}function vEe(t,e){return(t-55296)*1024+9216+e}function p2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function m2(t){return t>=64976&&t<=65007||Igt.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"]]),dxe=new Map([...bz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function hxe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of dxe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(hIt.values()).toString()}
Invalid characters include: ${Array.from(dxe.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.`);pe("Artifact name is valid!")}function f0e(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of g0e)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.`);ne("Artifact name is valid!")}function Qz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of bz)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(g0e.values()).toString()}
Invalid characters include: ${Array.from(bz.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 EIt=Xe(mIt(),1);function Yg(){return`@actions/artifact-${EIt.version}`}var yW=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"}},im=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},om=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},iI=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"}},am=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"}};am.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var YQ=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};YQ.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var JQ=class extends Error{};JQ.prototype.name="InvalidTokenError";function KZr(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 XZr(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 KZr(e)}catch{return atob(e)}}function CIt(t,e){if(typeof t!="string")throw new JQ("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 JQ(`Invalid token specified: missing part #${r+1}`);let s;try{s=XZr(n)}catch(i){throw new JQ(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new JQ(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var bW=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Jg(){let t=BW(),e=CIt(t);if(!e.scp)throw bW;let r=e.scp.split(" ");if(r.length===0)throw bW;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw bW;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return _e(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),_e(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw bW}function IIt(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(N1(r),N1(encodeURIComponent(r)))}catch(e){_e(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BIt(t){if(typeof t!="object"||t===null){_e("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&IIt(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&IIt(t.signed_url)}var wW=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())})},p0e=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=BW();this.baseUrl=rIt(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new wA(e,[new w1(i)])}request(e,r,n,s){return wW(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;_e(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>wW(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 wW(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(),_e(`[Response] - ${a.message.statusCode}`),_e(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(BIt(c),_e(`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(YQ.isUsageErrorMessage(c.msg))throw new YQ;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&_e(`Raw Body: ${s}`),a instanceof YQ)throw a;if(am.isNetworkErrorCode(a?.code))throw new am(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);pe(`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?[oo.BadGateway,oo.GatewayTimeout,oo.InternalServerError,oo.ServiceUnavailable,oo.TooManyRequests].includes(e):!1}sleep(e){return wW(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 Vg(t){let e=new p0e(Yg(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new QW(e)}import*as nx from"fs";import{normalize as QIt,resolve as yIt}from"path";function bIt(t){if(!nx.existsSync Line truncated
${u$r.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xW(t){return t instanceof cA?!0:WQ(t)&&t.name==="RestError"}function gc(t,e){return Buffer.from(t,e)}import N0e from"node:http";import S0e from"node:https";import PIt from"node:zlib";import{Transform as l$r}from"node:stream";var Vl=rL("ts-http-runtime");var d$r={};function nL(t){return t&&typeof t.pipe=="function"}function _It(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 OIt(t){return t&&typeof t.byteLength=="number"}var TW=class extends l$r{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}},R0e=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Wg("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 Zd;Vl.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=p$r(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,p=new TW(g);p.on("error",C=>{Vl.error("Error in upload progress",C)}),nL(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=h$r(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?g$r(c,u):c;let h=e.onDownloadProgress;if(h){let g=new TW(h);g.on("error",p=>{Vl.error("Error in download progress",p)}),A.pipe(g),A=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await f$r(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();nL(a)&&(c=_It(a));let u=Promise.resolve();nL(A)&&(u=_It(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Vl.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?N0e.request(a,A):S0e.request(a,A);u.once("error",l=>{c(new cA(l.message,{code:l.code??cA.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Wg("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&nL(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):OIt(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Vl.error("Unrecognized body type",n),c(new cA("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?N0e.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new N0e.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return S0e.globalAgent;let s=e.tlsSettings??d$r,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Vl.info("No cached TLS Agent exist, creating a new Agent"),i=new S0e.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function h$r(t){let e=gu();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 g$r(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=PIt.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=PIt.createInflate();return t.pipe(n),n}return t}function f$r(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 cA(`Error reading response as text: ${s.message}`,{code:cA.PARSE_ERROR}))})})}function p$r(t){return t?Buffer.isBuffer(t)?t.length:nL(t)?null:OIt(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function HIt(){return new R0e}function kW(){return HIt()}var D0e="logPolicy";function FW(t={}){let e=t.logger??Vl.info,r=new Zd({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:D0e,async sendRequest Line truncated
`;return e}function O$r(t){return t instanceof Uint8Array?t.byteLength:VW(t)?t.size===-1?void 0:t.size:void 0}function H$r(t){let e=0;for(let r of t){let n=O$r(r);if(n===void 0)return;e+=n}return e}async function q$r(t,e,r){let n=[gc(`--${r}`,"utf-8"),...e.flatMap(i=>[gc(`\r
`,"utf-8"),gc(_$r(i.headers),"utf-8"),gc(`\r
`,"utf-8"),i.body,gc(`\r
--${r}`,"utf-8")]),gc(`--\r
\r
`,"utf-8")],s=H$r(n);s&&t.headers.set("Content-Length",s),t.body=await uBt(n)}var iL="multipartPolicy",G$r=70,Y$r=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function J$r(t){if(t.length>G$r)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Y$r.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function WW(){return{name:iL,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?J$r(r):r=P$r(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await q$r(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function zW(){return DW()}import{EOL as W$r}from"node:os";import z$r from"node:util";import*as lBt from"node:process";function dBt(t,...e){lBt.stderr.write(`${z$r.format(t,...e)}${W$r}`)}var hBt=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,gBt,H0e=[],q0e=[],jW=[];hBt&&G0e(hBt);var fBt=Object.assign(t=>pBt(t),{enable:G0e,enabled:Y0e,disable:j$r,log:dBt});function G0e(t){gBt=t,H0e=[],q0e=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?q0e.push(new RegExp(`^${n.substr(1)}$`)):H0e.push(new RegExp(`^${n}$`));for(let n of jW)n.enabled=Y0e(n.namespace)}function Y0e(t){if(t.endsWith("*"))return!0;for(let e of q0e)if(e.test(t))return!1;for(let e of H0e)if(e.test(t))return!0;return!1}function j$r(){let t=gBt||"";return G0e(""),t}function pBt(t){let e=Object.assign(r,{enabled:Y0e(t),destroy:K$r,log:fBt.log,namespace:t,extend:X$r});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return jW.push(e),e}function K$r(){let t=jW.indexOf(this);return t>=0?(jW.splice(t,1),!0):!1}function X$r(t){let e=pBt(`${this.namespace}:${t}`);return e.log=this.log,e}var ox=fBt;var EBt=new Set,KW=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,J0e,V0e=ox("azure");V0e.log=(...t)=>{ox.log(...t)};var W0e=["verbose","info","warning","error"];KW&&(BBt(KW)?Z$r(KW):console.error(`AZURE_LOG_LEVEL set to unknown log level '${KW}'; logging is not enabled. Acceptable values: ${W0e.join(", ")}.`));function Z$r(t){if(t&&!BBt(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${W0e.join(",")}`);J0e=t;let e=[];for(let r of EBt)IBt(r)&&e.push(r.namespace);ox.enable(e.join(","))}var mBt={verbose:400,info:300,warning:200,error:100};function Wl(t){let e=V0e.extend(t);return CBt(V0e,e),{error:XW(e,"error"),warning:XW(e,"warning"),info:XW(e,"info"),verbose:XW(e,"verbose")}}function CBt(t,e){e.log=(...r)=>{t.log(...r)}}function XW(t,e){let r=Object.assign(t.extend(e),{level:e});if(CBt(t,r),IBt(r)){let n=ox.disable();ox.enable(n+","+r.namespace)}return EBt.add(r),r}function IBt(t){return!!(J0e&&mBt[t.level]<=mBt[J0e])}function BBt(t){return W0e.includes(t)}var zg=Wl("core-rest-pipeline");function z0e(t={}){return FW({logger:zg.info,...t})}var j0e=MW;function K0e(t={}){return vW(t)}import X0e from"node:os";import Z0e from"node:process";function QBt(){return"User-Agent"}async function yBt(t){if(Z0e&&Z0e.versions){let e=`${X0e.type()} ${X0e.release()}; ${X0e.arch()}`,r=Z0e.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var ZW="1.22.2";function ien(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function bBt(){return QBt()}async function $W(t){let e=new Map;e.set("core-rest-pipeline",ZW),await yBt(e);let r=ien(e);return t?`${t} ${r}`:r}var wBt=bBt(),NBt="userAgentPolicy";function $0e(t={}){let e=$W(t.userAgentPrefix);return{name:NBt,async sendRequest(r,n){return r.headers.has(wBt)||r.headers.set(wBt,await e),n(r)}}}var oL=class extends Error{constructor(e){super(e),this.name="AbortError"}};function eQe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new oL(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 uen="The delay was aborted.";function ax(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return eQe(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??uen})}function oI(t){if(WQ(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 SBt(t){return WQ(t)}fun 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--),!Mtn(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",bi("InvalidTag",l,uA(t,i))}let c=Dtn(t,i);if(c===!1)return bi("InvalidAttr","Attributes for '"+A+"' have open quote.",uA(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=d0t(u,e);if(d===!0)n=!0;else return bi(d.err.code,d.err.msg,uA(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return bi("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",uA(t,o));if(r.length===0)return bi("InvalidTag","Closing tag '"+A+"' has not been opened.",uA(t,o));{let l=r.pop();if(A!==l.tagName){let d=uA(t,l.tagStartPos);return bi("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",uA(t,o))}r.length==0&&(s=!0)}}else return bi("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",uA(t,i));else{let l=d0t(u,e);if(l!==!0)return bi(l.err.code,l.err.msg,uA(t,i-u.length+l.err.line));if(s===!0)return bi("InvalidXml","Multiple possible root nodes found.",uA(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=l0t(t,i);continue}else if(t[i+1]==="?"){if(i=u0t(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ktn(t,i);if(l==-1)return bi("InvalidChar","char '&' is not expected.",uA(t,i));i=l}else if(s===!0&&!c0t(t[i]))return bi("InvalidXml","Extra text at the end",uA(t,i));t[i]==="<"&&i--}}else{if(c0t(t[i]))continue;return bi("InvalidChar","char '"+t[i]+"' is not expected.",uA(t,i))}if(n){if(r.length==1)return bi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",uA(t,r[0].tagStartPos));if(r.length>0)return bi("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return bi("InvalidXml","Start tag expected.",1);return!0}function c0t(t){return t===" "||t===" "||t===`
`||t==="\r"}function u0t(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 bi("InvalidXml","XML declaration allowed only at the start of the document.",uA(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function l0t(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 Stn='"',Rtn="'";function Dtn(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Stn||t[e]===Rtn)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 xtn=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d0t(t,e){let r=cz(t,xtn),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return bi("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",EL(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return bi("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",EL(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return bi("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",EL(r[s]));let i=r[s][2];if(!Ftn(i))return bi("InvalidAttr","Attribute '"+i+"' is an invalid name.",EL(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return bi("InvalidAttr","Attribute '"+i+"' is repeated.",EL(r[s]))}return!0}function Ttn(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 ktn(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ttn(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 bi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Ftn(t){return mL(t)}function Mtn(t){return mL(t)}function uA(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function EL(t){return t.startIndex+t[1].length}var vtn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1},h0t=function(t){return Object.assign({},vtn,t)};var lz;typeof Symbol!="function"?lz="@@xmlMetadata":lz=Symbol("XML Node Metadata");var mu=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][lz]={startIndex:r})}static getMetaDataSymbol(){return lz}};function xQe(t,e){let r={};if(t[e+3]==="O"&&t[e+4]==="C"&&t[e+5]==="T"&&t[e+6]==="Y"&&t[e+7]==="P"&&t[e+8]==="E"){e=e+9;let n=1,s=!1,i=!1,o="";for(;e<t.length;e++)if(t[e]==="<"&&!i){if(s&&Ptn(t,e)){e+=7;let a,A;[a,A,e]=Ltn(t,e+1),A.indexOf("&")===-1&&(r[qtn(a)]={regx:RegExp(`&${a};`,"g"),val:A})}else if(s&&_tn(t,e))e+=8;else if(s&&Otn(t,e))e+=8;else if(s&&Htn(t,e))e+=9;else if(Utn)i=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(t[e]===">"){if(i?t[e-1]==="-"&&t[e-2]==="-"&&(i=!1,n--):n--,n===0)break}else t[e]==="["?s=!0:o+=t[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}function Ltn(t,e){let r="";for(;e<t.length&&t[e]!=="'"&&t[e]!=='"';e++)r+=t[e];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");let n=t[e++],s="";for(;e<t.length&&t[e]!==n;e++)s+=t[e];return[r,s,e]}function Utn(t,e){return t[e+1]==="!"&&t[e+2]==="-"&&t[e+3]==="-"}function Ptn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="N"&&t[e+4]==="T"&&t[e+5]==="I"&&t[e+6]==="T"&&t[e+7]==="Y"}function _tn(t,e){return t[e+1]==="!"&&t[e+2]==="E"&&t[e+3]==="L"&&t[e+4]==="E"&&t[e+5]==="M"&&t[e+6]==="E"&&t[e+7]==="N"&&t[e+8]==="T"}function Otn(t,e){return t[e+1]==="!"&&t[e+2]==="A"&&t[e+3]==="T"&&t[e+4]==="T"&&t[e+5]==="L"&&t[e+6]==="I"&&t[e+7]==="S"&&t[e+8]==="T"}function Htn(t,e){return t[e+1]==="!"&&t[e+2]==="N"&Line truncated
`);let e=new mu("!xml"),r=e,n="",s="";for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=$Q(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(n=this.saveTextToParentTag(n,r,s));let c=s.substring(s.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=kQe(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new mu(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,s,a.tagName)),this.addChild(r,A,s,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=$Q(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=xQe(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=$Q(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,s);let c=this.parseTextData(A,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=kQe(t,i,this.options.removeNSPrefix),A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),A!==e.tagname&&(s+=s?"."+A:A);let g=i;if(this.isItStopNode(this.options.stopNodes,s,A)){let p="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let m=this.readStopNodeData(t,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);i=m.i,p=m.tagContent}let C=new mu(A);A!==u&&l&&(C[":@"]=this.buildAttributesMap(u,s,A)),p&&(p=this.parseTextData(p,A,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),C.add(this.options.textNodeName,p),this.addChild(r,C,s,g)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),s=s.substr(0,s.length-1),u=A):u=u.substr(0,u.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));let p=new mu(A);A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),s=s.substr(0,s.lastIndexOf("."))}else{let p=new mu(A);this.tagsNodeStack.push(r),A!==u&&l&&(p[":@"]=this.buildAttributesMap(u,s,A)),this.addChild(r,p,s,g),r=p}n="",i=d}}else n+=t[i];return e.child};function ern(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.updateTag(e.tagname,r,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}var trn=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){let r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(let e in this.lastEntities){let r=this.lastEntities[e];t=t.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let r=this.htmlEntities[e];t=t.replace(r.regex,r.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function rrn(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 nrn(t,e,r){let n="*."+r;for(let s in t){let i=t[s];if(n===i||e===i)return!0}return!1}function srn(t,e,r=">"){let n,s="";for(let i=e;i<t.length;i++){let o=t[i];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===r[0])if(r[1]){if(t[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else o===" "&&(o=" ");s+=o}}function $Q(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}function kQe(t,e,r,n=">"){let s=srn(t,e+1,n);if(!s)return;let i=s.data,o=s.index,a=i.search(/\s/),A=i,c=!0;a!==-1&&(A=i.substring(0,a),i=i.substring(a+1).trimStart());let u=A;if(r){let l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),c=A!==s.data.substr(l+1))}return{tagName:A,tagExp:i,closeIndex:o,attrExpPresent:c,rawTagName:u}}function irn(t,e,r){let n=r,s=1;for(;r<t.length;r++)if(t[r]==="<")if(t[r+1]==="/"){let i=$Q(t,">",r,`${e} is not closed`);if(t.substLine truncated
`),p0t(t,e,"",r)}function p0t(t,e,r,n){let s="",i=!1;for(let o=0;o<t.length;o++){let a=t[o],A=crn(a);if(A===void 0)continue;let c="";if(r.length===0?c=A:c=`${r}.${A}`,A===e.textNodeName){let g=a[A];urn(c,e)||(g=e.tagValueProcessor(A,g),g=m0t(g,e)),i&&(s+=n),s+=g,i=!1;continue}else if(A===e.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[A][0][e.textNodeName]}]]>`,i=!1;continue}else if(A===e.commentPropName){s+=n+`<!--${a[A][0][e.textNodeName]}-->`,i=!0;continue}else if(A[0]==="?"){let g=f0t(a[":@"],e),p=A==="?xml"?"":n,C=a[A][0][e.textNodeName];C=C.length!==0?" "+C:"",s+=p+`<${A}${C}${g}?>`,i=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let l=f0t(a[":@"],e),d=n+`<${A}${l}`,h=p0t(a[A],e,c,u);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":(!h||h.length===0)&&e.suppressEmptyNode?s+=d+"/>":h&&h.endsWith(">")?s+=d+`>${h}${n}</${A}>`:(s+=d+">",h&&n!==""&&(h.includes("/>")||h.includes("</"))?s+=n+e.indentBy+h+n:s+=h,s+=`</${A}>`),i=!0}return s}function crn(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(t.hasOwnProperty(n)&&n!==":@")return n}}function f0t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!t.hasOwnProperty(n))continue;let s=e.attributeValueProcessor(n,t[n]);s=m0t(s,e),s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function urn(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===t||e.stopNodes[n]==="*."+r)return!0;return!1}function m0t(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}var lrn={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};function $d(t){this.options=Object.assign({},lrn,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=CL(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=grn),this.processTextOrObjNode=drn,this.options.format?(this.indentate=hrn,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}$d.prototype.build=function(t){return this.options.preserveOrder?LQe(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};$d.prototype.j2x=function(t,e,r){let n="",s="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(s+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?s+="":o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let A=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(A)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,A="",c="";for(let u=0;u<a;u++){let l=t[o][u];if(!(typeof l>"u"))if(l===null)o[0]==="?"?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){let d=this.j2x(l,e+1,r.concat(o));A+=d.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else A+=this.processTextOrObjNode(l,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,l);d=this.replaceEntitiesValue(d),A+=d}else A+=this.buildTextValNode(l,o,"",e)}this.options.oneListGroup&&(A=this.buildObjectNode(A,o,c,e)),s+=A}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),A=a.length;for(let c=0;c<A;c++)n+=this.buildAttrPairStr(a[c],""+t[o][a[c]])}else s+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:n,val:s}};$d.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function drn(t,e,r,n){let s=this.j2x(t,r+1,n.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,r):this.buildObjectNode(s.val,e,s.attrStr,r)}$d.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+i+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+i+this.tagEndChar+t+this.indentate(n)+s}};$d.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};$d.prototype.buildTextValNode=function(t,e,r,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+s+"</"+e+this.tagEndChar}};$d.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function hrn(t){return this.options.indentBy.repeat(t)}function grn(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var E0t={validate:uz};function B0t(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function frn(t={}){var e,r;return Object.assign(Object.assign({},B0t(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function prn(t={}){return Object.assign(Object.assign({},B0t(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function dz(t,e={}){let r=frn(e),n=new $d(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}async function UQe(t,e={}){if(!t)throw new Error("Document is empty");let r=E0t.validate(t);if(r!==!0)throw r;let s=new dx(prn(e)).parse(t);iLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(qt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===qt.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE));r.sort((s,i)=>Qz(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=Cz(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Iz(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 Ai=class extends ty{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new bL(e,r,this)}computeHMACSHA256(e){return brn("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ry=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Zi=Wl("storage-common");var zl;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zl||(zl={}));var lI={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wrn=new ry("The operation was aborted."),wL=class extends Xg{retryOptions;constructor(e,r,n=lI){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:lI.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):lI.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:lI.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:lI.maxRetryDelayInMs):lI.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:lI.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:lI.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=Ez(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=uI(s.url,lm.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Zi.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(Zi.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 Zi.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 Zi.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 Zi.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Zi.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(qt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Zi.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 zl.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zl.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Zi.info(`RetryPolicy: Delay for ${s}ms`),Bz(s,n,wrn)}};var NL=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new wL(e,r,this.retryOptions)}};var Nrn="storageBrowserPolicy";function Q0t(){return{name:Nrn,async sendRequest(t,e){return un||((t.method==="GET"||t.method==="HEAD")&&(t.url=uI(t.url,lm.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qt.COOKIE),t.headers.delete(qt.CONTENT_LENGTH)),e(t)}}}var Srn="StorageCorrectContentLengthPolicy";function y0t(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Srn,async sendRequest(e,r){return t(e),r(e)}}}var Rrn="storageRetryPolicy",hx={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zl.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Drn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],xrn=new ry("The operation was aborted.");function b0t(t={}){let e=t.retryPolicyType??hx.retryPolicyType,r=t.maxTries??hx.maxTries,n=t.retryDelayInMs??hx.retryDelayInMs,s=t.maxRetryDelayInMs??hx.maxRetryDelayInMs,i=t.secondaryHost??hx.secondaryHost,o=t.tryTimeoutInMs??hx.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return Zi.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Drn)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Trn("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(qt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===qt.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(qt.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>Qz(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=Cz(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=Iz(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:krn,async sendRequest(i,o){return e(i),o(i)}}}var Frn="storageRequestFailureDetailsParserPolicy";function w0t(){return{name:Frn,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 Mrn}from"node:crypto";var yz=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Mrn("sha256",this.key).update(e,"utf8").digest("base64")}};var bz="12.31.0",wz="2026-02-06";var Nz="https://storage.azure.com/.default",dm={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var eh="",HQe="*",vrn=1*1024*1024;var Lrn=4*vrn;var N0t="AES256",S0t="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",R0t=["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"],D0t=["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"],x0t="BlobUsesCustomerSpecifiedEncryption",T0t="BlobDoesNotUseCustomerSpecifiedEncryption",k0t=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function hm(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 SL=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function wi(t,e={}){t||(t=new Ss);let r=new SL([],e);return r._credential=t,r}function Urn(t){let e=[Prn,F0t,_rn,Orn,Hrn,qrn,Yrn];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Grn(s));return{wrappedPolicies:RQe(r),afterRetry:n}}}}function qQe(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?DQe(e):_Qe(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${bz}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=lL({...r,loggingOptions:{additionalAllowedHeaderNames:R0t,additionalAllowedQueryParameters:D0t,logger:hz.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:dz,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:UQe,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:sQe}),s.addPolicy(y0t()),s.addPolicy(b0t(r.retryOptions),{phase:"Retry"}),s.addPolicy(w0t()),s.addPolicy(Q0t());let a=Urn(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=GQe(t);fu(A)?s.addPolicy(ux({credential:A,scopes:r.au Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ih(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 Psn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sh(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 ih(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 _sn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sh(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 ih(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 Osn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?sh(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 ih(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 Hsn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?sh(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 ih(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 qsn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?sh(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 ih(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 Gsn(t,e){if(t=ly(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=ff.parse(t.permissions.toString()).toString():s=pf.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?ln(t.startsOn,!1):"",t.expiresOn?ln(t.expiresOn,!1):"",uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ln(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ln(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?sh(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 ih(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 uy(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function ly(t){let e=t.version?t.version:wz;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 _L=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=Ax()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==eh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-acquireLease",r,async n=>gt(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!==eh||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=gt(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!==eh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-releaseLease",e,async r=>gt(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!==eh||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==eh||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 $e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&tr("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);pe(`Redirecting to blob download url: ${j2t(u)}`);try{pe(`Starting download of artifact to: ${r}`);let l=yield K2t(u,r,e?.skipDecompress);pe("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,_e(`Computed digest: ${l.sha256Digest}`),_e(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function $2t(){return fT(this,arguments,void 0,function*(t=nIt()){return(yield UQn(t))?_e(`Artifact destination folder already exists: ${t}`):(_e(`Artifact destination folder does not exist, creating: ${t}`),yield Y2t.mkdir(t,{recursive:!0})),t})}var _Qn=5,OQn=[400,401,403,404,422];function pT(t,e=_Qn,r=OQn){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 _e(`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 eFt="6.0.0";function qy(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})})}qy.VERSION=eFt;var nFt=Xe(tFt(),1),sFt=Xe(cge(),1),HQn="0.0.0-development";async function rFt(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 qQn(t,e,r,n){let s=new nFt.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(GQn.bind(null,t,e,r),n)}async function GQn(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 sFt.RequestError(s.data.errors[0].message,500,{request:n,response:s});return rFt(t,e,i,n)}return s}function Gy(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",rFt.bind(null,r,t)),t.hook.wrap("request",qQn.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Gy.VERSION=HQn;var iFt=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 wK(t,e,r,n,s){return iFt(this,void 0,void 0,function*(){var i;let[o,a]=pT(Z0),A={log:void 0,userAgent:Yg(),previews:void 0,retry:o,request:a},u=yield Il(s,A,Gy,qy).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 im(`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 om(`Artifact not found for name: ${t}
`)}var mxe=fe(pxe(),1);function kA(){return`@actions/artifact-${mxe.version}`}var qE=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"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},eh=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"}},ol=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"}};ol.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pg=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"}};Pg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Og=class extends Error{};Og.prototype.name="InvalidTokenError";function ekt(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 tkt(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 ekt(e)}catch{return atob(e)}}function Exe(t,e){if(typeof t!="string")throw new Og("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 Og(`Invalid token specified: missing part #${r+1}`);let s;try{s=tkt(n)}catch(i){throw new Og(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Og(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var zv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=Wv(),e=Exe(t);if(!e.scp)throw zv;let r=e.scp.split(" ");if(r.length===0)throw zv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw zv;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 zv}function Cxe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Qc(r),Qc(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function Ixe(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"&&Cxe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&Cxe(t.signed_url)}var jv=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())})},wz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Wv();this.baseUrl=txe(),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 jv(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(()=>jv(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 jv(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(Ixe(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(Pg.isUsageErrorMessage(A.msg))throw new Pg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof Pg)throw a;if(ol.isNetworkErrorCode(a?.code))throw new ol(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);ne(`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 jv(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 wz(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Jv(e)}import*as YE from"fs";import{normalize as yxe,resolve as Bxe}from"path";function bxe(t){if(!YE.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&&Ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);ne(`Redirecting to blob download url: ${_Oe(u)}`);try{ne(`Starting download of artifact to: ${r}`);let l=yield FOe(u,r,e?.skipDecompress);ne("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 UOe(){return UC(this,arguments,void 0,function*(t=rxe()){return(yield kYt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield xOe.mkdir(t,{recursive:!0})),t})}var _Yt=5,FYt=[400,401,403,404,422];function PC(t,e=_Yt,r=FYt){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 POe="6.0.0";function gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}gp.VERSION=POe;var GOe=fe(OOe(),1),qOe=fe(gO(),1),MYt="0.0.0-development";async function HOe(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 LYt(t,e,r,n){let s=new GOe.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(UYt.bind(null,t,e,r),n)}async function UYt(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 qOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return HOe(t,e,i,n)}return s}function pp(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",HOe.bind(null,r,t)),t.hook.wrap("request",LYt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}pp.VERSION=MYt;var YOe=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 YOe(this,void 0,void 0,function*(){var i;let[o,a]=PC(tf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Qo(s,c,pp,gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
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],_e(`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 oFt(t){return iFt(this,void 0,void 0,function*(){var e;let r=Vg(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Jg(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Sa.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new om(`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],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 VOe(t){return YOe(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 il(`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((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],_e(`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?Na.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var aFt=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 AFt(t,e,r,n,s){return aFt(this,void 0,void 0,function*(){var i;let[o,a]=pT(Z0),A={log:void 0,userAgent:Yg(),previews:void 0,retry:o,request:a},c=Il(s,A,Gy,qy),u=yield wK(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 im(`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 cFt(t){return aFt(this,void 0,void 0,function*(){let e=Vg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Jg(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Sa.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new om(`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],_e(`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 pe(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}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())})},NK=oIt(),SK=100,YQn=Math.ceil(NK/SK);function lFt(t,e,r,n){return uFt(this,arguments,void 0,function*(s,i,o,a,A=!1){pe(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=pT(Z0),d={log:void 0,userAgent:Yg(),previews:void 0,retry:u,request:l},h=Il(a,d,Gy,qy),g=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:SK,page:g}),C=Math.ceil(p.total_count/SK),m=p.total_count;m>NK&&(tr(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${NK}. Results will be incomplete as only the first ${NK} artifacts will be returned`),C=YQn);for(let I of p.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(g++,g;g<=C;g++){_e(`Fetching page ${g} 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:SK,page:g});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=hFt(c)),pe(`Found ${c.length} artifact(s)`),{artifacts:c}})}function dFt(){return uFt(this,arguments,void 0,function*(t=!1){let e=Vg(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Jg(),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?Na.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=hFt(o)),pe(`Found ${o.length} artifact(s)`),{artifacts:o}})}function hFt(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 lP=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())})},JQn=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},mT=class{uploadArtifact(e,r,n,s){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;return c2t(e,r,n,s)}catch(i){throw tr(`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],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?io.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}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 JOe(t,e,r,n,s){return WOe(this,void 0,void 0,function*(){var i;let[o,a]=PC(tf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Qo(s,c,pp,gp),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 sl(`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 zOe(t){return WOe(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 il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],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 ne(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var jOe=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=ixe(),sM=100,PYt=Math.ceil(nM/sM);function KOe(t,e,r,n){return jOe(this,arguments,void 0,function*(s,i,o,a,c=!1){ne(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=PC(tf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Qo(a,d,pp,gp),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&&(Ze(`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=PYt);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=XOe(A)),ne(`Found ${A.length} artifact(s)`),{artifacts:A}})}function $Oe(){return jOe(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?io.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=XOe(o)),ne(`Found ${o.length} artifact(s)`),{artifacts:o}})}function XOe(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 t1=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())})},OYt=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},OC=class{uploadArtifact(e,r,n,s){return t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;return zPe(e,r,n,s)}catch(i){throw Ze(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=JQn(r,["findBy"]);return X2t(e,n,s,i,o)}return Z2t(e,r)}catch(n){throw tr(`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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=OYt(r,["findBy"]);return MOe(e,n,s,i,o)}return LOe(e,r)}catch(n){throw Ze(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return lFt(r,n,s,i,e?.latest)}return dFt(e?.latest)}catch(r){throw tr(`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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return KOe(r,n,s,i,e?.latest)}return $Oe(e?.latest)}catch(r){throw Ze(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return wK(e,n,s,i,o)}return oFt(e)}catch(n){throw tr(`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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return rM(e,n,s,i,o)}return VOe(e)}catch(n){throw Ze(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return lP(this,void 0,void 0,function*(){try{if(ex())throw new iI;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return AFt(e,i,n,s,o)}return cFt(e)}catch(n){throw tr(`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 t1(this,void 0,void 0,function*(){try{if(OE())throw new eh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return JOe(e,i,n,s,o)}return zOe(e)}catch(n){throw Ze(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var IAs=new mT;import*as RK from"path";import dxe from"fs";var VQn="dependency-graph_";async function fFt(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await gFt(t,!1);return;case"generate-submit-and-upload":await gFt(t,!0);return;case"generate-and-upload":await WQn(t)}}catch(r){eyn(t,e,r)}}async function gFt(t,e){if(mFt()){pe("Dependency graph not supported in the ACT environment.");return}let r=await pFt();try{await zQn(r)}catch(n){try{await lxe(r,t)}catch(s){pe(String(s))}throw n}e&&await lxe(r,t)}async function WQn(t){if(mFt()){pe("Dependency graph not supported in the ACT environment.");return}await lxe(await pFt(),t)}async function pFt(){let r=(await(await tC(`${XQn()}/**/*.json`)).glob()).filter(n=>!ZQn(n));return r.forEach($Qn),pe(`Found dependency graph files: ${r.join(", ")}`),r}async function lxe(t,e){if(t.length===0){pe("No dependency graph files found to upload.");return}let r=tM(),n=new mT;for(let s of t){let i=hxe(s);pe(`Uploading dependency graph file: ${i}`);let o=`${VQn}${RK.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zQn(t){if(t.length===0){pe("No dependency graph files found to submit.");return}for(let e of t)try{await KQn(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jQn(e,r)),r}}function jQn(t,e){let n=`Dependency submission failed for ${hxe(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 $Tr=new OC;import*as iM from"path";import yX from"fs";var HYt="dependency-graph_";async function e3e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await ZOe(t,!1);return;case"generate-submit-and-upload":await ZOe(t,!0);return;case"generate-and-upload":await GYt(t)}}catch(r){jYt(t,e,r)}}async function ZOe(t,e){if(r3e()){ne("Dependency graph not supported in the ACT environment.");return}let r=await t3e();try{await qYt(r)}catch(n){try{await IX(r,t)}catch(s){ne(String(s))}throw n}e&&await IX(r,t)}async function GYt(t){if(r3e()){ne("Dependency graph not supported in the ACT environment.");return}await IX(await t3e(),t)}async function t3e(){let r=(await(await oG(`${WYt()}/**/*.json`)).glob()).filter(n=>!JYt(n));return r.forEach(zYt),ne(`Found dependency graph files: ${r.join(", ")}`),r}async function IX(t,e){if(t.length===0){ne("No dependency graph files found to upload.");return}let r=qB(),n=new OC;for(let s of t){let i=BX(s);ne(`Uploading dependency graph file: ${i}`);let o=`${HYt}${iM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function qYt(t){if(t.length===0){ne("No dependency graph files found to submit.");return}for(let e of t)try{await VYt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=YYt(e,r)),r}}function YYt(t,e){let n=`Dependency submission failed for ${BX(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 KQn(t){let e=tyn(),r=dxe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Cl.repo.owner,n.repo=Cl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=hxe(t);UUe(`Submitted ${i}: ${s.data.message}`)}function XQn(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function ZQn(t){let e=`${t}.processed`;return dxe.existsSync(e)}function $Qn(t){let e=`${t}.processed`;dxe.writeFileSync(e,"")}function eyn(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $D(r);tr(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function tyn(){return Il(T6())}function hxe(t){let e=tM();return RK.relative(e,t)}function mFt(){return process.env.ACT!==void 0}process.on("uncaughtException",t=>RBe(t));async function nyn(){try{Bst(),Ist(),await tIt(new LR,new D6)&&await fFt(new R6)}catch(t){RBe(t)}process.exit()}nyn();export{nyn as run};
`:n}async function VYt(t){let e=KYt(),r=yX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Hl.repo.owner,n.repo=Hl.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=BX(t);zae(`Submitted ${i}: ${s.data.message}`)}function WYt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function JYt(t){let e=`${t}.processed`;return yX.existsSync(e)}function zYt(t){let e=`${t}.processed`;yX.writeFileSync(e,"")}function jYt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new PE(r);Ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function KYt(){return Qo(ND())}function BX(t){let e=qB();return iM.relative(e,t)}function r3e(){return process.env.ACT!==void 0}function XYt(t=process.platform){return t==="win32"?50:0}async function n3e(t=process.platform){let e=XYt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>HJ(t));async function ZYt(){try{Ame(),cme(),await exe(new bD,new QD)&&await e3e(new BD)}catch(t){HJ(t)}await n3e()}ZYt();export{ZYt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,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", "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", "handler", "rState", "err", "i", "processHeader", "headeLine 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": ";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
}
+101 -252
View File
@@ -1,104 +1,104 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var V9e=Object.create;var QR=Object.defineProperty;var W9e=Object.getOwnPropertyDescriptor;var z9e=Object.getOwnPropertyNames;var j9e=Object.getPrototypeOf,K9e=Object.prototype.hasOwnProperty;var I=(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 X9e=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oa=(t,e)=>{for(var r in e)QR(t,r,{get:e[r],enumerable:!0})},RAe=(t,e,r,A)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of z9e(e))!K9e.call(t,s)&&s!==r&&QR(t,s,{get:()=>e[s],enumerable:!(A=W9e(e,s))||A.enumerable});return t};var Fr=(t,e,r)=>(r=t!=null?V9e(j9e(t)):{},RAe(e||!t||!t.__esModule?QR(r,"default",{value:t,enumerable:!0}):r,t)),xr=t=>RAe(QR({},"__esModule",{value:!0}),t);var MAe=E(BC=>{"use strict";var hur=I("net"),AJe=I("tls"),RO=I("http"),FAe=I("https"),sJe=I("events"),Eur=I("assert"),nJe=I("util");BC.httpOverHttp=iJe;BC.httpsOverHttp=oJe;BC.httpOverHttps=aJe;BC.httpsOverHttps=cJe;function iJe(t){var e=new Al(t);return e.request=RO.request,e}function oJe(t){var e=new Al(t);return e.request=RO.request,e.createSocket=xAe,e.defaultPort=443,e}function aJe(t){var e=new Al(t);return e.request=FAe.request,e}function cJe(t){var e=new Al(t);return e.request=FAe.request,e.createSocket=xAe,e.defaultPort=443,e}function Al(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(A,s,n,i){for(var o=UAe(s,n,i),a=0,c=e.requests.length;a<c;++a){var u=e.requests[a];if(u.host===o.host&&u.port===o.port){e.requests.splice(a,1),u.request.onSocket(A);return}}A.destroy(),e.removeSocket(A)})}nJe.inherits(Al,sJe.EventEmitter);Al.prototype.addRequest=function(e,r,A,s){var n=this,i=SO({request:e},n.options,UAe(r,A,s));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return}n.createSocket(i,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),e.onSocket(o);function a(){n.emit("free",o,i)}function c(u){n.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};Al.prototype.createSocket=function(e,r){var A=this,s={};A.sockets.push(s);var n=SO({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Rg("making CONNECT request");var i=A.request(n);i.useChunkedEncodingByDefault=!1,i.once("response",o),i.once("upgrade",a),i.once("connect",c),i.once("error",u),i.end();function o(l){l.upgrade=!0}function a(l,g,d){process.nextTick(function(){c(l,g,d)})}function c(l,g,d){if(i.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Rg("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var h=new Error("tunneling socket could not be established, statusCode="+l.statusCode);h.code="ECONNRESET",e.request.emit("error",h),A.removeSocket(s);return}if(d.length>0){Rg("got illegal response body from proxy"),g.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),A.removeSocket(s);return}return Rg("tunneling connection has established"),A.sockets[A.sockets.indexOf(s)]=g,r(g)}function u(l){i.removeAllListeners(),Rg(`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),A.removeSocket(s)}};Al.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var A=this.requests.shift();A&&this.createSocket(A,function(s){A.request.onSocket(s)})}};function xAe(t,e){var r=this;Al.prototype.createSocket.call(r,t,function(A){var s=t.request.getHeader("host"),n=SO({},r.options,{socket:A,servername:s?s.replace(/:.*$/,""):t.host}),i=AJe.connect(0,n);r.sockets[r.sockets.indexOf(A)]=i,e(i)})}function UAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function SO(t){for(var e=1,r=arguments.length;e<r;++e){var A=arguments[e];if(typeof A=="object")for(var s=Object.keys(A),n=0,i=s.length;n<i;++n){var o=s[n];A[o]!==void 0&&(t[o]=A[o])}}return t}var Rg;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rg=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)}:Rg=function(){};BC.debug=Rg});var bR=E((Cur,LAe)=>{LAe.exports=MAe()});var Jr=E((Bur,vAe)=>{vAe.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 Jt=E((Iur,ose)=>{"use strict";var _Ae=Symbol.for("undici.error.UND_ERR"),rA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_Ae]===!0}[_Ae]=!0},PAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TO=class extends rA{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[PAe]===!0}[PAe]=!0},OAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),kO=class extends rA{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[OAe]===!0}[OAe]=!0},HAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FO=class extends rA{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[HAe]===!0}[HAe]=!0},GAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),xO=class extends rA{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[GAe]===!0}[GAe]=!0},YAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),UO=class extends rA{constructor(e,r,A,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 wVe(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(cVe.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function DVe(){return"allowed"}function NVe(){return"success"}function RVe(){return"success"}function SVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function TVe(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&&yH(t.origin)&&!yH(wm(t))&&(e=null);break;case"same-origin":JR(t,wm(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function RC(t,e){return t}function kVe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:RC(t.domainLookupStartTime,r),domainLookupEndTime:RC(t.domainLookupEndTime,r),connectionStartTime:RC(t.connectionStartTime,r),connectionEndTime:RC(t.connectionEndTime,r),secureConnectionStartTime:RC(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function FVe(t){return RC(hVe.now(),t)}function xVe(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 mne(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function UVe(t){return{referrerPolicy:t.referrerPolicy}}function MVe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let o=fne();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=mH(r),s=mH(r,!0);A.toString().length>4096&&(A=s);let n=JR(t,A),i=bm(A)&&!bm(t.url);switch(e){case"origin":return s??mH(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=wm(t);return JR(A,o)?A:bm(A)&&!bm(o)?"no-referrer":s}default:return i?"no-referrer":s}}function mH(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 bm(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function LVe(t,e){if(qR===void 0)return!0;let r=yne(e);if(r==="no metadata"||r.length===0)return!0;let A=_Ve(r),s=PVe(r,A);for(let n of s){let i=n.algo,o=n.hash,a=qR.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),OVe(a,o))return!0}return!1}var vVe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function yne(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=vVe.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Bne.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function _Ve(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function PVe(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function OVe(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 HVe(t){}function JR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GVe(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function YVe(t){return t.controller.state==="aborted"}function qVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function JVe(t){return CVe[t.toLowerCase()]??t}function VVe(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 WVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function bne(t,e,r=0,A=1){class s{ Line truncated
`);function yWe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function bWe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function wWe(t,e){WR(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&zR(t,pWe,n)||n.position===t.length-4&&zR(t,mWe,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=DWe(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let h=t.indexOf(A.subarray(2),n.position);if(h===-1)return"failure";g=t.subarray(n.position,h-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",yWe(u)||(u=""),d=new IWe([g],c,{type:u})):d=hWe(Buffer.from(g)),WR(Lne(a)),WR(typeof d=="string"&&Lne(d)||fWe(d)),s.push(CWe(a,d,c))}}function DWe(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=TC(o=>o!==10&&o!==13&&o!==58,t,e);if(i=TH(i,!0,!0,o=>o===9||o===32),!EWe.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,TC(o=>o===32||o===9,t,e),dWe(i)){case"content-disposition":{if(r=A=null,!zR(t,QWe,e)||(e.position+=17,r=Pne(t,e),r===null))return"failure";if(zR(t,_ne,e)){let o=e.position+_ne.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=Pne(t,e),A===null))return"failure"}break}case"content-type":{let o=TC(a=>a!==10&&a!==13,t,e);o=TH(o,!1,!0,a=>a===9||a===32),s=vne(o);break}case"content-transfer-encoding":{let o=TC(a=>a!==10&&a!==13,t,e);o=TH(o,!1,!0,a=>a===9||a===32),n=vne(o);break}default:TC(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Pne(t,e){WR(t[e.position-1]===34);let r=TC(A=>A!==10&&A!==13&&A!==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 TC(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function TH(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function zR(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}One.exports={multipartFormDataParser:wWe,validateBoundary:bWe}});var xC=E((qur,Xne)=>{"use strict";var Rm=Qt(),{ReadableStreamFrom:NWe,isBlobLike:Gne,isReadableStreamLike:RWe,readableStreamClose:SWe,createDeferredPromise:TWe,fullyReadBody:kWe,extractMimeType:FWe,utf8DecodeBytes:Jne}=Di(),{FormData:Yne}=Nm(),{kState:FC}=Sg(),{webidl:xWe}=Ts(),{Blob:UWe}=I("node:buffer"),kH=I("node:assert"),{isErrored:Vne,isDisturbed:MWe}=I("node:stream"),{isArrayBuffer:LWe}=I("node:util/types"),{serializeAMimeType:vWe}=Un(),{multipartFormDataParser:_We}=Hne(),FH;try{let t=I("node:crypto");FH=e=>t.randomInt(0,e)}catch{FH=t=>Math.floor(Math.random(t))}var jR=new TextEncoder;function PWe(){}var Wne=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,zne;Wne&&(zne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!MWe(e)&&!Vne(e)&&e.cancel("Response object has been garbage collected").catch(PWe)}));function jne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Gne(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?jR.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>SWe(a))},start(){},type:"bytes"}),kH(RWe(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(LWe(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(Rm.isFormDataLike(t)){let a=`----formdata-undici-0${`${FH(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=jR.encode(c+`; name="${u(l(Q))}"\r
var qse=Object.create;var BB=Object.defineProperty;var Vse=Object.getOwnPropertyDescriptor;var Jse=Object.getOwnPropertyNames;var Wse=Object.getPrototypeOf,zse=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)BB(t,r,{get:e[r],enumerable:!0})},Kse=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Jse(e))!zse.call(t,n)&&n!==r&&BB(t,n,{get:()=>e[n],enumerable:!(s=Vse(e,n))||s.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?qse(Wse(t)):{},Kse(e||!t||!t.__esModule?BB(r,"default",{value:t,enumerable:!0}):r,t));var EF=m(XA=>{"use strict";var mqe=Q("net"),tne=Q("tls"),SB=Q("http"),fF=Q("https"),rne=Q("events"),pqe=Q("assert"),sne=Q("util");XA.httpOverHttp=nne;XA.httpsOverHttp=ine;XA.httpOverHttps=one;XA.httpsOverHttps=ane;function nne(t){var e=new Ei(t);return e.request=SB.request,e}function ine(t){var e=new Ei(t);return e.request=SB.request,e.createSocket=mF,e.defaultPort=443,e}function one(t){var e=new Ei(t);return e.request=fF.request,e}function ane(t){var e=new Ei(t);return e.request=fF.request,e.createSocket=mF,e.defaultPort=443,e}function Ei(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||SB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=pF(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)})}sne.inherits(Ei,rne.EventEmitter);Ei.prototype.addRequest=function(e,r,s,n){var i=this,o=TB({request:e},i.options,pF(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=TB({},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 mF(t,e){var r=this;Ei.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=TB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=tne.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function pF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function TB(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(){};XA.debug=no});var DB=m((Cqe,CF)=>{CF.exports=EF()});var je=m((Iqe,IF)=>{IF.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((Bqe,VF)=>{"use strict";var BF=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[BF]===!0}[BF]=!0},QF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),xB=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[QF]===!0}[QF]=!0},yF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),RB=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[yF]===!0}[yF]=!0},bF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),kB=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[bF]===!0}[bF]=!0},wF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),FB=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[wF]===!0}[wF]=!0},NF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),MB=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 yoe(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(aoe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function boe(){return"allowed"}function woe(){return"success"}function Noe(){return"success"}function Soe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Toe(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&&wQ(t.origin)&&!wQ(Kl(t))&&(e=null);break;case"same-origin":Ff(t,Kl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function oc(t,e){return t}function Doe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:oc(t.domainLookupStartTime,r),domainLookupEndTime:oc(t.domainLookupEndTime,r),connectionStartTime:oc(t.connectionStartTime,r),connectionEndTime:oc(t.connectionEndTime,r),secureConnectionStartTime:oc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function xoe(t){return oc(doe.now(),t)}function Roe(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 iU(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function koe(t){return{referrerPolicy:t.referrerPolicy}}function Foe(t){let e=t.referrerPolicy;ba(e);let r=null;if(t.referrer==="client"){let a=$M();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=bQ(r),n=bQ(r,!0);s.toString().length>4096&&(s=n);let i=Ff(t,s),o=zl(s)&&!zl(t.url);switch(e){case"origin":return n??bQ(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=Kl(t);return Ff(s,a)?s:zl(s)&&!zl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function bQ(t,e){return ba(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 zl(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 Moe(t,e){if(kf===void 0)return!0;let r=oU(e);if(r==="no metadata"||r.length===0)return!0;let s=Loe(r),n=Poe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=kf.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)),voe(A,a))return!0}return!1}var Uoe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oU(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Uoe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();tU.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Loe(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 Poe(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 voe(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 Ff(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function _oe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Hoe(t){return t.controller.state==="aborted"}function Goe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Yoe(t){return foe[t.toLowerCase()]??t}function qoe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ba(typeof e=="string"),e}var Voe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function aU(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Bae(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Qae(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 yae(t,e){Uf(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&&Lf(t,Cae,i)||i.position===t.length-4&&Lf(t,Iae,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=bae(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",Bae(u)||(u=""),h=new pae([g],c,{type:u})):h=dae(Buffer.from(g)),Uf(CU(A)),Uf(typeof h=="string"&&CU(h)||hae(h)),n.push(fae(A,h,c))}}function bae(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=Ac(a=>a!==10&&a!==13&&a!==58,t,e);if(o=kQ(o,!0,!0,a=>a===9||a===32),!gae.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ac(a=>a===32||a===9,t,e),lae(o)){case"content-disposition":{if(r=s=null,!Lf(t,Eae,e)||(e.position+=17,r=QU(t,e),r===null))return"failure";if(Lf(t,BU,e)){let a=e.position+BU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=QU(t,e),s===null))return"failure"}break}case"content-type":{let a=Ac(A=>A!==10&&A!==13,t,e);a=kQ(a,!1,!0,A=>A===9||A===32),n=IU(a);break}case"content-transfer-encoding":{let a=Ac(A=>A!==10&&A!==13,t,e);a=kQ(a,!1,!0,A=>A===9||A===32),i=IU(a);break}default:Ac(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function QU(t,e){Uf(t[e.position-1]===34);let r=Ac(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 Ac(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function kQ(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 Lf(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}yU.exports={multipartFormDataParser:yae,validateBoundary:Qae}});var lc=m((Jqe,MU)=>{"use strict";var Zl=me(),{ReadableStreamFrom:wae,isBlobLike:wU,isReadableStreamLike:Nae,readableStreamClose:Sae,createDeferredPromise:Tae,fullyReadBody:Dae,extractMimeType:xae,utf8DecodeBytes:TU}=Gr(),{FormData:NU}=jl(),{kState:uc}=io(),{webidl:Rae}=Ht(),{Blob:kae}=Q("node:buffer"),FQ=Q("node:assert"),{isErrored:DU,isDisturbed:Fae}=Q("node:stream"),{isArrayBuffer:Mae}=Q("node:util/types"),{serializeAMimeType:Uae}=Cr(),{multipartFormDataParser:Lae}=bU(),MQ;try{let t=Q("node:crypto");MQ=e=>t.randomInt(0,e)}catch{MQ=t=>Math.floor(Math.random(t))}var Pf=new TextEncoder;function Pae(){}var xU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,RU;xU&&(RU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Fae(e)&&!DU(e)&&e.cancel("Response object has been garbage collected").catch(Pae)}));function kU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:wU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?Pf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>Sae(A))},start(){},type:"bytes"}),FQ(Nae(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(Mae(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(Zl.isFormDataLike(t)){let A=`----formdata-undici-0${`${MQ(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=Pf.encode(c+`; name="${u(d(w))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=jR.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${d(p)}\r
`);g.push(y),i+=y.byteLength}else{let y=Pf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=jR.encode(`--${a}--\r
`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(Gne(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Rm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:NWe(t)}if((typeof s=="string"||Rm.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(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(!Vne(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:s,length:n},i]}function OWe(t,e=!1){return t instanceof ReadableStream&&(kH(!Rm.isDisturbed(t),"The body has already been consumed."),kH(!t.locked,"The stream is locked.")),jne(t,e)}function HWe(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function GWe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function YWe(t){return{blob(){return kC(this,r=>{let A=qne(this);return A===null?A="":A&&(A=vWe(A)),new UWe([r],{type:A})},t)},arrayBuffer(){return kC(this,r=>new Uint8Array(r).buffer,t)},text(){return kC(this,Jne,t)},json(){return kC(this,JWe,t)},formData(){return kC(this,r=>{let A=qne(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=_We(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new Yne;return n[FC]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new Yne;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return kC(this,r=>new Uint8Array(r),t)}}}function qWe(t){Object.assign(t.prototype,YWe(t))}async function kC(t,e,r){if(xWe.brandCheck(t,r),Kne(t))throw new TypeError("Body is unusable: Body has already been read");GWe(t[FC]);let A=TWe(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[FC].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await kWe(t[FC].body,n,s),A.promise)}function Kne(t){let e=t[FC].body;return e!=null&&(e.stream.locked||Rm.isDisturbed(e.stream))}function JWe(t){return JSON.parse(Jne(t))}function qne(t){let e=t[FC].headersList,r=FWe(e);return r==="failure"?null:r}Xne.exports={extractBody:jne,safelyExtractBody:OWe,cloneBody:HWe,mixinBody:qWe,streamRegistry:zne,hasFinalizationRegistry:Wne,bodyUnusable:Kne}});var aie=E((Jur,oie)=>{"use strict";var Je=I("node:assert"),st=Qt(),{channels:Zne}=QC(),xH=hH(),{RequestContentLengthMismatchError:qh,ResponseContentLengthMismatchError:VWe,RequestAbortedError:sie,HeadersTimeoutError:WWe,HeadersOverflowError:zWe,SocketError:tS,InformationalError:UC,BodyTimeoutError:jWe,HTTPParserError:KWe,ResponseExceededMaxSizeError:XWe}=Jt(),{kUrl:nie,kReset:Mn,kClient:vH,kParser:lA,kBlocking:km,kRunning:Hs,kPending:ZWe,kSize:$ne,kWriting:kg,kQueue:Ha,kNoRef:Sm,kKeepAliveDefaultTimeout:$We,kHostHeader:eze,kPendingIdx:tze,kRunningIdx:Do,kError:No,kPipelining:$R,kSocket:MC,kKeepAliveTimeoutValue:rS,kMaxHeadersSize:UH,kKeepAliveMaxTimeout:rze,kKeepAliveTimeoutThreshold:Aze,kHeadersTimeout:sze,kBodyTimeout:nze,kStrictContentLength:_H,kMaxRequests:eie,kCounter:ize,kMaxResponseSize:oze,kOnError:aze,kResume:Tg,kHTTPContext:iie}=Jr(),Mc=zse(),cze=Buffer.alloc(0),KR=Buffer[Symbol.species],XR=st.addListener,uze=st.removeAllListeners,MH;async function lze(){let t=process.env.JEST_WORKER_ID?CH():void 0,e;try{e=await WebAssembly.compile(Xse())}catch{e=await WebAssembly.compile(t||CH())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onStatus(new KR(Lc.buffer,n,s))||0},wasm_on_message_begin:r=>(Je(es.ptr===r),es.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onHeaderField(new KR(Lc.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onHeaderValue(new KR(Lc.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Je(es.ptr===r),es.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Je(es.ptr===r);let n=A-vc+Lc.byteOffset;return es.onBody(new KR(Lc.buffer,n,s))||0},wasm_on_message_complete:r=>(Je(es.ptr===r),es.onMessageComplete()||0)}})}var LH=null,PH=lze();PH.catch();var es=null,Lc=null,ZR=0,vc=null,gze=0,Tm=1,LC=2|Tm,eS=4|Tm,OH=8|gze,HH=class{constructor(e,r,{exports:A}){Je(Number.isFinite(e[UH])&&e[UH]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Mc.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"?B+=`host: ${s}\r
`:B+=t[eze],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[$R]&&!d[Mn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return Zne.sendHeaders.hasSubscribers&&Zne.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?rie(h,null,t,e,d,u,B,l):st.isBuffer(a)?rie(h,a,t,e,d,u,B,l):st.isBlobLike(a)?typeof a.stream=="function"?Aie(h,a.stream(),t,e,d,u,B,l):Bze(h,a,t,e,d,u,B,l):st.isStream(a)?Cze(h,a,t,e,d,u,B,l):st.isIterable(a)?Aie(h,a,t,e,d,u,B,l):Je(!1),!0}function Cze(t,e,r,A,s,n,i,o){Je(n!==0||r[Hs]===0,"stream body cannot be pipelined");let a=!1,c=new AS({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){st.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new sie;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,Je(s.destroyed||s[kg]&&r[Hs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?st.destroy(e,h):st.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function rie(t,e,r,A,s,n,i,o){try{e?st.isBuffer(e)&&(Je(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);g.push(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=Pf.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(wU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Zl.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:wae(t)}if((typeof n=="string"||Zl.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(!DU(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 vae(t,e=!1){return t instanceof ReadableStream&&(FQ(!Zl.isDisturbed(t),"The body has already been consumed."),FQ(!t.locked,"The stream is locked.")),kU(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 _ae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Hae(t){return{blob(){return cc(this,r=>{let s=SU(this);return s===null?s="":s&&(s=Uae(s)),new kae([r],{type:s})},t)},arrayBuffer(){return cc(this,r=>new Uint8Array(r).buffer,t)},text(){return cc(this,TU,t)},json(){return cc(this,Yae,t)},formData(){return cc(this,r=>{let s=SU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Lae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new NU;return i[uc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new NU;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 cc(this,r=>new Uint8Array(r),t)}}}function Gae(t){Object.assign(t.prototype,Hae(t))}async function cc(t,e,r){if(Rae.brandCheck(t,r),FU(t))throw new TypeError("Body is unusable: Body has already been read");_ae(t[uc]);let s=Tae(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[uc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Dae(t[uc].body,i,n),s.promise)}function FU(t){let e=t[uc].body;return e!=null&&(e.stream.locked||Zl.isDisturbed(e.stream))}function Yae(t){return JSON.parse(TU(t))}function SU(t){let e=t[uc].headersList,r=xae(e);return r==="failure"?null:r}MU.exports={extractBody:kU,safelyExtractBody:vae,cloneBody:Oae,mixinBody:Gae,streamRegistry:RU,hasFinalizationRegistry:xU,bodyUnusable:FU}});var VU=m((Wqe,qU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:UU}=ZA(),UQ=mQ(),{RequestContentLengthMismatchError:wa,ResponseContentLengthMismatchError:qae,RequestAbortedError:HU,HeadersTimeoutError:Vae,HeadersOverflowError:Jae,SocketError:Yf,InformationalError:dc,BodyTimeoutError:Wae,HTTPParserError:zae,ResponseExceededMaxSizeError:Kae}=Se(),{kUrl:GU,kReset:Ir,kClient:OQ,kParser:nt,kBlocking:td,kRunning:zt,kPending:Xae,kSize:LU,kWriting:ao,kQueue:on,kNoRef:$l,kKeepAliveDefaultTimeout:jae,kHostHeader:Zae,kPendingIdx:$ae,kRunningIdx:Is,kError:Bs,kPipelining:Hf,kSocket:gc,kKeepAliveTimeoutValue:qf,kMaxHeadersSize:LQ,kKeepAliveMaxTimeout:eAe,kKeepAliveTimeoutThreshold:tAe,kHeadersTimeout:rAe,kBodyTimeout:sAe,kStrictContentLength:_Q,kMaxRequests:PU,kCounter:nAe,kMaxResponseSize:iAe,kOnError:oAe,kResume:oo,kHTTPContext:YU}=je(),Fn=RM(),aAe=Buffer.alloc(0),vf=Buffer[Symbol.species],Of=Ae.addListener,AAe=Ae.removeAllListeners,PQ;async function cAe(){let t=process.env.JEST_WORKER_ID?CQ():void 0,e;try{e=await WebAssembly.compile(MM())}catch{e=await WebAssembly.compile(t||CQ())}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 vf(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 vf(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 vf(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 vf(Mn.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(wt.ptr===r),wt.onMessageComplete()||0)}})}var vQ=null,HQ=cAe();HQ.catch();var wt=null,Mn=null,_f=0,Un=null,uAe=0,ed=1,hc=2|ed,Gf=4|ed,GQ=8|uAe,YQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[LQ])&&e[LQ]>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[Zae],i?E+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Hf]&&!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 UU.sendHeaders.hasSubscribers&&UU.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?OU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?OU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?_U(f,A.stream(),t,e,h,u,E,d):mAe(f,A,t,e,h,u,E,d):Ae.isStream(A)?fAe(f,A,t,e,h,u,E,d):Ae.isIterable(A)?_U(f,A,t,e,h,u,E,d):ee(!1),!0}function fAe(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"stream body cannot be pipelined");let A=!1,c=new Vf({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 HU;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 OU(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
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Mn]=!0)):n===0?s.write(`${i}content-length: 0\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
\r
`,"latin1"):(Je(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[Tg]()}catch(a){t(a)}}async function Bze(t,e,r,A,s,n,i,o){Je(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new qh;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\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 mAe(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 wa;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Mn]=!0),r[Tg]()}catch(a){t(a)}}async function Aie(t,e,r,A,s,n,i,o){Je(n!==0||r[Hs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Je(a===null),s[No]?d(s[No]):a=g});s.on("close",c).on("drain",c);let l=new AS({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[No])throw s[No];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var AS=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[kg]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[No])throw r[No];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[_H])throw new qh;process.emitWarning(new qh)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Mn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\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 _U(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 Vf({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 Vf=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[_Q])throw new wa;process.emitWarning(new wa)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ir]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[lA].timeout&&r[lA].timeoutType===LC&&r[lA].timeout.refresh&&r[lA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[kg]=!1,e[No])throw e[No];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[nt].timeout&&r[nt].timeoutType===hc&&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
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[_H])throw new qh;process.emitWarning(new qh)}e[lA].timeout&&e[lA].timeoutType===LC&&e[lA].timeout.refresh&&e[lA].timeout.refresh(),A[Tg]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[kg]=!1,e&&(Je(A[Hs]<=1,"pipeline should only contain this request"),s(e))}};oie.exports=dze});var fie=E((Vur,Eie)=>{"use strict";var Ro=I("node:assert"),{pipeline:Ize}=I("node:stream"),Dt=Qt(),{RequestContentLengthMismatchError:GH,RequestAbortedError:cie,SocketError:Fm,InformationalError:YH}=Jt(),{kUrl:sS,kReset:iS,kClient:vC,kRunning:oS,kPending:Qze,kQueue:Fg,kPendingIdx:qH,kRunningIdx:Ga,kError:qa,kSocket:cs,kStrictContentLength:pze,kOnError:JH,kMaxConcurrentStreams:hie,kHTTP2Session:Ya,kResume:xg,kSize:mze,kHTTPContext:yze}=Jr(),cl=Symbol("open streams"),uie,lie=!1,nS;try{nS=I("node:http2")}catch{nS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bze,HTTP2_HEADER_METHOD:wze,HTTP2_HEADER_PATH:Dze,HTTP2_HEADER_SCHEME:Nze,HTTP2_HEADER_CONTENT_LENGTH:Rze,HTTP2_HEADER_EXPECT:Sze,HTTP2_HEADER_STATUS:Tze}}=nS;function kze(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function Fze(t,e){t[cs]=e,lie||(lie=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=nS.connect(t[sS],{createConnection:()=>e,peerMaxConcurrentStreams:t[hie]});r[cl]=0,r[vC]=t,r[cs]=e,Dt.addListener(r,"error",Uze),Dt.addListener(r,"frameError",Mze),Dt.addListener(r,"end",Lze),Dt.addListener(r,"goaway",vze),Dt.addListener(r,"close",function(){let{[vC]:s}=this,{[cs]:n}=s,i=this[cs][qa]||this[qa]||new Fm("closed",Dt.getSocketInfo(n));if(s[Ya]=null,s.destroyed){Ro(s[Qze]===0);let o=s[Fg].splice(s[Ga]);for(let a=0;a<o.length;a++){let c=o[a];Dt.errorRequest(s,c,i)}}}),r.unref(),t[Ya]=r,e[Ya]=r,Dt.addListener(e,"error",function(s){Ro(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qa]=s,this[vC][JH](s)}),Dt.addListener(e,"end",function(){Dt.destroy(this,new Fm("other side closed",Dt.getSocketInfo(this)))}),Dt.addListener(e,"close",function(){let s=this[qa]||new Fm("closed",Dt.getSocketInfo(this));t[cs]=null,this[Ya]!=null&&this[Ya].destroy(s),t[qH]=t[Ga],Ro(t[oS]===0),t.emit("disconnect",t[sS],[t],s),t[xg]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Pze(t,...s)},resume(){xze(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function xze(t){let e=t[cs];e?.destroyed===!1&&(t[mze]===0&&t[hie]===0?(e.unref(),t[Ya].unref()):(e.ref(),t[Ya].ref()))}function Uze(t){Ro(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cs][qa]=t,this[vC][JH](t)}function Mze(t,e,r){if(r===0){let A=new YH(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[cs][qa]=A,this[vC][JH](A)}}function Lze(){let t=new Fm("other side closed",Dt.getSocketInfo(this[cs]));this.destroy(t),Dt.destroy(this[cs],t)}function vze(t){let e=this[qa]||new Fm(`HTTP/2: "GOAWAY" frame received with code ${t}`,Dt.getSocketInfo(this)),r=this[vC];if(r[cs]=null,r[yze]=null,this[Ya]!=null&&(this[Ya].destroy(e),this[Ya]=null),Dt.destroy(this[cs],e),r[Ga]<r[Fg].length){let A=r[Fg][r[Ga]];r[Fg][r[Ga]++]=null,Dt.errorRequest(r,A,e),r[qH]=r[Ga]}Ro(r[oS]===0),r.emit("disconnect",r[sS],[r],e),r[xg]()}function _ze(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Pze(t,e){let r=t[Ya],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Dt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:h}=t[sS];l[bze]=n||`${d}${h?`:${h}`:""}`,l[wze]=A;let B=k=>{e.aborted||e.completed||(k=k||new cie,Dt.errorRequest(t,e,k),g!=null&&Dt.destroy(g,k),Dt.destroy(u,k),t[Fg][t[Ga]++]=null,t[xg]())};try{e.onConnect(B)}catch(k){Dt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[cl],t[Fg][t[Ga]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[cl],t[Fg][t[Ga]++]=null}),g.once("close",()=>{r[cl]-=1,r[cl]===0&&r.unref()}),!0;l[Dze]=s,l[Nze]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let C=Dt.bodyLength(u);if(Dt.isFormDataLike(u)){uie??=xC().extractBody;let[k,J]=uie(u);l["content-type"]=J,u=k.stream,C=k.length}if(C==null&&(C=e.contentLength),(C===0||!Q)&&(C=null),_ze(A)&&C>0&&e.contentLength!=null&&e.contentLength!==C){if(t[pze])return Dt.errorRequest(t,e,new GH),!1;process.emitWarning(new GH)}C!=null&&(Ro(u,"no body must not have content length"),l[Rze]=`${C}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[Sze]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[l7e]=a??3e5,this[u7e]=s??3e5,this[g7e]=p??!0,this[d7e]=k,this[jH]=j,this[Mg]=null,this[B7e]=$>-1?$:-1,this[Q7e]=be??100,this[TA]=null,this[Ja]=[],this[ll]=0,this[Va]=0,this[Lm]=le=>XH(this,le),this[I7e]=le=>Rie(this,le)}get pipelining(){return this[lS]}set pipelining(e){this[lS]=e,this[Lm](!0)}get[Pm](){return this[Ja].length-this[Va]}get[_m](){return this[Va]-this[ll]}get[vm](){return this[Ja].length-this[ll]}get[A7e](){return!!this[TA]&&!this[PC]&&!this[TA].destroyed}get[zH](){return!!(this[TA]?.busy(null)||this[vm]>=(Nie(this)||1)||this[Pm]>0)}[r7e](e){Sie(this),this.once("connect",e)}[C7e](e,r){let A=e.origin||this[Pc].origin,s=new Kze(A,e,r);return this[Ja].push(s),this[Vh]||(Jh.bodyLength(s.body)==null&&Jh.isIterable(s.body)?(this[Vh]=1,queueMicrotask(()=>XH(this))):this[Lm](!0)),this[Vh]&&this[Lg]!==2&&this[zH]&&(this[Lg]=2),this[Lg]<2}async[E7e](){return new Promise(e=>{this[vm]?this[Mg]=e:e(null)})}async[f7e](e){return new Promise(r=>{let A=this[Ja].splice(this[Va]);for(let n=0;n<A.length;n++){let i=A[n];Jh.errorRequest(this,i,e)}let s=()=>{this[Mg]&&(this[Mg](),this[Mg]=null),r(null)};this[TA]?(this[TA].destroy(e,s),this[TA]=null):queueMicrotask(s),this[Lm]()})}},y7e=uS();function Rie(t,e){if(t[_m]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ul(t[Va]===t[ll]);let r=t[Ja].splice(t[ll]);for(let A=0;A<r.length;A++){let s=r[A];Jh.errorRequest(t,s,e)}ul(t[vm]===0)}}async function Sie(t){ul(!t[PC]),ul(!t[TA]);let{host:e,hostname:r,protocol:A,port:s}=t[Pc];if(r[0]==="["){let n=r.indexOf("]");ul(n!==-1);let i=r.substring(1,n);ul(Die.isIP(i)),r=i}t[PC]=!0,_C.beforeConnect.hasSubscribers&&_C.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[TA]?.version,servername:t[Ug],localAddress:t[Mm]},connector:t[Um]});try{let n=await new Promise((i,o)=>{t[Um]({host:e,hostname:r,protocol:A,port:s,servername:t[Ug],localAddress:t[Mm]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){Jh.destroy(n.on("error",bie),new $ze);return}ul(n);try{t[TA]=n.alpnProtocol==="h2"?await m7e(t,n):await p7e(t,n)}catch(i){throw n.destroy().on("error",bie),i}t[PC]=!1,n[h7e]=0,n[jH]=t[jH],n[t7e]=t,n[n7e]=null,_C.connected.hasSubscribers&&_C.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[TA]?.version,servername:t[Ug],localAddress:t[Mm]},connector:t[Um],socket:n}),t.emit("connect",t[Pc],[t])}catch(n){if(t.destroyed)return;if(t[PC]=!1,_C.connectError.hasSubscribers&&_C.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[TA]?.version,servername:t[Ug],localAddress:t[Mm]},connector:t[Um],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ul(t[_m]===0);t[Pm]>0&&t[Ja][t[Va]].servername===t[Ug];){let i=t[Ja][t[Va]++];Jh.errorRequest(t,i,n)}else Rie(t,n);t.emit("connectionError",t[Pc],[t],n)}t[Lm]()}function wie(t){t[Lg]=0,t.emit("drain",t[Pc],[t])}function XH(t,e){t[Vh]!==2&&(t[Vh]=2,b7e(t,e),t[Vh]=0,t[ll]>256&&(t[Ja].splice(0,t[ll]),t[Va]-=t[ll],t[ll]=0))}function b7e(t,e){for(;;){if(t.destroyed){ul(t[Pm]===0);return}if(t[Mg]&&!t[vm]){t[Mg](),t[Mg]=null;return}if(t[TA]&&t[TA].resume(),t[zH])t[Lg]=2;else if(t[Lg]===2){e?(t[Lg]=1,queueMicrotask(()=>wie(t))):wie(t);continue}if(t[Pm]===0||t[_m]>=(Nie(t)||1))return;let r=t[Ja][t[Va]];if(t[Pc].protocol==="https:"&&t[Ug]!==r.servername){if(t[_m]>0)return;t[Ug]=r.servername,t[TA]?.destroy(new Zze("servername changed"),()=>{t[TA]=null,XH(t)})}if(t[PC])return;if(!t[TA]){Sie(t);return}if(t[TA].destroyed||t[TA].busy(r))return;!r.aborted&&t[TA].write(r)?t[Va]++:t[Ja].splice(t[Va],1)}}Tie.exports=KH});var ZH=E((Xur,kie)=>{"use strict";var gS=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)}};kie.exports=class{constructor(){this.head=this.tail=new gS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new gS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xie=E((Zur,Fie)=>{var{kFree:w7e,kConnected:D7e,kPending:N7e,kQueued:R7e,kRunning:S7e,kSize:T7e}=Jr(),Wh=Symbol("pool"),$H=class{constructor(e){this[Wh]=e}get connected(){return this[Wh][D7e]}get free(){return this[Wh][w7e]}get pending(){return this[Wh][N7e]}get queued(){return this[Wh][R7e]}get running(){return this[Wh][S7e]}get size(){return this[Wh][T7e]}};Fie.exports=$H});var nG=E(($ur,Yie)=>{"use strict";var k7e=bC(),F7e=ZH(),{kConnected:eG,kSize:Uie,kRunning:Mie,kPending:Lie,kQueued:Om,kBusy:x7e,kFree:U7e,kUrl:M7e,kClose:L7e,kDestroy:v7e,kDispatch:_7e}=Jr(),P7e=xie(),Ln=Symbol("clients"),ln=Symbol("needDrain"),Hm=Symbol("queue"),tG=Symbol("closed resolve"),rG=Symbol("onDrain"),vie=Symbol("onConnect"),_ie=Symbol("onDisconnect"),Pie=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
`,"latin1"),r!==null&&n!==r){if(s[_Q])throw new wa;process.emitWarning(new wa)}e[nt].timeout&&e[nt].timeoutType===hc&&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))}};qU.exports=lAe});var $U=m((zqe,ZU)=>{"use strict";var Qs=Q("node:assert"),{pipeline:pAe}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:qQ,RequestAbortedError:JU,SocketError:rd,InformationalError:VQ}=Se(),{kUrl:Jf,kReset:zf,kClient:fc,kRunning:Kf,kPending:EAe,kQueue:Ao,kPendingIdx:JQ,kRunningIdx:an,kError:cn,kSocket:xt,kStrictContentLength:CAe,kOnError:WQ,kMaxConcurrentStreams:jU,kHTTP2Session:An,kResume:co,kSize:IAe,kHTTPContext:BAe}=je(),bi=Symbol("open streams"),WU,zU=!1,Wf;try{Wf=Q("node:http2")}catch{Wf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:QAe,HTTP2_HEADER_METHOD:yAe,HTTP2_HEADER_PATH:bAe,HTTP2_HEADER_SCHEME:wAe,HTTP2_HEADER_CONTENT_LENGTH:NAe,HTTP2_HEADER_EXPECT:SAe,HTTP2_HEADER_STATUS:TAe}}=Wf;function DAe(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 xAe(t,e){t[xt]=e,zU||(zU=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Wf.connect(t[Jf],{createConnection:()=>e,peerMaxConcurrentStreams:t[jU]});r[bi]=0,r[fc]=t,r[xt]=e,Ee.addListener(r,"error",kAe),Ee.addListener(r,"frameError",FAe),Ee.addListener(r,"end",MAe),Ee.addListener(r,"goaway",UAe),Ee.addListener(r,"close",function(){let{[fc]:n}=this,{[xt]:i}=n,o=this[xt][cn]||this[cn]||new rd("closed",Ee.getSocketInfo(i));if(n[An]=null,n.destroyed){Qs(n[EAe]===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[fc][WQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new rd("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[cn]||new rd("closed",Ee.getSocketInfo(this));t[xt]=null,this[An]!=null&&this[An].destroy(n),t[JQ]=t[an],Qs(t[Kf]===0),t.emit("disconnect",t[Jf],[t],n),t[co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return PAe(t,...n)},resume(){RAe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function RAe(t){let e=t[xt];e?.destroyed===!1&&(t[IAe]===0&&t[jU]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}function kAe(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][cn]=t,this[fc][WQ](t)}function FAe(t,e,r){if(r===0){let s=new VQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][cn]=s,this[fc][WQ](s)}}function MAe(){let t=new rd("other side closed",Ee.getSocketInfo(this[xt]));this.destroy(t),Ee.destroy(this[xt],t)}function UAe(t){let e=this[cn]||new rd(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[fc];if(r[xt]=null,r[BAe]=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[JQ]=r[an]}Qs(r[Kf]===0),r.emit("disconnect",r[Jf],[r],e),r[co]()}function LAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function PAe(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[Jf];d[QAe]=i||`${h}${f?`:${f}`:""}`,d[yAe]=s;let E=D=>{e.aborted||e.completed||(D=D||new JU,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[bAe]=n,d[wAe]="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)){WU??=lc().extractBody;let[D,U]=WU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),LAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[CAe])return Ee.errorRequest(t,e,new qQ),!1;process.emitWarning(new qQ)}p!=null&&(Qs(u,"no body must not have content length"),d[NAe]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[SAe]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[cce]=A??3e5,this[Ace]=n??3e5,this[uce]=y??!0,this[lce]=D,this[jQ]=v,this[lo]=null,this[mce]=O>-1?O:-1,this[Ece]=Ge??100,this[gt]=null,this[un]=[],this[Ni]=0,this[ln]=0,this[od]=fe=>$Q(this,fe),this[pce]=fe=>lL(this,fe)}get pipelining(){return this[$f]}set pipelining(e){this[$f]=e,this[od](!0)}get[cd](){return this[un].length-this[ln]}get[Ad](){return this[ln]-this[Ni]}get[ad](){return this[un].length-this[Ni]}get[tce](){return!!this[gt]&&!this[pc]&&!this[gt].destroyed}get[XQ](){return!!(this[gt]?.busy(null)||this[ad]>=(uL(this)||1)||this[cd]>0)}[ece](e){dL(this),this.once("connect",e)}[fce](e,r){let s=e.origin||this[Pn].origin,n=new zAe(s,e,r);return this[un].push(n),this[Sa]||(Na.bodyLength(n.body)==null&&Na.isIterable(n.body)?(this[Sa]=1,queueMicrotask(()=>$Q(this))):this[od](!0)),this[Sa]&&this[go]!==2&&this[XQ]&&(this[go]=2),this[go]<2}async[gce](){return new Promise(e=>{this[ad]?this[lo]=e:e(null)})}async[hce](e){return new Promise(r=>{let s=this[un].splice(this[ln]);for(let i=0;i<s.length;i++){let o=s[i];Na.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[od]()})}},Bce=Zf();function lL(t,e){if(t[Ad]===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];Na.errorRequest(t,n,e)}wi(t[ad]===0)}}async function dL(t){wi(!t[pc]),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(cL.isIP(o)),r=o}t[pc]=!0,mc.beforeConnect.hasSubscribers&&mc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[id]},connector:t[nd]});try{let i=await new Promise((o,a)=>{t[nd]({host:e,hostname:r,protocol:s,port:n,servername:t[uo],localAddress:t[id]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Na.destroy(i.on("error",aL),new jAe);return}wi(i);try{t[gt]=i.alpnProtocol==="h2"?await Ice(t,i):await Cce(t,i)}catch(o){throw i.destroy().on("error",aL),o}t[pc]=!1,i[dce]=0,i[jQ]=t[jQ],i[$Ae]=t,i[sce]=null,mc.connected.hasSubscribers&&mc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[id]},connector:t[nd],socket:i}),t.emit("connect",t[Pn],[t])}catch(i){if(t.destroyed)return;if(t[pc]=!1,mc.connectError.hasSubscribers&&mc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[id]},connector:t[nd],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wi(t[Ad]===0);t[cd]>0&&t[un][t[ln]].servername===t[uo];){let o=t[un][t[ln]++];Na.errorRequest(t,o,i)}else lL(t,i);t.emit("connectionError",t[Pn],[t],i)}t[od]()}function AL(t){t[go]=0,t.emit("drain",t[Pn],[t])}function $Q(t,e){t[Sa]!==2&&(t[Sa]=2,Qce(t,e),t[Sa]=0,t[Ni]>256&&(t[un].splice(0,t[Ni]),t[ln]-=t[Ni],t[Ni]=0))}function Qce(t,e){for(;;){if(t.destroyed){wi(t[cd]===0);return}if(t[lo]&&!t[ad]){t[lo](),t[lo]=null;return}if(t[gt]&&t[gt].resume(),t[XQ])t[go]=2;else if(t[go]===2){e?(t[go]=1,queueMicrotask(()=>AL(t))):AL(t);continue}if(t[cd]===0||t[Ad]>=(uL(t)||1))return;let r=t[un][t[ln]];if(t[Pn].protocol==="https:"&&t[uo]!==r.servername){if(t[Ad]>0)return;t[uo]=r.servername,t[gt]?.destroy(new XAe("servername changed"),()=>{t[gt]=null,$Q(t)})}if(t[pc])return;if(!t[gt]){dL(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)}}gL.exports=ZQ});var ey=m(($qe,hL)=>{"use strict";var em=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};hL.exports=class{constructor(){this.head=this.tail=new em}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new em),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var mL=m((eVe,fL)=>{var{kFree:yce,kConnected:bce,kPending:wce,kQueued:Nce,kRunning:Sce,kSize:Tce}=je(),Ta=Symbol("pool"),ty=class{constructor(e){this[Ta]=e}get connected(){return this[Ta][bce]}get free(){return this[Ta][yce]}get pending(){return this[Ta][wce]}get queued(){return this[Ta][Nce]}get running(){return this[Ta][Sce]}get size(){return this[Ta][Tce]}};fL.exports=ty});var ay=m((tVe,NL)=>{"use strict";var Dce=rc(),xce=ey(),{kConnected:ry,kSize:pL,kRunning:EL,kPending:CL,kQueued:ud,kBusy:Rce,kFree:kce,kUrl:Fce,kClose:Mce,kDestroy:Uce,kDispatch:Lce}=je(),Pce=mL(),Br=Symbol("clients"),ir=Symbol("needDrain"),ld=Symbol("queue"),sy=Symbol("closed resolve"),ny=Symbol("onDrain"),IL=Symbol("onConnect"),BL=Symbol("onDisconnect"),QL=Symbol("onConnectionError"),iy=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};jae.exports=n8});var TS=E((Nlr,ece)=>{"use strict";var Xae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lXe}=Jt(),gXe=GC();$ae()===void 0&&Zae(new gXe);function Zae(t){if(!t||typeof t.dispatch!="function")throw new lXe("Argument agent must implement Agent");Object.defineProperty(globalThis,Xae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function $ae(){return globalThis[Xae]}ece.exports={setGlobalDispatcher:Zae,getGlobalDispatcher:$ae}});var kS=E((Slr,tce)=>{"use strict";tce.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 Ace=E((Tlr,rce)=>{"use strict";var dXe=cS();rce.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new dXe(r,i,s,n);return r(o,a)}}});var nce=E((klr,sce)=>{"use strict";var hXe=QS();sce.exports=t=>e=>function(A,s){return e(A,new hXe({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var oce=E((Flr,ice)=>{"use strict";var EXe=Qt(),{InvalidArgumentError:fXe,RequestAbortedError:CXe}=Jt(),BXe=kS(),i8=class extends BXe{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new fXe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=EXe.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new CXe(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function IXe({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new i8({maxSize:n},s);return e(A,i)}}ice.exports=IXe});var uce=E((xlr,cce)=>{"use strict";var{isIP:QXe}=I("node:net"),{lookup:pXe}=I("node:dns"),mXe=kS(),{InvalidArgumentError:ZC,InformationalError:yXe}=Jt(),ace=Math.pow(2,31)-1,o8=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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new yXe("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){pXe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===ace?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===ace?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new a8(this,e,r)}},a8=class extends mXe{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":Yle(n)&&(r[s]=n);break;case"id":qle(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&Yle(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&qle(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}}};Jle.exports={EventSourceStream:W8}});var ege=E((ugr,$le)=>{"use strict";var{pipeline:xtt}=I("node:stream"),{fetching:Utt}=ey(),{makeRequest:Mtt}=tB(),{webidl:fl}=Ts(),{EventSourceStream:Ltt}=Vle(),{parseMIMEType:vtt}=Un(),{createFastMessageEvent:_tt}=oB(),{isNetworkError:Wle}=Zm(),{delay:Ptt}=J8(),{kEnumerableProperty:aE}=Qt(),{environmentSettingsObject:zle}=Di(),jle=!1,Kle=3e3,gy=0,Xle=1,dy=2,Ott="anonymous",Htt="use-credentials",gB=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=gy;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),fl.util.markAsUncloneable(this);let A="EventSource constructor";fl.argumentLengthCheck(arguments,1,A),jle||(jle=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fl.converters.USVString(e,A,"url"),r=fl.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:Kle};let s=zle,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Ott;r.withCredentials&&(i=Htt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=zle.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=Mtt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===dy)return;this.#A=gy;let e={request:this.#s,dispatcher:this.#o},r=A=>{Wle(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Wle(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?vtt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=Xle,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new Ltt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(_tt(a.type,a.options))}});xtt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Utt(e)}async#c(){this.#A!==dy&&(this.#A=gy,this.dispatchEvent(new Event("error")),await Ptt(this.#i.reconnectionTime),this.#A===gy&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){fl.brandCheck(this,t),this.#A!==dy&&(this.#A=dy,this.#n.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}},Zle={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xle,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:dy,writable:!1}};Object.defineProperties(gB,Zle);Object.defineProperties(gB.prototype,Zle);Object.defineProperties(gB.prototype,{close:aE,onerror:aE,onmessage:aE,onopen:aE,readyState:aE,url:aE,withCredentials:aE});fl.converters.EventSourceInitDict=fl.dictionaryConverter([{key:"withCredentials",converter:fl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fl.converters.any}]);$le.exports={EventSource:gB,defaultReconnectionTime:Kle}});var sge=E((lgr,je)=>{"use strict";var Gtt=OC(),tge=Bm(),Ytt=HC(),qtt=Zie(),Jtt=GC(),Vtt=BG(),Wtt=moe(),ztt=Roe(),rge=Jt(),I1=Qt(),{InvalidArgumentError:B1}=rge,dB=hae(),jtt=Qm(),Ktt=$G(),Xtt=Kae(),Ztt=r8(),$tt=OG(),ert=QS(),{getGlobalDispatcher:Age,setGlobalDispatcher:trt}=TS(),rrt=kS(),Art=cS(),srt=uS();Object.assign(tge.prototype,dB);je.exports.Dispatcher=tge;je.exports.Client=Gtt;je.exports.Pool=Ytt;je.exports.BalancedPool=qtt;je.exports.Agent=Jtt;je.exports.ProxyAgent=Vtt;je.exports.EnvHttpProxyAgent=Wtt;je.export Line truncated
`.trim())}};kv.exports=ab});var Em=m((DVe,Pv)=>{"use strict";var Mv=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:cde}=Se(),ude=Ic();Lv()===void 0&&Uv(new ude);function Uv(t){if(!t||typeof t.dispatch!="function")throw new cde("Argument agent must implement Agent");Object.defineProperty(globalThis,Mv,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Lv(){return globalThis[Mv]}Pv.exports={setGlobalDispatcher:Uv,getGlobalDispatcher:Lv}});var Cm=m((RVe,vv)=>{"use strict";vv.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 _v=m((kVe,Ov)=>{"use strict";var lde=jf();Ov.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 lde(r,o,n,i);return r(a,A)}}});var Gv=m((FVe,Hv)=>{"use strict";var dde=Am();Hv.exports=t=>e=>function(s,n){return e(s,new dde({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var qv=m((MVe,Yv)=>{"use strict";var gde=me(),{InvalidArgumentError:hde,RequestAbortedError:fde}=Se(),mde=Cm(),Ab=class extends mde{#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 hde("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=gde.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new fde(`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 pde({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Ab({maxSize:i},n);return e(s,o)}}Yv.exports=pde});var Wv=m((UVe,Jv)=>{"use strict";var{isIP:Ede}=Q("node:net"),{lookup:Cde}=Q("node:dns"),Ide=Cm(),{InvalidArgumentError:xc,InformationalError:Bde}=Se(),Vv=Math.pow(2,31)-1,cb=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 Bde("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){Cde(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===Vv?(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===Vv?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 ub(this,e,r)}},ub=class extends Ide{#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":N4(i)&&(r[n]=i);break;case"id":S4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&N4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&S4(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}}};T4.exports={EventSourceStream:Kb}});var P4=m((dJe,L4)=>{"use strict";var{pipeline:Rme}=Q("node:stream"),{fetching:kme}=bd(),{makeRequest:Fme}=Fc(),{webidl:Ri}=Ht(),{EventSourceStream:Mme}=D4(),{parseMIMEType:Ume}=Cr(),{createFastMessageEvent:Lme}=Oc(),{isNetworkError:x4}=Qd(),{delay:Pme}=Wb(),{kEnumerableProperty:Ya}=me(),{environmentSettingsObject:R4}=Gr(),k4=!1,F4=3e3,Pd=0,M4=1,vd=2,vme="anonymous",Ome="use-credentials",qc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=Pd;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),k4||(k4=!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:F4};let n=R4,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=vme;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=R4.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=Fme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===vd)return;this.#s=Pd;let e={request:this.#i,dispatcher:this.#a},r=s=>{x4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(x4(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?Ume(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=M4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new Mme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(Lme(A.type,A.options))}});Rme(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=kme(e)}async#c(){this.#s!==vd&&(this.#s=Pd,this.dispatchEvent(new Event("error")),await Pme(this.#o.reconnectionTime),this.#s===Pd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ri.brandCheck(this,t),this.#s!==vd&&(this.#s=vd,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}},U4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Pd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:M4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:vd,writable:!1}};Object.defineProperties(qc,U4);Object.defineProperties(qc.prototype,U4);Object.defineProperties(qc.prototype,{close:Ya,onerror:Ya,onmessage:Ya,onopen:Ya,readyState:Ya,url:Ya,withCredentials:Ya});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any}]);L4.exports={EventSource:qc,defaultReconnectionTime:F4}});var ap=m((gJe,re)=>{"use strict";var _me=Ec(),v4=Gl(),Hme=Cc(),Gme=UL(),Yme=Ic(),qme=Iy(),Vme=iP(),Jme=lP(),O4=Se(),op=me(),{InvalidArgumentError:ip}=O4,Vc=jP(),Wme=ql(),zme=tb(),Kme=Fv(),Xme=nb(),jme=Gy(),Zme=Am(),{getGlobalDispatcher:_4,setGlobalDispatcher:$me}=Em(),epe=Cm(),tpe=jf(),rpe=Zf();Object.assign(v4.prototype,Vc);re.exports.Dispatcher=v4;re.exports.Client=_me;re.exports.Pool=Hme;re.exports.BalancedPool=Gme;re.exports.Agent=Yme;re.exports.ProxyAgent=qme;re.exports.EnvHttpProxyAgent=Vme;re.exports.RetryAgent=Jme;re.exports.RetryHandle 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 lEe=E(uEe=>{"use strict";var $Y=wl().Buffer;uEe._dbcs=Dl;var ks=-1,cEe=-2,qo=-10,fn=-1e3,MB=new Array(256),zy=-1;for(TT=0;TT<256;TT++)MB[TT]=ks;var TT;function Dl(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]=MB.slice(0),this.decodeTableSeq=[];for(var A=0;A<r.length;A++)this._addDecodeChunk(r[A]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(MB.slice(0));var n=this.decodeTables.length;this.decodeTables.push(MB.slice(0));for(var i=this.decodeTables[0],A=129;A<=254;A++)for(var o=this.decodeTables[fn-i[A]],a=48;a<=57;a++){if(o[a]===ks)o[a]=fn-s;else if(o[a]>fn)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[fn-o[a]],u=129;u<=254;u++){if(c[u]===ks)c[u]=fn-n;else{if(c[u]===fn-n)continue;if(c[u]>fn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[fn-c[u]],g=48;g<=57;g++)l[g]===ks&&(l[g]=cEe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var A=0;A<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Ult(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let A=e.length;A!==0;A--){let s=e[A-1].trim();if(Ilt.has(s)){r=s;break}}return r}function Mlt(t,e){let r=Ult(e);r!==""&&(t.referrerPolicy=r)}function Llt(){return"allowed"}function vlt(){return"success"}function _lt(){return"success"}function Plt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Olt(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&&dq(t.origin)&&!dq(DE(t))&&(e=null);break;case"same-origin":sb(t,DE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function GB(t,e){return t}function Hlt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:GB(t.domainLookupStartTime,r),domainLookupEndTime:GB(t.domainLookupEndTime,r),connectionStartTime:GB(t.connectionStartTime,r),connectionEndTime:GB(t.connectionEndTime,r),secureConnectionStartTime:GB(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Glt(t){return GB(ylt.now(),t)}function Ylt(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 HCe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function qlt(t){return{referrerPolicy:t.referrerPolicy}}function Jlt(t){let e=t.referrerPolicy;nb(e);let r=null;if(t.referrer==="client"){let n=LCe();if(!n||n.origin==="null")return"no-referrer";r=new URL(n)}else cd.is.URL(t.referrer)&&(r=t.referrer);let A=gq(r),s=gq(r,!0);switch(A.toString().length>4096&&(A=s),e){case"no-referrer":return"no-referrer";case"origin":return s??gq(r,!0);case"unsafe-url":return A;case"strict-origin":{let n=DE(t);return wE(A)&&!wE(n)?"no-referrer":s}case"strict-origin-when-cross-origin":{let n=DE(t);return sb(A,n)?A:wE(A)&&!wE(n)?"no-referrer":s}case"same-origin":return sb(t,A)?A:"no-referrer";case"origin-when-cross-origin":return sb(t,A)?A:s;case"no-referrer-when-downgrade":{let n=DE(t);return wE(A)&&!wE(n)?"no-referrer":A}}}function gq(t,e=!1){return nb(cd.is.URL(t)),t=new URL(t),JCe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Vlt=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)$/),Wlt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function GCe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Wlt(t)):Vlt(t)}function zlt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||GCe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function wE(t){return cd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:zlt(t.origin):!1}function jlt(t){}function sb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Klt(t){return t.controller.state==="aborted"}function Xlt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Zlt(t){return wlt[t.toLowerCase()]??t}var $lt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YCe(t,e,r=0,A=1){class s{#e;#t;#r;constructor(i,o){this.#e=i,this.#t=o,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 i=this.#r,o=e(this.#e),a=o.length;if(i>=a)return{value:void 0,done:!0};let{[r]:c,[A]:u}=o[i];this.#r=i+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,$lt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(n,i){return new s(n,i)}}function egt(t,e,r,A=0,s=1){let n=YCe(t,r,A,s),i={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cd.brandCheck(this,e),n(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cd.brandCheck(this,e),n(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let i=Wo(o=>mq(o)&&o!==59,t,e);n=Qq.decode(i)}return{name:A,value:n}}function bgt(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Jn("header name is null");return{name:r,filename:A,contentType:s,encoding:n}}let i=Wo(o=>o!==10&&o!==13&&o!==58,t,e);if(i=pq(i,!0,!0,o=>o===9||o===32),!fgt.test(i.toString()))throw Jn("header name does not match the field-name token production");if(t[e.position]!==58)throw Jn("expected :");switch(e.position++,Wo(o=>o===32||o===9,t,e),Egt(i)){case"content-disposition":{if(r=A=null,Wo(a=>mq(a),t,e).toString("ascii").toLowerCase()!=="form-data")throw Jn("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let a=ygt(t,e);if(!a)break;a.name==="name"?r=a.value:a.name==="filename"&&(A=a.value)}if(r===null)throw Jn("name attribute is required in content-disposition header");break}case"content-type":{let o=Wo(a=>a!==10&&a!==13,t,e);o=pq(o,!1,!0,a=>a===9||a===32),s=XCe(o);break}case"content-transfer-encoding":{let o=Wo(a=>a!==10&&a!==13,t,e);o=pq(o,!1,!0,a=>a===9||a===32),n=XCe(o);break}default:Wo(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Jn("expected CRLF");e.position+=2}}function Wo(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function pq(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function wgt(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}function Jn(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Dgt(t){return t<=31||t===127}function Ngt(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 mq(t){return t<=127&&t!==32&&t!==9&&!Dgt(t)&&!Ngt(t)}ZCe.exports={multipartFormDataParser:mgt,validateBoundary:pgt}});var ib=E((mBr,eBe)=>{"use strict";function Rgt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}eBe.exports={createDeferredPromise:Rgt}});var JB=E((yBr,nBe)=>{"use strict";var wq=ot(),{ReadableStreamFrom:Sgt,readableStreamClose:Tgt,fullyReadBody:kgt,extractMimeType:Fgt}=_i(),{FormData:tBe,setFormDataState:xgt}=ek(),{webidl:rc}=Fs(),yq=I("node:assert"),{isErrored:bq,isDisturbed:Ugt}=I("node:stream"),{isUint8Array:Mgt}=I("node:util/types"),{serializeAMimeType:Lgt}=Vo(),{multipartFormDataParser:vgt}=$Ce(),{createDeferredPromise:_gt}=ib(),{parseJSONFromBytes:Pgt}=Sl(),{utf8DecodeBytes:Ogt}=tb(),{runtimeFeatures:Hgt}=Tl(),Ggt=Hgt.has("crypto")?I("node:crypto").randomInt:t=>Math.floor(Math.random()*t),tk=new TextEncoder;function Ygt(){}var qgt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ugt(e)&&!bq(e)&&e.cancel("Response object has been garbage collected").catch(Ygt)});function ABe(t,e=!1){let r=null,A=null;rc.is.ReadableStream(t)?r=t:rc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){A=c},cancel(){},type:"bytes"}),yq(rc.is.ReadableStream(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(rc.is.URLSearchParams(t))n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(rc.is.BufferSource(t))n=rc.util.getCopyOfBytesHeldByBufferSource(t);else if(rc.is.FormData(t)){let c=`----formdata-undici-0${`${Ggt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=C=>C.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let B=!1;for(let[C,p]of t)if(typeof p=="string"){let w=tk.encode(u+`; name="${l(g(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 j_=m(X_=>{"use strict";var eN=_i().Buffer;X_._dbcs=Hi;var Gt=-1,K_=-2,Ls=-10,lr=-1e3,gu=new Array(256),pg=-1;for(C0=0;C0<256;C0++)gu[C0]=Gt;var C0;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]=gu.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(gu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(gu.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]=K_)}}}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 R1e(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(m1e.has(n)){r=n;break}}return r}function k1e(t,e){let r=R1e(e);r!==""&&(t.referrerPolicy=r)}function F1e(){return"allowed"}function M1e(){return"success"}function U1e(){return"success"}function L1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function P1e(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&&ES(t.origin)&&!ES(cA(t))&&(e=null);break;case"same-origin":Ng(t,cA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Eu(t,e){return t}function v1e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Eu(t.domainLookupStartTime,r),domainLookupEndTime:Eu(t.domainLookupEndTime,r),connectionStartTime:Eu(t.connectionStartTime,r),connectionEndTime:Eu(t.connectionEndTime,r),secureConnectionStartTime:Eu(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function O1e(t){return Eu(I1e.now(),t)}function _1e(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 S9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function H1e(t){return{referrerPolicy:t.referrerPolicy}}function G1e(t){let e=t.referrerPolicy;Sg(e);let r=null;if(t.referrer==="client"){let i=Q9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Go.is.URL(t.referrer)&&(r=t.referrer);let s=pS(r),n=pS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??pS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=cA(t);return AA(s)&&!AA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=cA(t);return Ng(s,i)?s:AA(s)&&!AA(i)?"no-referrer":n}case"same-origin":return Ng(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Ng(t,s)?s:n;case"no-referrer-when-downgrade":{let i=cA(t);return AA(s)&&!AA(i)?"no-referrer":s}}}function pS(t,e=!1){return Sg(Go.is.URL(t)),t=new URL(t),R9(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Y1e=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)$/),q1e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function T9(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),q1e(t)):Y1e(t)}function V1e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||T9(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function AA(t){return Go.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:V1e(t.origin):!1}function J1e(t){}function Ng(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function W1e(t){return t.controller.state==="aborted"}function z1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function K1e(t){return Q1e[t.toLowerCase()]??t}var X1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function D9(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,X1e),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 j1e(t,e,r,s=0,n=1){let i=D9(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=>SS(a)&&a!==59,t,e);i=wS.decode(o)}return{name:s,value:i}}function Bwe(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=NS(o,!0,!0,a=>a===9||a===32),!gwe.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),dwe(o)){case"content-disposition":{if(r=s=null,Os(A=>SS(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=Iwe(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=NS(a,!1,!0,A=>A===9||A===32),n=P9(a);break}case"content-transfer-encoding":{let a=Os(A=>A!==10&&A!==13,t,e);a=NS(a,!1,!0,A=>A===9||A===32),i=P9(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 NS(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 Qwe(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 ywe(t){return t<=31||t===127}function bwe(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 SS(t){return t<=127&&t!==32&&t!==9&&!ywe(t)&&!bwe(t)}v9.exports={multipartFormDataParser:Cwe,validateBoundary:Ewe}});var Tg=m((Bje,_9)=>{"use strict";function wwe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}_9.exports={createDeferredPromise:wwe}});var Bu=m((Qje,V9)=>{"use strict";var xS=ce(),{ReadableStreamFrom:Nwe,readableStreamClose:Swe,fullyReadBody:Twe,extractMimeType:Dwe}=rs(),{FormData:H9,setFormDataState:xwe}=q0(),{webidl:Bn}=Yt(),TS=Q("node:assert"),{isErrored:DS,isDisturbed:Rwe}=Q("node:stream"),{isUint8Array:kwe}=Q("node:util/types"),{serializeAMimeType:Fwe}=vs(),{multipartFormDataParser:Mwe}=O9(),{createDeferredPromise:Uwe}=Tg(),{parseJSONFromBytes:Lwe}=qi(),{utf8DecodeBytes:Pwe}=v0(),{runtimeFeatures:vwe}=Vi(),Owe=vwe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),V0=new TextEncoder;function _we(){}var Hwe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Rwe(e)&&!DS(e)&&e.cancel("Response object has been garbage collected").catch(_we)});function Y9(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"}),TS(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=V0.encode(u+`; name="${d(g(p))}"\r
\r
${g(p)}\r
`);d.push(w),i+=w.byteLength}else{let w=tk.encode(`${u}; name="${l(g(C))}"`+(p.name?`; filename="${l(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${g(y)}\r
`);h.push(N),o+=N.byteLength}else{let N=V0.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);d.push(w,p,h),typeof p.size=="number"?i+=w.byteLength+p.size+h.byteLength:B=!0}let Q=tk.encode(`--${c}--\r
`);d.push(Q),i+=Q.byteLength,B&&(i=null),n=t,s=async function*(){for(let C of d)C.stream?yield*C.stream():yield C},o=`multipart/form-data; boundary=${c}`}else if(rc.is.Blob(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(wq.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=rc.is.ReadableStream(t)?t:Sgt(t)}return(typeof n=="string"||Mgt(n))&&(s=()=>(i=typeof n=="string"?Buffer.byteLength(n):n.length,n)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(bq(r))break;l.length&&A.enqueue(new Uint8Array(l))}else c?.length&&!bq(r)&&A.enqueue(typeof c=="string"?tk.encode(c):new Uint8Array(c));queueMicrotask(()=>Tgt(A))})(),[{stream:r,source:n,length:i},o]}function Jgt(t,e=!1){return rc.is.ReadableStream(t)&&(yq(!wq.isDisturbed(t),"The body has already been consumed."),yq(!t.locked,"The stream is locked.")),ABe(t,e)}function Vgt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Wgt(t,e){return{blob(){return qB(this,A=>{let s=rBe(e(this));return s===null?s="":s&&(s=Lgt(s)),new Blob([A],{type:s})},t,e)},arrayBuffer(){return qB(this,A=>new Uint8Array(A).buffer,t,e)},text(){return qB(this,Ogt,t,e)},json(){return qB(this,Pgt,t,e)},formData(){return qB(this,A=>{let s=rBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vgt(A,s),i=new tBe;return xgt(i,n),i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(A.toString()),i=new tBe;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,e)},bytes(){return qB(this,A=>new Uint8Array(A),t,e)}}}function zgt(t,e){Object.assign(t.prototype,Wgt(t,e))}function qB(t,e,r,A){try{rc.brandCheck(t,r)}catch(o){return Promise.reject(o)}if(t=A(t),sBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=_gt(),n=s.reject,i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t.body==null?(i(Buffer.allocUnsafe(0)),s.promise):(kgt(t.body,i,n),s.promise)}function sBe(t){let e=t.body;return e!=null&&(e.stream.locked||wq.isDisturbed(e.stream))}function rBe(t){let e=t.headersList,r=Fgt(e);return r==="failure"?null:r}nBe.exports={extractBody:ABe,safelyExtractBody:Jgt,cloneBody:Vgt,mixinBody:zgt,streamRegistry:qgt,bodyUnusable:sBe}});var fBe=E((bBr,EBe)=>{"use strict";var Ke=I("node:assert"),$e=ot(),{channels:iBe}=od(),Dq=l4(),{RequestContentLengthMismatchError:NE,ResponseContentLengthMismatchError:jgt,RequestAbortedError:gBe,HeadersTimeoutError:Kgt,HeadersOverflowError:Xgt,SocketError:cb,InformationalError:VB,BodyTimeoutError:Zgt,HTTPParserError:$gt,ResponseExceededMaxSizeError:edt}=ut(),{kUrl:dBe,kReset:Vn,kClient:xq,kParser:hA,kBlocking:ub,kRunning:zs,kPending:tdt,kSize:oBe,kWriting:ld,kQueue:Ac,kNoRef:ob,kKeepAliveDefaultTimeout:rdt,kHostHeader:Adt,kPendingIdx:sdt,kRunningIdx:zo,kError:jo,kPipelining:sk,kSocket:WB,kKeepAliveTimeoutValue:ik,kMaxHeadersSize:ndt,kKeepAliveMaxTimeout:idt,kKeepAliveTimeoutThreshold:odt,kHeadersTimeout:adt,kBodyTimeout:cdt,kStrictContentLength:Sq,kMaxRequests:aBe,kCounter:udt,kMaxResponseSize:ldt,kOnError:gdt,kResume:ud,kHTTPContext:hBe,kClosed:Tq}=Er(),Xc=nCe(),ddt=Buffer.alloc(0),rk=Buffer[Symbol.species],hdt=$e.removeAllListeners,Nq;function Edt(){let t=process.env.JEST_WORKER_ID?$4():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(aCe())}catch{}return e||(e=new WebAssembly.Module(t||$4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(A,s,n)=>0,wasm_on_status:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onStatus(new rk(Zc.buffer,i,n))},wasm_on_message_begin:A=>(Ke(ts.ptr===A),ts.onMessageBegin()),wasm_on_header_field:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onHeaderField(new rk(Zc.buffer,i,n))},wasm_on_header_value:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onHeaderValue(new rk(Zc.buffer,i,n))},wasm_on_headers_complete:(A,s,n,i)=>(Ke(ts.ptr===A),ts.onHeadersComplete(s,n===1,i===1)),wasm_on_body:(A,s,n)=>{Ke(ts.ptr===A);let i=s-$c+Zc.byteOffset;return ts.onBody(new rk(Zc.buffer,i,n))},wasm_on_message_complete:A=>(Ke(ts.ptr===A),ts.onMessageComplete())}})}var Rq=null,ts=null,Zc=null,Ak=0,$c=null,fdt=0,ab=1,zB=2|ab,nk=4|ab,kq=8|fdt,Fq=class{constructor(e,r,{exports:A}){this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(Xc.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[ndt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ldt]}setTi Line truncated
`;if(typeof s=="string"?B+=`host: ${s}\r
`:B+=t[Adt],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[sk]&&!d[Vn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return iBe.sendHeaders.hasSubscribers&&iBe.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?uBe(h,null,t,e,d,u,B,l):$e.isBuffer(a)?uBe(h,a,t,e,d,u,B,l):$e.isBlobLike(a)?typeof a.stream=="function"?lBe(h,a.stream(),t,e,d,u,B,l):Ndt(h,a,t,e,d,u,B,l):$e.isStream(a)?Ddt(h,a,t,e,d,u,B,l):$e.isIterable(a)?lBe(h,a,t,e,d,u,B,l):Ke(!1),!0}function Ddt(t,e,r,A,s,n,i,o){Ke(n!==0||r[zs]===0,"stream body cannot be pipelined");let a=!1,c=new ok({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){$e.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new gBe;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,Ke(s.destroyed||s[ld]&&r[zs]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?$e.destroy(e,h):$e.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(d,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(d,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function uBe(t,e,r,A,s,n,i,o){try{e?$e.isBuffer(e)&&(Ke(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
`);h.push(N,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=V0.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(xS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Bn.is.ReadableStream(t)?t:Nwe(t)}return(typeof i=="string"||kwe(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(DS(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!DS(r)&&s.enqueue(typeof c=="string"?V0.encode(c):new Uint8Array(c));queueMicrotask(()=>Swe(s))})(),[{stream:r,source:i,length:o},a]}function Gwe(t,e=!1){return Bn.is.ReadableStream(t)&&(TS(!xS.isDisturbed(t),"The body has already been consumed."),TS(!t.locked,"The stream is locked.")),Y9(t,e)}function Ywe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function qwe(t,e){return{blob(){return Iu(this,s=>{let n=G9(e(this));return n===null?n="":n&&(n=Fwe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Iu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Iu(this,Pwe,t,e)},json(){return Iu(this,Lwe,t,e)},formData(){return Iu(this,s=>{let n=G9(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=Mwe(s,n),o=new H9;return xwe(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new H9;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 Iu(this,s=>new Uint8Array(s),t,e)}}}function Vwe(t,e){Object.assign(t.prototype,qwe(t,e))}function Iu(t,e,r,s){try{Bn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),q9(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=Uwe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(Twe(t.body,o,i),n.promise)}function q9(t){let e=t.body;return e!=null&&(e.stream.locked||xS.isDisturbed(e.stream))}function G9(t){let e=t.headersList,r=Dwe(e);return r==="failure"?null:r}V9.exports={extractBody:Y9,safelyExtractBody:Gwe,cloneBody:Ywe,mixinBody:Vwe,streamRegistry:Hwe,bodyUnusable:q9}});var rG=m((yje,tG)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:J9}=_o(),RS=dN(),{RequestContentLengthMismatchError:uA,ResponseContentLengthMismatchError:Jwe,RequestAbortedError:Z9,HeadersTimeoutError:Wwe,HeadersOverflowError:zwe,SocketError:Rg,InformationalError:Qu,BodyTimeoutError:Kwe,HTTPParserError:Xwe,ResponseExceededMaxSizeError:jwe}=ae(),{kUrl:$9,kReset:kr,kClient:vS,kParser:at,kBlocking:kg,kRunning:rr,kPending:Zwe,kSize:W9,kWriting:qo,kQueue:Qn,kNoRef:Dg,kKeepAliveDefaultTimeout:$we,kHostHeader:eNe,kPendingIdx:tNe,kRunningIdx:_s,kError:Hs,kPipelining:z0,kSocket:yu,kKeepAliveTimeoutValue:X0,kMaxHeadersSize:rNe,kKeepAliveMaxTimeout:sNe,kKeepAliveTimeoutThreshold:nNe,kHeadersTimeout:iNe,kBodyTimeout:oNe,kStrictContentLength:MS,kMaxRequests:z9,kCounter:aNe,kMaxResponseSize:ANe,kOnError:cNe,kResume:Yo,kHTTPContext:eG,kClosed:US}=Me(),zn=VH(),uNe=Buffer.alloc(0),J0=Buffer[Symbol.species],lNe=ne.removeAllListeners,kS;function dNe(){let t=process.env.JEST_WORKER_ID?nS():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(zH())}catch{}return e||(e=new WebAssembly.Module(t||nS())),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 J0(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 J0(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 J0(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 J0(Kn.buffer,o,i))},wasm_on_message_complete:s=>(se(Nt.ptr===s),Nt.onMessageComplete())}})}var FS=null,Nt=null,Kn=null,W0=0,Xn=null,gNe=0,xg=1,bu=2|xg,K0=4|xg,LS=8|gNe,PS=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[rNe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ANe]}setTimeout(e,r){e!==this.t Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[eNe],i?E+=`connection: upgrade\r
upgrade: ${i}\r
`:t[z0]&&!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 J9.sendHeaders.hasSubscribers&&J9.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?X9(f,null,t,e,h,u,E,d):ne.isBuffer(A)?X9(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?j9(f,A.stream(),t,e,h,u,E,d):bNe(f,A,t,e,h,u,E,d):ne.isStream(A)?yNe(f,A,t,e,h,u,E,d):ne.isIterable(A)?j9(f,A,t,e,h,u,E,d):se(!1),!0}function yNe(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"stream body cannot be pipelined");let A=!1,c=new j0({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 Z9;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 X9(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
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Vn]=!0)):n===0?s.write(`${i}content-length: 0\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
\r
`,"latin1"):(Ke(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[ud]()}catch(a){t(a)}}async function Ndt(t,e,r,A,s,n,i,o){Ke(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new NE;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\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 bNe(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 uA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Vn]=!0),r[ud]()}catch(a){t(a)}}async function lBe(t,e,r,A,s,n,i,o){Ke(n!==0||r[zs]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ke(a===null),s[jo]?d(s[jo]):a=g});s.on("close",c).on("drain",c);let l=new ok({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[jo])throw s[jo];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var ok=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[ld]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[jo])throw r[jo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[Sq])throw new NE;process.emitWarning(new NE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Vn]=!0),s===null?r.write(`${a}transfer-encoding: chunked\r
`,"latin1"):r.write(`${a}content-length: ${s}\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 j9(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 j0({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 j0=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[MS])throw new uA;process.emitWarning(new uA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[kr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),s===null&&r.write(`\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[hA].timeout&&r[hA].timeoutType===zB&&r[hA].timeout.refresh&&r[hA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[ld]=!1,e[jo])throw e[jo];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[at].timeout&&r[at].timeoutType===bu&&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
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[Sq])throw new NE;process.emitWarning(new NE)}e[hA].timeout&&e[hA].timeoutType===zB&&e[hA].timeout.refresh&&e[hA].timeout.refresh(),A[ud]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[ld]=!1,e&&(Ke(A[zs]<=1,"pipeline should only contain this request"),s(e))}};EBe.exports=Cdt});var wBe=E((wBr,bBe)=>{"use strict";var Xo=I("node:assert"),{pipeline:Rdt}=I("node:stream"),Et=ot(),{RequestContentLengthMismatchError:vq,RequestAbortedError:Sdt,SocketError:hb,InformationalError:gd,InvalidArgumentError:Tdt}=ut(),{kUrl:db,kReset:lk,kClient:Pi,kRunning:Eb,kPending:kdt,kQueue:dd,kPendingIdx:Pq,kRunningIdx:sc,kError:Oi,kSocket:iA,kStrictContentLength:Fdt,kOnError:jB,kMaxConcurrentStreams:ck,kPingInterval:CBe,kHTTP2Session:Fl,kHTTP2InitialWindowSize:xdt,kHTTP2ConnectionWindowSize:Udt,kResume:eu,kSize:Mdt,kHTTPContext:Oq,kClosed:_q,kBodyTimeout:Ldt,kEnableConnectProtocol:lb,kRemoteSettings:gb,kHTTP2Stream:ak,kHTTP2SessionState:Hq}=Er(),{channels:BBe}=od(),Ko=Symbol("open streams"),IBe,uk;try{uk=I("node:http2")}catch{uk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vdt,HTTP2_HEADER_METHOD:QBe,HTTP2_HEADER_PATH:pBe,HTTP2_HEADER_SCHEME:Uq,HTTP2_HEADER_CONTENT_LENGTH:_dt,HTTP2_HEADER_EXPECT:Pdt,HTTP2_HEADER_STATUS:Mq,HTTP2_HEADER_PROTOCOL:Odt,NGHTTP2_REFUSED_STREAM:Hdt,NGHTTP2_CANCEL:Gdt}}=uk;function Lq(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}function Ydt(t,e){t[iA]=e;let r=t[xdt],A=t[Udt],s=uk.connect(t[db],{createConnection:()=>e,peerMaxConcurrentStreams:t[ck],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[iA]=e,s[Ko]=0,s[Pi]=t,s[iA]=e,s[Hq]={ping:{interval:t[CBe]===0?null:setInterval(Wdt,t[CBe],s).unref()}},s[lb]=!1,s[gb]=!1,A&&Et.addListener(s,"connect",Jdt.bind(s,A)),Et.addListener(s,"error",zdt),Et.addListener(s,"frameError",jdt),Et.addListener(s,"end",Kdt),Et.addListener(s,"goaway",Xdt),Et.addListener(s,"close",Zdt),Et.addListener(s,"remoteSettings",Vdt),s.unref(),t[Fl]=s,e[Fl]=s,Et.addListener(e,"error",eht),Et.addListener(e,"end",tht),Et.addListener(e,"close",$dt),e[_q]=!1,e.on("close",rht),{version:"h2",defaultPipelining:1/0,write(n){return sht(t,n)},resume(){qdt(t)},destroy(n,i){e[_q]?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(n){if(n!=null)if(t[Eb]>0){if(n.idempotent===!1||(n.upgrade==="websocket"||n.method==="CONNECT")&&s[gb]===!1||Et.bodyLength(n.body)!==0&&(Et.isStream(n.body)||Et.isAsyncIterable(n.body)||Et.isFormDataLike(n.body)))return!0}else return(n.upgrade==="websocket"||n.method==="CONNECT")&&s[gb]===!1;return!1}}}function qdt(t){let e=t[iA];e?.destroyed===!1&&(t[Mdt]===0||t[ck]===0?(e.unref(),t[Fl].unref()):(e.ref(),t[Fl].ref()))}function Jdt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Vdt(t){if(this[Pi][ck]=t.maxConcurrentStreams??this[Pi][ck],this[gb]===!0&&this[lb]===!0&&t.enableConnectProtocol===!1){let e=new gd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[iA][Oi]=e,this[Pi][jB](e);return}this[lb]=t.enableConnectProtocol??this[lb],this[gb]=!0,this[Pi][eu]()}function Wdt(t){let e=t[Hq];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(A,s){let n=this[Pi],i=this[Pi];if(A!=null){let o=new gd(`HTTP/2: "PING" errored - type ${A.message}`);i[Oi]=o,n[jB](o)}else n.emit("ping",s)}}function zdt(t){Xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[iA][Oi]=t,this[Pi][jB](t)}function jdt(t,e,r){if(r===0){let A=new gd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[iA][Oi]=A,this[Pi][jB](A)}}function Kdt(){let t=new hb("other side closed",Et.getSocketInfo(this[iA]));this.destroy(t),Et.destroy(this[iA],t)}function Xdt(t){let e=this[Oi]||new hb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this[iA])),r=this[Pi];if(r[iA]=null,r[Oq]=null,this.close(),this[Fl]=null,Et.destroy(this[iA],e),r[sc]<r[dd].length){let A=r[dd][r[sc]];r[dd][r[sc]++]=null,Et.errorRequest(r,A,e),r[Pq]=r[sc]}Xo(r[Eb]===0),r.emit("disconnect",r[db],[r],e),r.emit("connectionError",r[db],[r],e),r[eu]()}function Zdt(){let{[Pi]:t,[Hq]:e}=this,{[iA]:r}=t,A=this[iA][Oi]||this[Oi]||new hb("closed",Et.getSocketInfo(r));if(t[iA]=null,t[Oq]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Xo(t[kdt]===0);let s=t[dd].splice(t[sc]);for(let n=0;n<s.length;n++){let i=s[n];Et.errorRequest(t,i,A)}}}function $dt(){let t=this[Oi]||new hb("closed",Et.getSocketInfo(this)),e=this[Fl][Pi];e[iA]=null,e[Oq]=null,this[Fl]!==null&&this[Fl].destroy(t),e[Pq]=e[sc],Xo(e[Eb]===0),e.emit("disconnect",e[db],[e],t),e[eu]()}function eht(t){Xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Oi]=t,this[Pi][jB](t)}function tht(){Et.destroy(this,new hb("other side closed",Et.getSocketInfo(this)))}func Line truncated
`;BBe.sendHeaders.publish({request:e,headers:H,socket:A[iA]})}let k=s==="GET"||s==="HEAD"||g===null;a?(d[Pdt]="100-continue",h=A.request(d,{endStream:k,signal:c}),h[ak]=!0,h.once("continue",j)):(h=A.request(d,{endStream:k,signal:c}),h[ak]=!0,j()),++A[Ko],h.setTimeout(r);let J=!1;return h.once("response",H=>{let{[Mq]:$,...oe}=H;if(e.onResponseStarted(),J=!0,e.aborted){h.removeAllListeners("data");return}e.onHeaders(Number($),Lq(oe),h.resume.bind(h),"")===!1&&h.pause()}),h.on("data",H=>{e.onData(H)===!1&&h.pause()}),h.once("end",()=>{h.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),t[dd][t[sc]++]=null,t[eu]()):(C(new gd("HTTP/2: stream half-closed (remote)")),t[dd][t[sc]++]=null,t[Pq]=t[sc],t[eu]())}),h.once("close",()=>{h.removeAllListeners("data"),A[Ko]-=1,A[Ko]===0&&A.unref()}),h.once("error",function(H){h.removeAllListeners("data"),C(H)}),h.once("frameError",(H,$)=>{h.removeAllListeners("data"),C(new gd(`HTTP/2: "frameError" received - type ${H}, code ${$}`))}),h.on("aborted",()=>{h.removeAllListeners("data")}),h.on("timeout",()=>{let H=new gd(`HTTP/2: "stream timeout after ${r}"`);h.removeAllListeners("data"),A[Ko]-=1,A[Ko]===0&&A.unref(),C(H)}),h.once("trailers",H=>{e.aborted||e.completed||e.onComplete(H)}),!0;function j(){!g||w===0?mBe(C,h,null,t,e,t[iA],w,p):Et.isBuffer(g)?mBe(C,h,g,t,e,t[iA],w,p):Et.isBlobLike(g)?typeof g.stream=="function"?yBe(C,h,g.stream(),t,e,t[iA],w,p):iht(C,h,g,t,e,t[iA],w,p):Et.isStream(g)?nht(C,t[iA],p,h,g,t,e,w):Et.isIterable(g)?yBe(C,h,g,t,e,t[iA],w,p):Xo(!1)}}function mBe(t,e,r,A,s,n,i,o){try{r!=null&&Et.isBuffer(r)&&(Xo(i===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),o||(n[lk]=!0),s.onRequestSent(),A[eu]()}catch(a){t(a)}}function nht(t,e,r,A,s,n,i,o){Xo(o!==0||n[Eb]===0,"stream body cannot be pipelined");let a=Rdt(s,A,u=>{u?(Et.destroy(a,u),t(u)):(Et.removeAllListeners(a),i.onRequestSent(),r||(e[lk]=!0),n[eu]())});Et.addListener(a,"data",c);function c(u){i.onBodySent(u)}}async function iht(t,e,r,A,s,n,i,o){Xo(i===r.size,"blob body must have content length");try{if(i!=null&&i!==r.size)throw new vq;let a=Buffer.from(await r.arrayBuffer());e.cork(),e.write(a),e.uncork(),e.end(),s.onBodySent(a),s.onRequestSent(),o||(n[lk]=!0),A[eu]()}catch(a){t(a)}}async function yBe(t,e,r,A,s,n,i,o){Xo(i!==0||A[Eb]===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)=>{Xo(a===null),n[Oi]?g(n[Oi]):a=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(n[Oi])throw n[Oi];let g=e.write(l);s.onBodySent(l),g||await u()}e.end(),s.onRequestSent(),o||(n[lk]=!0),A[eu]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}bBe.exports=Ydt});var Bd=E((DBr,UBe)=>{"use strict";var xl=I("node:assert"),TBe=I("node:net"),fb=I("node:http"),RE=ot(),{ClientStats:oht}=_4(),{channels:KB}=od(),aht=Wfe(),cht=OB(),{InvalidArgumentError:Lr,InformationalError:uht,ClientDestroyedError:lht}=ut(),ght=HB(),{kUrl:tu,kServerName:Cd,kClient:dht,kBusy:Gq,kConnect:hht,kResuming:SE,kRunning:Qb,kPending:pb,kSize:Cb,kQueue:nc,kConnected:Eht,kConnecting:XB,kNeedDrain:Ed,kKeepAliveDefaultTimeout:DBe,kHostHeader:fht,kPendingIdx:ic,kRunningIdx:Ul,kError:Cht,kPipelining:gk,kKeepAliveTimeoutValue:Bht,kMaxHeadersSize:Iht,kKeepAliveMaxTimeout:Qht,kKeepAliveTimeoutThreshold:pht,kHeadersTimeout:mht,kBodyTimeout:yht,kStrictContentLength:bht,kConnector:Bb,kMaxRequests:Yq,kCounter:wht,kClose:Dht,kDestroy:Nht,kDispatch:Rht,kLocalAddress:Ib,kMaxResponseSize:Sht,kOnError:Tht,kHTTPContext:FA,kMaxConcurrentStreams:kht,kHTTP2InitialWindowSize:Fht,kHTTP2ConnectionWindowSize:xht,kResume:fd,kPingInterval:Uht}=Er(),Mht=fBe(),Lht=wBe(),hd=Symbol("kClosedResolve"),vht=fb&&fb.maxHeaderSize&&Number.isInteger(fb.maxHeaderSize)&&fb.maxHeaderSize>0?()=>fb.maxHeaderSize:()=>{throw new Lr("http module not available or http.maxHeaderSize invalid")},NBe=()=>{};function kBe(t){return t[gk]??t[FA]?.defaultPipelining??1}var qq=class extends cht{constructor(e,{maxHeaderSize:r,headersTimeout:A,socketTimeout:s,requestTimeout:n,connectTimeout:i,bodyTimeout:o,idleTimeout:a,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:d,socketPath:h,pipelining:B,tls:Q,strictContentLength:C,maxCachedSessions:p,connect:w,maxRequestsPerClient:k,localAddress:J,maxResponseSize:j,autoSelectFamily:H,autoSelectFamilyAttemptTimeout:$,maxConcurrentStreams:oe,allowH2:Ie,useH2c:be,initialWindowSize:K,connectionWindowSize:le,pingInterval:Le}={}){if(c!==void 0)throw new Lr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Lr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(n!==void 0)throw new Lr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new Lr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new Lr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeou Line truncated
`,this[yht]=o??3e5,this[mht]=A??3e5,this[bht]=C??!0,this[Yq]=k,this[hd]=null,this[Sht]=j>-1?j:-1,this[FA]=null,this[kht]=oe??100,this[Fht]=K??262144,this[xht]=le??524288,this[Uht]=Le??6e4,this[nc]=[],this[Ul]=0,this[ic]=0,this[fd]=Yt=>Jq(this,Yt),this[Tht]=Yt=>FBe(this,Yt)}get pipelining(){return this[gk]}set pipelining(e){this[gk]=e,this[fd](!0)}get stats(){return new oht(this)}get[pb](){return this[nc].length-this[ic]}get[Qb](){return this[ic]-this[Ul]}get[Cb](){return this[nc].length-this[Ul]}get[Eht](){return!!this[FA]&&!this[XB]&&!this[FA].destroyed}get[Gq](){return!!(this[FA]?.busy(null)||this[Cb]>=(kBe(this)||1)||this[pb]>0)}[hht](e){xBe(this),this.once("connect",e)}[Rht](e,r){let A=new aht(this[tu].origin,e,r);return this[nc].push(A),this[SE]||(RE.bodyLength(A.body)==null&&RE.isIterable(A.body)?(this[SE]=1,queueMicrotask(()=>Jq(this))):this[fd](!0)),this[SE]&&this[Ed]!==2&&this[Gq]&&(this[Ed]=2),this[Ed]<2}[Dht](){return new Promise(e=>{this[Cb]?this[hd]=e:e(null)})}[Nht](e){return new Promise(r=>{let A=this[nc].splice(this[ic]);for(let n=0;n<A.length;n++){let i=A[n];RE.errorRequest(this,i,e)}let s=()=>{this[hd]&&(this[hd](),this[hd]=null),r(null)};this[FA]?(this[FA].destroy(e,s),this[FA]=null):queueMicrotask(s),this[fd]()})}};function FBe(t,e){if(t[Qb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){xl(t[ic]===t[Ul]);let r=t[nc].splice(t[Ul]);for(let A=0;A<r.length;A++){let s=r[A];RE.errorRequest(t,s,e)}xl(t[Cb]===0)}}function xBe(t){xl(!t[XB]),xl(!t[FA]);let{host:e,hostname:r,protocol:A,port:s}=t[tu];if(r[0]==="["){let n=r.indexOf("]");xl(n!==-1);let i=r.substring(1,n);xl(TBe.isIPv6(i)),r=i}t[XB]=!0,KB.beforeConnect.hasSubscribers&&KB.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[FA]?.version,servername:t[Cd],localAddress:t[Ib]},connector:t[Bb]}),t[Bb]({host:e,hostname:r,protocol:A,port:s,servername:t[Cd],localAddress:t[Ib]},(n,i)=>{if(n){RBe(t,n,{host:e,hostname:r,protocol:A,port:s}),t[fd]();return}if(t.destroyed){RE.destroy(i.on("error",NBe),new lht),t[fd]();return}xl(i);try{t[FA]=i.alpnProtocol==="h2"?Lht(t,i):Mht(t,i)}catch(o){i.destroy().on("error",NBe),RBe(t,o,{host:e,hostname:r,protocol:A,port:s}),t[fd]();return}t[XB]=!1,i[wht]=0,i[Yq]=t[Yq],i[dht]=t,i[Cht]=null,KB.connected.hasSubscribers&&KB.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[FA]?.version,servername:t[Cd],localAddress:t[Ib]},connector:t[Bb],socket:i}),t.emit("connect",t[tu],[t]),t[fd]()})}function RBe(t,e,{host:r,hostname:A,protocol:s,port:n}){if(!t.destroyed){if(t[XB]=!1,KB.connectError.hasSubscribers&&KB.connectError.publish({connectParams:{host:r,hostname:A,protocol:s,port:n,version:t[FA]?.version,servername:t[Cd],localAddress:t[Ib]},connector:t[Bb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(xl(t[Qb]===0);t[pb]>0&&t[nc][t[ic]].servername===t[Cd];){let i=t[nc][t[ic]++];RE.errorRequest(t,i,e)}else FBe(t,e);t.emit("connectionError",t[tu],[t],e)}}function SBe(t){t[Ed]=0,t.emit("drain",t[tu],[t])}function Jq(t,e){t[SE]!==2&&(t[SE]=2,_ht(t,e),t[SE]=0,t[Ul]>256&&(t[nc].splice(0,t[Ul]),t[ic]-=t[Ul],t[Ul]=0))}function _ht(t,e){for(;;){if(t.destroyed){xl(t[pb]===0);return}if(t[hd]&&!t[Cb]){t[hd](),t[hd]=null;return}if(t[FA]&&t[FA].resume(),t[Gq])t[Ed]=2;else if(t[Ed]===2){e?(t[Ed]=1,queueMicrotask(()=>SBe(t))):SBe(t);continue}if(t[pb]===0||t[Qb]>=(kBe(t)||1))return;let r=t[nc][t[ic]];if(t[tu].protocol==="https:"&&t[Cd]!==r.servername){if(t[Qb]>0)return;t[Cd]=r.servername,t[FA]?.destroy(new uht("servername changed"),()=>{t[FA]=null,Jq(t)})}if(t[XB])return;if(!t[FA]){xBe(t);return}if(t[FA].destroyed||t[FA].busy(r))return;!r.aborted&&t[FA].write(r)?t[ic]++:t[nc].splice(t[ic],1)}}UBe.exports=qq});var Vq=E((RBr,MBe)=>{"use strict";var dk=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)}};MBe.exports=class{constructor(){this.head=this.tail=new dk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dk),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 hk=E((SBr,qBe)=>{"use strict";var{PoolStats:Pht}=_4(),Oht=OB(),Hht=Vq(),{kConnected:Wq,kSize:LBe,kRunning:vBe,kPending:_Be,kQueued:mb,kBusy:Ght,kFree:Yht,kUrl:qht,kClose:Jht,kDestroy:Vht,kDispatch:Wht}=Er(),fs=Symbol("clients"),Cn=Symbol("needDrain"),yb=Symbol("queue"),zq=Symbol("closed resolve"),jq=Symbol("onDrain"),PBe=Symbol("onConnect"),OBe=Symbol("onDisconnect"),HBe=Symbol("onConnectionError"),Kq=Symbol("get dispatcher"),GBe=Symbol("add client"),YBe=Symbol("remove client"),Xq=class extends Oht{[yb]=new Hht;[mb]=0;[fs]=[];[Cn]=!1;[jq](e,r,A){let s=this[yb],n=!1;for(;!n;){let i=s.shift();if(!i)break;th Line truncated
`,"latin1"),r!==null&&n!==r){if(s[MS])throw new uA;process.emitWarning(new uA)}e[at].timeout&&e[at].timeoutType===bu&&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))}};tG.exports=hNe});var lG=m((bje,uG)=>{"use strict";var Ys=Q("node:assert"),{pipeline:wNe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:GS,RequestAbortedError:NNe,SocketError:Lg,InformationalError:Vo,InvalidArgumentError:SNe}=ae(),{kUrl:Ug,kReset:tE,kClient:ss,kRunning:Pg,kPending:TNe,kQueue:Jo,kPendingIdx:qS,kRunningIdx:yn,kError:ns,kSocket:st,kStrictContentLength:DNe,kOnError:wu,kMaxConcurrentStreams:$0,kPingInterval:sG,kHTTP2Session:Wi,kHTTP2InitialWindowSize:xNe,kHTTP2ConnectionWindowSize:RNe,kResume:jn,kSize:kNe,kHTTPContext:VS,kClosed:YS,kBodyTimeout:FNe,kEnableConnectProtocol:Fg,kRemoteSettings:Mg,kHTTP2Stream:Z0,kHTTP2SessionState:JS}=Me(),{channels:nG}=_o(),Gs=Symbol("open streams"),iG,eE;try{eE=Q("node:http2")}catch{eE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:MNe,HTTP2_HEADER_METHOD:oG,HTTP2_HEADER_PATH:aG,HTTP2_HEADER_SCHEME:OS,HTTP2_HEADER_CONTENT_LENGTH:UNe,HTTP2_HEADER_EXPECT:LNe,HTTP2_HEADER_STATUS:_S,HTTP2_HEADER_PROTOCOL:PNe,NGHTTP2_REFUSED_STREAM:vNe,NGHTTP2_CANCEL:ONe}}=eE;function HS(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 _Ne(t,e){t[st]=e;let r=t[xNe],s=t[RNe],n=eE.connect(t[Ug],{createConnection:()=>e,peerMaxConcurrentStreams:t[$0],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[st]=e,n[Gs]=0,n[ss]=t,n[st]=e,n[JS]={ping:{interval:t[sG]===0?null:setInterval(qNe,t[sG],n).unref()}},n[Fg]=!1,n[Mg]=!1,s&&he.addListener(n,"connect",GNe.bind(n,s)),he.addListener(n,"error",VNe),he.addListener(n,"frameError",JNe),he.addListener(n,"end",WNe),he.addListener(n,"goaway",zNe),he.addListener(n,"close",KNe),he.addListener(n,"remoteSettings",YNe),n.unref(),t[Wi]=n,e[Wi]=n,he.addListener(e,"error",jNe),he.addListener(e,"end",ZNe),he.addListener(e,"close",XNe),e[YS]=!1,e.on("close",$Ne),{version:"h2",defaultPipelining:1/0,write(i){return tSe(t,i)},resume(){HNe(t)},destroy(i,o){e[YS]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Pg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mg]===!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[Mg]===!1;return!1}}}function HNe(t){let e=t[st];e?.destroyed===!1&&(t[kNe]===0||t[$0]===0?(e.unref(),t[Wi].unref()):(e.ref(),t[Wi].ref()))}function GNe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function YNe(t){if(this[ss][$0]=t.maxConcurrentStreams??this[ss][$0],this[Mg]===!0&&this[Fg]===!0&&t.enableConnectProtocol===!1){let e=new Vo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[st][ns]=e,this[ss][wu](e);return}this[Fg]=t.enableConnectProtocol??this[Fg],this[Mg]=!0,this[ss][jn]()}function qNe(t){let e=t[JS];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[wu](a)}else i.emit("ping",n)}}function VNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[st][ns]=t,this[ss][wu](t)}function JNe(t,e,r){if(r===0){let s=new Vo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[st][ns]=s,this[ss][wu](s)}}function WNe(){let t=new Lg("other side closed",he.getSocketInfo(this[st]));this.destroy(t),he.destroy(this[st],t)}function zNe(t){let e=this[ns]||new Lg(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[st])),r=this[ss];if(r[st]=null,r[VS]=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[qS]=r[yn]}Ys(r[Pg]===0),r.emit("disconnect",r[Ug],[r],e),r.emit("connectionError",r[Ug],[r],e),r[jn]()}function KNe(){let{[ss]:t,[JS]:e}=this,{[st]:r}=t,s=this[st][ns]||this[ns]||new Lg("closed",he.getSocketInfo(r));if(t[st]=null,t[VS]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Ys(t[TNe]===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 XNe(){let t=this[ns]||new Lg("closed",he.getSocketInfo(this)),e=this[Wi][ss];e[st]=null,e[VS]=null,this[Wi]!==null&&this[Wi].destroy(t),e[qS]=e[yn],Ys(e[Pg]===0),e.emit("disconnect",e[Ug],[e],t),e[jn]()}function jNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns]=t,this[ss][wu](t)}function ZNe(){he.destroy(this,new Lg("other side closed",he.getSocketInfo(this)))}function $Ne() Line truncated
`;nG.sendHeaders.publish({request:e,headers:k,socket:s[st]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[LNe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[Z0]=!0,f.once("continue",v)):(f=s.request(h,{endStream:D,signal:c}),f[Z0]=!0,v()),++s[Gs],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[_S]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),HS(_),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[qS]=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?AG(p,f,null,t,e,t[st],N,y):he.isBuffer(g)?AG(p,f,g,t,e,t[st],N,y):he.isBlobLike(g)?typeof g.stream=="function"?cG(p,f,g.stream(),t,e,t[st],N,y):sSe(p,f,g,t,e,t[st],N,y):he.isStream(g)?rSe(p,t[st],y,f,g,t,e,N):he.isIterable(g)?cG(p,f,g,t,e,t[st],N,y):Ys(!1)}}function AG(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[tE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function rSe(t,e,r,s,n,i,o,a){Ys(a!==0||i[Pg]===0,"stream body cannot be pipelined");let A=wNe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[tE]=!0),i[jn]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function sSe(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 GS;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[tE]=!0),s[jn]()}catch(A){t(A)}}async function cG(t,e,r,s,n,i,o,a){Ys(o!==0||s[Pg]===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[tE]=!0),s[jn]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}uG.exports=_Ne});var jo=m((wje,IG)=>{"use strict";var zi=Q("node:assert"),mG=Q("node:net"),vg=Q("node:http"),lA=ce(),{ClientStats:nSe}=HN(),{channels:Nu}=_o(),iSe=FH(),oSe=iA(),{InvalidArgumentError:Ke,InformationalError:aSe,ClientDestroyedError:ASe}=ae(),cSe=oA(),{kUrl:Zn,kServerName:Xo,kClient:uSe,kBusy:WS,kConnect:lSe,kResuming:dA,kRunning:Gg,kPending:Yg,kSize:Og,kQueue:bn,kConnected:dSe,kConnecting:Su,kNeedDrain:zo,kKeepAliveDefaultTimeout:dG,kHostHeader:gSe,kPendingIdx:wn,kRunningIdx:Ki,kError:hSe,kPipelining:rE,kKeepAliveTimeoutValue:fSe,kMaxHeadersSize:mSe,kKeepAliveMaxTimeout:pSe,kKeepAliveTimeoutThreshold:ESe,kHeadersTimeout:CSe,kBodyTimeout:ISe,kStrictContentLength:BSe,kConnector:_g,kMaxRequests:zS,kCounter:QSe,kClose:ySe,kDestroy:bSe,kDispatch:wSe,kLocalAddress:Hg,kMaxResponseSize:NSe,kOnError:SSe,kHTTPContext:ft,kMaxConcurrentStreams:TSe,kHTTP2InitialWindowSize:DSe,kHTTP2ConnectionWindowSize:xSe,kResume:Ko,kPingInterval:RSe}=Me(),kSe=rG(),FSe=lG(),Wo=Symbol("kClosedResolve"),MSe=vg&&vg.maxHeaderSize&&Number.isInteger(vg.maxHeaderSize)&&vg.maxHeaderSize>0?()=>vg.maxHeaderSize:()=>{throw new Ke("http module not available or http.maxHeaderSize invalid")},gG=()=>{};function pG(t){return t[rE]??t[ft]?.defaultPipelining??1}var KS=class extends oSe{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[ISe]=a??3e5,this[CSe]=s??3e5,this[BSe]=p??!0,this[zS]=D,this[Wo]=null,this[NSe]=v>-1?v:-1,this[ft]=null,this[TSe]=_??100,this[DSe]=ue??262144,this[xSe]=fe??524288,this[RSe]=Ie??6e4,this[bn]=[],this[Ki]=0,this[wn]=0,this[Ko]=lt=>XS(this,lt),this[SSe]=lt=>EG(this,lt)}get pipelining(){return this[rE]}set pipelining(e){this[rE]=e,this[Ko](!0)}get stats(){return new nSe(this)}get[Yg](){return this[bn].length-this[wn]}get[Gg](){return this[wn]-this[Ki]}get[Og](){return this[bn].length-this[Ki]}get[dSe](){return!!this[ft]&&!this[Su]&&!this[ft].destroyed}get[WS](){return!!(this[ft]?.busy(null)||this[Og]>=(pG(this)||1)||this[Yg]>0)}[lSe](e){CG(this),this.once("connect",e)}[wSe](e,r){let s=new iSe(this[Zn].origin,e,r);return this[bn].push(s),this[dA]||(lA.bodyLength(s.body)==null&&lA.isIterable(s.body)?(this[dA]=1,queueMicrotask(()=>XS(this))):this[Ko](!0)),this[dA]&&this[zo]!==2&&this[WS]&&(this[zo]=2),this[zo]<2}[ySe](){return new Promise(e=>{this[Og]?this[Wo]=e:e(null)})}[bSe](e){return new Promise(r=>{let s=this[bn].splice(this[wn]);for(let i=0;i<s.length;i++){let o=s[i];lA.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 EG(t,e){if(t[Gg]===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];lA.errorRequest(t,n,e)}zi(t[Og]===0)}}function CG(t){zi(!t[Su]),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(mG.isIPv6(o)),r=o}t[Su]=!0,Nu.beforeConnect.hasSubscribers&&Nu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Hg]},connector:t[_g]}),t[_g]({host:e,hostname:r,protocol:s,port:n,servername:t[Xo],localAddress:t[Hg]},(i,o)=>{if(i){hG(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}if(t.destroyed){lA.destroy(o.on("error",gG),new ASe),t[Ko]();return}zi(o);try{t[ft]=o.alpnProtocol==="h2"?FSe(t,o):kSe(t,o)}catch(a){o.destroy().on("error",gG),hG(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}t[Su]=!1,o[QSe]=0,o[zS]=t[zS],o[uSe]=t,o[hSe]=null,Nu.connected.hasSubscribers&&Nu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Hg]},connector:t[_g],socket:o}),t.emit("connect",t[Zn],[t]),t[Ko]()})}function hG(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Su]=!1,Nu.connectError.hasSubscribers&&Nu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ft]?.version,servername:t[Xo],localAddress:t[Hg]},connector:t[_g],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[Gg]===0);t[Yg]>0&&t[bn][t[wn]].servername===t[Xo];){let o=t[bn][t[wn]++];lA.errorRequest(t,o,e)}else EG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function fG(t){t[zo]=0,t.emit("drain",t[Zn],[t])}function XS(t,e){t[dA]!==2&&(t[dA]=2,USe(t,e),t[dA]=0,t[Ki]>256&&(t[bn].splice(0,t[Ki]),t[wn]-=t[Ki],t[Ki]=0))}function USe(t,e){for(;;){if(t.destroyed){zi(t[Yg]===0);return}if(t[Wo]&&!t[Og]){t[Wo](),t[Wo]=null;return}if(t[ft]&&t[ft].resume(),t[WS])t[zo]=2;else if(t[zo]===2){e?(t[zo]=1,queueMicrotask(()=>fG(t))):fG(t);continue}if(t[Yg]===0||t[Gg]>=(pG(t)||1))return;let r=t[bn][t[wn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[Xo]!==r.servername){if(t[Gg]>0)return;t[Xo]=r.servername,t[ft]?.destroy(new aSe("servername changed"),()=>{t[ft]=null,XS(t)})}if(t[Su])return;if(!t[ft]){CG(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)}}IG.exports=KS});var jS=m((Sje,BG)=>{"use strict";var sE=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)}};BG.exports=class{constructor(){this.head=this.tail=new sE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sE),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 nE=m((Tje,xG)=>{"use strict";var{PoolStats:LSe}=HN(),PSe=iA(),vSe=jS(),{kConnected:ZS,kSize:QG,kRunning:yG,kPending:bG,kQueued:qg,kBusy:OSe,kFree:_Se,kUrl:HSe,kClose:GSe,kDestroy:YSe,kDispatch:qSe}=Me(),Pt=Symbol("clients"),dr=Symbol("needDrain"),Vg=Symbol("queue"),$S=Symbol("closed resolve"),eT=Symbol("onDrain"),wG=Symbol("onConnect"),NG=Symbol("onDisconnect"),SG=Symbol("onConnectionError"),tT=Symbol("get dispatcher"),TG=Symbol("add client"),DG=Symbol("remove client"),rT=class extends PSe{[Vg]=new vSe;[qg]=0;[Pt]=[];[dr]=!1;[eT](e,r,s){let n=this[Vg],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[qg]--,i Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var{InvalidArgumentError:DCt}=ut(),{runtimeFeatures:NCt}=Tl();function RCt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:A=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(n=>s?n:n.toLowerCase())),exclude:new Set(r.map(n=>s?n:n.toLowerCase())),match:new Set(A.map(n=>s?n:n.toLowerCase()))}}var e0e=NCt.has("crypto")?I("node:crypto"):null,SCt=e0e?.hash?t=>e0e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function r0e(t){return Array.isArray(t)&&(t.length&1)===0}function TCt(t=[]){return t.length===0?()=>!1:function(r){let A;for(let s of t)if(typeof s=="string"){if(A||(A=r.toLowerCase()),A.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function kCt(t){let e={};if(!t)return e;if(r0e(t)){for(let r=0;r<t.length;r+=2){let A=t[r],s=t[r+1];if(A&&s!==void 0){let n=Buffer.isBuffer(A)?A.toString():A,i=Buffer.isBuffer(s)?s.toString():s;e[n.toLowerCase()]=i}}return e}if(t&&typeof t=="object")for(let[r,A]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(A)?A.join(", "):String(A));return e}var t0e=["record","playback","update"];function FCt(t){if(!t0e.includes(t))throw new DCt(`Invalid snapshot mode: ${t}. Must be one of: ${t0e.join(", ")}`)}A0e.exports={createHeaderFilters:RCt,hashId:SCt,isUndiciHeaders:r0e,normalizeHeaders:kCt,isUrlExcludedFactory:TCt,validateSnapshotMode:FCt}});var g0e=E((sIr,l0e)=>{"use strict";var{writeFile:xCt,readFile:UCt,mkdir:MCt}=I("node:fs/promises"),{dirname:LCt,resolve:s0e}=I("node:path"),{setTimeout:vCt,clearTimeout:n0e}=I("node:timers"),{InvalidArgumentError:i0e,UndiciError:_Ct}=ut(),{hashId:PCt,isUrlExcludedFactory:OCt,normalizeHeaders:o0e,createHeaderFilters:a0e}=l9();function Mb(t,e,r={}){let A=new URL(t.path,t.origin),s=t._normalizedHeaders||o0e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?A.toString():`${A.origin}${A.pathname}`,headers:c0e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function c0e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{ignore:n,exclude:i,match:o}=e;for(let[a,c]of Object.entries(t)){let u=A?a:a.toLowerCase();i.has(u)||n.has(u)||o.size!==0&&!o.has(u)||(s[u]=c)}return s}function u0e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:A=!1}=r,s={},{exclude:n}=e;for(let[i,o]of Object.entries(t)){let a=A?i:i.toLowerCase();n.has(a)||(s[a]=o)}return s}function Lb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let A=Object.keys(t.headers).sort();for(let s of A){let n=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let i of n.sort())e.push(String(i))}}e.push(t.body);let r=e.join("|");return PCt(r)}var g9=class{#e;#t;#r=new Map;#A;#s=1/0;#n=!1;#o;constructor(e={}){this.#A=e.snapshotPath,this.#s=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.#o=a0e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=OCt(e.excludeUrls),this.#n&&this.#A&&this.#i()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let A=Mb(e,this.#o,this.matchOptions),s=Lb(A),n=o0e(r.headers),i={statusCode:r.statusCode,headers:u0e(n,this.#o,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.#s&&!this.#r.has(s)){let a=this.#r.keys().next().value;this.#r.delete(a)}let o=this.#r.get(s);o&&o.responses?(o.responses.push(i),o.timestamp=new Date().toISOString()):this.#r.set(s,{request:A,responses:[i],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#A&&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=Mb(e,this.#o,this.matchOptions),A=Lb(r),s=this.#r.get(A);if(!s)return;let n=s.callCount||0,i=Math.min(n,s.responses.length-1);return s.callCount=n+1,{...s,response:s.responses[i]}}async loadSnapshots(e){let r=e||this.#A;if(!r)throw new i0e("Snapshot path is required");try{let A=await UCt(s0e(r),"utf8"),s=JSON.parse(A);if(Array.isArray(s)){this.#r.clear();for(let{hash:n,snapshot:i}of s)this.#r.set(n,i)}else this.#r=new Map(Object.entries(s))}catch(A){if(A.code==="ENOENT")this.#r.clear();else throw new _Ct(`Failed to load snapshots from ${r}`,{cause:A})}}async saveSnapshots(e){let r=e||this.#A;if(!r)throw new i0e("Snapshot path is required");let A=s0e(r);await MCt(LCt(A),{recursive:!0});let s=Array.from(this.#r.entries()).map(([n,i])=>({hash:n,snapshot:i}));await xCt(A,JSON.s Line truncated
${e.format(r)}`.trim())}};Zq.exports=p2});var C2=m((iZe,rV)=>{"use strict";var{InvalidArgumentError:HDe}=ae(),{runtimeFeatures:GDe}=Vi();function YDe(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 $q=GDe.has("crypto")?Q("node:crypto"):null,qDe=$q?.hash?t=>$q.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function tV(t){return Array.isArray(t)&&(t.length&1)===0}function VDe(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 JDe(t){let e={};if(!t)return e;if(tV(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 eV=["record","playback","update"];function WDe(t){if(!eV.includes(t))throw new HDe(`Invalid snapshot mode: ${t}. Must be one of: ${eV.join(", ")}`)}rV.exports={createHeaderFilters:YDe,hashId:qDe,isUndiciHeaders:tV,normalizeHeaders:JDe,isUrlExcludedFactory:VDe,validateSnapshotMode:WDe}});var lV=m((oZe,uV)=>{"use strict";var{writeFile:zDe,readFile:KDe,mkdir:XDe}=Q("node:fs/promises"),{dirname:jDe,resolve:sV}=Q("node:path"),{setTimeout:ZDe,clearTimeout:nV}=Q("node:timers"),{InvalidArgumentError:iV,UndiciError:$De}=ae(),{hashId:exe,isUrlExcludedFactory:txe,normalizeHeaders:oV,createHeaderFilters:aV}=C2();function ih(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||oV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:AV(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function AV(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 cV(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 oh(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 exe(r)}var I2=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=aV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=txe(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=ih(e,this.#a,this.matchOptions),n=oh(s),i=oV(r.headers),o={statusCode:r.statusCode,headers:cV(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=ih(e,this.#a,this.matchOptions),s=oh(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 iV("Snapshot path is required");try{let s=await KDe(sV(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 $De(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new iV("Snapshot path is required");let s=sV(r);await XDe(jDe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await zDe(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${Yi} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${as} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -117,9 +117,9 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Yi}_getValuesQuery ON cacheInterceptorV${Yi}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Yi}_deleteByUrlQuery ON cacheInterceptorV${Yi}(deleteAt);
`),this.#A=this.#r.prepare(`
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(`
SELECT
id,
body,
@@ -132,14 +132,14 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${Yi}
FROM cacheInterceptorV${as}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#r.prepare(`
UPDATE cacheInterceptorV${Yi} SET
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${as} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -152,7 +152,7 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${Yi} (
INSERT INTO cacheInterceptorV${as} (
url,
method,
body,
@@ -166,214 +166,63 @@ ${e.format(r)}`.trim())}};$Qe.exports=c9});var l9=E((AIr,A0e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#i=this.#r.prepare(`DELETE FROM cacheInterceptorV${Yi} WHERE url = ?`),this.#a=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Yi}`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${Yi} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${Yi}
`),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}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${Yi}
FROM cacheInterceptorV${as}
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){U9(e);let r=this.#g(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){U9(e);let A=this.#l(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,n=s?.byteLength;if(n&&n>this.#e)return;let i=this.#g(e,!0);i?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,i.id):(this.#u(),this.#n.run(A,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){U9(e),QIt(r);let A=0,s=[],n=this;return new IIt({decodeStrings:!0,write(i,o,a){A+=i.byteLength,A<n.#e?s.push(i):this.destroy(),a()},final(i){n.set(e,{...r,body:s}),i()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#i.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#o.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}`}#g(e,r=!1){let A=this.#l(e),{headers:s,method:n}=e,i=this.#A.all(A,n);if(i.length===0)return;let o=Date.now();for(let a of i){if(o>=a.deleteAt&&!r)return;let c=!0;if(a.vary){let u=JSON.parse(a.vary);for(let l in u)if(!pIt(s[l],u[l])){c=!1;break}}if(c)return a}}};function pIt(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,A)=>r===e[A]):t===e}});var PE=E((DIr,Cpe)=>{"use strict";var{kConstruct:mIt}=Er(),{kEnumerableProperty:gI}=ot(),{iteratorMixin:yIt,isValidHeaderName:Ob,isValidHeaderValue:gpe}=_i(),{webidl:Lt}=Fs(),L9=I("node:assert"),Jk=I("node:util");function lpe(t){return t===10||t===13||t===9||t===32}function dpe(t){let e=0,r=t.length;for(;r>e&&lpe(t.charCodeAt(r-1));)--r;for(;r>e&&lpe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function hpe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let A=e[r];if(A.length!==2)throw Lt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});v9(t,A[0],A[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let A=0;A<r.length;++A)v9(t,r[A],e[r[A]])}else throw Lt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function v9(t,e,r){if(r=dpe(r),Ob(e)){if(!gpe(r))throw Lt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Lt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(fpe(t)==="immutable")throw new TypeError("immutable");return Wk(t).append(e,r,!1)}function bIt(t){let e=Wk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],A=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=A;for(let n=0;n<A.length;++n){let{0:i,1:o}=A[n];if(i==="set-cookie")for(let a=0;a<s.length;++a)r.push([i,s[a]]);else r.push([i,o])}return e.sortedMap=r}function Epe(t,e){return t[0]<e[0]?-1:1}var Vk=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,A){this.sortedMap=null;let s=A?e:e.toLowerCase(),n=this.headersMap.get(s);if(n){let i=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:n.name,value:`${n.value}${i}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,A){this.sortedMap=null;let s=A?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:A}of this.headersMap.values())e[r]=A;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${n}`;break;case"retry":yye(n)&&(r[s]=n);break;case"id":bye(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&yye(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&bye(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}}};wye.exports={EventSourceStream:IJ}});var Uye=E((XIr,xye)=>{"use strict";var{pipeline:Omt}=I("node:stream"),{fetching:Hmt}=Jb(),{makeRequest:Gmt}=hI(),{webidl:In}=Fs(),{EventSourceStream:Ymt}=Dye(),{parseMIMEType:qmt}=Vo(),{createFastMessageEvent:Jmt}=B2(),{isNetworkError:Nye}=Gb(),{kEnumerableProperty:WE}=ot(),{environmentSettingsObject:Rye}=_i(),Sye=!1,Tye=3e3,Xb=0,kye=1,Zb=2,Vmt="anonymous",Wmt="use-credentials",bI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#A=Xb;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),In.util.markAsUncloneable(this);let A="EventSource constructor";In.argumentLengthCheck(arguments,1,A),Sye||(Sye=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=In.converters.USVString(e),r=In.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.node.dispatcher||r.dispatcher,this.#i={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Rye,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=Vmt;r.withCredentials===!0&&(i=Wmt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Rye.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=Gmt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===Zb)return;this.#A=Xb;let e={request:this.#s,dispatcher:this.#o},r=A=>{if(!Nye(A))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Nye(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?qmt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=kye,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new Ymt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(Jmt(a.type,a.options))}});Omt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Hmt(e)}#c(){this.#A!==Zb&&(this.#A=Xb,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#A===Xb&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a())},this.#i.reconnectionTime)?.unref())}close(){In.brandCheck(this,t),this.#A!==Zb&&(this.#A=Zb,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=In.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=In.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=In.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Fye={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Xb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kye,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zb,writable:!1}};Object.defineProperties(bI,Fye);Object.defineProperties(bI.prototype,Fye);Object.defineProperties(bI.prototype,{close:WE,onerror:WE,onmessage:WE,onopen:WE,readyState:WE,url:WE,withCredentials:WE});In.converters.EventSourceInitDict=In.dictionaryConverter([{key:"withCredentials",converter:In.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:In.converters.any},{key:"node",converter:In.dictionaryConverter([{key:"reconnectionTime",converter:In.converters["unsigned long"],defaultValue:()=>Tye},{key:"dispatcher",converter:In.converters.any}]),defaultValue:()=>({})}]);xye.exports={EventSource:bI,defaultReconnectionTime:Tye}});var Oye=E((ZIr,Ee)=>{"use strict";var zmt=Bd(),Lye=Zy(),jmt=ZB(),Kmt=ZBe(),Xmt=rIe(),Zmt=FE(),$mt=h5(),eyt=DIe(),tyt=FIe(),ryt=MIe(),vye=ut(),F2=ot(),{InvalidArgumentError:k2}=vye,wI=fQe(),Ayt=HB(),syt=Z5(),{MockCallHistory:nyt,MockCal Line truncated
`)}close(){this.#r.close()}get(e){G2(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){G2(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){G2(e),HRe(r);let s=0,n=[],i=this;return new _Re({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(!GRe(n[d],u[d])){c=!1;break}}if(c)return A}}};function GRe(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 NA=m((TZe,EJ)=>{"use strict";var{kConstruct:YRe}=Me(),{kEnumerableProperty:Gu}=ce(),{iteratorMixin:qRe,isValidHeaderName:uh,isValidHeaderValue:gJ}=rs(),{webidl:ye}=Yt(),q2=Q("node:assert"),UE=Q("node:util");function dJ(t){return t===10||t===13||t===9||t===32}function hJ(t){let e=0,r=t.length;for(;r>e&&dJ(t.charCodeAt(r-1));)--r;for(;r>e&&dJ(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function fJ(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}.`});V2(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)V2(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 V2(t,e,r){if(r=hJ(r),uh(e)){if(!gJ(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(pJ(t)==="immutable")throw new TypeError("immutable");return PE(t).append(e,r,!1)}function VRe(t){let e=PE(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 mJ(t,e){return t[0]<e[0]?-1:1}var LE=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":wW(i)&&(r[n]=i);break;case"id":NW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&wW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&NW(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}}};SW.exports={EventSourceStream:TD}});var LW=m(($Ze,UW)=>{"use strict";var{pipeline:ALe}=Q("node:stream"),{fetching:cLe}=fh(),{makeRequest:uLe}=qu(),{webidl:hr}=Yt(),{EventSourceStream:lLe}=TW(),{parseMIMEType:dLe}=vs(),{createFastMessageEvent:gLe}=AC(),{isNetworkError:DW}=dh(),{kEnumerableProperty:MA}=ce(),{environmentSettingsObject:xW}=rs(),RW=!1,kW=3e3,Qh=0,FW=1,yh=2,hLe="anonymous",fLe="use-credentials",el=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=Qh;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hr.util.markAsUncloneable(this);let s="EventSource constructor";hr.argumentLengthCheck(arguments,1,s),RW||(RW=!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=xW,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=hLe;r.withCredentials===!0&&(o=fLe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=xW.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=uLe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===yh)return;this.#s=Qh;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!DW(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(DW(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?dLe(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=FW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new lLe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(gLe(A.type,A.options))}});ALe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=cLe(e)}#c(){this.#s!==yh&&(this.#s=Qh,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===Qh&&(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!==yh&&(this.#s=yh,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}},MW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Qh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:FW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:yh,writable:!1}};Object.defineProperties(el,MW);Object.defineProperties(el.prototype,MW);Object.defineProperties(el.prototype,{close:MA,onerror:MA,onmessage:MA,onopen:MA,readyState:MA,url:MA,withCredentials:MA});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:()=>kW},{key:"dispatcher",converter:hr.converters.any}]),defaultValue:()=>({})}]);UW.exports={EventSource:el,defaultReconnectionTime:kW}});var GW=m((e$e,H)=>{"use strict";var mLe=jo(),vW=Bg(),pLe=gA(),ELe=vG(),CLe=GG(),ILe=mA(),BLe=QT(),QLe=ET(),yLe=wY(),bLe=RY(),wLe=MY(),OW=ae(),BC=ce(),{InvalidArgumentError:IC}=OW,tl=fq(),NLe=oA(),SLe=o2(),{MockCallHistory:TLe,MockCallHistoryLog:DLe}=c2(),xLe=E2( Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${n}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return fyt(e,r).catch(A=>{throw Mye?Pye(A,Mye):A&&typeof A=="object"&&Error.captureStackTrace(A,Ee.exports.fetch),A})};Ee.exports.Headers=PE().Headers;Ee.exports.Response=Gb().Response;Ee.exports.Request=hI().Request;Ee.exports.FormData=ek().FormData;var{setGlobalOrigin:Cyt,getGlobalOrigin:Byt}=rq();Ee.exports.setGlobalOrigin=Cyt;Ee.exports.getGlobalOrigin=Byt;var{CacheStorage:Iyt}=Qme(),{kConstruct:Qyt}=Er();Ee.exports.caches=new Iyt(Qyt);var{deleteCookie:pyt,getCookies:myt,getSetCookies:yyt,setCookie:byt,parseCookie:wyt}=xme();Ee.exports.deleteCookie=pyt;Ee.exports.getCookies=myt;Ee.exports.getSetCookies=yyt;Ee.exports.setCookie=byt;Ee.exports.parseCookie=wyt;var{parseMIMEType:Dyt,serializeAMimeType:Nyt}=Vo();Ee.exports.parseMIMEType=Dyt;Ee.exports.serializeAMimeType=Nyt;var{CloseEvent:Ryt,ErrorEvent:Syt,MessageEvent:Tyt}=B2(),{WebSocket:kyt,ping:Fyt}=gye();Ee.exports.WebSocket=kyt;Ee.exports.CloseEvent=Ryt;Ee.exports.ErrorEvent=Syt;Ee.exports.MessageEvent=Tyt;Ee.exports.ping=Fyt;Ee.exports.WebSocketStream=Qye().WebSocketStream;Ee.exports.WebSocketError=hJ().WebSocketError;Ee.exports.request=$b(wI.request);Ee.exports.stream=$b(wI.stream);Ee.exports.pipeline=$b(wI.pipeline);Ee.exports.connect=$b(wI.connect);Ee.exports.upgrade=$b(wI.upgrade);Ee.exports.MockClient=syt;Ee.exports.MockCallHistory=nyt;Ee.exports.MockCallHistoryLog=iyt;Ee.exports.MockPool=ayt;Ee.exports.MockAgent=oyt;Ee.exports.SnapshotAgent=cyt;Ee.exports.mockErrors=uyt;var{EventSource:xyt}=Uye();Ee.exports.EventSource=xyt;function Uyt(){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=Uyt});var ew=E(Nd=>{"use strict";Nd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Nd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Nd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Nd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Nd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Nd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Nd.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 A=t[e];if(++e,A==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Gye=E((tQr,Hye)=>{"use strict";var{asciiLowercase:x2,solelyContainsHTTPTokenCodePoints:Myt,soleyContainsHTTPQuotedStringTokenCodePoints:Lyt}=ew();Hye.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=x2(String(e)),this._map.get(e)}has(e){return e=x2(String(e)),this._map.has(e)}set(e,r){if(e=x2(String(e)),r=String(r),!Myt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Lyt(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=x2(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 Jye=E((rQr,qye)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:vyt,removeTrailingHTTPWhitespace:Yye,isHTTPWhitespaceChar:_yt,solelyContainsHTTPTokenCodePoints:QJ,soleyContainsHTTPQuotedStringTokenCodePoints:Pyt,asciiLowercase:pJ,collectAnHTTPQuotedString:Oyt}=ew();qye.exports=t=>{t=vyt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!QJ(r)||e>=t.length)return null;++e;let A="";for(;e<t.length&&t[e]!==";";)A+=t[e],++e;if(A=Yye(A),A.length===0||!QJ(A))return null;let s={type:pJ(r),subtype:pJ(A),parameters:new Map};for(;e<t.length;){for(++e;_yt(t[e]);)++e;let n="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)n+=t[e],++e;if(n=pJ(n),e<t.length){if(t[e]===";")continue;++e}let i=null;if(t[e]==='"')for([i,e]=Oyt(t,e);e<t.length&&t[e]!==";";)++e;else{for(i="";e<t.length&&t[e]!==";";)i+=t[e],++e;if(i=Yye(i),i==="")continue}n.length>0&&QJ(n)&&Pyt(i)&&!s.parameters.has(n)&&s.parameters.set(n,i)}return s}});var Wye=E((AQr,Vye)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Hyt}=ew();Vye.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,A]of t.parameters)e+=";",e+=r,e+="=",(!Hyt(A)||A.length===0)&&(A=A.replace(/(["\\])/ug,"\\$1"),A=`"${A}"`),e+=A;return e}});var Xye=E((nQr,Kye)=>{"use strict";var Gyt=Gye(),Yyt=Jye(),qyt=Wye(),{asciiLowercase:zye,solelyContainsHTTPTokenCodePoints:jye}=ew();Kye.exports=class{constructor(e){e=String(e);let r=Yyt(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 Gyt(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=zye(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!jye(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=zye(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!jye(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return qyt(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 obe=E(v2=>{"use strict";Object.defineProperty(v2,"__esModule",{value:!0});v2.getProxyUrl=ibt;v2.checkBypass=ibe;function ibt(t){let e=t.protocol==="https:";if(ibe(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 L2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new L2(`http://${r}`)}else return}function ibe(t){if(!t.hostname)return!1;let e=t.hostname;if(obt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let A;t.port?A=Number(t.port):t.protocol==="http:"?A=80:t.protocol==="https:Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function yDt(t,e){let{headersList:r}=e,A=(r.get("referrer-policy",!0)??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(oDt.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function bDt(){return"allowed"}function wDt(){return"success"}function DDt(){return"success"}function NDt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function RDt(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&&B6(t.origin)&&!B6(cw(t))&&(e=null);break;case"same-origin":sF(t,cw(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function LI(t,e){return t}function SDt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:LI(t.domainLookupStartTime,r),domainLookupEndTime:LI(t.domainLookupEndTime,r),connectionStartTime:LI(t.connectionStartTime,r),connectionEndTime:LI(t.connectionEndTime,r),secureConnectionStartTime:LI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function TDt(t){return LI(gDt.now(),t)}function kDt(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 Wwe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function FDt(t){return{referrerPolicy:t.referrerPolicy}}function xDt(t){let e=t.referrerPolicy;XE(e);let r=null;if(t.referrer==="client"){let o=Hwe();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=C6(r),s=C6(r,!0);A.toString().length>4096&&(A=s);let n=sF(t,A),i=aw(A)&&!aw(t.url);switch(e){case"origin":return s??C6(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=cw(t);return sF(A,o)?A:aw(A)&&!aw(o)?"no-referrer":s}default:return i?"no-referrer":s}}function C6(t,e){return XE(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 aw(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function UDt(t,e){if(AF===void 0)return!0;let r=zwe(e);if(r==="no metadata"||r.length===0)return!0;let A=LDt(r),s=vDt(r,A);for(let n of s){let i=n.algo,o=n.hash,a=AF.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),_Dt(a,o))return!0}return!1}var MDt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function zwe(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=MDt.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();Ywe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function LDt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function vDt(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function _Dt(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 PDt(t){}function sF(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ODt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function HDt(t){return t.controller.state==="aborted"}function GDt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function YDt(t){return EDt[t.toLowerCase()]??t}function qDt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return XE(typeof e=="string"),e}var JDt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function jwe(t,e,r=0,A=1){class s{ Line truncated
`);function pNt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function mNt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let A=t.charCodeAt(r);if(!(A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===39||A===45||A===95))return!1}return!0}function yNt(t,e){iF(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let A=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(n.position,n.position+A.length).equals(A))n.position+=A.length;else return"failure";if(n.position===t.length-2&&oF(t,INt,n)||n.position===t.length-4&&oF(t,QNt,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let o=bNt(t,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:u,encoding:l}=o;n.position+=2;let g;{let h=t.indexOf(A.subarray(2),n.position);if(h===-1)return"failure";g=t.subarray(n.position,h-4),n.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;c!==null?(u??="text/plain",pNt(u)||(u=""),d=new CNt([g],c,{type:u})):d=gNt(Buffer.from(g)),iF(oDe(a)),iF(typeof d=="string"&&oDe(d)||hNt(d)),s.push(ENt(a,d,c))}}function bNt(t,e){let r=null,A=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:A,contentType:s,encoding:n};let i=_I(o=>o!==10&&o!==13&&o!==58,t,e);if(i=w6(i,!0,!0,o=>o===9||o===32),!dNt.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,_I(o=>o===32||o===9,t,e),lNt(i)){case"content-disposition":{if(r=A=null,!oF(t,BNt,e)||(e.position+=17,r=uDe(t,e),r===null))return"failure";if(oF(t,cDe,e)){let o=e.position+cDe.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,A=uDe(t,e),A===null))return"failure"}break}case"content-type":{let o=_I(a=>a!==10&&a!==13,t,e);o=w6(o,!1,!0,a=>a===9||a===32),s=aDe(o);break}case"content-transfer-encoding":{let o=_I(a=>a!==10&&a!==13,t,e);o=w6(o,!1,!0,a=>a===9||a===32),n=aDe(o);break}default:_I(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function uDe(t,e){iF(t[e.position-1]===34);let r=_I(A=>A!==10&&A!==13&&A!==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 _I(t,e,r){let A=r.position;for(;A<e.length&&t(e[A]);)++A;return e.subarray(r.position,r.position=A)}function w6(t,e,r,A){let s=0,n=t.length-1;if(e)for(;s<t.length&&A(t[s]);)s++;if(r)for(;n>0&&A(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function oF(t,e,r){if(t.length<e.length)return!1;for(let A=0;A<e.length;A++)if(e[A]!==t[r.position+A])return!1;return!0}lDe.exports={multipartFormDataParser:yNt,validateBoundary:mNt}});var HI=E((jQr,mDe)=>{"use strict";var gw=pt(),{ReadableStreamFrom:wNt,isBlobLike:dDe,isReadableStreamLike:DNt,readableStreamClose:NNt,createDeferredPromise:RNt,fullyReadBody:SNt,extractMimeType:TNt,utf8DecodeBytes:fDe}=zi(),{FormData:hDe}=lw(),{kState:OI}=Rd(),{webidl:kNt}=Us(),{Blob:FNt}=I("node:buffer"),D6=I("node:assert"),{isErrored:CDe,isDisturbed:xNt}=I("node:stream"),{isArrayBuffer:UNt}=I("node:util/types"),{serializeAMimeType:MNt}=Xn(),{multipartFormDataParser:LNt}=gDe(),N6;try{let t=I("node:crypto");N6=e=>t.randomInt(0,e)}catch{N6=t=>Math.floor(Math.random(t))}var aF=new TextEncoder;function vNt(){}var BDe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,IDe;BDe&&(IDe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!xNt(e)&&!CDe(e)&&e.cancel("Response object has been garbage collected").catch(vNt)}));function QDe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:dDe(t)?r=t.stream():r=new ReadableStream({async pull(a){let c=typeof s=="string"?aF.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>NNt(a))},start(){},type:"bytes"}),D6(DNt(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(UNt(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(gw.isFormDataLike(t)){let a=`----formdata-undici-0${`${N6(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=aF.encode(c+`; name="${u(l(Q))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=aF.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=aF.encode(`--${a}--\r
`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i=`multipart/form-data; boundary=${a}`}else if(dDe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gw.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:wNt(t)}if((typeof s=="string"||gw.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new ReadableStream({async start(){a=A(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(!CDe(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:s,length:n},i]}function _Nt(t,e=!1){return t instanceof ReadableStream&&(D6(!gw.isDisturbed(t),"The body has already been consumed."),D6(!t.locked,"The stream is locked.")),QDe(t,e)}function PNt(t,e){let[r,A]=e.stream.tee();return e.stream=r,{stream:A,length:e.length,source:e.source}}function ONt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function HNt(t){return{blob(){return PI(this,r=>{let A=EDe(this);return A===null?A="":A&&(A=MNt(A)),new FNt([r],{type:A})},t)},arrayBuffer(){return PI(this,r=>new Uint8Array(r).buffer,t)},text(){return PI(this,fDe,t)},json(){return PI(this,YNt,t)},formData(){return PI(this,r=>{let A=EDe(this);if(A!==null)switch(A.essence){case"multipart/form-data":{let s=LNt(r,A);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new hDe;return n[OI]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new hDe;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return PI(this,r=>new Uint8Array(r),t)}}}function GNt(t){Object.assign(t.prototype,HNt(t))}async function PI(t,e,r){if(kNt.brandCheck(t,r),pDe(t))throw new TypeError("Body is unusable: Body has already been read");ONt(t[OI]);let A=RNt(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[OI].body==null?(n(Buffer.allocUnsafe(0)),A.promise):(await SNt(t[OI].body,n,s),A.promise)}function pDe(t){let e=t[OI].body;return e!=null&&(e.stream.locked||gw.isDisturbed(e.stream))}function YNt(t){return JSON.parse(fDe(t))}function EDe(t){let e=t[OI].headersList,r=TNt(e);return r==="failure"?null:r}mDe.exports={extractBody:QDe,safelyExtractBody:_Nt,cloneBody:PNt,mixinBody:GNt,streamRegistry:IDe,hasFinalizationRegistry:BDe,bodyUnusable:pDe}});var xDe=E((KQr,FDe)=>{"use strict";var We=I("node:assert"),nt=pt(),{channels:yDe}=RI(),R6=c6(),{RequestContentLengthMismatchError:ZE,ResponseContentLengthMismatchError:qNt,RequestAbortedError:SDe,HeadersTimeoutError:JNt,HeadersOverflowError:VNt,SocketError:hF,InformationalError:GI,BodyTimeoutError:WNt,HTTPParserError:zNt,ResponseExceededMaxSizeError:jNt}=jt(),{kUrl:TDe,kReset:Zn,kClient:F6,kParser:fA,kBlocking:Ew,kRunning:Ks,kPending:KNt,kSize:bDe,kWriting:Td,kQueue:cc,kNoRef:dw,kKeepAliveDefaultTimeout:XNt,kHostHeader:ZNt,kPendingIdx:$Nt,kRunningIdx:Aa,kError:sa,kPipelining:gF,kSocket:YI,kKeepAliveTimeoutValue:EF,kMaxHeadersSize:S6,kKeepAliveMaxTimeout:eRt,kKeepAliveTimeoutThreshold:tRt,kHeadersTimeout:rRt,kBodyTimeout:ARt,kStrictContentLength:x6,kMaxRequests:wDe,kCounter:sRt,kMaxResponseSize:nRt,kOnError:iRt,kResume:Sd,kHTTPContext:kDe}=Wr(),du=Iwe(),oRt=Buffer.alloc(0),cF=Buffer[Symbol.species],uF=nt.addListener,aRt=nt.removeAllListeners,T6;async function cRt(){let t=process.env.JEST_WORKER_ID?g6():void 0,e;try{e=await WebAssembly.compile(mwe())}catch{e=await WebAssembly.compile(t||g6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onStatus(new cF(hu.buffer,n,s))||0},wasm_on_message_begin:r=>(We(rs.ptr===r),rs.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onHeaderField(new cF(hu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onHeaderValue(new cF(hu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(We(rs.ptr===r),rs.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{We(rs.ptr===r);let n=A-Eu+hu.byteOffset;return rs.onBody(new cF(hu.buffer,n,s))||0},wasm_on_message_complete:r=>(We(rs.ptr===r),rs.onMessageComplete()||0)}})}var k6=null,U6=cRt();U6.catch();var rs=null,hu=null,lF=0,Eu=null,uRt=0,hw=1,qI=2|hw,dF=4|hw,M6=8|uRt,L6=class{constructor(e,r,{exports:A}){We(Number.isFinite(e[S6])&&e[S6]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(du.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"?B+=`host: ${s}\r
`:B+=t[ZNt],n?B+=`connection: upgrade\r
upgrade: ${n}\r
`:t[gF]&&!d[Zn]?B+=`connection: keep-alive\r
`:B+=`connection: close\r
`,Array.isArray(c))for(let Q=0;Q<c.length;Q+=2){let C=c[Q+0],p=c[Q+1];if(Array.isArray(p))for(let w=0;w<p.length;w++)B+=`${C}: ${p[w]}\r
`;else B+=`${C}: ${p}\r
`}return yDe.sendHeaders.hasSubscribers&&yDe.sendHeaders.publish({request:e,headers:B,socket:d}),!a||g===0?NDe(h,null,t,e,d,u,B,l):nt.isBuffer(a)?NDe(h,a,t,e,d,u,B,l):nt.isBlobLike(a)?typeof a.stream=="function"?RDe(h,a.stream(),t,e,d,u,B,l):fRt(h,a,t,e,d,u,B,l):nt.isStream(a)?ERt(h,a,t,e,d,u,B,l):nt.isIterable(a)?RDe(h,a,t,e,d,u,B,l):We(!1),!0}function ERt(t,e,r,A,s,n,i,o){We(n!==0||r[Ks]===0,"stream body cannot be pipelined");let a=!1,c=new fF({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){nt.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!a){let h=new SDe;queueMicrotask(()=>d(h))}},d=function(h){if(!a){if(a=!0,We(s.destroyed||s[Td]&&r[Ks]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?nt.destroy(e,h):nt.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function NDe(t,e,r,A,s,n,i,o){try{e?nt.isBuffer(e)&&(We(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(e),s.uncork(),A.onBodySent(e),!o&&A.reset!==!1&&(s[Zn]=!0)):n===0?s.write(`${i}content-length: 0\r
\r
`,"latin1"):(We(n===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),A.onRequestSent(),r[Sd]()}catch(a){t(a)}}async function fRt(t,e,r,A,s,n,i,o){We(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new ZE;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(a),s.uncork(),A.onBodySent(a),A.onRequestSent(),!o&&A.reset!==!1&&(s[Zn]=!0),r[Sd]()}catch(a){t(a)}}async function RDe(t,e,r,A,s,n,i,o){We(n!==0||r[Ks]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{We(a===null),s[sa]?d(s[sa]):a=g});s.on("close",c).on("drain",c);let l=new fF({abort:t,socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[sa])throw s[sa];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var fF=class{constructor({abort:e,socket:r,request:A,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=r,this.request=A,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=e,r[Td]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[sa])throw r[sa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[x6])throw new ZE;process.emitWarning(new ZE)}r.cork(),i===0&&(!o&&A.reset!==!1&&(r[Zn]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[fA].timeout&&r[fA].timeoutType===qI&&r[fA].timeout.refresh&&r[fA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[Td]=!1,e[sa])throw e[sa];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[x6])throw new ZE;process.emitWarning(new ZE)}e[fA].timeout&&e[fA].timeoutType===qI&&e[fA].timeout.refresh&&e[fA].timeout.refresh(),A[Sd]()}}destroy(e){let{socket:r,client:A,abort:s}=this;r[Td]=!1,e&&(We(A[Ks]<=1,"pipeline should only contain this request"),s(e))}};FDe.exports=lRt});var HDe=E((XQr,ODe)=>{"use strict";var na=I("node:assert"),{pipeline:CRt}=I("node:stream"),Rt=pt(),{RequestContentLengthMismatchError:v6,RequestAbortedError:UDe,SocketError:fw,InformationalError:_6}=jt(),{kUrl:CF,kReset:IF,kClient:JI,kRunning:QF,kPending:BRt,kQueue:kd,kPendingIdx:P6,kRunningIdx:uc,kError:gc,kSocket:Bs,kStrictContentLength:IRt,kOnError:O6,kMaxConcurrentStreams:PDe,kHTTP2Session:lc,kResume:Fd,kSize:QRt,kHTTPContext:pRt}=Wr(),ql=Symbol("open streams"),MDe,LDe=!1,BF;try{BF=I("node:http2")}catch{BF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:mRt,HTTP2_HEADER_METHOD:yRt,HTTP2_HEADER_PATH:bRt,HTTP2_HEADER_SCHEME:wRt,HTTP2_HEADER_CONTENT_LENGTH:DRt,HTTP2_HEADER_EXPECT:NRt,HTTP2_HEADER_STATUS:RRt}}=BF;function SRt(t){let e=[];for(let[r,A]of Object.entries(t))if(Array.isArray(A))for(let s of A)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(A));return e}async function TRt(t,e){t[Bs]=e,LDe||(LDe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=BF.connect(t[CF],{createConnection:()=>e,peerMaxConcurrentStreams:t[PDe]});r[ql]=0,r[JI]=t,r[Bs]=e,Rt.addListener(r,"error",FRt),Rt.addListener(r,"frameError",xRt),Rt.addListener(r,"end",URt),Rt.addListener(r,"goaway",MRt),Rt.addListener(r,"close",function(){let{[JI]:s}=this,{[Bs]:n}=s,i=this[Bs][gc]||this[gc]||new fw("closed",Rt.getSocketInfo(n));if(s[lc]=null,s.destroyed){na(s[BRt]===0);let o=s[kd].splice(s[uc]);for(let a=0;a<o.length;a++){let c=o[a];Rt.errorRequest(s,c,i)}}}),r.unref(),t[lc]=r,e[lc]=r,Rt.addListener(e,"error",function(s){na(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gc]=s,this[JI][O6](s)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new fw("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let s=this[gc]||new fw("closed",Rt.getSocketInfo(this));t[Bs]=null,this[lc]!=null&&this[lc].destroy(s),t[P6]=t[uc],na(t[QF]===0),t.emit("disconnect",t[CF],[t],s),t[Fd]()});let A=!1;return e.on("close",()=>{A=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return vRt(t,...s)},resume(){kRt(t)},destroy(s,n){A?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function kRt(t){let e=t[Bs];e?.destroyed===!1&&(t[QRt]===0&&t[PDe]===0?(e.unref(),t[lc].unref()):(e.ref(),t[lc].ref()))}function FRt(t){na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bs][gc]=t,this[JI][O6](t)}function xRt(t,e,r){if(r===0){let A=new _6(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Bs][gc]=A,this[JI][O6](A)}}function URt(){let t=new fw("other side closed",Rt.getSocketInfo(this[Bs]));this.destroy(t),Rt.destroy(this[Bs],t)}function MRt(t){let e=this[gc]||new fw(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[JI];if(r[Bs]=null,r[pRt]=null,this[lc]!=null&&(this[lc].destroy(e),this[lc]=null),Rt.destroy(this[Bs],e),r[uc]<r[kd].length){let A=r[kd][r[uc]];r[kd][r[uc]++]=null,Rt.errorRequest(r,A,e),r[P6]=r[uc]}na(r[QF]===0),r.emit("disconnect",r[CF],[r],e),r[Fd]()}function LRt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function vRt(t,e){let r=t[lc],{method:A,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=e,{body:u}=e;if(i)return Rt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let k=0;k<c.length;k+=2){let J=c[k+0],j=c[k+1];if(Array.isArray(j))for(let H=0;H<j.length;H++)l[J]?l[J]+=`,${j[H]}`:l[J]=j[H];else l[J]=j}let g,{hostname:d,port:h}=t[CF];l[mRt]=n||`${d}${h?`:${h}`:""}`,l[yRt]=A;let B=k=>{e.aborted||e.completed||(k=k||new UDe,Rt.errorRequest(t,e,k),g!=null&&Rt.destroy(g,k),Rt.destroy(u,k),t[kd][t[uc]++]=null,t[Fd]())};try{e.onConnect(B)}catch(k){Rt.errorRequest(t,e,k)}if(e.aborted)return!1;if(A==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[ql],t[kd][t[uc]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[ql],t[kd][t[uc]++]=null}),g.once("close",()=>{r[ql]-=1,r[ql]===0&&r.unref()}),!0;l[bRt]=s,l[wRt]="https";let Q=A==="PUT"||A==="POST"||A==="PATCH";u&&typeof u.read=="function"&&u.read(0);let C=Rt.bodyLength(u);if(Rt.isFormDataLike(u)){MDe??=HI().extractBody;let[k,J]=MDe(u);l["content-type"]=J,u=k.stream,C=k.length}if(C==null&&(C=e.contentLength),(C===0||!Q)&&(C=null),LRt(A)&&C>0&&e.contentLength!=null&&e.contentLength!==C){if(t[IRt])return Rt.errorRequest(t,e,new v6),!1;process.emitWarning(new v6)}C!=null&&(na(u,"no body must not have content length"),l[DRt]=`${C}`),r.ref();let p=A==="GET"||A==="HEAD"||u===null;return o?(l[NRt]="100-continue",g=r.request(l,{endStream:p,signal:a}),g.once("cont Line truncated
`,this[cSt]=a??3e5,this[aSt]=s??3e5,this[uSt]=p??!0,this[lSt]=k,this[q6]=j,this[Ud]=null,this[fSt]=$>-1?$:-1,this[BSt]=be??100,this[UA]=null,this[dc]=[],this[Vl]=0,this[hc]=0,this[Qw]=le=>V6(this,le),this[CSt]=le=>$De(this,le)}get pipelining(){return this[bF]}set pipelining(e){this[bF]=e,this[Qw](!0)}get[yw](){return this[dc].length-this[hc]}get[mw](){return this[hc]-this[Vl]}get[pw](){return this[dc].length-this[Vl]}get[tSt](){return!!this[UA]&&!this[WI]&&!this[UA].destroyed}get[Y6](){return!!(this[UA]?.busy(null)||this[pw]>=(ZDe(this)||1)||this[yw]>0)}[eSt](e){eNe(this),this.once("connect",e)}[ESt](e,r){let A=e.origin||this[Cu].origin,s=new zRt(A,e,r);return this[dc].push(s),this[ef]||($E.bodyLength(s.body)==null&&$E.isIterable(s.body)?(this[ef]=1,queueMicrotask(()=>V6(this))):this[Qw](!0)),this[ef]&&this[Md]!==2&&this[Y6]&&(this[Md]=2),this[Md]<2}async[dSt](){return new Promise(e=>{this[pw]?this[Ud]=e:e(null)})}async[hSt](e){return new Promise(r=>{let A=this[dc].splice(this[hc]);for(let n=0;n<A.length;n++){let i=A[n];$E.errorRequest(this,i,e)}let s=()=>{this[Ud]&&(this[Ud](),this[Ud]=null),r(null)};this[UA]?(this[UA].destroy(e,s),this[UA]=null):queueMicrotask(s),this[Qw]()})}},pSt=yF();function $De(t,e){if(t[mw]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jl(t[hc]===t[Vl]);let r=t[dc].splice(t[Vl]);for(let A=0;A<r.length;A++){let s=r[A];$E.errorRequest(t,s,e)}Jl(t[pw]===0)}}async function eNe(t){Jl(!t[WI]),Jl(!t[UA]);let{host:e,hostname:r,protocol:A,port:s}=t[Cu];if(r[0]==="["){let n=r.indexOf("]");Jl(n!==-1);let i=r.substring(1,n);Jl(XDe.isIP(i)),r=i}t[WI]=!0,VI.beforeConnect.hasSubscribers&&VI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[UA]?.version,servername:t[xd],localAddress:t[Iw]},connector:t[Bw]});try{let n=await new Promise((i,o)=>{t[Bw]({host:e,hostname:r,protocol:A,port:s,servername:t[xd],localAddress:t[Iw]},(a,c)=>{a?o(a):i(c)})});if(t.destroyed){$E.destroy(n.on("error",jDe),new XRt);return}Jl(n);try{t[UA]=n.alpnProtocol==="h2"?await QSt(t,n):await ISt(t,n)}catch(i){throw n.destroy().on("error",jDe),i}t[WI]=!1,n[gSt]=0,n[q6]=t[q6],n[$Rt]=t,n[ASt]=null,VI.connected.hasSubscribers&&VI.connected.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[UA]?.version,servername:t[xd],localAddress:t[Iw]},connector:t[Bw],socket:n}),t.emit("connect",t[Cu],[t])}catch(n){if(t.destroyed)return;if(t[WI]=!1,VI.connectError.hasSubscribers&&VI.connectError.publish({connectParams:{host:e,hostname:r,protocol:A,port:s,version:t[UA]?.version,servername:t[xd],localAddress:t[Iw]},connector:t[Bw],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jl(t[mw]===0);t[yw]>0&&t[dc][t[hc]].servername===t[xd];){let i=t[dc][t[hc]++];$E.errorRequest(t,i,n)}else $De(t,n);t.emit("connectionError",t[Cu],[t],n)}t[Qw]()}function KDe(t){t[Md]=0,t.emit("drain",t[Cu],[t])}function V6(t,e){t[ef]!==2&&(t[ef]=2,mSt(t,e),t[ef]=0,t[Vl]>256&&(t[dc].splice(0,t[Vl]),t[hc]-=t[Vl],t[Vl]=0))}function mSt(t,e){for(;;){if(t.destroyed){Jl(t[yw]===0);return}if(t[Ud]&&!t[pw]){t[Ud](),t[Ud]=null;return}if(t[UA]&&t[UA].resume(),t[Y6])t[Md]=2;else if(t[Md]===2){e?(t[Md]=1,queueMicrotask(()=>KDe(t))):KDe(t);continue}if(t[yw]===0||t[mw]>=(ZDe(t)||1))return;let r=t[dc][t[hc]];if(t[Cu].protocol==="https:"&&t[xd]!==r.servername){if(t[mw]>0)return;t[xd]=r.servername,t[UA]?.destroy(new KRt("servername changed"),()=>{t[UA]=null,V6(t)})}if(t[WI])return;if(!t[UA]){eNe(t);return}if(t[UA].destroyed||t[UA].busy(r))return;!r.aborted&&t[UA].write(r)?t[hc]++:t[dc].splice(t[hc],1)}}tNe.exports=J6});var W6=E((r0r,rNe)=>{"use strict";var wF=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)}};rNe.exports=class{constructor(){this.head=this.tail=new wF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wF),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sNe=E((A0r,ANe)=>{var{kFree:ySt,kConnected:bSt,kPending:wSt,kQueued:DSt,kRunning:NSt,kSize:RSt}=Wr(),tf=Symbol("pool"),z6=class{constructor(e){this[tf]=e}get connected(){return this[tf][bSt]}get free(){return this[tf][ySt]}get pending(){return this[tf][wSt]}get queued(){return this[tf][DSt]}get running(){return this[tf][NSt]}get size(){return this[tf][RSt]}};ANe.exports=z6});var eV=E((s0r,hNe)=>{"use strict";var SSt=FI(),TSt=W6(),{kConnected:j6,kSize:nNe,kRunning:iNe,kPending:oNe,kQueued:bw,kBusy:kSt,kFree:FSt,kUrl:xSt,kClose:USt,kDestroy:MSt,kDispatch:LSt}=Wr(),vSt=sNe(),$n=Symbol("clients"),pn=Symbol("needDrain"),ww=Symbol("queue"),K6=Symbol("closed resolve"),X6=Symbol("onDrain"),aNe=Symbol("onConnect"),cNe=Symbol("onDisconnect"),uNe=Symbol("onC Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};QSe.exports=eW});var YF=E((F0r,wSe)=>{"use strict";var mSe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ckt}=jt(),ukt=KI();bSe()===void 0&&ySe(new ukt);function ySe(t){if(!t||typeof t.dispatch!="function")throw new ckt("Argument agent must implement Agent");Object.defineProperty(globalThis,mSe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function bSe(){return globalThis[mSe]}wSe.exports={setGlobalDispatcher:ySe,getGlobalDispatcher:bSe}});var qF=E((U0r,DSe)=>{"use strict";DSe.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 RSe=E((M0r,NSe)=>{"use strict";var lkt=mF();NSe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:i=e,...o}=s;if(!i)return r(s,n);let a=new lkt(r,i,s,n);return r(o,a)}}});var TSe=E((L0r,SSe)=>{"use strict";var gkt=xF();SSe.exports=t=>e=>function(A,s){return e(A,new gkt({...A,retryOptions:{...t,...A.retryOptions}},{handler:s,dispatch:e}))}});var FSe=E((v0r,kSe)=>{"use strict";var dkt=pt(),{InvalidArgumentError:hkt,RequestAbortedError:Ekt}=jt(),fkt=qF(),tW=class extends fkt{#e=1024*1024;#t=null;#r=!1;#A=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new hkt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#i.bind(this))}#i(e){this.#A=!0,this.#n=e}onHeaders(e,r,A,s){let i=dkt.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new Ekt(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#A?!0:this.#o.onHeaders(e,r,A,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#A?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#A){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Ckt({maxSize:t}={maxSize:1024*1024}){return e=>function(A,s){let{dumpMaxSize:n=t}=A,i=new tW({maxSize:n},s);return e(A,i)}}kSe.exports=Ckt});var MSe=E((_0r,USe)=>{"use strict";var{isIP:Bkt}=I("node:net"),{lookup:Ikt}=I("node:dns"),Qkt=qF(),{InvalidArgumentError:iQ,InformationalError:pkt}=jt(),xSe=Math.pow(2,31)-1,rW=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.#A,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,A){let s=this.#r.get(e.hostname);if(s==null&&this.full){A(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,n,(i,o)=>{if(i||o==null||o.length===0){A(i??new pkt("No DNS entries found"));return}this.setRecords(e,o);let a=this.#r.get(e.hostname),c=this.pick(e,a,n.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",A(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,s,n.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,r,A);return}let o;typeof i.port=="number"?o=`:${i.port}`:e.port!==""?o=`:${e.port}`:o="",A(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#A(e,r,A){Ikt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return A(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);A(null,i.values())})}#s(e,r,A){let s=null,{records:n,offset:i}=r,o;if(this.dualStack?(A==null&&(i==null||i===xSe?(r.offset=0,A=4):(r.offset++,A=(r.offset&1)===1?6:4)),n[A]!=null&&n[A].ips.length>0?o=n[A]:o=n[A===4?6:4]):o=n[A],o==null||o.ips.length===0)return s;o.offset==null||o.offset===xSe?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,r,A)):s}setRecords(e,r){let A=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=A,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#r.set(e.hostname,s)}getHandler(e,r){return new AW(this,e,r)}},AW=class extends Qkt{#e=null;#t=null;#r=null;#A=null;#s=null;constructor(e,{origin:r,handler:A,dispatch:s},n){super(A),this.#s=r,this.#A=A,this.#t={...n},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,A)=>{if(r) Line truncated
${n}`;break;case"retry":hke(n)&&(r[s]=n);break;case"id":Eke(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&hke(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Eke(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}}};fke.exports={EventSourceStream:GW}});var wke=E((Epr,bke)=>{"use strict";var{pipeline:SUt}=I("node:stream"),{fetching:TUt}=_w(),{makeRequest:kUt}=cQ(),{webidl:Xl}=Us(),{EventSourceStream:FUt}=Cke(),{parseMIMEType:xUt}=Xn(),{createFastMessageEvent:UUt}=EQ(),{isNetworkError:Bke}=Lw(),{delay:MUt}=OW(),{kEnumerableProperty:Cf}=pt(),{environmentSettingsObject:Ike}=zi(),Qke=!1,pke=3e3,Kw=0,mke=1,Xw=2,LUt="anonymous",vUt="use-credentials",QQ=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#A=Kw;#s=null;#n=null;#o;#i;constructor(e,r={}){super(),Xl.util.markAsUncloneable(this);let A="EventSource constructor";Xl.argumentLengthCheck(arguments,1,A),Qke||(Qke=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Xl.converters.USVString(e,A,"url"),r=Xl.converters.EventSourceInitDict(r,A,"eventSourceInitDict"),this.#o=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:pke};let s=Ike,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#i.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=n.href;let i=LUt;r.withCredentials&&(i=vUt,this.#r=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Ike.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#s=kUt(o),this.#a()}get readyState(){return this.#A}get url(){return this.#t}get withCredentials(){return this.#r}#a(){if(this.#A===Xw)return;this.#A=Kw;let e={request:this.#s,dispatcher:this.#o},r=A=>{Bke(A)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=A=>{if(Bke(A))if(A.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=A.headersList.get("content-type",!0),n=s!==null?xUt(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(A.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#A=mke,this.dispatchEvent(new Event("open")),this.#i.origin=A.urlList[A.urlList.length-1].origin;let o=new FUt({eventSourceSettings:this.#i,push:a=>{this.dispatchEvent(UUt(a.type,a.options))}});SUt(A.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=TUt(e)}async#c(){this.#A!==Xw&&(this.#A=Kw,this.dispatchEvent(new Event("error")),await MUt(this.#i.reconnectionTime),this.#A===Kw&&(this.#i.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){Xl.brandCheck(this,t),this.#A!==Xw&&(this.#A=Xw,this.#n.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}},yke={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Kw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mke,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xw,writable:!1}};Object.defineProperties(QQ,yke);Object.defineProperties(QQ.prototype,yke);Object.defineProperties(QQ.prototype,{close:Cf,onerror:Cf,onmessage:Cf,onopen:Cf,readyState:Cf,url:Cf,withCredentials:Cf});Xl.converters.EventSourceInitDict=Xl.dictionaryConverter([{key:"withCredentials",converter:Xl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Xl.converters.any}]);bke.exports={EventSource:QQ,defaultReconnectionTime:pke}});var YW=E((fpr,Xe)=>{"use strict";var _Ut=zI(),Dke=rw(),PUt=jI(),OUt=yNe(),HUt=KI(),GUt=dV(),YUt=WNe(),qUt=$Ne(),Nke=jt(),Fx=pt(),{InvalidArgumentError:kx}=Nke,pQ=PRe(),JUt=sw(),VUt=zV(),WUt=pSe(),zUt=XV(),jUt=MV(),KUt=xF(),{getGlobalDispatcher:Rke,setGlobalDispatcher:XUt}=YF(),ZUt=qF(),$Ut=mF(),eMt=yF();Object.assign(Dke.prototype,pQ);Xe.exports.Dispatcher=Dke;Xe.exports.Client=_Ut;Xe.exports.Pool=PUt;Xe.exports.BalancedPool=OUt;Xe.exports.Agent=HUt;Xe.exports.ProxyAgent=GUt;Xe.exports.EnvHttpProxyAgent=YUt;Xe.exports Line truncated
\r
`),t_t=/\r\n/g,r_t=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function NQ(t){aFe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=oFe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=oFe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new $vt(e_t),this.ss.on("info",function(r,A,s,n){A&&!e.maxed&&(e.nread+n-s>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+s,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-s,e.buffer+=A.toString("binary",s,n)),r&&e._finish()})}Zvt(NQ,aFe);NQ.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};NQ.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};NQ.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};NQ.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(t_t),e=t.length,r,A;for(var s=0;s<e;++s){if(t[s].length===0)continue;if((t[s][0]===" "||t[s][0]===" ")&&A){this.header[A][this.header[A].length-1]+=t[s];continue}let n=t[s].indexOf(":");if(n===-1||n===0)return;if(r=r_t.exec(t[s]),A=r[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(r[2]||""),++this.npairs===this.maxHeaderPairs)break}};cFe.exports=NQ});var Jz=E((mmr,gFe)=>{"use strict";var qz=I("node:stream").Writable,A_t=I("node:util").inherits,s_t=Gz(),lFe=nFe(),n_t=uFe(),i_t=45,o_t=Buffer.from("-"),a_t=Buffer.from(`\r
`),c_t=function(){};function Ic(t){if(!(this instanceof Ic))return new Ic(t);if(qz.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new n_t(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}A_t(Ic,qz);Ic.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else qz.prototype.emit.apply(this,arguments)};Ic.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new lFe(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let A=this._hparser.push(t);if(!this._inHeader&&A!==void 0&&A<t.length)t=t.slice(A);else return r()}this._firstWrite&&(this._bparser.push(a_t),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Ic.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Ic.prototype.setBoundary=function(t){let e=this;this._bparser=new s_t(`\r
--`+t),this._bparser.on("info",function(r,A,s,n){e._oninfo(r,A,s,n)})};Ic.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",c_t),this._part.resume())};Ic.prototype._oninfo=function(t,e,r,A){let s,n=this,i=0,o,a=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&r+i<A;)if(e[r+i]===i_t)++i,++this._dashes;else{this._dashes&&(s=o_t),this._dashes=0;break}if(this._dashes===2&&(r+i<A&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(r+i,A)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new lFe(this._partOpts),this._part._read=function(c){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&r<A&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(s&&(a=this._part.push(s)),a=this._part.push(e.slice(r,A)),a||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(s&&this._hparser.push(s),o=this._hparser.push(e.slice(r,A)),!this._inHeader&&o!==void 0&&o<A&&this._oninfo(!1,e,r+o,A))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:r!==A&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Ic.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};gFe.exports=Ic});var jx=E((Vz,EFe)=>{"use strict";var dFe=new TextDecoder("utf-8"),hFe=new Map([["utf-8",dFe],["utf8",dFe]]);function u_t(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return AD.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return AD.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return AD.utf16le;case"base64":return AD.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return AD.other.bind(t)}}var AD={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),hFe.has(Vz.toString()))try{return hFe.get(Vz).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function l_t(t,e,r){return t&&u_t(r)(t,e)}EFe.exports=l_t});var zz=E((ymr,QFe)=>{"use strict";var Kx=jx(),fFe=/%[a-fA-F0-9][a-fA-F0-9]/g,g_t={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
`))}function lPt(t,e){let{headersList:r}=e,A=(r.get("referrer-policy")??"").split(","),s="";if(A.length>0)for(let n=A.length;n!==0;n--){let i=A[n-1].trim();if(X_t.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function gPt(){return"allowed"}function dPt(){return"success"}function hPt(){return"success"}function EPt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function fPt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&r7(t.origin)&&!r7(iD(t))&&(e=null);break;case"same-origin":tU(t,iD(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function CPt(t){return ePt.now()}function BPt(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 IPt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function QPt(t){return{referrerPolicy:t.referrerPolicy}}function pPt(t){let e=t.referrerPolicy;FQ(e);let r=null;if(t.referrer==="client"){let o=$_t();if(!o||o.origin==="null")return"no-referrer";r=new URL(o)}else t.referrer instanceof URL&&(r=t.referrer);let A=e7(r),s=e7(r,!0);A.toString().length>4096&&(A=s);let n=tU(t,A),i=nD(A)&&!nD(t.url);switch(e){case"origin":return s??e7(r,!0);case"unsafe-url":return A;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?A:s;case"strict-origin-when-cross-origin":{let o=iD(t);return tU(A,o)?A:nD(A)&&!nD(o)?"no-referrer":s}default:return i?"no-referrer":s}}function e7(t,e){return FQ(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function nD(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 A=new URL(r);return!!(A.protocol==="https:"||A.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||A.hostname==="localhost"||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"))}}function mPt(t,e){if(eU===void 0)return!0;let r=WFe(e);if(r==="no metadata"||r.length===0)return!0;let A=bPt(r),s=wPt(r,A);for(let n of s){let i=n.algo,o=n.hash,a=eU.createHash(i).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),DPt(a,o))return!0}return!1}var yPt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function WFe(t){let e=[],r=!0;for(let A of t.split(" ")){r=!1;let s=yPt.exec(A);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();YFe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function bPt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let A=t[r];if(A.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;A.algo[3]==="3"&&(e="sha384")}}return e}function wPt(t,e){if(t.length===1)return t;let r=0;for(let A=0;A<t.length;++A)t[A].algo===e&&(t[r++]=t[A]);return t.length=r,t}function DPt(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 NPt(t){}function tU(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function RPt(){let t,e;return{promise:new Promise((A,s)=>{t=A,e=s}),resolve:t,reject:e}}function SPt(t){return t.controller.state==="aborted"}function TPt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var A7={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(A7,null);function kPt(t){return A7[t.toLowerCase()]??t}function FPt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return FQ(typeof e=="string"),e}var xPt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UPt(t,e,r){let A={index:0,kind:r,target:t},s={next(){if(Object.getPrototypeOf(this)!==s)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:i,target:o}=A,a=o(),c=a.length;if(n>=c)return{value:void 0,done:!0};let u=a[n];return A.index=n+1,MPt(u,i)},[Symbol.toStringTag]:`${e} Iterator`};return Object.setPrototypeOf(s,xPt),Object.setPrototypeOf({},s)}function MPt(t,e){let r;switch(e){case"key":{r=t[0];break}case"va Line truncated
`||t===" "||t===" "}function s7(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&exe(t[A]);A++);if(r)for(;s>0&&exe(t[s]);s--);return t.slice(A,s+1)}function txe(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function eOt(t,e=!0,r=!0){let A=0,s=t.length-1;if(e)for(;A<t.length&&txe(t[A]);A++);if(r)for(;s>0&&txe(t[s]);s--);return t.slice(A,s+1)}nxe.exports={dataURLProcessor:KPt,URLSerializer:rxe,collectASequenceOfCodePoints:sU,collectASequenceOfCodePointsFast:xQ,stringPercentDecode:Axe,parseMIMEType:n7,collectAnHTTPQuotedString:sxe,serializeAMimeType:$Pt}});var nU=E((Mmr,uxe)=>{"use strict";var{Blob:axe,File:ixe}=I("buffer"),{types:i7}=I("util"),{kState:ro}=eg(),{isBlobLike:cxe}=da(),{webidl:tr}=yn(),{parseMIMEType:tOt,serializeAMimeType:rOt}=Qc(),{kEnumerableProperty:oxe}=Ht(),AOt=new TextEncoder,oD=class t extends axe{constructor(e,r,A={}){tr.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=tr.converters["sequence<BlobPart>"](e),r=tr.converters.USVString(r),A=tr.converters.FilePropertyBag(A);let s=r,n=A.type,i;e:{if(n){if(n=tOt(n),n==="failure"){n="";break e}n=rOt(n).toLowerCase()}i=A.lastModified}super(sOt(e,A),{type:n}),this[ro]={name:s,lastModified:i,type:n}}get name(){return tr.brandCheck(this,t),this[ro].name}get lastModified(){return tr.brandCheck(this,t),this[ro].lastModified}get type(){return tr.brandCheck(this,t),this[ro].type}},o7=class t{constructor(e,r,A={}){let s=r,n=A.type,i=A.lastModified??Date.now();this[ro]={blobLike:e,name:s,type:n,lastModified:i}}stream(...e){return tr.brandCheck(this,t),this[ro].blobLike.stream(...e)}arrayBuffer(...e){return tr.brandCheck(this,t),this[ro].blobLike.arrayBuffer(...e)}slice(...e){return tr.brandCheck(this,t),this[ro].blobLike.slice(...e)}text(...e){return tr.brandCheck(this,t),this[ro].blobLike.text(...e)}get size(){return tr.brandCheck(this,t),this[ro].blobLike.size}get type(){return tr.brandCheck(this,t),this[ro].blobLike.type}get name(){return tr.brandCheck(this,t),this[ro].name}get lastModified(){return tr.brandCheck(this,t),this[ro].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(oD.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:oxe,lastModified:oxe});tr.converters.Blob=tr.interfaceConverter(axe);tr.converters.BlobPart=function(t,e){if(tr.util.Type(t)==="Object"){if(cxe(t))return tr.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||i7.isAnyArrayBuffer(t))return tr.converters.BufferSource(t,e)}return tr.converters.USVString(t,e)};tr.converters["sequence<BlobPart>"]=tr.sequenceConverter(tr.converters.BlobPart);tr.converters.FilePropertyBag=tr.dictionaryConverter([{key:"lastModified",converter:tr.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:tr.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=tr.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function sOt(t,e){let r=[];for(let A of t)if(typeof A=="string"){let s=A;e.endings==="native"&&(s=nOt(s)),r.push(AOt.encode(s))}else i7.isAnyArrayBuffer(A)||i7.isTypedArray(A)?A.buffer?r.push(new Uint8Array(A.buffer,A.byteOffset,A.byteLength)):r.push(new Uint8Array(A)):cxe(A)&&r.push(A);return r}function nOt(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function iOt(t){return ixe&&t instanceof ixe||t instanceof oD||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}uxe.exports={File:oD,FileLike:o7,isFileLike:iOt}});var oU=E((Lmr,Exe)=>{"use strict";var{isBlobLike:iU,toUSVString:oOt,makeIterator:a7}=da(),{kState:$s}=eg(),{File:hxe,FileLike:lxe,isFileLike:aOt}=nU(),{webidl:ur}=yn(),{Blob:cOt,File:c7}=I("buffer"),gxe=c7??hxe,UQ=class t{constructor(e){if(e!==void 0)throw ur.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[$s]=[]}append(e,r,A=void 0){if(ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!iU(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=ur.converters.USVString(e),r=iU(r)?ur.converters.Blob(r,{strict:!1}):ur.converters.USVString(r),A=arguments.length===3?ur.converters.USVString(A):void 0;let s=dxe(e,r,A);this[$s].push(s)}delete(e){ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=ur.converters.USVString(e),this[$s]=this[$s].filter(r=>r.name!==e)}get(e){ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=ur.converters.USVString(e);let r=this[$s].findIndex(A=>A.name===e);return r===-1?null:this[$s][r].value}getAll(e){return ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=ur.converters.USVString(e),this[$s].filter(r=>r.name===e).map(r=>r.value)}has(e){return ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=ur.converters.USVString(e),this[$s].findIndex(r=>r.name===e)!==-1}set(e,r,A=void 0){if(ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!iU(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=ur.converters.USVString(e),r=iU(r)?ur.converters.Blob(r,{strict:!1}):ur.converters.USVString(r),A=arguments.length===3?oOt(A):void 0;let s=dxe(e,r,A),n=this[$s].findIndex(i=>i.name===e);n!==-1?this[$s]=[...this[$s].slice(0,n),s,...this[$s].slice(n+1).filter(i=>i.name!==e)]:this[$s].push(s)}entries(){return ur.brandCheck(this,t),a7(()=>this[$s].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return ur.brandCheck(this,t),a7(()=>this[$s].map(e=>[e.name,e.value]),"FormData","key")}values(){return ur.brandCheck(this,t),a7(()=>this[$s].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(ur.brandCheck(this,t),ur.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[A,s]of this)e.apply(r,[s,A,this])}};UQ.prototype[Symbol.iterator]=UQ.prototype.entries;Object.defineProperties(UQ.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function dxe(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(aOt(e)||(e=e instanceof cOt?new gxe([e],"blob",{type:e.type}):new lxe(e,"blob",{type:e.type})),r!==void 0){let A={type:e.type,lastModified:e.lastModified};e=c7&&e instanceof c7||e instanceof hxe?new gxe([e],r,A):new lxe(e,r,A)}return{name:t,value:e}}Exe.exports={FormData:UQ}});var aD=E((vmr,bxe)=>{"use strict";var uOt=xFe(),MQ=Ht(),{ReadableStreamFrom:lOt,isBlobLike:fxe,isReadableStreamLike:gOt,readableStreamClose:dOt,createDeferredPromise:hOt,fullyReadBody:EOt}=da(),{FormData:Cxe}=oU(),{kState:rg}=eg(),{webidl:u7}=yn(),{DOMException:Qxe,structuredClone:fOt}=zd(),{Blob:COt,File:BOt}=I("buffer"),{kBodyUsed:IOt}=_r(),l7=I("assert"),{isErrored:QOt}=Ht(),{isUint8Array:pxe,isArrayBuffer:pOt}=I("util/types"),{File:mOt}=nU(),{parseMIMEType:yOt,serializeAMimeType:bOt}=Qc(),g7;try{let t=I("node:crypto");g7=e=>t.randomInt(0,e)}catch{g7=t=>Math.floor(Math.random(t))}var tg=globalThis.ReadableStream,Bxe=BOt??mOt,aU=new TextEncoder,wOt=new TextDecoder;function mxe(t,e=!1){tg||(tg=I("stream/web").ReadableStream);let r=null;t instanceof tg?r=t:fxe(t)?r=t.stream():r=new tg({async pull(a){a.enqueue(typeof s=="string"?aU.encode(s):s),queueMicrotask(()=>dOt(a))},start(){},type:void 0}),l7(gOt(r));let A=null,s=null,n=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(pOt(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(MQ.isFormDataLike(t)){let a=`----formdata-undici-0${`${g7(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
Content-Disposition: form-data`;let u=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=Q=>Q.replace(/\r?\n|\r/g,`\r
`),g=[],d=new Uint8Array([13,10]);n=0;let h=!1;for(let[Q,C]of t)if(typeof C=="string"){let p=aU.encode(c+`; name="${u(l(Q))}"\r
\r
${l(C)}\r
`);g.push(p),n+=p.byteLength}else{let p=aU.encode(`${c}; name="${u(l(Q))}"`+(C.name?`; filename="${u(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);g.push(p,C,d),typeof C.size=="number"?n+=p.byteLength+C.size+d.byteLength:h=!0}let B=aU.encode(`--${a}--`);g.push(B),n+=B.byteLength,h&&(n=null),s=t,A=async function*(){for(let Q of g)Q.stream?yield*Q.stream():yield Q},i="multipart/form-data; boundary="+a}else if(fxe(t))s=t,n=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(MQ.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof tg?t:lOt(t)}if((typeof s=="string"||MQ.isBuffer(s))&&(n=Buffer.byteLength(s)),A!=null){let a;r=new tg({async start(){a=A(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await a.next();return l?queueMicrotask(()=>{c.close()}):QOt(r)||c.enqueue(new Uint8Array(u)),c.desiredSize>0},async cancel(c){await a.return()},type:void 0})}return[{stream:r,source:s,length:n},i]}function DOt(t,e=!1){return tg||(tg=I("stream/web").ReadableStream),t instanceof tg&&(l7(!MQ.isDisturbed(t),"The body has already been consumed."),l7(!t.locked,"The stream is locked.")),mxe(t,e)}function NOt(t){let[e,r]=t.stream.tee(),A=fOt(r,{transfer:[r]}),[,s]=A.tee();return t.stream=e,{stream:s,length:t.length,source:t.source}}async function*Ixe(t){if(t)if(pxe(t))yield t;else{let e=t.stream;if(MQ.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[IOt]=!0,yield*e}}function d7(t){if(t.aborted)throw new Qxe("The operation was aborted.","AbortError")}function ROt(t){return{blob(){return cU(this,r=>{let A=FOt(this);return A==="failure"?A="":A&&(A=bOt(A)),new COt([r],{type:A})},t)},arrayBuffer(){return cU(this,r=>new Uint8Array(r).buffer,t)},text(){return cU(this,yxe,t)},json(){return cU(this,kOt,t)},async formData(){u7.brandCheck(this,t),d7(this[rg]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let A={};for(let[o,a]of this.headers)A[o.toLowerCase()]=a;let s=new Cxe,n;try{n=new uOt({headers:A,preservePath:!0})}catch(o){throw new Qxe(`${o}`,"AbortError")}n.on("field",(o,a)=>{s.append(o,a)}),n.on("file",(o,a,c,u,l)=>{let g=[];if(u==="base64"||u.toLowerCase()==="base64"){let d="";a.on("data",h=>{d+=h.toString().replace(/[\r\n]/gm,"");let B=d.length-d.length%4;g.push(Buffer.from(d.slice(0,B),"base64")),d=d.slice(B)}),a.on("end",()=>{g.push(Buffer.from(d,"base64")),s.append(o,new Bxe(g,c,{type:l}))})}else a.on("data",d=>{g.push(d)}),a.on("end",()=>{s.append(o,new Bxe(g,c,{type:l}))})});let i=new Promise((o,a)=>{n.on("finish",o),n.on("error",c=>a(new TypeError(c)))});if(this.body!==null)for await(let o of Ixe(this[rg].body))n.write(o);return n.end(),await i,s}else if(/application\/x-www-form-urlencoded/.test(r)){let A;try{let n="",i=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of Ixe(this[rg].body)){if(!pxe(o))throw new TypeError("Expected Uint8Array chunk");n+=i.decode(o,{stream:!0})}n+=i.decode(),A=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let s=new Cxe;for(let[n,i]of A)s.append(n,i);return s}else throw await Promise.resolve(),d7(this[rg]),u7.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function SOt(t){Object.assign(t.prototype,ROt(t))}async function cU(t,e,r){if(u7.brandCheck(t,r),d7(t[rg]),TOt(t[rg].body))throw new TypeError("Body is unusable");let A=hOt(),s=i=>A.reject(i),n=i=>{try{A.resolve(e(i))}catch(o){s(o)}};return t[rg].body==null?(n(new Uint8Array),A.promise):(await EOt(t[rg].body,n,s),A.promise)}function TOt(t){return t!=null&&(t.stream.locked||MQ.isDisturbed(t.stream))}function yxe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),wOt.decode(t))}function kOt(t){return JSON.parse(yxe(t))}function FOt(t){let{headersList:e}=t[rg],r=e.get("content-type");return r===null?"failure":yOt(r)}bxe.exports={extractBody:mxe,safelyExtractBody:DOt,cloneBody:NOt,mixinBody:SOt}});var Rxe=E((_mr,Nxe)=>{"use strict";var{InvalidArgumentError:wr,NotSupportedError:xOt}=Ir(),Ag=I("assert"),{kHTTP2BuildRequest:UOt,kHTTP2CopyHeaders:MOt,kHTTP1BuildRequest:LOt}=_r(),Ai=Ht(),wxe=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,Dxe=/[^\t\x20-\x7e\x80-\xff]/,vOt=/[^\u0021-\u00ff]/,pc=Symbol("handler"),zA={},h7;try{let t=I("diagnostics_channel");zA.create=t.channel("undici:request:create"),zA.bodySent=t.channel("undici:request:bodySent"),zA.headers=t.channel("undici:request:headers"),zA.trailers=t.channel("undici:request:trailers"),zA.error=t.channel("undici:request:error")}catch{zA.create={hasSubscribers:!1},zA.bodySent={hasSubscribers:!1},zA.headers={hasSubscribers:!1},zA.trailers={hasSubscribers:!1},zA.error={hasSubscribers:!1}}var E7=class t{constructor(e,{path:r,method:A,body:s,headers:n,query:i,idempotent:o,blocking:a,upgrade:c,headersTimeout:u,bodyTimeout:l,reset:g,throwOnError:d,expectContinue:h},B){if(typeof r!="string")throw new wr("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("httpsLine truncated
`),this.body=Q.stream,this.contentLength=Q.length}else Ai.isBlobLike(s)&&this.contentType==null&&s.type&&(this.contentType=s.type,this.headers+=`content-type: ${s.type}\r
`);Ai.validateHandler(B,A,c),this.servername=Ai.getServerName(this.host),this[pc]=B,zA.create.hasSubscribers&&zA.create.publish({request:this})}onBodySent(e){if(this[pc].onBodySent)try{return this[pc].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(zA.bodySent.hasSubscribers&&zA.bodySent.publish({request:this}),this[pc].onRequestSent)try{return this[pc].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(Ag(!this.aborted),Ag(!this.completed),this.error)e(this.error);else return this.abort=e,this[pc].onConnect(e)}onHeaders(e,r,A,s){Ag(!this.aborted),Ag(!this.completed),zA.headers.hasSubscribers&&zA.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[pc].onHeaders(e,r,A,s)}catch(n){this.abort(n)}}onData(e){Ag(!this.aborted),Ag(!this.completed);try{return this[pc].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,A){return Ag(!this.aborted),Ag(!this.completed),this[pc].onUpgrade(e,r,A)}onComplete(e){this.onFinally(),Ag(!this.aborted),this.completed=!0,zA.trailers.hasSubscribers&&zA.trailers.publish({request:this,trailers:e});try{return this[pc].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),zA.error.hasSubscribers&&zA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[pc].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return cD(this,e,r),this}static[LOt](e,r,A){return new t(e,r,A)}static[UOt](e,r,A){let s=r.headers;r={...r,headers:null};let n=new t(e,r,A);if(n.headers={},Array.isArray(s)){if(s.length%2!==0)throw new wr("headers array must be even");for(let i=0;i<s.length;i+=2)cD(n,s[i],s[i+1],!0)}else if(s&&typeof s=="object"){let i=Object.keys(s);for(let o=0;o<i.length;o++){let a=i[o];cD(n,a,s[a],!0)}}else if(s!=null)throw new wr("headers must be an object or an array");return n}static[MOt](e){let r=e.split(`\r
`),A={};for(let s of r){let[n,i]=s.split(": ");i==null||i.length===0||(A[n]?A[n]+=`,${i}`:A[n]=i)}return A}};function pf(t,e,r){if(e&&typeof e=="object")throw new wr(`invalid ${t} header`);if(e=e!=null?`${e}`:"",Dxe.exec(e)!==null)throw new wr(`invalid ${t} header`);return r?e:`${t}: ${e}\r
`}function cD(t,e,r,A=!1){if(r&&typeof r=="object"&&!Array.isArray(r))throw new wr(`invalid ${e} header`);if(r===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(Dxe.exec(r)!==null)throw new wr(`invalid ${e} header`);t.host=r}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new wr("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,A?t.headers[e]=pf(e,r,A):t.headers+=pf(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new wr("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new wr("invalid connection header");s==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new wr("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new wr("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new xOt("expect header not supported");if(wxe.exec(e)===null)throw new wr("invalid header key");if(Array.isArray(r))for(let s=0;s<r.length;s++)A?t.headers[e]?t.headers[e]+=`,${pf(e,r[s],A)}`:t.headers[e]=pf(e,r[s],A):t.headers+=pf(e,r[s]);else A?t.headers[e]=pf(e,r,A):t.headers+=pf(e,r)}}}Nxe.exports=E7});var uU=E((Pmr,Sxe)=>{"use strict";var _Ot=I("events"),f7=class extends _Ot{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};Sxe.exports=f7});var lD=E((Omr,Txe)=>{"use strict";var POt=uU(),{ClientDestroyedError:C7,ClientClosedError:OOt,InvalidArgumentError:LQ}=Ir(),{kDestroy:HOt,kClose:GOt,kDispatch:B7,kInterceptors:mf}=_r(),vQ=Symbol("destroyed"),uD=Symbol("closed"),sg=Symbol("onDestroyed"),_Q=Symbol("onClosed"),lU=Symbol("Intercepted Dispatch"),I7=class extends POt{constructor(){super(),this[vQ]=!1,this[sg]=null,this[uD]=!1,this[_Q]=[]}get destroyed(){return this[vQ]}get closed(){return this[uD]}get interceptors(){return this[mf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[mf][r]!="function")throw new LQ("interceptor must be an function")}this[mf]=e}close(e){if(e===void 0)return new Promise((A,s)=>{this.close((n,i)=>n?s(n):A(i))});if(typeof e!="function")throw new LQ("invalid callback");if(this[vQ]){queueMicrotask(()=>e(new C7,null));return}if(this[uD]){this[_Q]?this[_Q].push(e):queueMicrotask(()=>e(null,null));return}this[uD]=!0,this[_Q].push(e);let r=()=>{let A=this[_Q];this[_Q]=null;for(let s=0;s<A.length;s++)A[s](null,null)};this[GOt]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,n)=>{this.destroy(e,(i,o)=>i?n(i):s(o))});if(typeof r!="function")throw new LQ("invalid callback");if(this[vQ]){this[sg]?this[sg].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new C7),this[vQ]=!0,this[sg]=this[sg]||[],this[sg].push(r);let A=()=>{let s=this[sg];this[sg]=null;for(let n=0;n<s.length;n++)s[n](null,null)};this[HOt](e).then(()=>{queueMicrotask(A)})}[lU](e,r){if(!this[mf]||this[mf].length===0)return this[lU]=this[B7],this[B7](e,r);let A=this[B7].bind(this);for(let s=this[mf].length-1;s>=0;s--)A=this[mf][s](A);return this[lU]=A,A(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new LQ("handler must be an object");try{if(!e||typeof e!="object")throw new LQ("opts must be an object.");if(this[vQ]||this[sg])throw new C7;if(this[uD])throw new OOt;return this[lU](e,r)}catch(A){if(typeof r.onError!="function")throw new LQ("invalid onError method");return r.onError(A),!1}}};Txe.exports=I7});var gD=E((Ymr,xxe)=>{"use strict";var YOt=I("net"),kxe=I("assert"),Fxe=Ht(),{InvalidArgumentError:qOt,ConnectTimeoutError:JOt}=Ir(),Q7,p7;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?p7=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let A=this._sessionCache.get(r);A!==void 0&&A.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:p7=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:A}=this._sessionCache.keys().next();this._sessionCache.delete(A)}this._sessionCache.set(e,r)}}};function VOt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:A,...s}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new qOt("maxCachedSessions must be a positive integer or zero");let n={path:r,...s},i=new p7(e??100);return A=A??1e4,t=t??!1,function({h Line truncated
`,this[Kxe]=a??3e5,this[jxe]=s??3e5,this[BD]=p??!0,this[mHt]=k,this[ID]=j,this[Kd]=null,this[Zxe]=$>-1?$:-1,this[Nu]="h1",this[so]=null,this[IU]=be?{openStreams:0,maxConcurrentStreams:K??100}:null,this[$xe]=`${this[Ls].hostname}${this[Ls].port?`:${this[Ls].port}`:""}`,this[Pr]=[],this[Or]=0,this[Ao]=0}get pipelining(){return this[Zd]}set pipelining(e){this[Zd]=e,no(this,!0)}get[wf](){return this[Pr].length-this[Ao]}get[cA](){return this[Ao]-this[Or]}get[bf](){return this[Pr].length-this[Or]}get[pHt](){return!!this[BA]&&!this[OQ]&&!this[BA].destroyed}get[S7](){let e=this[BA];return e&&(e[bn]||e[og]||e[GQ])||this[bf]>=(this[Zd]||1)||this[wf]>0}[QHt](e){AUe(this),this.once("connect",e)}[wHt](e,r){let A=e.origin||this[Ls].origin,s=this[Nu]==="h2"?R7[NHt](A,e,r):R7[SHt](A,e,r);return this[Pr].push(s),this[yf]||(Ue.bodyLength(s.body)==null&&Ue.isIterable(s.body)?(this[yf]=1,process.nextTick(no,this)):no(this,!0)),this[yf]&&this[Xd]!==2&&this[S7]&&(this[Xd]=2),this[Xd]<2}async[yHt](){return new Promise(e=>{this[bf]?this[Kd]=e:e(null)})}async[bHt](e){return new Promise(r=>{let A=this[Pr].splice(this[Ao]);for(let n=0;n<A.length;n++){let i=A[n];wn(this,i,e)}let s=()=>{this[Kd]&&(this[Kd](),this[Kd]=null),r()};this[so]!=null&&(Ue.destroy(this[so],e),this[so]=null,this[IU]=null),this[BA]?Ue.destroy(this[BA].on("close",s),e):queueMicrotask(s),no(this)})}};function vHt(t){Ce(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[BA][vs]=t,yU(this[Du],t)}function _Ht(t,e,r){let A=new wu(`HTTP/2: "frameError" received - type ${t}, code ${e}`);r===0&&(this[BA][vs]=A,yU(this[Du],A))}function PHt(){Ue.destroy(this,new HQ("other side closed")),Ue.destroy(this[BA],new HQ("other side closed"))}function OHt(t){let e=this[Du],r=new wu(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[BA]=null,e[so]=null,e.destroyed){Ce(this[wf]===0);let A=e[Pr].splice(e[Or]);for(let s=0;s<A.length;s++){let n=A[s];wn(this,n,r)}}else if(e[cA]>0){let A=e[Pr][e[Or]];e[Pr][e[Or]++]=null,wn(e,A,r)}e[Ao]=e[Or],Ce(e[cA]===0),e.emit("disconnect",e[Ls],[e],r),no(e)}var mu=Mxe(),HHt=hU(),GHt=Buffer.alloc(0);async function YHt(){let t=process.env.JEST_WORKER_ID?w7():void 0,e;try{e=await WebAssembly.compile(Buffer.from(Gxe(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||w7(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,A,s)=>0,wasm_on_status:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onStatus(new EU(yu.buffer,n,s))||0},wasm_on_message_begin:r=>(Ce.strictEqual(As.ptr,r),As.onMessageBegin()||0),wasm_on_header_field:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onHeaderField(new EU(yu.buffer,n,s))||0},wasm_on_header_value:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onHeaderValue(new EU(yu.buffer,n,s))||0},wasm_on_headers_complete:(r,A,s,n)=>(Ce.strictEqual(As.ptr,r),As.onHeadersComplete(A,!!s,!!n)||0),wasm_on_body:(r,A,s)=>{Ce.strictEqual(As.ptr,r);let n=A-bu+yu.byteOffset;return As.onBody(new EU(yu.buffer,n,s))||0},wasm_on_message_complete:r=>(Ce.strictEqual(As.ptr,r),As.onMessageComplete()||0)}})}var N7=null,F7=YHt();F7.catch();var As=null,yu=null,fU=0,bu=null,YQ=1,BU=2,x7=3,U7=class{constructor(e,r,{exports:A}){Ce(Number.isFinite(e[CU])&&e[CU]>0),this.llhttp=A,this.ptr=this.llhttp.llhttp_alloc(mu.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.headersMaxSize=e[CU],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Zxe]}setTimeout(e,r){this.timeoutType=r,e!==this.timeoutValue?(D7.clearTimeout(this.timeout),e?(this.timeout=D7.setTimeout(qHt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ce(this.ptr!=null),Ce(As==null),this.llhttp.llhttp_resume(this.ptr),Ce(this.timeoutType===BU),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||GHt),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ce(this.ptr!=null),Ce(As==null),Ce(!this.paused);let{socket:r,llhttp:A}=this;e.length>fU&&(bu&&A.free(bu),fU=Math.ceil(e.length/4096)*4096,bu=A.malloc(fU)),new Uint8Array(A.memory.buffer,bu,fU).set(e);try{let s;try{yu=e,As=this,s=A.llhttp_execute(this.ptr,bu,e.length)}catch(i){throw i}finally{As=null,yu=null}let n=A.llhttp_get_error_pos(this.ptr)-bu;if(s===mu.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(s===mu.ERROR.PAUSED)this.paused=!0,r.unshift(e.slice(n));else if(s!==mu.ERROR.OK){let i=A.llhttp_get_error_reason(this.ptr),o="";if(i){let a=new Uint8Array(A.memory.buffer,i).indexOf(0);o="Response does not match Line truncated
`;return typeof n=="string"?h+=`host: ${n}\r
`:h+=t[Vxe],i?h+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Zd]&&!d[bn]?h+=`connection: keep-alive\r
`:h+=`connection: close\r
`,o&&(h+=o),en.sendHeaders.hasSubscribers&&en.sendHeaders.publish({request:e,headers:h,socket:d}),!r||l===0?(g===0?d.write(`${h}content-length: 0\r
\r
`,"latin1"):(Ce(g===null,"no body must not have content length"),d.write(`${h}\r
`,"latin1")),e.onRequestSent()):Ue.isBuffer(r)?(Ce(g===r.byteLength,"buffer body must have content length"),d.cork(),d.write(`${h}content-length: ${g}\r
\r
`,"latin1"),d.write(r),d.uncork(),e.onBodySent(r),e.onRequestSent(),u||(d[bn]=!0)):Ue.isBlobLike(r)?typeof r.stream=="function"?pU({body:r.stream(),client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):iUe({body:r,client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):Ue.isStream(r)?nUe({body:r,client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):Ue.isIterable(r)?pU({body:r,client:t,request:e,socket:d,contentLength:g,header:h,expectsPayload:u}):Ce(!1),!0}function WHt(t,e,r){let{body:A,method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=r,l;if(typeof u=="string"?l=R7[RHt](u.trim()):l=u,o)return wn(t,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect(p=>{r.aborted||r.completed||wn(t,r,p||new L7)})}catch(p){wn(t,r,p)}if(r.aborted)return!1;let g,d=t[IU];if(l[THt]=i||t[$xe],l[kHt]=s,s==="CONNECT")return e.ref(),g=e.request(l,{endStream:!1,signal:c}),g.id&&!g.pending?(r.onUpgrade(null,null,g),++d.openStreams):g.once("ready",()=>{r.onUpgrade(null,null,g),++d.openStreams}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),!0;l[FHt]=n,l[xHt]="https";let h=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let B=Ue.bodyLength(A);if(B==null&&(B=r.contentLength),(B===0||!h)&&(B=null),sUe(s)&&B>0&&r.contentLength!=null&&r.contentLength!==B){if(t[BD])return wn(t,r,new ig),!1;process.emitWarning(new ig)}B!=null&&(Ce(A,"no body must not have content length"),l[UHt]=`${B}`),e.ref();let Q=s==="GET"||s==="HEAD";return a?(l[MHt]="100-continue",g=e.request(l,{endStream:Q,signal:c}),g.once("continue",C)):(g=e.request(l,{endStream:Q,signal:c}),C()),++d.openStreams,g.once("response",p=>{let{[LHt]:w,...k}=p;r.onHeaders(Number(w),k,g.resume.bind(g),"")===!1&&g.pause()}),g.once("end",()=>{r.onComplete([])}),g.on("data",p=>{r.onData(p)===!1&&g.pause()}),g.once("close",()=>{d.openStreams-=1,d.openStreams===0&&e.unref()}),g.once("error",function(p){t[so]&&!t[so].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,Ue.destroy(g,p))}),g.once("frameError",(p,w)=>{let k=new wu(`HTTP/2: "frameError" received - type ${p}, code ${w}`);wn(t,r,k),t[so]&&!t[so].destroyed&&!this.closed&&!this.destroyed&&(d.streams-=1,Ue.destroy(g,k))}),!0;function C(){A?Ue.isBuffer(A)?(Ce(B===A.byteLength,"buffer body must have content length"),g.cork(),g.write(A),g.uncork(),g.end(),r.onBodySent(A),r.onRequestSent()):Ue.isBlobLike(A)?typeof A.stream=="function"?pU({client:t,request:r,contentLength:B,h2stream:g,expectsPayload:h,body:A.stream(),socket:t[BA],header:""}):iUe({body:A,client:t,request:r,contentLength:B,expectsPayload:h,h2stream:g,header:"",socket:t[BA]}):Ue.isStream(A)?nUe({body:A,client:t,request:r,contentLength:B,expectsPayload:h,socket:t[BA],h2stream:g,header:""}):Ue.isIterable(A)?pU({body:A,client:t,request:r,contentLength:B,expectsPayload:h,header:"",h2stream:g,socket:t[BA]}):Ce(!1):r.onRequestSent()}}function nUe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){if(Ce(n!==0||r[cA]===0,"stream body cannot be pipelined"),r[Nu]==="h2"){let B=function(Q){A.onBodySent(Q)},h=uHt(e,t,Q=>{Q?(Ue.destroy(e,Q),Ue.destroy(t,Q)):A.onRequestSent()});h.on("data",B),h.once("end",()=>{h.removeListener("data",B),Ue.destroy(h)});return}let a=!1,c=new mU({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i}),u=function(h){if(!a)try{!c.write(h)&&this.pause&&this.pause()}catch(B){Ue.destroy(this,B)}},l=function(){a||e.resume&&e.resume()},g=function(){if(a)return;let h=new L7;queueMicrotask(()=>d(h))},d=function(h){if(!a){if(a=!0,Ce(s.destroyed||s[og]&&r[cA]<=1),s.off("drain",l).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("error",d).removeListener("close",g),!h)try{c.end()}catch(B){h=B}c.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Ue.destroy(e,h):Ue.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",g),e.resume&&e.resume(),s.on("drain",l).on("error",d)}async function iUe({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Ce(n===e.size,"blob body must have content length");let a=r[Nu]==="h2";try{if(n!=null&&n!==e.size)throw new ig;let c=Buffer.from(await e.arrayBuffer());a?(t.cork(),t.write(c),t.uncork()):(s.cork(),s.write(`${i}content-length: ${n}\r
\r
`,"latin1"),s.write(c),s.uncork()),A.onBodySent(c),A.onRequestSent(),o||(s[bn]=!0),no(r)}catch(c){Ue.destroy(a?t:s,c)}}async function pU({h2stream:t,body:e,client:r,request:A,socket:s,contentLength:n,header:i,expectsPayload:o}){Ce(n!==0||r[cA]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let u=()=>new Promise((g,d)=>{Ce(a===null),s[vs]?d(s[vs]):a=g});if(r[Nu]==="h2"){t.on("close",c).on("drain",c);try{for await(let g of e){if(s[vs])throw s[vs];let d=t.write(g);A.onBodySent(g),d||await u()}}catch(g){t.destroy(g)}finally{A.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}s.on("close",c).on("drain",c);let l=new mU({socket:s,request:A,contentLength:n,client:r,expectsPayload:o,header:i});try{for await(let g of e){if(s[vs])throw s[vs];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{s.off("close",c).off("drain",c)}}var mU=class{constructor({socket:e,request:r,contentLength:A,client:s,expectsPayload:n,header:i}){this.socket=e,this.request=r,this.contentLength=A,this.client=s,this.bytesWritten=0,this.expectsPayload=n,this.header=i,e[og]=!0}write(e){let{socket:r,request:A,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(r[vs])throw r[vs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&i+c>s){if(n[BD])throw new ig;process.emitWarning(new ig)}r.cork(),i===0&&(o||(r[bn]=!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
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),A.onBodySent(e),u||r[CA].timeout&&r[CA].timeoutType===YQ&&r[CA].timeout.refresh&&r[CA].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:A,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),e[og]=!1,e[vs])throw e[vs];if(!e.destroyed){if(s===0?n?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(A[BD])throw new ig;process.emitWarning(new ig)}e[CA].timeout&&e[CA].timeoutType===YQ&&e[CA].timeout.refresh&&e[CA].timeout.refresh(),no(A)}}destroy(e){let{socket:r,client:A}=this;r[og]=!1,e&&(Ce(A[cA]<=1,"pipeline should only contain this request"),Ue.destroy(r,e))}};function wn(t,e,r){try{e.onError(r),Ce(e.aborted)}catch(A){t.emit("error",A)}}oUe.exports=k7});var cUe=E((Zmr,aUe)=>{"use strict";var bU=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)}};aUe.exports=class{constructor(){this.head=this.tail=new bU}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bU),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var lUe=E(($mr,uUe)=>{var{kFree:zHt,kConnected:jHt,kPending:KHt,kQueued:XHt,kRunning:ZHt,kSize:$Ht}=_r(),Df=Symbol("pool"),v7=class{constructor(e){this[Df]=e}get connected(){return this[Df][jHt]}get free(){return this[Df][zHt]}get pending(){return this[Df][KHt]}get queued(){return this[Df][XHt]}get running(){return this[Df][ZHt]}get size(){return this[Df][$Ht]}};uUe.exports=v7});var Y7=E((eyr,pUe)=>{"use strict";var eGt=lD(),tGt=cUe(),{kConnected:_7,kSize:gUe,kRunning:dUe,kPending:hUe,kQueued:pD,kBusy:rGt,kFree:AGt,kUrl:sGt,kClose:nGt,kDestroy:iGt,kDispatch:oGt}=_r(),aGt=lUe(),si=Symbol("clients"),Dn=Symbol("needDrain"),mD=Symbol("queue"),P7=Symbol("closed resolve"),O7=Symbol("onDrain"),EUe=Symbol("onConnect"),fUe=Symbol("onDisconnect"),CUe=Symbol("onConnectionError"),H7=Symbol("get dispatcher"),IUe=Symbol("add client"),QUe=Symbol("remove client"),BUe=Symbol("stats"),G7=class extends eGt{constructor(){super(),this[mD]=new tGt,this[si]=[],this[pD]=0;let e=this;this[O7]=function(A,s){let n=e[mD],i=!1;for(;!i;){let o=n.shift();if(!o)break;e[pD]--,i=!this.dispatch(o.opts,o.handler)}this[Dn]=i,!this[Dn]&&e[Dn]&&(e[Dn]=!1,e.emit("drain",A,[e,...s])),e[P7]&&n.isEmpty()&&Promise.all(e[si].map(o=>o.close())).then(e[P7])},this[EUe]=(r,A)=>{e.emit("connect",r,[e,...A])},this[fUe]=(r,A,s)=>{e.emit("disconnect",r,[e,...A],s)},this[CUe]=(r,A,s)=>{e.emit("connectionError",r,[e,...A],s)},this[BUe]=new aGt(this)}get[rGt](){return this[Dn]}get[_7](){return this[si].filter(e=>e[_7]).length}get[AGt](){return this[si].filter(e=>e[_7]&&!e[Dn]).length}get[hUe](){let e=this[pD];for(let{[hUe]:r}of this[si])e+=r;return e}get[dUe](){let e=0;for(let{[dUe]:r}of this[si])e+=r;return e}get[gUe](){let e=this[pD];for(let{[gUe]:r}of this[si])e+=r;return e}get stats(){return this[BUe]}async[nGt](){return this[mD].isEmpty()?Promise.all(this[si].map(e=>e.close())):new Promise(e=>{this[P7]=e})}async[iGt](e){for(;;){let r=this[mD].shift();if(!r)break;r.handler.onError(e)}return Promise.all(this[si].map(r=>r.destroy(e)))}[oGt](e,r){let A=this[H7]();return A?A.dispatch(e,r)||(A[Dn]=!0,this[Dn]=!this[H7]()):(this[Dn]=!0,this[mD].push({opts:e,handler:r}),this[pD]++),!this[Dn]}[IUe](e){return e.on("drain",this[O7]).on("connect",this[EUe]).on("disconnect",this[fUe]).on("connectionError",this[CUe]),this[si].push(e),this[Dn]&&process.nextTick(()=>{this[Dn]&&this[O7](e[sGt],[this,e])}),this}[QUe](e){e.close(()=>{let r=this[si].indexOf(e);r!==-1&&this[si].splice(r,1)}),this[Dn]=this[si].some(r=>!r[Dn]&&r.closed!==!0&&r.destroyed!==!0)}};pUe.exports={PoolBase:G7,kClients:si,kNeedDrain:Dn,kAddClient:IUe,kRemoveClient:QUe,kGetDispatcher:H7}});var qQ=E((tyr,bUe)=>{"use strict";var{PoolBase:cGt,kClients:wU,kNeedDrain:uGt,kAddClient:lGt,kGetDispatcher:gGt}=Y7(),dGt=QD(),{InvalidArgumentError:q7}=Ir(),J7=Ht(),{kUrl:mUe,kInterceptors:hGt}=_r(),EGt=gD(),V7=Symbol("options"),W7=Symbol("connections"),yUe=Symbol("factory");function fGt(t,e){return new dGt(t,e)}var z7=class extends cGt{constructor(e,{connections:r,factory:A=fGt,connect:s,connectTimeout:n,tls:i,maxCachedSessions:o,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u,allowH2:l,...g}={}){if(super(),r!=null&&(!Number.isFinite(r)||r<0))throw new q7("invalid connections");if(typeof A!="function")throw new q7("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new q7("connect must be a function or an object");typeof s!="function"&&(s=EGt({...i,maxCachedSessions:o,allowH2:l,socketPath:a,timeout:n,...J7.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:u}:void 0,...s})),this[hGt]=g.interceptors&&g.interceptors.Pool&&Array.isArray(g.interceptors.Pool)?g.interceptors.Pool:[],this[W7]=r||null,this[mUe]=J7.parseOrigin(e),this[V7]={...J7.deepClone(g),connect:s,allowH2:l},this[V7].interceptors=g.interceptors?{...g.interceptors}:void 0,this[yUe]=A,this.on("connectionError",(d,h,B)=>{for(let Q of Line truncated
${A.count} ${A.noun} ${A.is} pending:
${e.format(r)}
`.trim())}};rLe.exports=Fj});var cLe=E((Dyr,aLe)=>{"use strict";var{kProxy:C3t,kClose:B3t,kDestroy:I3t,kInterceptors:Q3t}=_r(),{URL:sLe}=I("url"),nLe=bD(),p3t=qQ(),m3t=lD(),{InvalidArgumentError:SD,RequestAbortedError:y3t}=Ir(),iLe=gD(),ND=Symbol("proxy agent"),VU=Symbol("proxy client"),RD=Symbol("proxy headers"),xj=Symbol("request tls settings"),b3t=Symbol("proxy tls settings"),oLe=Symbol("connect endpoint function");function w3t(t){return t==="https:"?443:80}function D3t(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new SD("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function N3t(t,e){return new p3t(t,e)}var Uj=class extends m3t{constructor(e){if(super(e),this[C3t]=D3t(e),this[ND]=new nLe(e),this[Q3t]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new SD("Proxy opts.uri is mandatory");let{clientFactory:r=N3t}=e;if(typeof r!="function")throw new SD("Proxy opts.clientFactory must be a function.");this[xj]=e.requestTls,this[b3t]=e.proxyTls,this[RD]=e.headers||{};let A=new sLe(e.uri),{origin:s,port:n,host:i,username:o,password:a}=A;if(e.auth&&e.token)throw new SD("opts.auth cannot be used in combination with opts.token");e.auth?this[RD]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[RD]["proxy-authorization"]=e.token:o&&a&&(this[RD]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(a)}`).toString("base64")}`);let c=iLe({...e.proxyTls});this[oLe]=iLe({...e.requestTls}),this[VU]=r(A,{connect:c}),this[ND]=new nLe({...e,connect:async(u,l)=>{let g=u.host;u.port||(g+=`:${w3t(u.protocol)}`);try{let{socket:d,statusCode:h}=await this[VU].connect({origin:s,port:n,path:g,signal:u.signal,headers:{...this[RD],host:i}});if(h!==200&&(d.on("error",()=>{}).destroy(),l(new y3t(`Proxy response (${h}) !== 200 when HTTP Tunneling`))),u.protocol!=="https:"){l(null,d);return}let B;this[xj]?B=this[xj].servername:B=u.servername,this[oLe]({...u,servername:B,httpSocket:d},l)}catch(d){l(d)}}})}dispatch(e,r){let{host:A}=new sLe(e.origin),s=R3t(e.headers);return S3t(s),this[ND].dispatch({...e,headers:{...s,host:A}},r)}async[B3t](){await this[ND].close(),await this[VU].close()}async[I3t](){await this[ND].destroy(),await this[VU].destroy()}};function R3t(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}function S3t(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new SD("Proxy-Authorization should be sent in ProxyAgent constructor")}aLe.exports=Uj});var hLe=E((Nyr,dLe)=>{var Ff=I("assert"),{kRetryHandlerDefaultRetry:uLe}=_r(),{RequestRetryError:WU}=Ir(),{isDisturbed:lLe,parseHeaders:T3t,parseRangeHeader:gLe}=Ht();function k3t(t){let e=Date.now();return new Date(t).getTime()-e}var Mj=class t{constructor(e,r){let{retryOptions:A,...s}=e,{retry:n,maxRetries:i,maxTimeout:o,minTimeout:a,timeoutFactor:c,methods:u,errorCodes:l,retryAfter:g,statusCodes:d}=A??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=s,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[uLe],retryAfter:g??!0,maxTimeout:o??30*1e3,timeout:a??500,timeoutFactor:c??2,maxRetries:i??5,methods:u??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:d??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,A){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,A)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[uLe](e,{state:r,opts:A},s){let{statusCode:n,code:i,headers:o}=e,{method:a,retryOptions:c}=A,{maxRetries:u,timeout:l,maxTimeout:g,timeoutFactor:d,statusCodes:h,errorCodes:B,methods:Q}=c,{counter:C,currentTimeout:p}=r;if(p=p!=null&&p>0?p:l,i&&i!=="UND_ERR_REQ_RETRY"&&i!=="UND_ERR_SOCKET"&&!B.includes(i)){s(e);return}if(Array.isArray(Q)&&!Q.includes(a)){s(e);return}if(n!=null&&Array.isArray(h)&&!h.includes(n)){s(e);return}if(C>u){s(e);return}let w=o!=null&&o["retry-after"];w&&(w=Number(w),w=isNaN(w)?k3t(w):w*1e3);let k=w>0?Math.min(w,g):Math.min(p*d**C,g);r.currentTimeout=k,setTimeout(()=>s(null),k)}onHeaders(e,r,A,s){let n=T3t(r);if(this.retryCount+=1,e>=300)return this.abort(new WU("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=gLe(n["content-range"]);if(!o)return this.abort(new WU("Content-Range mismatch",e,{headers:n,count:this.retryCount})),!1;if(this.etag!=null&&this.etag!==n.etag)return this.abort(new WU("ETag mismatch",e,{headers:n,count:this.retryCount})),!1;let{start:a,size:c,end:u=c}=o Line truncated
Error Code : ${i.statusCode}
Error Message: ${i.message}`)})).result)===null||r===void 0?void 0:r.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return y_e(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}(0,b_e.debug)(`ID token url is ${r}`);let A=yield t.getCall(r);return(0,b_e.setSecret)(A),A}catch(r){throw new Error(`Error message: ${r.message}`)}})}};E0.OidcClient=bK});var RK=E(ci=>{"use strict";var wK=ci&&ci.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(ci,"__esModule",{value:!0});ci.summary=ci.markdownSummary=ci.SUMMARY_DOCS_URL=ci.SUMMARY_ENV_VAR=void 0;var p5t=I("os"),DK=I("fs"),{access:m5t,appendFile:y5t,writeFile:b5t}=DK.promises;ci.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";ci.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var NK=class{constructor(){this._buffer=""}filePath(){return wK(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ci.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${ci.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield m5t(e,DK.constants.R_OK|DK.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,A={}){let s=Object.entries(A).map(([n,i])=>` ${n}="${i}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return wK(this,void 0,void 0,function*(){let r=!!e?.overwrite,A=yield this.filePath();return yield(r?b5t:y5t)(A,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return wK(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(p5t.EOL)}addCodeBlock(e,r){let A=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,r=!1){let A=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),n=this.wrap(A,s);return this.addRaw(n).addEOL()}addTable(e){let r=e.map(s=>{let n=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:o,data:a,colspan:c,rowspan:u}=i,l=o?"th":"td",g=Object.assign(Object.assign({},c&&{colspan:c}),u&&{rowspan:u});return this.wrap(l,a,g)}).join("");return this.wrap("tr",n)}).join(""),A=this.wrap("table",r);return this.addRaw(A).addEOL()}addDetails(e,r){let A=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(A).addEOL()}addImage(e,r,A){let{width:s,height:n}=A||{},i=Object.assign(Object.assign({},s&&{width:s}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:r},i));return this.addRaw(o).addEOL()}addHeading(e,r){let A=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1",n=this.wrap(s,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let A=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,r){let A=this.wrap("a",e,{href:r});return this.addRaw(A).addEOL()}},D_e=new NK;ci.markdownSummary=D_e;ci.summary=D_e});var N_e=E(ui=>{"use strict";var w5t=ui&&ui.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),D5t=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),N5t=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)&&w5t(e,t,r);return D5t(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.toPlatformPath=ui.toWin32Path=ui.toPosixPath=void 0;var R5t=N5t(I("path"));function S5t(t){return t.replace(/[\\]/g,"/")}ui.toPosixPath=S5t;function T5t(t){return t.replace(/[/]/g,"\\")}ui.toWin32Path=T5t;function k5t(t){return t.replace(/[/\\]/g,R5t.sep)}ui.toPlatformPath=k5t});var TK=E(pe=>{"use strict";var F5t=pe&&pe.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),xLine truncated
`);return{name:e,version:r}});Gt.platform=J_e.default.platform();Gt.arch=J_e.default.arch();Gt.isWindows=Gt.platform==="win32";Gt.isMacOS=Gt.platform==="darwin";Gt.isLinux=Gt.platform==="linux";function u9t(){return YM(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield Gt.isWindows?o9t():Gt.isMacOS?a9t():c9t()),{platform:Gt.platform,arch:Gt.arch,isWindows:Gt.isWindows,isMacOS:Gt.isMacOS,isLinux:Gt.isLinux})})}Gt.getDetails=u9t});var go=E(Be=>{"use strict";var l9t=Be&&Be.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),g9t=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MK=Be&&Be.__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)&&l9t(e,t,r);return g9t(e,t),e},W_e=Be&&Be.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Be,"__esModule",{value:!0});Be.platform=Be.toPlatformPath=Be.toWin32Path=Be.toPosixPath=Be.markdownSummary=Be.summary=Be.getIDToken=Be.getState=Be.saveState=Be.group=Be.endGroup=Be.startGroup=Be.info=Be.notice=Be.warning=Be.error=Be.debug=Be.isDebug=Be.setFailed=Be.setCommandEcho=Be.setOutput=Be.getBooleanInput=Be.getMultilineInput=Be.getInput=Be.addPath=Be.setSecret=Be.exportVariable=Be.ExitCode=void 0;var Qa=F2e(),Of=M2e(),C0=Gx(),z_e=MK(I("os")),d9t=MK(I("path")),h9t=w_e(),UK;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(UK||(Be.ExitCode=UK={}));function E9t(t,e){let r=(0,C0.toCommandValue)(e);if(process.env[t]=r,process.env.GITHUB_ENV||"")return(0,Of.issueFileCommand)("ENV",(0,Of.prepareKeyValueMessage)(t,e));(0,Qa.issueCommand)("set-env",{name:t},r)}Be.exportVariable=E9t;function f9t(t){(0,Qa.issueCommand)("add-mask",{},t)}Be.setSecret=f9t;function C9t(t){process.env.GITHUB_PATH||""?(0,Of.issueFileCommand)("PATH",t):(0,Qa.issueCommand)("add-path",{},t),process.env.PATH=`${t}${d9t.delimiter}${process.env.PATH}`}Be.addPath=C9t;function LK(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}Be.getInput=LK;function B9t(t,e){let r=LK(t,e).split(`
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}Be.getMultilineInput=B9t;function I9t(t,e){let r=["true","True","TRUE"],A=["false","False","FALSE"],s=LK(t,e);if(r.includes(s))return!0;if(A.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Be.getBooleanInput=I9t;function Q9t(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,Of.issueFileCommand)("OUTPUT",(0,Of.prepareKeyValueMessage)(t,e));process.stdout.write(z_e.EOL),(0,Qa.issueCommand)("set-output",{name:t},(0,C0.toCommandValue)(e))}Be.setOutput=Q9t;function p9t(t){(0,Qa.issue)("echo",t?"on":"off")}Be.setCommandEcho=p9t;function m9t(t){process.exitCode=UK.Failure,j_e(t)}Be.setFailed=m9t;function y9t(){return process.env.RUNNER_DEBUG==="1"}Be.isDebug=y9t;function b9t(t){(0,Qa.issueCommand)("debug",{},t)}Be.debug=b9t;function j_e(t,e={}){(0,Qa.issueCommand)("error",(0,C0.toCommandProperties)(e),t instanceof Error?t.toString():t)}Be.error=j_e;function w9t(t,e={}){(0,Qa.issueCommand)("warning",(0,C0.toCommandProperties)(e),t instanceof Error?t.toString():t)}Be.warning=w9t;function D9t(t,e={}){(0,Qa.issueCommand)("notice",(0,C0.toCommandProperties)(e),t instanceof Error?t.toString():t)}Be.notice=D9t;function N9t(t){process.stdout.write(t+z_e.EOL)}Be.info=N9t;function K_e(t){(0,Qa.issue)("group",t)}Be.startGroup=K_e;function X_e(){(0,Qa.issue)("endgroup")}Be.endGroup=X_e;function R9t(t,e){return W_e(this,void 0,void 0,function*(){K_e(t);let r;try{r=yield e()}finally{X_e()}return r})}Be.group=R9t;function S9t(t,e){if(process.env.GITHUB_STATE||"")return(0,Of.issueFileCommand)("STATE",(0,Of.prepareKeyValueMessage)(t,e));(0,Qa.issueCommand)("save-state",{name:t},(0,C0.toCommandValue)(e))}Be.saveState=S9t;function T9t(t){return process.env[`STATE_${t}`]||""}Be.getState=T9t;function k9t(t){return W_e(this,void 0,void 0,function*(){return yield h9t.OidcClient.getIDToken(t)})}Be.getIDToken=k9t;var F9t=RK();Object.defineProperty(Be,"summary",{enumerable:!0,get:function(){return F9t.summary}});var x9t=RK();Object.defineProperty(Be,"markdownSummary",{enumerable:!0,get:function(){return x9t.markdownSummary}});var vK=N_e();Object.defineProperty(Be,"toPosixPath",{enumerable:!0,get:function(){return vK.toPosixPath}});Object.defineProperty(Be,"toWin32Path",{enumerable:!0,get:function(){return vK.toWin32Path}});Object.defineProperty(Be,"toPlatformPath",{enumerable:!0,get:function(){return vK.toPlatformPath}});Be.platform=MK(V_e())});var Z_e=E(Mu=>{"use strict";var U9t=Mu&&Mu.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),M9t=Mu&&Mu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L9t=Mu&&Mu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&U9t(e,t,r);return M9t(e,t),e};Object.defineProperty(Mu,"__esModule",{value:!0});Mu.getOptions=void 0;var _K=L9t(go());function v9t(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,_K.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,_K.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,_K.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}Mu.getOptions=v9t});var JM=E(QA=>{"use strict";var _9t=QA&&QA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),P9t=QA&&QA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),O9t=QA&&QA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&_9t(e,t,r);return P9t(e,t),e},H9t=QA&&QA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(QA,"__esModule",{value:!0});QA.safeTrimTrailingSeparator=QA.normalizeSeparators=QA.hasRoot=QA.hasAbsoluteRoot=QA.ensureAbsoluteRoot=QA.dirname=void 0;var qM=O9t(I("path")),Hf=H9t(I("assert")),ih=process.platform==="win32";function G9t(t){if(t=OK(t),ih&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=qM.dirname(t);return ih&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=OK(e)),e}QA.dirname=G9t;function Y9t(t,e){if(Hf.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Hf.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),PK(e))return e;if(ih){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Hf.default(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+Line truncated
%s`,J,J,p,A);var j=p.type==="*"?qK:p.type==="?"?YK:"\\"+p.type;s=!0,A=A.slice(0,p.reStart)+j+"\\("+J}h(),n&&(A+="\\\\");var H=!1;switch(A.charAt(0)){case"[":case".":case"(":H=!0}for(var $=o.length-1;$>-1;$--){var oe=o[$],Ie=A.slice(0,oe.reStart),be=A.slice(oe.reStart,oe.reEnd-8),K=A.slice(oe.reEnd-8,oe.reEnd),le=A.slice(oe.reEnd);K+=le;var Le=Ie.split("(").length-1,Yt=le;for(B=0;B<Le;B++)Yt=Yt.replace(/\)[+*?]?/,"");le=Yt;var vt="";le===""&&e!==WM&&(vt="$");var yg=Ie+be+le+vt+K;A=yg}if(A!==""&&s&&(A="(?=.)"+A),H&&(A=g+A),e===WM)return[A,s];if(!s)return BJt(t);var bg=r.nocase?"i":"";try{var mo=new RegExp("^"+A+"$",bg)}catch{return new RegExp("$.")}return mo._glob=t,mo._src=A,mo}ho.makeRe=function(t,e){return new Ps(t,e||{}).makeRe()};Ps.prototype.makeRe=CJt;function CJt(){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?cJt:uJt,A=e.nocase?"i":"",s=t.map(function(n){return n.map(function(i){return i===JK?r:typeof i=="string"?IJt(i):i._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,A)}catch{this.regexp=!1}return this.regexp}ho.match=function(t,e,r){r=r||{};var A=new Ps(e,r);return t=t.filter(function(s){return A.match(s)}),A.options.nonull&&!t.length&&t.push(e),t};Ps.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 A=this.options;JD.sep!=="/"&&(e=e.split(JD.sep).join("/")),e=e.split(IPe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,i;for(i=e.length-1;i>=0&&(n=e[i],!n);i--);for(i=0;i<s.length;i++){var o=s[i],a=e;A.matchBase&&o.length===1&&(a=[n]);var c=this.matchOne(a,o,r);if(c)return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate};Ps.prototype.matchOne=function(t,e,r){var A=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,i=t.length,o=e.length;s<i&&n<o;s++,n++){this.debug("matchOne loop");var a=e[n],c=t[s];if(this.debug(e,a,c),a===!1)return!1;if(a===JK){this.debug("GLOBSTAR",[e,a,c]);var u=s,l=n+1;if(l===o){for(this.debug("** at the end");s<i;s++)if(t[s]==="."||t[s]===".."||!A.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<i;){var g=t[u];if(this.debug(`
globstar while`,t,u,e,l,g),this.matchOne(t.slice(u),e.slice(l),r))return this.debug("globstar found match!",u,i,g),!0;if(g==="."||g===".."||!A.dot&&g.charAt(0)==="."){this.debug("dot detected!",t,u,e,l);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,l),u===i))}var d;if(typeof a=="string"?(d=c===a,this.debug("string match",a,c,d)):(d=c.match(a),this.debug("pattern match",a,c,d)),!d)return!1}if(s===i&&n===o)return!0;if(s===i)return r;if(n===o)return s===i-1&&t[s]==="";throw new Error("wtf?")};function BJt(t){return t.replace(/\\(.)/g,"$1")}function IJt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var bPe=E(pa=>{"use strict";var QJt=pa&&pa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),pJt=pa&&pa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yPe=pa&&pa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&QJt(e,t,r);return pJt(e,t),e},mJt=pa&&pa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pa,"__esModule",{value:!0});pa.Path=void 0;var VD=yPe(I("path")),ah=yPe(JM()),WD=mJt(I("assert")),yJt=process.platform==="win32",VK=class{constructor(e){if(this.segments=[],typeof e=="string")if(WD.default(e,"Parameter 'itemPath' must not be empty"),e=ah.safeTrimTrailingSeparator(e),!ah.hasRoot(e))this.segments=e.split(VD.sep);else{let r=e,A=ah.dirname(r);for(;A!==r;){let s=VD.basename(r);this.segments.unshift(s),r=A,A=ah.dirname(r)}this.segments.unshift(r)}else{WD.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let A=e[r];WD.default(A,"Parameter 'itemPath' must not contain any empty segments"),A=ah.normalizeSeparators(e[r]),r===0&&ah.hasRoot(A)?(A=ah.safeTrimTrailingSeparator(A),WD.default(A===ah.dirname(A),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(A)):(WD.default(!A.includes(VD.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(A))}}}toString(){let e=this.segments[0],r=e.endsWith(VD.sep)||yJt&&/^[A-Z]:$/i.test(e);for(let A=1;A<this.segments.length;A++)r?r=!1:e+=VD.sep,e+=this.segments[A];return e}};pa.Path=VK});var wPe=E(ma=>{"use strict";var bJt=ma&&ma.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=r),Object.defineProperty(t,A,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),wJt=ma&&ma.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jK=ma&&ma.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&bJt(e,t,r);return wJt(e,t),e},DJt=ma&&ma.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ma,"__esModule",{value:!0});ma.Pattern=void 0;var NJt=jK(I("os")),zD=jK(I("path")),Ei=jK(JM()),Gf=DJt(I("assert")),RJt=mPe(),WK=VM(),jM=bPe(),gg=process.platform==="win32",zK=class t{constructor(e,r=!1,A,s){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{A=A||[],Gf.default(A.length,"Parameter 'segments' must not empty");let c=t.getLiteral(A[0]);Gf.default(c&&Ei.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),n=new jM.Path(A).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,s),this.segments=new jM.Path(n).segments,this.trailingSeparator=Ei.normalizeSeparators(n).endsWith(zD.sep),n=Ei.safeTrimTrailingSeparator(n);let i=!1,o=this.segments.map(c=>t.getLiteral(c)).filter(c=>!i&&!(i=c===""));this.searchPath=new jM.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),gg?"i":""),this.isImplicitPattern=r;let a={dot:!0,nobrace:!0,nocase:gg,nocomment:!0,noext:!0,nonegate:!0};n=gg?n.replace(/\\/g,"/"):n,this.minimatch=new RJt.Minimatch(n,a)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Ei.normalizeSeparators(e),!e.endsWith(zD.sep)&&this.isImplicitPattern===!1&&(e=`${e}${zD.sep}`)):e=Ei.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?WK.MatchKind.Directory:WK.MatchKind.All:WK.MatchKind.None}partialMatch(e){return e=Ei.safeTrimTrailingSeparator(e),Ei.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(gg?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(gg?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){Gf.default(e,"pattern cannot be empty");let A=new jM.Path(e).segments.map(s=>t.getLiteral(s));if(Gf.default(A.every((s,n)=>(s!=="."||n===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Gf.default(!Ei.hasRoot(e)||A[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Ei.normalizeSeparators(e),e==="."||e.startsWith(`.${zD.sep}`))e=t.globEscape(process.c Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||A.patterns.push(new SPe.Pattern(n));return A.searchPaths.push(...XM.getSearchPaths(A.patterns)),A})}static stat(e,r,A){return XK(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield jD.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ZK.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield jD.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield jD.promises.realpath(e.path);for(;A.length>=e.level;)A.pop();if(A.some(i=>i===n)){ZK.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}A.push(n)}return s})}};Qs.DefaultGlobber=$K});var FPe=E(I0=>{"use strict";var MJt=I0&&I0.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(I0,"__esModule",{value:!0});I0.create=void 0;var LJt=kPe();function vJt(t,e){return MJt(this,void 0,void 0,function*(){return yield LJt.DefaultGlobber.create(t,e)})}I0.create=vJt});var _Pe=E((At,vPe)=>{At=vPe.exports=Ct;var sr;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?sr=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:sr=function(){};At.SEMVER_SPEC_VERSION="2.0.0";var XD=256,ZM=Number.MAX_SAFE_INTEGER||9007199254740991,eX=16,_Jt=XD-6,Q0=At.re=[],Ar=At.safeRe=[],X=At.src=[],Y=At.tokens={},MPe=0;function mt(t){Y[t]=MPe++}var rX="[a-zA-Z0-9-]",tX=[["\\s",1],["\\d",XD],[rX,_Jt]];function $D(t){for(var e=0;e<tX.length;e++){var r=tX[e][0],A=tX[e][1];t=t.split(r+"*").join(r+"{0,"+A+"}").split(r+"+").join(r+"{1,"+A+"}")}return t}mt("NUMERICIDENTIFIER");X[Y.NUMERICIDENTIFIER]="0|[1-9]\\d*";mt("NUMERICIDENTIFIERLOOSE");X[Y.NUMERICIDENTIFIERLOOSE]="\\d+";mt("NONNUMERICIDENTIFIER");X[Y.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+rX+"*";mt("MAINVERSION");X[Y.MAINVERSION]="("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")\\.("+X[Y.NUMERICIDENTIFIER]+")";mt("MAINVERSIONLOOSE");X[Y.MAINVERSIONLOOSE]="("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")\\.("+X[Y.NUMERICIDENTIFIERLOOSE]+")";mt("PRERELEASEIDENTIFIER");X[Y.PRERELEASEIDENTIFIER]="(?:"+X[Y.NUMERICIDENTIFIER]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";mt("PRERELEASEIDENTIFIERLOOSE");X[Y.PRERELEASEIDENTIFIERLOOSE]="(?:"+X[Y.NUMERICIDENTIFIERLOOSE]+"|"+X[Y.NONNUMERICIDENTIFIER]+")";mt("PRERELEASE");X[Y.PRERELEASE]="(?:-("+X[Y.PRERELEASEIDENTIFIER]+"(?:\\."+X[Y.PRERELEASEIDENTIFIER]+")*))";mt("PRERELEASELOOSE");X[Y.PRERELEASELOOSE]="(?:-?("+X[Y.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+X[Y.PRERELEASEIDENTIFIERLOOSE]+")*))";mt("BUILDIDENTIFIER");X[Y.BUILDIDENTIFIER]=rX+"+";mt("BUILD");X[Y.BUILD]="(?:\\+("+X[Y.BUILDIDENTIFIER]+"(?:\\."+X[Y.BUILDIDENTIFIER]+")*))";mt("FULL");mt("FULLPLAIN");X[Y.FULLPLAIN]="v?"+X[Y.MAINVERSION]+X[Y.PRERELEASE]+"?"+X[Y.BUILD]+"?";X[Y.FULL]="^"+X[Y.FULLPLAIN]+"$";mt("LOOSEPLAIN");X[Y.LOOSEPLAIN]="[v=\\s]*"+X[Y.MAINVERSIONLOOSE]+X[Y.PRERELEASELOOSE]+"?"+X[Y.BUILD]+"?";mt("LOOSE");X[Y.LOOSE]="^"+X[Y.LOOSEPLAIN]+"$";mt("GTLT");X[Y.GTLT]="((?:<|>)?=?)";mt("XRANGEIDENTIFIERLOOSE");X[Y.XRANGEIDENTIFIERLOOSE]=X[Y.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";mt("XRANGEIDENTIFIER");X[Y.XRANGEIDENTIFIER]=X[Y.NUMERICIDENTIFIER]+"|x|X|\\*";mt("XRANGEPLAIN");X[Y.XRANGEPLAIN]="[v=\\s]*("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:\\.("+X[Y.XRANGEIDENTIFIER]+")(?:"+X[Y.PRERELEASE]+")?"+X[Y.BUILD]+"?)?)?";mt("XRANGEPLAINLOOSE");X[Y.XRANGEPLAINLOOSE]="[v=\\s]*("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+X[Y.XRANGEIDENTIFIERLOOSE]+")(?:"+X[Y.PRERELEASELOOSE]+")?"+X[Y.BUILD]+"?)?)?";mt("XRANGE");X[Y.XRANGE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAIN]+"$";mt("XRANGELOOSE");X[Y.XRANGELOOSE]="^"+X[Y.GTLT]+"\\s*"+X[Y.XRANGEPLAINLOOSE]+"$";mt("COERCE");X[Y.COERCE]="(^|[^\\d])(\\d{1,"+eX+"})(?:\\.(\\d{1,"+eX+"}))?(?:\\.(\\d{1,"+eX+"}))?(?:$|[^\\d])";mt("COERCERTL");Q0[Y.COERCERTL]=new RegExp(X[Y.COERCE],"g");Ar[Y.COERCERTL]=new RegExp($D(X[Y.COERCE]),"g");mt("LONETILDE");X[Y.LONETILDE]="(?:~>?)";mt("TILDETRIM");X[Y.TILDETRIM]="(\\s*)"+X[Y.LONETILDE]+"\\s+";Q0[Y.TILDETRIM]=new RegExp(X[Y.TILDETRIM],"g");Ar[Y.TILDETRIM]=new RegExp($D(X[Y.TILDETRIM]),"g");var PJt="$1~";mt("TILDE");X[Y.TILDE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAIN]+"$";mt("TILDELOOSE");X[Y.TILDELOOSE]="^"+X[Y.LONETILDE]+X[Y.XRANGEPLAINLOOSE]+"$";mt("LONECARET");X[Y.LONECARET]="(?:\\^)";mt("CARETTRIM");X[Y.CARETTRIM]="(\\s*)"+X[Y.LONECARET]+"\\s+";Q0[Y.CARETTRIM]=new RegExp(X[Y.CARETTRIM],"g");Ar[Y.CARETTRIM]=new RegExp($D(X[Y.CARETTRIM]),"g");var OJt="$1^";mt("CARET");X[Y.C Line truncated
`),{implicitDescendants:!1});try{for(var c=!0,u=y6t(a.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let g=s,d=rL.relative(o,g).replace(new RegExp(`\\${rL.sep}`,"g"),"/");eN.debug(`Matched: ${d}`),d===""?i.push("."):i.push(`${d}`)}}catch(g){r={error:g}}finally{try{!c&&!e&&(A=u.return)&&(yield A.call(u))}finally{if(r)throw r.error}}return i})}qt.resolvePaths=k6t;function F6t(t){return y0(this,void 0,void 0,function*(){return N6t.promisify(oX.unlink)(t)})}qt.unlinkFile=F6t;function qPe(t,e=[]){return y0(this,void 0,void 0,function*(){let r="";e.push("--version"),eN.debug(`Checking ${t} ${e.join(" ")}`);try{yield b6t.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:A=>r+=A.toString(),stderr:A=>r+=A.toString()}})}catch(A){eN.debug(A.message)}return r=r.trim(),eN.debug(r),r})}function x6t(){return y0(this,void 0,void 0,function*(){let t=yield qPe("zstd",["--quiet"]),e=D6t.clean(t);return eN.debug(`zstd version: ${e}`),t===""?Jf.CompressionMethod.Gzip:Jf.CompressionMethod.ZstdWithoutLong})}qt.getCompressionMethod=x6t;function U6t(t){return t===Jf.CompressionMethod.Gzip?Jf.CacheFilename.Gzip:Jf.CacheFilename.Zstd}qt.getCacheFileName=U6t;function M6t(){return y0(this,void 0,void 0,function*(){return oX.existsSync(Jf.GnuTarPathOnWindows)?Jf.GnuTarPathOnWindows:(yield qPe("tar")).toLowerCase().includes("gnu tar")?GPe.which("tar"):""})}qt.getGnuTarPathOnWindows=M6t;function L6t(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}qt.assertDefined=L6t;function v6t(t,e,r=!1){let A=t.slice();return e&&A.push(e),process.platform==="win32"&&!r&&A.push("windows-only"),A.push(R6t),YPe.createHash("sha256").update(A.join("|")).digest("hex")}qt.getCacheVersion=v6t;function _6t(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}qt.getRuntimeToken=_6t});var Nr={};Oa(Nr,{__addDisposableResource:()=>EOe,__assign:()=>AL,__asyncDelegator:()=>oOe,__asyncGenerator:()=>iOe,__asyncValues:()=>aOe,__await:()=>w0,__awaiter:()=>eOe,__classPrivateFieldGet:()=>gOe,__classPrivateFieldIn:()=>hOe,__classPrivateFieldSet:()=>dOe,__createBinding:()=>nL,__decorate:()=>WPe,__disposeResources:()=>fOe,__esDecorate:()=>jPe,__exportStar:()=>rOe,__extends:()=>JPe,__generator:()=>tOe,__importDefault:()=>lOe,__importStar:()=>uOe,__makeTemplateObject:()=>cOe,__metadata:()=>$Pe,__param:()=>zPe,__propKey:()=>XPe,__read:()=>uX,__rest:()=>VPe,__rewriteRelativeImportExtension:()=>COe,__runInitializers:()=>KPe,__setFunctionName:()=>ZPe,__spread:()=>AOe,__spreadArray:()=>nOe,__spreadArrays:()=>sOe,__values:()=>sL,default:()=>H6t});function JPe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");aX(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function VPe(t,e){var r={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(r[A]=t[A]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,A=Object.getOwnPropertySymbols(t);s<A.length;s++)e.indexOf(A[s])<0&&Object.prototype.propertyIsEnumerable.call(t,A[s])&&(r[A[s]]=t[A[s]]);return r}function WPe(t,e,r,A){var s=arguments.length,n=s<3?e:A===null?A=Object.getOwnPropertyDescriptor(e,r):A,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,A);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(s<3?i(n):s>3?i(e,r,n):i(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n}function zPe(t,e){return function(r,A){e(r,A,t)}}function jPe(t,e,r,A,s,n){function i(C){if(C!==void 0&&typeof C!="function")throw new TypeError("Function expected");return C}for(var o=A.kind,a=o==="getter"?"get":o==="setter"?"set":"value",c=!e&&t?A.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,A.name):{}),l,g=!1,d=r.length-1;d>=0;d--){var h={};for(var B in A)h[B]=B==="access"?{}:A[B];for(var B in A.access)h.access[B]=A.access[B];h.addInitializer=function(C){if(g)throw new TypeError("Cannot add initializers after decoration has completed");n.push(i(C||null))};var Q=(0,r[d])(o==="accessor"?{get:u.get,set:u.set}:u[a],h);if(o==="accessor"){if(Q===void 0)continue;if(Q===null||typeof Q!="object")throw new TypeError("Object expected");(l=i(Q.get))&&(u.get=l),(l=i(Q.set))&&(u.set=l),(l=i(Q.init))&&s.unshift(l)}else(l=i(Q))&&(o==="field"?s.unshift(l):u[a]=l)}c&&Object.defineProperty(c,A.name,u),g=!0}function KPe(t,e,r){for(var A=arguments.length>2,s=0;s<e.length;s++)r=A?e[s].call(t,r):e[s].call(t);return A?r:void 0}function XPe(t){return typeof t=="symbol"?t:"".concat(t)}function ZPe(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function $Pe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function eOe(t,e,r,A){function s(n){return Line truncated
${CVt.sanitize({...this,request:{...this.request,agent:A},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};sN.RestError=EL;function BVt(t){return t instanceof EL?!0:(0,hVt.isError)(t)&&t.name==="RestError"}});var Vf=E(fL=>{"use strict";Object.defineProperty(fL,"__esModule",{value:!0});fL.uint8ArrayToString=IVt;fL.stringToUint8Array=QVt;function IVt(t,e){return Buffer.from(t).toString(e)}function QVt(t,e){return Buffer.from(t,e)}});var nN=E(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0});CL.logger=void 0;var pVt=cL();CL.logger=(0,pVt.createClientLogger)("ts-http-runtime")});var HOe=E(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0});IL.getBodyLength=OOe;IL.createNodeHttpClient=SVt;var LX=(Rr(),xr(Nr)),xX=LX.__importDefault(I("node:http")),UX=LX.__importDefault(I("node:https")),LOe=LX.__importDefault(I("node:zlib")),mVt=I("node:stream"),vOe=tN(),yVt=lh(),oN=D0(),N0=nN(),bVt=AN(),wVt={};function iN(t){return t&&typeof t.pipe=="function"}function _Oe(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 POe(t){return t&&typeof t.byteLength=="number"}var BL=class extends mVt.Transform{loadedBytes=0;progressCallback;_transform(e,r,A){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),A()}catch(s){A(s)}}constructor(e){super(),this.progressCallback=e}},MX=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,A;if(e.abortSignal){if(e.abortSignal.aborted)throw new vOe.AbortError("The operation was aborted. Request has already been canceled.");A=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",A)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new bVt.Sanitizer;N0.logger.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),i=n?.includes("gzip")||n?.includes("deflate"),o=typeof e.body=="function"?e.body():e.body;if(o&&!e.headers.has("Content-Length")){let c=OOe(o);c!==null&&e.headers.set("Content-Length",c)}let a;try{if(o&&e.onUploadProgress){let h=e.onUploadProgress,B=new BL(h);B.on("error",Q=>{N0.logger.error("Error in upload progress",Q)}),iN(o)?o.pipe(B):B.end(o),o=B}let c=await this.makeRequest(e,r,o);s!==void 0&&clearTimeout(s);let u=DVt(c),g={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),g;a=i?NVt(c,u):c;let d=e.onDownloadProgress;if(d){let h=new BL(d);h.on("error",B=>{N0.logger.error("Error in download progress",B)}),a.pipe(h),a=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(g.status)?g.readableStreamBody=a:g.bodyAsText=await RVt(a),g}finally{if(e.abortSignal&&A){let c=Promise.resolve();iN(o)&&(c=_Oe(o));let u=Promise.resolve();iN(a)&&(u=_Oe(a)),Promise.all([c,u]).then(()=>{A&&e.abortSignal?.removeEventListener("abort",A)}).catch(l=>{N0.logger.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,A){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let o={agent:e.agent??this.getOrCreateAgent(e,n),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=n?xX.default.request(o,a):UX.default.request(o,a);u.once("error",l=>{c(new oN.RestError(l.message,{code:l.code??oN.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new vOe.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),A&&iN(A)?A.pipe(u):A?typeof A=="string"||Buffer.isBuffer(A)?u.end(A):POe(A)?u.end(ArrayBuffer.isView(A)?Buffer.from(A.buffer):Buffer.from(A)):(N0.logger.error("Unrecognized body type",A),c(new oN.RestError("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let A=e.disableKeepAlive;if(r)return A?xX.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new xX.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(A&&!e.tlsSettings)return UX.default.globalAgent;let s=e.tlsSettings??wVt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!A||(N0.logger.info("No cached TLS Agent exist, creating a new Agent"),n=new UX.default.Agent({keepAlive:!A,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function DVt(t){let e=(0,yVt.createHttpHeaders)();for(let r of Object.keys(t.headers)){let A=t.headers[r];Array.isArray(A)?A.length>0&&e.set(r,A[0]):A&&e.set(r,A)}return e}function NVt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let A=LOe.default.createGunzip();return t.pipe(A),A}else if(r==="deflate"){let A=LOe.default.createInflate();return t.p Line truncated
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return OLe(e,r).catch(s=>{throw PW?HW(s,PW):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=NA().Headers;H.exports.Response=dh().Response;H.exports.Request=qu().Request;H.exports.FormData=q0().FormData;var{setGlobalOrigin:_Le,getGlobalOrigin:HLe}=aS();H.exports.setGlobalOrigin=_Le;H.exports.getGlobalOrigin=HLe;var{CacheStorage:GLe}=B7(),{kConstruct:YLe}=Me();H.exports.caches=new GLe(YLe);var{deleteCookie:qLe,getCookies:VLe,getSetCookies:JLe,setCookie:WLe,parseCookie:zLe}=M7();H.exports.deleteCookie=qLe;H.exports.getCookies=VLe;H.exports.getSetCookies=JLe;H.exports.setCookie=WLe;H.exports.parseCookie=zLe;var{parseMIMEType:KLe,serializeAMimeType:XLe}=vs();H.exports.parseMIMEType=KLe;H.exports.serializeAMimeType=XLe;var{CloseEvent:jLe,ErrorEvent:ZLe,MessageEvent:$Le}=AC(),{WebSocket:ePe,ping:tPe}=hW();H.exports.WebSocket=ePe;H.exports.CloseEvent=jLe;H.exports.ErrorEvent=ZLe;H.exports.MessageEvent=$Le;H.exports.ping=tPe;H.exports.WebSocketStream=QW().WebSocketStream;H.exports.WebSocketError=yD().WebSocketError;H.exports.request=bh(tl.request);H.exports.stream=bh(tl.stream);H.exports.pipeline=bh(tl.pipeline);H.exports.connect=bh(tl.connect);H.exports.upgrade=bh(tl.upgrade);H.exports.MockClient=SLe;H.exports.MockCallHistory=TLe;H.exports.MockCallHistoryLog=DLe;H.exports.MockPool=RLe;H.exports.MockAgent=xLe;H.exports.SnapshotAgent=kLe;H.exports.mockErrors=FLe;var{EventSource:rPe}=LW();H.exports.EventSource=rPe;function sPe(){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=sPe});var wh=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 qW=m((s$e,YW)=>{"use strict";var{asciiLowercase:QC,solelyContainsHTTPTokenCodePoints:nPe,soleyContainsHTTPQuotedStringTokenCodePoints:iPe}=wh();YW.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=QC(String(e)),this._map.get(e)}has(e){return e=QC(String(e)),this._map.has(e)}set(e,r){if(e=QC(String(e)),r=String(r),!nPe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!iPe(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=QC(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 WW=m((n$e,JW)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:oPe,removeTrailingHTTPWhitespace:VW,isHTTPWhitespaceChar:aPe,solelyContainsHTTPTokenCodePoints:DD,soleyContainsHTTPQuotedStringTokenCodePoints:APe,asciiLowercase:xD,collectAnHTTPQuotedString:cPe}=wh();JW.exports=t=>{t=oPe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!DD(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=VW(s),s.length===0||!DD(s))return null;let n={type:xD(r),subtype:xD(s),parameters:new Map};for(;e<t.length;){for(++e;aPe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=xD(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=cPe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=VW(o),o==="")continue}i.length>0&&DD(i)&&APe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var KW=m((i$e,zW)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:uPe}=wh();zW.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+="=",(!uPe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var $W=m((a$e,ZW)=>{"use strict";var lPe=qW(),dPe=WW(),gPe=KW(),{asciiLowercase:XW,solelyContainsHTTPTokenCodePoints:jW}=wh();ZW.exports=class{constructor(e){e=String(e);let r=dPe(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 lPe(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=XW(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!jW(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=XW(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!jW(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return gPe(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 cz=m(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.getProxyUrl=DPe;NC.checkBypass=Az;function DPe(t){let e=t.protocol==="https:";if(Az(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 wC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new wC(`http://${r}`)}else return}function Az(t){if(!t.hostname)return!1;let e=t.hostname;if(xPe(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==="*"?ux:y.type==="?"?cx:"\\"+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 Ca=Ne+Ge+fe+Es+ue;s=Ca}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===LC)return[s,n];if(!n)return P3e(t);var Ia=r.nocase?"i":"";try{var CB=new RegExp("^"+s+"$",Ia)}catch{return new RegExp("$.")}return CB._glob=t,CB._src=s,CB}ds.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=L3e;function L3e(){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?ux:e.dot?T3e:D3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===LA?r:typeof o=="string"?v3e(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;xh.sep!=="/"&&(e=e.split(xh.sep).join("/")),e=e.split(TK),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(LA)!==-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]===LA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===LA){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===LA?(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===LA)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 P3e(t){return t.replace(/\\(.)/g,"$1")}function v3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ol=m((ttt,FK)=>{"use strict";var Y3e="2.0.0",q3e=Number.MAX_SAFE_INTEGER||9007199254740991,V3e=16,J3e=250,W3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];FK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:V3e,MAX_SAFE_BUILD_LENGTH:J3e,MAX_SAFE_INTEGER:q3e,RELEASE_TYPES:W3e,SEMVER_SPEC_VERSION:Y3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Rh=m((rtt,MK)=>{"use strict";var z3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};MK.exports=z3e});var al=m((ci,UK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:lx,MAX_SAFE_BUILD_LENGTH:K3e,MAX_LENGTH:X3e}=ol(),j3e=Rh();ci=UK.exports={};var Z3e=ci.re=[],$3e=ci.safeRe=[],G=ci.src=[],e8e=ci.safeSrc=[],Y=ci.t={},t8e=0,dx="[a-zA-Z0-9-]",r8e=[["\\s",1],["\\d",X3e],[dx,K3e]],s8e=t=>{for(let[e,r]of r8e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+n),t.push(s+"m+"+SL.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=OWt()+e+" "+t[0]}function OWt(){return ms.inspectOpts.hideDate?"":new Date().toISOString()+" "}function HWt(...t){return process.stderr.write(RL.formatWithOptions(ms.inspectOpts,...t)+`
`)}function GWt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function YWt(){return process.env.DEBUG}function qWt(t){t.inspectOpts={};let e=Object.keys(ms.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ms.inspectOpts[e[r]]}SL.exports=eZ()(ms);var{formatters:uHe}=SL.exports;uHe.o=function(t){return this.inspectOpts.colors=this.useColors,RL.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};uHe.O=function(t){return this.inspectOpts.colors=this.useColors,RL.inspect(t,this.inspectOpts)}});var TL=E((hwr,AZ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AZ.exports=sHe():AZ.exports=lHe()});var hHe=E(Ci=>{"use strict";var JWt=Ci&&Ci.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),VWt=Ci&&Ci.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gHe=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)&&JWt(e,t,r);return VWt(e,t),e};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.req=Ci.json=Ci.toBuffer=void 0;var WWt=gHe(I("http")),zWt=gHe(I("https"));async function dHe(t){let e=0,r=[];for await(let A of t)e+=A.length,r.push(A);return Buffer.concat(r,e)}Ci.toBuffer=dHe;async function jWt(t){let r=(await dHe(t)).toString("utf8");try{return JSON.parse(r)}catch(A){let s=A;throw s.message+=` (input: ${r})`,s}}Ci.json=jWt;function KWt(t,e={}){let A=((typeof t=="string"?t:t.href).startsWith("https:")?zWt:WWt).request(t,e),s=new Promise((n,i)=>{A.once("response",n).once("error",i).end()});return A.then=s.then.bind(s),A}Ci.req=KWt});var nZ=E(Eo=>{"use strict";var fHe=Eo&&Eo.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),XWt=Eo&&Eo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CHe=Eo&&Eo.__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)&&fHe(e,t,r);return XWt(e,t),e},ZWt=Eo&&Eo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fHe(e,t,r)};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.Agent=void 0;var $Wt=CHe(I("net")),EHe=CHe(I("http")),ezt=I("https");ZWt(hHe(),Eo);var vu=Symbol("AgentBaseInternalState"),sZ=class extends EHe.Agent{constructor(e){super(e),this[vu]={}}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(A=>A.indexOf("(https.js:")!==-1||A.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 $Wt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let A=this.sockets[e],s=A.indexOf(r);s!==-1&&(A.splice(s,1),this.totalSocketCount--,A.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?ezt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,A){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),i=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(this.decrementSockets(n,i),o instanceof EHe.Agent)try{return o.addRequest(e,s)}catch(a){return A(a)}this[vu].currentSocket=o,super.createSocket(e,r,A)},o=>{this.decrementSockets(n,i),A(o)})}createConnection(){let e=this[vu].currentSocket;if(this[vu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[vu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[vu]&&(this[vu].defaultPort=e)}get protocol(){return this[vu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[vu]&&(this[vu].protocol=e)}};Eo.Agent=sZ});var BHe=E(P0=>{"use strict";var tzt=P0&&P0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(P0,"__esModule",{value:!0});P0.parseProxyResponse=void 0;var rzt=tzt(TL()),kL=(0,rzt.default)("https-proxy-agent:parse-proxy-response");function Azt(t){return new Promise((e,r)=>{let A=0,s=[];function n(){let u=t.read();u?c(u):t.once("readable",n)}function i(){t.removeListener("end",o),t.removeListener("error",a),t.removeListener("readable",n)}function o(){i(),kL("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function a(u){i(),kL("onerror %o",u),r(u)}function c(u){s.push(u),A+=u.length;let l=Buffer.concat(s,A),g=l.indexOf(`\r
`+i),t.push(n+"m+"+nI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=x6e()+e+" "+t[0]}function x6e(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function R6e(...t){return process.stderr.write(sI.formatWithOptions(Ot.inspectOpts,...t)+`
`)}function k6e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function F6e(){return process.env.DEBUG}function M6e(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]]}nI.exports=qx()(Ot);var{formatters:Kj}=nI.exports;Kj.o=function(t){return this.inspectOpts.colors=this.useColors,sI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Kj.O=function(t){return this.inspectOpts.colors=this.useColors,sI.inspect(t,this.inspectOpts)}});var iI=m((Pst,Wx)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Wx.exports=Yj():Wx.exports=Xj()});var $j=m(Or=>{"use strict";var U6e=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]})),L6e=Or&&Or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jj=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)&&U6e(e,t,r);return L6e(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.req=Or.json=Or.toBuffer=void 0;var P6e=jj(Q("http")),v6e=jj(Q("https"));async function Zj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Or.toBuffer=Zj;async function O6e(t){let r=(await Zj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Or.json=O6e;function _6e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?v6e:P6e).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=_6e});var Kx=m(gs=>{"use strict";var tZ=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]})),H6e=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rZ=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)&&tZ(e,t,r);return H6e(e,t),e},G6e=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tZ(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var Y6e=rZ(Q("net")),eZ=rZ(Q("http")),q6e=Q("https");G6e($j(),gs);var ui=Symbol("AgentBaseInternalState"),zx=class extends eZ.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 Y6e.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)?q6e.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 eZ.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=zx});var sZ=m(gl=>{"use strict";var V6e=gl&&gl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gl,"__esModule",{value:!0});gl.parseProxyResponse=void 0;var J6e=V6e(iI()),oI=(0,J6e.default)("https-proxy-agent:parse-proxy-response");function W6e(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(),oI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),oI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.indexOf(`\r
\r
`);if(g===-1){kL("have not received end of HTTP headers yet..."),n();return}let d=l.slice(0,g).toString("ascii").split(`\r
`),h=d.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let B=h.split(" "),Q=+B[1],C=B.slice(2).join(" "),p={};for(let w of d){if(!w)continue;let k=w.indexOf(":");if(k===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let J=w.slice(0,k).toLowerCase(),j=w.slice(k+1).trimStart(),H=p[J];typeof H=="string"?p[J]=[H,j]:Array.isArray(H)?H.push(j):p[J]=j}kL("got proxy server response: %o %o",h,p),i(),e({connect:{statusCode:Q,statusText:C,headers:p},buffered:l})}t.on("error",a),t.on("end",o),n()})}P0.parseProxyResponse=Azt});var bHe=E(wa=>{"use strict";var szt=wa&&wa.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),nzt=wa&&wa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mHe=wa&&wa.__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)&&szt(e,t,r);return nzt(e,t),e},yHe=wa&&wa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wa,"__esModule",{value:!0});wa.HttpsProxyAgent=void 0;var FL=mHe(I("net")),IHe=mHe(I("tls")),izt=yHe(I("assert")),ozt=yHe(TL()),azt=nZ(),czt=I("url"),uzt=BHe(),uN=(0,ozt.default)("https-proxy-agent"),QHe=t=>t.servername===void 0&&t.host&&!FL.isIP(t.host)?{...t,servername:t.host}:t,xL=class extends azt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new czt.URL(e):e,this.proxyHeaders=r?.headers??{},uN("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let A=(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?pHe(r,"headers"):null,host:A,port:s}}async connect(e,r){let{proxy:A}=this;if(!r.host)throw new TypeError('No "host" provided');let s;A.protocol==="https:"?(uN("Creating `tls.Socket`: %o",this.connectOpts),s=IHe.connect(QHe(this.connectOpts))):(uN("Creating `net.Socket`: %o",this.connectOpts),s=FL.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=FL.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(A.username||A.password){let g=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}n.Host=`${i}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(n))o+=`${g}: ${n[g]}\r
`;let a=(0,uzt.parseProxyResponse)(s);s.write(`${o}\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",lzt),r.secureEndpoint?(uN("Upgrading socket connection to TLS"),IHe.connect({...pHe(QHe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new FL.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{uN("Replaying proxy buffer for failed request"),(0,izt.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};xL.protocols=["http","https"];wa.HttpsProxyAgent=xL;function lzt(t){t.resume()}function pHe(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var NHe=E(Da=>{"use strict";var gzt=Da&&Da.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),dzt=Da&&Da.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DHe=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)&&gzt(e,t,r);return dzt(e,t),e},hzt=Da&&Da.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Da,"__esModule",{value:!0});Da.HttpProxyAgent=void 0;var Ezt=DHe(I("net")),fzt=DHe(I("tls")),Czt=hzt(TL()),Bzt=I("events"),Izt=nZ(),wHe=I("url"),O0=(0,Czt.default)("http-proxy-agent"),UL=class extends Izt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new wHe.URL(e):e,this.proxyHeaders=r?.headers??{},O0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let A=(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?Qzt(r,"headers"):null,host:A,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:A}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",i=`${s}//${n}`,o=new wHe.URL(e.path,i);r.port!==80&&(o.port=String(r.port)),e.path=String(o);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(A.username||A.password){let c=`${decodeURIComponent(A.username)}:${decodeURIComponent(A.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 A,s;O0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(O0("Patching connection write() output buffer with updated header"),A=e.outputData[0].data,s=A.indexOf(`\r
`);if(g===-1){oI("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}oI("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()})}gl.parseProxyResponse=W6e});var cZ=m(Zs=>{"use strict";var z6e=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]})),K6e=Zs&&Zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aZ=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)&&z6e(e,t,r);return K6e(e,t),e},AZ=Zs&&Zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.HttpsProxyAgent=void 0;var aI=aZ(Q("net")),nZ=aZ(Q("tls")),X6e=AZ(Q("assert")),j6e=AZ(iI()),Z6e=Kx(),$6e=Q("url"),e_e=sZ(),Hh=(0,j6e.default)("https-proxy-agent"),iZ=t=>t.servername===void 0&&t.host&&!aI.isIP(t.host)?{...t,servername:t.host}:t,AI=class extends Z6e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new $6e.URL(e):e,this.proxyHeaders=r?.headers??{},Hh("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?oZ(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:"?(Hh("Creating `tls.Socket`: %o",this.connectOpts),n=nZ.connect(iZ(this.connectOpts))):(Hh("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(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,e_e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",t_e),r.secureEndpoint?(Hh("Upgrading socket connection to TLS"),nZ.connect({...oZ(iZ(r),"host","path","port"),socket:n})):n;n.destroy();let d=new aI.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{Hh("Replaying proxy buffer for failed request"),(0,X6e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};AI.protocols=["http","https"];Zs.HttpsProxyAgent=AI;function t_e(t){t.resume()}function oZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var dZ=m($s=>{"use strict";var r_e=$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]})),s_e=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lZ=$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)&&r_e(e,t,r);return s_e(e,t),e},n_e=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var i_e=lZ(Q("net")),o_e=lZ(Q("tls")),a_e=n_e(iI()),A_e=Q("events"),c_e=Kx(),uZ=Q("url"),hl=(0,a_e.default)("http-proxy-agent"),cI=class extends c_e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new uZ.URL(e):e,this.proxyHeaders=r?.headers??{},hl("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?u_e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new uZ.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;hl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hl("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+A.substring(s),O0("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(O0("Creating `tls.Socket`: %o",this.connectOpts),n=fzt.connect(this.connectOpts)):(O0("Creating `net.Socket`: %o",this.connectOpts),n=Ezt.connect(this.connectOpts)),await(0,Bzt.once)(n,"connect"),n}};UL.protocols=["http","https"];Da.HttpProxyAgent=UL;function Qzt(t,...e){let r={},A;for(A in t)e.includes(A)||(r[A]=t[A]);return r}});var iZ=E(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.globalNoProxyList=Na.proxyPolicyName=void 0;Na.loadNoProxy=FHe;Na.getDefaultProxySettings=Tzt;Na.proxyPolicy=Fzt;var pzt=bHe(),mzt=NHe(),yzt=nN(),bzt="HTTPS_PROXY",wzt="HTTP_PROXY",Dzt="ALL_PROXY",Nzt="NO_PROXY";Na.proxyPolicyName="proxyPolicy";Na.globalNoProxyList=[];var THe=!1,Rzt=new Map;function ML(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}function kHe(){if(!process)return;let t=ML(bzt),e=ML(Dzt),r=ML(wzt);return t||e||r}function Szt(t,e,r){if(e.length===0)return!1;let A=new URL(t).hostname;if(r?.has(A))return r.get(A);let s=!1;for(let n of e)n[0]==="."?(A.endsWith(n)||A.length===n.length-1&&A===n.slice(1))&&(s=!0):A===n&&(s=!0);return r?.set(A,s),s}function FHe(){let t=ML(Nzt);return THe=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function Tzt(t){if(!t&&(t=kHe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}function kzt(){let t=kHe();return t?new URL(t):void 0}function RHe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}function SHe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&yzt.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let n=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new mzt.HttpProxyAgent(r,{headers:n})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new pzt.HttpsProxyAgent(r,{headers:n})),t.agent=e.httpsProxyAgent)}function Fzt(t,e){THe||Na.globalNoProxyList.push(...FHe());let r=t?RHe(t):kzt(),A={};return{name:Na.proxyPolicyName,async sendRequest(s,n){return!s.proxySettings&&r&&!Szt(s.url,e?.customNoProxyList??Na.globalNoProxyList,e?.customNoProxyList?void 0:Rzt)?SHe(s,A,r):s.proxySettings&&SHe(s,A,RHe(s.proxySettings)),n(s)}}}});var oZ=E(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});H0.agentPolicyName=void 0;H0.agentPolicy=xzt;H0.agentPolicyName="agentPolicy";function xzt(t){return{name:H0.agentPolicyName,sendRequest:async(e,r)=>(e.agent||(e.agent=t),r(e))}}});var aZ=E(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.tlsPolicyName=void 0;G0.tlsPolicy=Uzt;G0.tlsPolicyName="tlsPolicy";function Uzt(t){return{name:G0.tlsPolicyName,sendRequest:async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e))}}});var lN=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.isNodeReadableStream=xHe;jf.isWebReadableStream=UHe;jf.isBinaryBody=Mzt;jf.isReadableStream=MHe;jf.isBlob=Lzt;function xHe(t){return!!(t&&typeof t.pipe=="function")}function UHe(t){return!!(t&&typeof t.getReader=="function"&&typeof t.tee=="function")}function Mzt(t){return t!==void 0&&(t instanceof Uint8Array||MHe(t)||typeof t=="function"||t instanceof Blob)}function MHe(t){return xHe(t)||UHe(t)}function Lzt(t){return typeof t.stream=="function"}});var _He=E(uZ=>{"use strict";Object.defineProperty(uZ,"__esModule",{value:!0});uZ.concat=Ozt;var cZ=I("stream"),vzt=lN();async function*LHe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}function _zt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=LHe.bind(t)),t.values||(t.values=LHe.bind(t))}function vHe(t){return t instanceof ReadableStream?(_zt(t),cZ.Readable.fromWeb(t)):t}function Pzt(t){return t instanceof Uint8Array?cZ.Readable.from(Buffer.from(t)):(0,vzt.isBlob)(t)?vHe(t.stream()):vHe(t)}async function Ozt(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(Pzt);return cZ.Readable.from((async function*(){for(let r of e)for await(let A of r)yield A})())}}});var lZ=E(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.multipartPolicyName=void 0;q0.multipartPolicy=Zzt;var Y0=Vf(),Hzt=lN(),Gzt=lL(),Yzt=_He();function qzt(){return`----AzSDKFormBoundary${(0,Gzt.randomUUID)()}`}function Jzt(t){let e="";for(let[r,A]of t)e+=`${r}: ${A}\r
`;return e}function Vzt(t){return t instanceof Uint8Array?t.byteLength:(0,Hzt.isBlob)(t)?t.size===-1?void 0:t.size:void 0}function Wzt(t){let e=0;for(let r of t){let A=Vzt(r);if(A===void 0)return;e+=A}return e}async function zzt(t,e,r){let A=[(0,Y0.stringToUint8Array)(`--${r}`,"utf-8"),...e.flatMap(n=>[(0,Y0.stringToUint8Array)(`\r
`,"utf-8"),(0,Y0.stringToUint8Array)(Jzt(n.headers),"utf-8"),(0,Y0.stringToUint8Array)(`\r
`,"utf-8"),n.body,(0,Y0.stringToUint8Array)(`\r
--${r}`,"utf-8")]),(0,Y0.stringToUint8Array)(`--\r
\r
`,"utf-8")],s=Wzt(A);s&&t.headers.set("Content-Length",s),t.body=await(0,Yzt.concat)(A)}q0.multipartPolicyName="multipartPolicy";var jzt=70,Kzt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Xzt(t){if(t.length>jzt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Kzt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Zzt(){return{name:q0.multipartPolicyName,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,A=t.headers.get("Content-Type")??"multipart/mixed",s=A.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${A}`);let[,n,i]=s;if(i&&r&&i!==r)throw new Error(`Multipart boundary was specified as ${i} in the header, but got ${r} in the request body`);return r??=i,r?Xzt(r):r=qzt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await zzt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}});var HHe=E(gZ=>{"use strict";Object.defineProperty(gZ,"__esModule",{value:!0});gZ.createPipelineFromOptions=c7t;var $zt=PX(),e7t=NX(),t7t=OX(),r7t=YX(),A7t=qX(),s7t=ZX(),n7t=$X(),PHe=cN(),i7t=iZ(),o7t=oZ(),a7t=aZ(),OHe=lZ();function c7t(t){let e=(0,e7t.createEmptyPipeline)();return PHe.isNodeLike&&(t.agent&&e.addPolicy((0,o7t.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,a7t.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,i7t.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,A7t.decompressResponsePolicy)())),e.addPolicy((0,n7t.formDataPolicy)(),{beforePolicies:[OHe.multipartPolicyName]}),e.addPolicy((0,r7t.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,OHe.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,s7t.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),PHe.isNodeLike&&e.addPolicy((0,t7t.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,$zt.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});var GHe=E(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});J0.apiVersionPolicyName=void 0;J0.apiVersionPolicy=u7t;J0.apiVersionPolicyName="ApiVersionPolicy";function u7t(t){return{name:J0.apiVersionPolicyName,sendRequest:(e,r)=>{let A=new URL(e.url);return!A.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(A.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});var YHe=E(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.isOAuth2TokenCredential=l7t;V0.isBearerTokenCredential=g7t;V0.isBasicCredential=d7t;V0.isApiKeyCredential=h7t;function l7t(t){return"getOAuth2Token"in t}function g7t(t){return"getBearerToken"in t}function d7t(t){return"username"in t&&"password"in t}function h7t(t){return"key"in t}});var gN=E(dZ=>{"use strict";Object.defineProperty(dZ,"__esModule",{value:!0});dZ.ensureSecureConnection=B7t;var E7t=nN(),qHe=!1;function f7t(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){let r=new URL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}function C7t(){let t="Sending token over insecure transport. Assume any token issued is compromised.";E7t.logger.warning(t),typeof process?.emitWarning=="function"&&!qHe&&(qHe=!0,process.emitWarning(t))}function B7t(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(f7t(t,e))C7t();else throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var JHe=E(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.apiKeyAuthenticationPolicyName=void 0;W0.apiKeyAuthenticationPolicy=Q7t;var I7t=gN();W0.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function Q7t(t){return{name:W0.apiKeyAuthenticationPolicyName,async sendRequest(e,r){(0,I7t.ensureSecureConnection)(e,t);let A=(e.authSchemes??t.authSchemes)?.find(s=>s.kind==="apiKey");if(!A)return r(e);if(A.apiKeyLocation!=="header")throw new Error(`Unsupported API key location: ${A.apiKeyLocation}`);return e.headers.set(A.name,t.credential.key),r(e)}}}});var WHe=E(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});z0.basicAuthenticationPolicyName=void 0;z0.basicAuthenticationPolicy=m7t;var VHe=Vf(),p7t=gN();z0.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function m7t(t){return{name:z0.basicAuthenticationPolicyName,async sendRequest(e,r){if((0,p7t.ensureSecureConnection)(e,t),!(e.authSchemes??t.authSchemes)?.find(o=>o.kind==="http"&&o.scheme==="basic"))return r(e);let{username:s,password:n}=t.credential,i=(0,VHe.uint8ArrayToString)((0,VHe.stringToUint8Array)(`${s}:${n}`,"utf-8"),"base64");return e.headers.set("Authorization",`Basic ${i}`),r(e)}}}});var zHe=E(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.bearerAuthenticationPolicyName=void 0;j0.bearerA Line truncated
`).join(""))}return e(t)}}}});var G8e=E($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.auxiliaryAuthenticationHeaderPolicyName=void 0;$f.auxiliaryAuthenticationHeaderPolicy=nZt;var rZt=E$(),AZt=EN();$f.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var H8e="x-ms-authorization-auxiliary";async function sZt(t){let{scopes:e,getAccessToken:r,request:A}=t,s={abortSignal:A.abortSignal,tracingOptions:A.tracingOptions};return(await r(e,s))?.token??""}function nZt(t){let{credentials:e,scopes:r}=t,A=t.logger||AZt.logger,s=new WeakMap;return{name:$f.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(n,i){if(!n.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return A.info(`${$f.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`),i(n);let o=[];for(let c of e){let u=s.get(c);u||(u=(0,rZt.createTokenCycler)(c),s.set(c,u)),o.push(sZt({scopes:Array.isArray(r)?r:[r],request:n,getAccessToken:u,logger:A}))}let a=(await Promise.all(o)).filter(c=>!!c);return a.length===0?(A.warning(`None of the auxiliary tokens are valid. ${H8e} header will not be set.`),i(n)):(n.headers.set(H8e,a.map(c=>`Bearer ${c}`).join(", ")),i(n))}}}});var ns=E(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.createFileFromStream=Ae.createFile=Ae.agentPolicyName=Ae.agentPolicy=Ae.auxiliaryAuthenticationHeaderPolicyName=Ae.auxiliaryAuthenticationHeaderPolicy=Ae.ndJsonPolicyName=Ae.ndJsonPolicy=Ae.bearerTokenAuthenticationPolicyName=Ae.bearerTokenAuthenticationPolicy=Ae.formDataPolicyName=Ae.formDataPolicy=Ae.tlsPolicyName=Ae.tlsPolicy=Ae.userAgentPolicyName=Ae.userAgentPolicy=Ae.defaultRetryPolicy=Ae.tracingPolicyName=Ae.tracingPolicy=Ae.retryPolicy=Ae.throttlingRetryPolicyName=Ae.throttlingRetryPolicy=Ae.systemErrorRetryPolicyName=Ae.systemErrorRetryPolicy=Ae.redirectPolicyName=Ae.redirectPolicy=Ae.getDefaultProxySettings=Ae.proxyPolicyName=Ae.proxyPolicy=Ae.multipartPolicyName=Ae.multipartPolicy=Ae.logPolicyName=Ae.logPolicy=Ae.setClientRequestIdPolicyName=Ae.setClientRequestIdPolicy=Ae.exponentialRetryPolicyName=Ae.exponentialRetryPolicy=Ae.decompressResponsePolicyName=Ae.decompressResponsePolicy=Ae.isRestError=Ae.RestError=Ae.createPipelineRequest=Ae.createHttpHeaders=Ae.createDefaultHttpClient=Ae.createPipelineFromOptions=Ae.createEmptyPipeline=void 0;var iZt=bZ();Object.defineProperty(Ae,"createEmptyPipeline",{enumerable:!0,get:function(){return iZt.createEmptyPipeline}});var oZt=b8e();Object.defineProperty(Ae,"createPipelineFromOptions",{enumerable:!0,get:function(){return oZt.createPipelineFromOptions}});var aZt=w8e();Object.defineProperty(Ae,"createDefaultHttpClient",{enumerable:!0,get:function(){return aZt.createDefaultHttpClient}});var cZt=D8e();Object.defineProperty(Ae,"createHttpHeaders",{enumerable:!0,get:function(){return cZt.createHttpHeaders}});var uZt=N8e();Object.defineProperty(Ae,"createPipelineRequest",{enumerable:!0,get:function(){return uZt.createPipelineRequest}});var Y8e=Av();Object.defineProperty(Ae,"RestError",{enumerable:!0,get:function(){return Y8e.RestError}});Object.defineProperty(Ae,"isRestError",{enumerable:!0,get:function(){return Y8e.isRestError}});var q8e=zZ();Object.defineProperty(Ae,"decompressResponsePolicy",{enumerable:!0,get:function(){return q8e.decompressResponsePolicy}});Object.defineProperty(Ae,"decompressResponsePolicyName",{enumerable:!0,get:function(){return q8e.decompressResponsePolicyName}});var J8e=S8e();Object.defineProperty(Ae,"exponentialRetryPolicy",{enumerable:!0,get:function(){return J8e.exponentialRetryPolicy}});Object.defineProperty(Ae,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return J8e.exponentialRetryPolicyName}});var V8e=$Z();Object.defineProperty(Ae,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return V8e.setClientRequestIdPolicy}});Object.defineProperty(Ae,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return V8e.setClientRequestIdPolicyName}});var W8e=xZ();Object.defineProperty(Ae,"logPolicy",{enumerable:!0,get:function(){return W8e.logPolicy}});Object.defineProperty(Ae,"logPolicyName",{enumerable:!0,get:function(){return W8e.logPolicyName}});var z8e=WZ();Object.defineProperty(Ae,"multipartPolicy",{enumerable:!0,get:function(){return z8e.multipartPolicy}});Object.defineProperty(Ae,"multipartPolicyName",{enumerable:!0,get:function(){return z8e.multipartPolicyName}});var f$=ZZ();Object.defineProperty(Ae,"proxyPolicy",{enumerable:!0,get:function(){return f$.proxyPolicy}});Object.defineProperty(Ae,"proxyPolicyName",{enumerable:!0,get:function(){return f$.proxyPolicyName}});Object.defineProperty(Ae,"getDefaultProxySettings",{enumerable:!0,get:function(){return f$.getDefaultProxySettings}});var j8e=UZ();Object.defineProperty(Ae,"redirectPolicy",{enumerable:!0,get:function(){return j8e.redirectPolicy Line truncated
`&&m[v]!=="\r";v++)Z+=m[v];if(Z=Z.trim(),Z[Z.length-1]==="/"&&(Z=Z.substring(0,Z.length-1),v--),!n(Z)){let Ze;return Ze=Z.trim().length===0?"Invalid space after '<'.":"Tag '"+Z+"' is an invalid name.",C("InvalidTag",Ze,w(m,v))}let he=d(m,v);if(he===!1)return C("InvalidAttr","Attributes for '"+Z+"' have open quote.",w(m,v));let ht=he.value;if(v=he.index,ht[ht.length-1]==="/"){let Ze=v-ht.length;ht=ht.substring(0,ht.length-1);let wt=B(ht,y);if(wt!==!0)return C(wt.err.code,wt.err.msg,w(m,Ze+wt.err.line));G=!0}else if(V){if(!he.tagClosed)return C("InvalidTag","Closing tag '"+Z+"' doesn't have proper closing.",w(m,v));if(ht.trim().length>0)return C("InvalidTag","Closing tag '"+Z+"' can't have attributes or invalid starting.",w(m,W));if(x.length===0)return C("InvalidTag","Closing tag '"+Z+"' has not been opened.",w(m,W));{let Ze=x.pop();if(Z!==Ze.tagName){let wt=w(m,Ze.tagStartPos);return C("InvalidTag","Expected closing tag '"+Ze.tagName+"' (opened in line "+wt.line+", col "+wt.col+") instead of closing tag '"+Z+"'.",w(m,W))}x.length==0&&(U=!0)}}else{let Ze=B(ht,y);if(Ze!==!0)return C(Ze.err.code,Ze.err.msg,w(m,v-ht.length+Ze.err.line));if(U===!0)return C("InvalidXml","Multiple possible root nodes found.",w(m,v));y.unpairedTags.indexOf(Z)!==-1||x.push({tagName:Z,tagStartPos:W}),G=!0}for(v++;v<m.length;v++)if(m[v]==="<"){if(m[v+1]==="!"){v++,v=u(m,v);continue}if(m[v+1]!=="?")break;if(v=c(m,++v),v.err)return v}else if(m[v]==="&"){let Ze=Q(m,v);if(Ze==-1)return C("InvalidChar","char '&' is not expected.",w(m,v));v=Ze}else if(U===!0&&!a(m[v]))return C("InvalidXml","Extra text at the end",w(m,v));m[v]==="<"&&v--}}}return G?x.length==1?C("InvalidTag","Unclosed tag '"+x[0].tagName+"'.",w(m,x[0].tagStartPos)):!(x.length>0)||C("InvalidXml","Invalid '"+JSON.stringify(x.map((v=>v.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):C("InvalidXml","Start tag expected.",1)}function a(m){return m===" "||m===" "||m===`
`||m==="\r"}function c(m,y){let x=y;for(;y<m.length;y++)if(!(m[y]!="?"&&m[y]!=" ")){let G=m.substr(x,y-x);if(y>5&&G==="xml")return C("InvalidXml","XML declaration allowed only at the start of the document.",w(m,y));if(m[y]=="?"&&m[y+1]==">"){y++;break}}return y}function u(m,y){if(m.length>y+5&&m[y+1]==="-"&&m[y+2]==="-"){for(y+=3;y<m.length;y++)if(m[y]==="-"&&m[y+1]==="-"&&m[y+2]===">"){y+=2;break}}else if(m.length>y+8&&m[y+1]==="D"&&m[y+2]==="O"&&m[y+3]==="C"&&m[y+4]==="T"&&m[y+5]==="Y"&&m[y+6]==="P"&&m[y+7]==="E"){let x=1;for(y+=8;y<m.length;y++)if(m[y]==="<")x++;else if(m[y]===">"&&(x--,x===0))break}else if(m.length>y+9&&m[y+1]==="["&&m[y+2]==="C"&&m[y+3]==="D"&&m[y+4]==="A"&&m[y+5]==="T"&&m[y+6]==="A"&&m[y+7]==="["){for(y+=8;y<m.length;y++)if(m[y]==="]"&&m[y+1]==="]"&&m[y+2]===">"){y+=2;break}}return y}let l='"',g="'";function d(m,y){let x="",G="",U=!1;for(;y<m.length;y++){if(m[y]===l||m[y]===g)G===""?G=m[y]:G!==m[y]||(G="");else if(m[y]===">"&&G===""){U=!0;break}x+=m[y]}return G===""&&{value:x,index:y,tagClosed:U}}let h=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function B(m,y){let x=s(m,h),G={};for(let U=0;U<x.length;U++){if(x[U][1].length===0)return C("InvalidAttr","Attribute '"+x[U][2]+"' has no space in starting.",k(x[U]));if(x[U][3]!==void 0&&x[U][4]===void 0)return C("InvalidAttr","Attribute '"+x[U][2]+"' is without value.",k(x[U]));if(x[U][3]===void 0&&!y.allowBooleanAttributes)return C("InvalidAttr","boolean attribute '"+x[U][2]+"' is not allowed.",k(x[U]));let v=x[U][2];if(!p(v))return C("InvalidAttr","Attribute '"+v+"' is an invalid name.",k(x[U]));if(G.hasOwnProperty(v))return C("InvalidAttr","Attribute '"+v+"' is repeated.",k(x[U]));G[v]=1}return!0}function Q(m,y){if(m[++y]===";")return-1;if(m[y]==="#")return(function(G,U){let v=/\d/;for(G[U]==="x"&&(U++,v=/[\da-fA-F]/);U<G.length;U++){if(G[U]===";")return U;if(!G[U].match(v))break}return-1})(m,++y);let x=0;for(;y<m.length;y++,x++)if(!(m[y].match(/\w/)&&x<20)){if(m[y]===";")break;return-1}return y}function C(m,y,x){return{err:{code:m,msg:y,line:x.line||x,col:x.col}}}function p(m){return n(m)}function w(m,y){let x=m.substring(0,y).split(/\r?\n/);return{line:x.length,col:x[x.length-1].length+1}}function k(m){return m.startIndex+m[1].length}let J={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(m,y,x){return m},captureMetaData:!1},j;j=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class H{constructor(y){this.tagname=y,this.child=[],this[":@"]={}}add(y,x){y==="__proto__"&&(y="#__proto__"),this.child.push({[y]:x})}addChild(y,x){y.tagname==="__proto__"&&(y.tagname="#__proto__"),y[":@"]&&Object.keys(y[":@"]).length>0?this.child.push({[y.tagname]:y.child,":@":y[":@"]}):this.child.push({[y.tagname]:y.child}),x!==void 0&&(this.child[this.child.length-1][j]={startIndex:x})}static getMetaDataSymbol(){return j}}function $(m,y){let x={};if(m[y+3]!=="O"||m[y+4]!=="C"||m[y+5]!=="T"||m[y+6]!=="Y"||m[y+7]!=="P"||m[y+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{y+=9;let G=1,U=!1,v=!1,W="";for(;y<m.length;y++)if(m[y]!=="<"||v)if(m[y]===">"){if(v?m[y-1]==="-"&&m[y-2]==="-"&&(v=!1,G--):G--,G===0)break}else m[y]==="["?U=!0:W+=m[y];else{if(U&&be(m,y)){let V,Z;y+=7,[V,Z,y]=oe(m,y+1),Z.indexOf("&")===-1&&(x[Yt(V)]={regx:RegExp(`&${V};`,"g"),val:Z})}else if(U&&K(m,y))y+=8;else if(U&&le(m,y))y+=8;else if(U&&Le(m,y))y+=9;else{if(!Ie)throw new Error("Invalid DOCTYPE");v=!0}G++,W=""}if(G!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:y}}function oe(m,y){let x="";for(;y<m.length&&m[y]!=="'"&&m[y]!=='"';y++)x+=m[y];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");let G=m[y++],U="";for(;y<m.length&&m[y]!==G;y++)U+=m[y];return[x,U,y]}function Ie(m,y){return m[y+1]==="!"&&m[y+2]==="-"&&m[y+3]==="-"}function be(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="N"&&m[y+4]==="T"&&m[y+5]==="I"&&m[y+6]==="T"&&m[y+7]==="Y"}function K(m,y){return m[y+1]==="!"&&m[y+2]==="E"&&m[y+3]==="L"&&m[y+4]==="E"&&m[y+5]==="M"&&m[y+6]==="E"&&m[y+7]==="N"&&m[y+8]==="T"}function le(m,y){return m[y+1]==="!"&&m[y+2]==="A"&&m[y+3]==="T"&&m[y+4]==="T"&&m[y+5]==="L"&&m[y+6]==="I"&&m[y+7]==="S"&&m[y+8]==="T"}function Le(m,y){return m[y+1]==="!"&&m[y+2]==="N"&&m[y+3]==="O"&&m[y+4]==="T"&&m[y+5]==="A"&&m[y+6]==="T"&&m[y+7]==="I"&&m[y+8]==="O"&&m[y+9]==="N"}function Yt(m){if(n(m))return m;throw new Error(`Invalid entity name ${m}`)}let vt=/^[-+]?0x[a-fA-Line truncated
`);let y=new H("!xml"),x=y,G="",U="";for(let v=0;v<m.length;v++)if(m[v]==="<")if(m[v+1]==="/"){let W=Ph(m,">",v,"Closing Tag is not closed."),V=m.substring(v+2,W).trim();if(this.options.removeNSPrefix){let ht=V.indexOf(":");ht!==-1&&(V=V.substr(ht+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&(G=this.saveTextToParentTag(G,x,U));let Z=U.substring(U.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${V}>`);let he=0;Z&&this.options.unpairedTags.indexOf(Z)!==-1?(he=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop()):he=U.lastIndexOf("."),U=U.substring(0,he),x=this.tagsNodeStack.pop(),G="",v=W}else if(m[v+1]==="?"){let W=pO(m,v,!1,"?>");if(!W)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,x,U),!(this.options.ignoreDeclaration&&W.tagName==="?xml"||this.options.ignorePiTags)){let V=new H(W.tagName);V.add(this.options.textNodeName,""),W.tagName!==W.tagExp&&W.attrExpPresent&&(V[":@"]=this.buildAttributesMap(W.tagExp,U,W.tagName)),this.addChild(x,V,U,v)}v=W.closeIndex+1}else if(m.substr(v+1,3)==="!--"){let W=Ph(m,"-->",v+4,"Comment is not closed.");if(this.options.commentPropName){let V=m.substring(v+4,W-2);G=this.saveTextToParentTag(G,x,U),x.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}v=W}else if(m.substr(v+1,2)==="!D"){let W=$(m,v);this.docTypeEntities=W.entities,v=W.i}else if(m.substr(v+1,2)==="!["){let W=Ph(m,"]]>",v,"CDATA is not closed.")-2,V=m.substring(v+9,W);G=this.saveTextToParentTag(G,x,U);let Z=this.parseTextData(V,x.tagname,U,!0,!1,!0,!0);Z==null&&(Z=""),this.options.cdataPropName?x.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):x.add(this.options.textNodeName,Z),v=W+2}else{let W=pO(m,v,this.options.removeNSPrefix),V=W.tagName,Z=W.rawTagName,he=W.tagExp,ht=W.attrExpPresent,Ze=W.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),x&&G&&x.tagname!=="!xml"&&(G=this.saveTextToParentTag(G,x,U,!1));let wt=x;wt&&this.options.unpairedTags.indexOf(wt.tagname)!==-1&&(x=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."))),V!==y.tagname&&(U+=U?"."+V:V);let qr=v;if(this.isItStopNode(this.options.stopNodes,U,V)){let $A="";if(he.length>0&&he.lastIndexOf("/")===he.length-1)V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),v=W.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)v=W.closeIndex;else{let kc=this.readStopNodeData(m,Z,Ze+1);if(!kc)throw new Error(`Unexpected end of ${Z}`);v=kc.i,$A=kc.tagContent}let bo=new H(V);V!==he&&ht&&(bo[":@"]=this.buildAttributesMap(he,U,V)),$A&&($A=this.parseTextData($A,V,U,!0,ht,!0,!0)),U=U.substr(0,U.lastIndexOf(".")),bo.add(this.options.textNodeName,$A),this.addChild(x,bo,U,qr)}else{if(he.length>0&&he.lastIndexOf("/")===he.length-1){V[V.length-1]==="/"?(V=V.substr(0,V.length-1),U=U.substr(0,U.length-1),he=V):he=he.substr(0,he.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));let $A=new H(V);V!==he&&ht&&($A[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,$A,U,qr),U=U.substr(0,U.lastIndexOf("."))}else{let $A=new H(V);this.tagsNodeStack.push(x),V!==he&&ht&&($A[":@"]=this.buildAttributesMap(he,U,V)),this.addChild(x,$A,U,qr),x=$A}G="",v=Ze}}else G+=m[v];return y.child};function R9e(m,y,x,G){this.options.captureMetaData||(G=void 0);let U=this.options.updateTag(y.tagname,x,y[":@"]);U===!1||(typeof U=="string"&&(y.tagname=U),m.addChild(y,G))}let S9e=function(m){if(this.options.processEntities){for(let y in this.docTypeEntities){let x=this.docTypeEntities[y];m=m.replace(x.regx,x.val)}for(let y in this.lastEntities){let x=this.lastEntities[y];m=m.replace(x.regex,x.val)}if(this.options.htmlEntities)for(let y in this.htmlEntities){let x=this.htmlEntities[y];m=m.replace(x.regex,x.val)}m=m.replace(this.ampEntity.regex,this.ampEntity.val)}return m};function T9e(m,y,x,G){return m&&(G===void 0&&(G=y.child.length===0),(m=this.parseTextData(m,y.tagname,x,!1,!!y[":@"]&&Object.keys(y[":@"]).length!==0,G))!==void 0&&m!==""&&y.add(this.options.textNodeName,m),m=""),m}function k9e(m,y,x){let G="*."+x;for(let U in m){let v=m[U];if(G===v||y===v)return!0}return!1}function Ph(m,y,x,G){let U=m.indexOf(y,x);if(U===-1)throw new Error(G);return U+y.length-1}function pO(m,y,x,G=">"){let U=(function(Ze,wt,qr=">"){let $A,bo="";for(let kc=wt;kc<Ze.length;kc++){let Ng=Ze[kc];if($A)Ng===$A&&($A="");else if(Ng==='"'||Ng==="'")$A=Ng;else if(Ng===qr[0]){if(!qr[1])return{data:bo,index:kc};if(Ze[kc+1]===qr[1])return{data:bo,index:kc}}else Ng===" "&&(Ng=" ");bo+=Ng}})(m,y+1,G);if(!U)return;let v=U.data,W=U.index,V=v.search(/\s/),Z=v,he=!0;V!==-1&&(Z=v.substring(0,V),v=v.substring(V+1).trimStart());let ht=Z;if(x){let Ze=Z.indexOf(":");Ze!==-1&&(Z=Z.substr(Ze+1),he=Z!==U.data.substr(Ze+1))}return{tagName:Z,tagExp:v,closeIndex:W,attrExpPresent:he,rawTagName:ht}}function F9e(m,y,x){let G=x,U=1;for(;x<m.leLine truncated
`),wAe(m,y,"",x)}function wAe(m,y,x,G){let U="",v=!1;for(let W=0;W<m.length;W++){let V=m[W],Z=P9e(V);if(Z===void 0)continue;let he="";if(he=x.length===0?Z:`${x}.${Z}`,Z===y.textNodeName){let qr=V[Z];O9e(he,y)||(qr=y.tagValueProcessor(Z,qr),qr=NAe(qr,y)),v&&(U+=G),U+=qr,v=!1;continue}if(Z===y.cdataPropName){v&&(U+=G),U+=`<![CDATA[${V[Z][0][y.textNodeName]}]]>`,v=!1;continue}if(Z===y.commentPropName){U+=G+`<!--${V[Z][0][y.textNodeName]}-->`,v=!0;continue}if(Z[0]==="?"){let qr=DAe(V[":@"],y),$A=Z==="?xml"?"":G,bo=V[Z][0][y.textNodeName];bo=bo.length!==0?" "+bo:"",U+=$A+`<${Z}${bo}${qr}?>`,v=!0;continue}let ht=G;ht!==""&&(ht+=y.indentBy);let Ze=G+`<${Z}${DAe(V[":@"],y)}`,wt=wAe(V[Z],y,he,ht);y.unpairedTags.indexOf(Z)!==-1?y.suppressUnpairedNode?U+=Ze+">":U+=Ze+"/>":wt&&wt.length!==0||!y.suppressEmptyNode?wt&&wt.endsWith(">")?U+=Ze+`>${wt}${G}</${Z}>`:(U+=Ze+">",wt&&G!==""&&(wt.includes("/>")||wt.includes("</"))?U+=G+y.indentBy+wt+G:U+=wt,U+=`</${Z}>`):U+=Ze+"/>",v=!0}return U}function P9e(m){let y=Object.keys(m);for(let x=0;x<y.length;x++){let G=y[x];if(m.hasOwnProperty(G)&&G!==":@")return G}}function DAe(m,y){let x="";if(m&&!y.ignoreAttributes)for(let G in m){if(!m.hasOwnProperty(G))continue;let U=y.attributeValueProcessor(G,m[G]);U=NAe(U,y),U===!0&&y.suppressBooleanAttributes?x+=` ${G.substr(y.attributeNamePrefix.length)}`:x+=` ${G.substr(y.attributeNamePrefix.length)}="${U}"`}return x}function O9e(m,y){let x=(m=m.substr(0,m.length-y.textNodeName.length-1)).substr(m.lastIndexOf(".")+1);for(let G in y.stopNodes)if(y.stopNodes[G]===m||y.stopNodes[G]==="*."+x)return!0;return!1}function NAe(m,y){if(m&&m.length>0&&y.processEntities)for(let x=0;x<y.entities.length;x++){let G=y.entities[x];m=m.replace(G.regex,G.val)}return m}let H9e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(m,y){return y},attributeValueProcessor:function(m,y){return y},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};function Dg(m){this.options=Object.assign({},H9e,m),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=mo(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=q9e),this.processTextOrObjNode=G9e,this.options.format?(this.indentate=Y9e,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function G9e(m,y,x,G){let U=this.j2x(m,x+1,G.concat(y));return m[this.options.textNodeName]!==void 0&&Object.keys(m).length===1?this.buildTextValNode(m[this.options.textNodeName],y,U.attrStr,x):this.buildObjectNode(U.val,y,U.attrStr,x)}function Y9e(m){return this.options.indentBy.repeat(m)}function q9e(m){return!(!m.startsWith(this.options.attributeNamePrefix)||m===this.options.textNodeName)&&m.substr(this.attrPrefixLen)}Dg.prototype.build=function(m){return this.options.preserveOrder?_9e(m,this.options):(Array.isArray(m)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(m={[this.options.arrayNodeName]:m}),this.j2x(m,0,[]).val)},Dg.prototype.j2x=function(m,y,x){let G="",U="",v=x.join(".");for(let W in m)if(Object.prototype.hasOwnProperty.call(m,W))if(m[W]===void 0)this.isAttribute(W)&&(U+="");else if(m[W]===null)this.isAttribute(W)||W===this.options.cdataPropName?U+="":W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(m[W]instanceof Date)U+=this.buildTextValNode(m[W],W,"",y);else if(typeof m[W]!="object"){let V=this.isAttribute(W);if(V&&!this.ignoreAttributesFn(V,v))G+=this.buildAttrPairStr(V,""+m[W]);else if(!V)if(W===this.options.textNodeName){let Z=this.options.tagValueProcessor(W,""+m[W]);U+=this.replaceEntitiesValue(Z)}else U+=this.buildTextValNode(m[W],W,"",y)}else if(Array.isArray(m[W])){let V=m[W].length,Z="",he="";for(let ht=0;ht<V;ht++){let Ze=m[W][ht];if(Ze!==void 0)if(Ze===null)W[0]==="?"?U+=this.indentate(y)+"<"+W+"?"+this.tagEndChar:U+=this.indentate(y)+"<"+W+"/"+this.tagEndChar;else if(typeof Ze=="object")if(this.options.oneListGroup){let wt=this.j2x(Ze,y+1,x.concat(W));Z+=wt.val,this.options.attributesGroupName&&Ze.hasOwnProperty(this.options.attributesGroupName)&&(he+=wt.attrStr)}else Z+=this.processTextOrObjNode(Ze,W,y,x);else if(this.options.oneListGroup){let wt=this.options.tagValueProcessor(W,Ze);wt=this.replaceEntitiesValue(wt),Z+=wt}else Z+=this.buildTextValNode(Ze,W,"",y)}this.options.oneListGroup&&(Z=this.buildObjectNode(Z,W,he,y)),U+=Z}else if(this.options.attributesGroupName&&W===this.options.attributesGroupName){let V=Object.keys(m[W]),Z=V.length;for(let he=0;he<Z;he++)G+=this.buildAttrPairStr(V[he],""+m[W][V[he]])}else U+=this.processTextOrObjNode(m[W],W,y,x);return{attrStr:G,val:U}},Dg.prototype.buildAttrPairStr=function(m,y){return y=this.options.attributeValueProcessor(m,""+y),y=this.replaceEntitiesValue(y),this.options.suppressBooleanAttributes&&y==="true"?" "+m:" "+m+'="'+y+'"'},Dg.prototype.buildObjectNode=function(m,y,x,G){if(m==="")return y[0]==="?"?this.indentate(G)+"<"+y+x+"?"+this.tagEndChar:this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar;{let U="</"+y+this.tagEndChar,v="";return y[0]==="?"&&(v="?",U=""),!x&&x!==""||m.indexOf("<")!==-1?this.options.commentPropName!==!1&&y===this.options.commentPropName&&v.length===0?this.indentate(G)+`<!--${m}-->`+this.newLine:this.indentate(G)+"<"+y+x+v+this.tagEndChar+m+this.indentate(G)+U:this.indentate(G)+"<"+y+x+v+">"+m+U}},Dg.prototype.closeTag=function(m){let y="";return this.options.unpairedTags.indexOf(m)!==-1?this.options.suppressUnpairedNode||(y="/"):y=this.options.suppressEmptyNode?"/":`></${m}`,y},Dg.prototype.buildTextValNode=function(m,y,x,G){if(this.options.cdataPropName!==!1&&y===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${m}]]>`+this.newLine;if(this.options.commentPropName!==!1&&y===this.options.commentPropName)return this.indentate(G)+`<!--${m}-->`+this.newLine;if(y[0]==="?")return this.indentate(G)+"<"+y+x+"?"+this.tagEndChar;{let U=this.options.tagValueProcessor(y,m);return U=this.replaceEntitiesValue(U),U===""?this.indentate(G)+"<"+y+x+this.closeTag(y)+this.tagEndChar:this.indentate(G)+"<"+y+x+">"+U+"</"+y+this.tagEndChar}},Dg.prototype.replaceEntitiesValue=function(m){if(m&&m.length>0&&this.options.processEntities)for(let y=0;y<this.options.entities.length;y++){let x=this.options.entities[y];m=m.replace(x.regex,x.val)}return m};let J9e={validate:o};nYe.exports=e})()});var G$=E(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.XML_CHARKEY=Cp.XML_ATTRKEY=void 0;Cp.XML_ATTRKEY="$";Cp.XML_CHARKEY="_"});var cYe=E(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.stringifyXML=per;wv.parseXML=mer;var Y$=iYe(),oYe=G$();function aYe(t){var e;return{attributesGroupName:oYe.XML_ATTRKEY,textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:oYe.XML_CHARKEY,ignoreAttributes:!1,suppressBooleanAttributes:!1}}function Ier(t={}){var e,r;return Object.assign(Object.assign({},aYe(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function Qer(t={}){return Object.assign(Object.assign({},aYe(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodesLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),A=this.factory.computeHMACSHA256(r);return e.headers.set(nn.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${A}`),e}getHeaderValueToSign(e,r){let A=e.headers.get(r);return!A||r===nn.HeaderConstants.CONTENT_LENGTH&&A==="0"?"":A}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(nn.HeaderConstants.PREFIX_FOR_STORAGE));r.sort((s,n)=>(0,dtr.compareHeader)(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,i)=>!(n>0&&s.name.toLowerCase()===i[n-1].name.toLowerCase()));let A="";return r.forEach(s=>{A+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),A}getCanonicalizedResourceString(e){let r=(0,TYe.getURLPath)(e.url)||"/",A="";A+=`/${this.factory.accountName}${r}`;let s=(0,TYe.getURLQueries)(e.url),n={};if(s){let i=[];for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o)){let a=o.toLowerCase();n[a]=s[o],i.push(a)}i.sort();for(let o of i)A+=`
${o}:${decodeURIComponent(n[o])}`}return A}};Ov.StorageSharedKeyCredentialPolicy=oee});var kYe=E(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});Hv.StorageSharedKeyCredential=void 0;var htr=I("node:crypto"),Etr=aee(),ftr=_v(),cee=class extends ftr.Credential{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Etr.StorageSharedKeyCredentialPolicy(e,r,this)}computeHMACSHA256(e){return(0,htr.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};Hv.StorageSharedKeyCredential=cee});var FYe=E(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});Gv.AbortError=void 0;var uee=class extends Error{constructor(e){super(e),this.name="AbortError"}};Gv.AbortError=uee});var lee=E(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.AbortError=void 0;var Ctr=FYe();Object.defineProperty(Yv,"AbortError",{enumerable:!0,get:function(){return Ctr.AbortError}})});var gee=E(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.logger=void 0;var Btr=Kf();qv.logger=(0,Btr.createClientLogger)("storage-common")});var dee=E(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});Jv.StorageRetryPolicyType=void 0;var xYe;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(xYe||(Jv.StorageRetryPolicyType=xYe={}))});var MYe=E(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.StorageRetryPolicy=void 0;GN.NewRetryPolicyFactory=ptr;var Itr=lee(),Qtr=HN(),UYe=fg(),hee=tC(),Bh=gee(),Eee=dee();function ptr(t){return{create:(e,r)=>new Vv(e,r,t)}}var Ih={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Eee.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mtr=new Itr.AbortError("The operation was aborted."),Vv=class extends Qtr.BaseRequestPolicy{retryOptions;constructor(e,r,A=Ih){super(e,r),this.retryOptions={retryPolicyType:A.retryPolicyType?A.retryPolicyType:Ih.retryPolicyType,maxTries:A.maxTries&&A.maxTries>=1?Math.floor(A.maxTries):Ih.maxTries,tryTimeoutInMs:A.tryTimeoutInMs&&A.tryTimeoutInMs>=0?A.tryTimeoutInMs:Ih.tryTimeoutInMs,retryDelayInMs:A.retryDelayInMs&&A.retryDelayInMs>=0?Math.min(A.retryDelayInMs,A.maxRetryDelayInMs?A.maxRetryDelayInMs:Ih.maxRetryDelayInMs):Ih.retryDelayInMs,maxRetryDelayInMs:A.maxRetryDelayInMs&&A.maxRetryDelayInMs>=0?A.maxRetryDelayInMs:Ih.maxRetryDelayInMs,secondaryHost:A.secondaryHost?A.secondaryHost:Ih.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,A){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||A%2===1;n||(s.url=(0,hee.setURLHost)(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=(0,hee.setURLParameter)(s.url,UYe.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if(Bh.logger.info(`RetryPolicy: =====> Try=${A} ${n?"Primary":"Secondary"}`),i=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,A,i))return i;r=r||!n&&i.status===404}catch(o){if(Bh.logger.error(`RetryPolicy: Caught error, message: ${o.message}, code: ${o.code}`),!this.shouldRetry(n,A,i,o))throw o}return await this.delay(n,A,e.abortSignal),this.attemptSendRequest(e,r,++A)}shouldRetry(e,r,A,s){if(r>=this.retryOptions.maxTries)return Bh.logger.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let i of n)if(s.name.toUpperCase().includes(i)||s.message.toUpperCase().includes(i)||s.code&&s.code.toString().toUpperCase()===i)return Bh.logger.info(`RetryPolicy: Network error ${i} found, will retry.`),!0}if(A||s){let i=A?A.status:s?s.statusCode:0;if(!e&&i===404)return Bh.logger.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return Bh.logger.info(`RetryPolicy: Will retry for status code ${i}.`),!0}if(A&&A?.status>=400){let i=A.headers.get(UYe.HeaderConstants.X_MS_CopySourceErrorCode);if(i!==void 0)switch(i){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Bh.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,A){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Eee.StorageRetryPolicyType.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Eee.StorageRetryPolicyType.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Bh.logger.info(`RetryPolicy: Delay for ${s}ms`),(0,hee.delay)(s,A,mtr)}};GN.StorageRetryPolicy=Vv});var Bee=E(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{val Line truncated
`)+`
`+A(n)+s(n),o=(0,Utr.createHmac)("sha256",t.accountKey).update(i,"utf8").digest("base64");n.headers.set(on.HeaderConstants.AUTHORIZATION,`SharedKey ${t.accountName}:${o}`)}function r(n,i){let o=n.headers.get(i);return!o||i===on.HeaderConstants.CONTENT_LENGTH&&o==="0"?"":o}function A(n){let i=[];for(let[a,c]of n.headers)a.toLowerCase().startsWith(on.HeaderConstants.PREFIX_FOR_STORAGE)&&i.push({name:a,value:c});i.sort((a,c)=>(0,Mtr.compareHeader)(a.name.toLowerCase(),c.name.toLowerCase())),i=i.filter((a,c,u)=>!(c>0&&a.name.toLowerCase()===u[c-1].name.toLowerCase()));let o="";return i.forEach(a=>{o+=`${a.name.toLowerCase().trimRight()}:${a.value.trimLeft()}
`}),o}function s(n){let i=(0,HYe.getURLPath)(n.url)||"/",o="";o+=`/${t.accountName}${i}`;let a=(0,HYe.getURLQueries)(n.url),c={};if(a){let u=[];for(let l in a)if(Object.prototype.hasOwnProperty.call(a,l)){let g=l.toLowerCase();c[g]=a[l],u.push(g)}u.sort();for(let l of u)o+=`
${l}:${decodeURIComponent(c[l])}`}return o}return{name:bp.storageSharedKeyCredentialPolicyName,async sendRequest(n,i){return e(n),i(n)}}}});var YYe=E(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.storageRequestFailureDetailsParserPolicyName=void 0;wp.storageRequestFailureDetailsParserPolicy=vtr;wp.storageRequestFailureDetailsParserPolicyName="storageRequestFailureDetailsParserPolicy";function vtr(){return{name:wp.storageRequestFailureDetailsParserPolicyName,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}});var qYe=E(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.UserDelegationKeyCredential=void 0;var _tr=I("node:crypto"),mee=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,_tr.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};Wv.UserDelegationKeyCredential=mee});var wc=E(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});pA.BaseRequestPolicy=pA.getCachedDefaultHttpClient=void 0;var an=(Rr(),xr(Nr));an.__exportStar(hYe(),pA);var Ptr=EYe();Object.defineProperty(pA,"getCachedDefaultHttpClient",{enumerable:!0,get:function(){return Ptr.getCachedDefaultHttpClient}});an.__exportStar(CYe(),pA);an.__exportStar(RYe(),pA);an.__exportStar(SYe(),pA);an.__exportStar(_v(),pA);an.__exportStar(kYe(),pA);an.__exportStar(Bee(),pA);var Otr=HN();Object.defineProperty(pA,"BaseRequestPolicy",{enumerable:!0,get:function(){return Otr.BaseRequestPolicy}});an.__exportStar(ree(),pA);an.__exportStar(Mv(),pA);an.__exportStar(LYe(),pA);an.__exportStar(vYe(),pA);an.__exportStar(OYe(),pA);an.__exportStar(aee(),pA);an.__exportStar(GYe(),pA);an.__exportStar(YYe(),pA);an.__exportStar(qYe(),pA)});var fo=E(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.PathStylePorts=Re.BlobDoesNotUseCustomerSpecifiedEncryption=Re.BlobUsesCustomerSpecifiedEncryptionMsg=Re.StorageBlobLoggingAllowedQueryParameters=Re.StorageBlobLoggingAllowedHeaderNames=Re.DevelopmentConnectionString=Re.EncryptionAlgorithmAES25=Re.HTTP_VERSION_1_1=Re.HTTP_LINE_ENDING=Re.BATCH_MAX_PAYLOAD_IN_BYTES=Re.BATCH_MAX_REQUEST=Re.SIZE_1_MB=Re.ETagAny=Re.ETagNone=Re.HeaderConstants=Re.HTTPURLConnection=Re.URLConstants=Re.StorageOAuthScopes=Re.REQUEST_TIMEOUT=Re.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=Re.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=Re.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=Re.BLOCK_BLOB_MAX_BLOCKS=Re.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=Re.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=Re.SERVICE_VERSION=Re.SDK_VERSION=void 0;Re.SDK_VERSION="12.31.0";Re.SERVICE_VERSION="2026-02-06";Re.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;Re.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;Re.BLOCK_BLOB_MAX_BLOCKS=5e4;Re.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;Re.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;Re.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;Re.REQUEST_TIMEOUT=100*1e3;Re.StorageOAuthScopes="https://storage.azure.com/.default";Re.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};Re.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};Re.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};Re.ETagNone="";Re.ETagAny="*";Re.SIZE_1_MB=1*1024*1024;Re.BATCH_MAX_REQUEST=256;Re.BATCH_MAX_PAYLOAD_IN_BYTES=4*Re.SIZE_1_MB;Re.HTTP_LINE_ENDING=`\r
`;Re.HTTP_VERSION_1_1="HTTP/1.1";Re.EncryptionAlgorithmAES25="AES256";Re.DevelopmentConnectionString="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;";Re.StorageBlobLoggingAllowedHeaderNames=["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"];Re.StorageBlobLoggingAllowedQueryParameters=["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"];Re.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";Re.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";Re.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]});var Qh=E(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.Pipeline=Gu.StorageOAuthScopes=void 0;Gu.isPipelineLike=Gtr;Gu.newPipeline=Ytr;Gu.getCoreClientOptions=Jtr;Gu.getCredentialFromPipeline=jYe;var zYe=bv(),JYe=ns(),VYe=Pu(),WYe=q$(),yee=gp(),Htr=Nv(),Co=wc(),YN=fo();Object.defineProperty(Gu,"StorageOAuthScopes",{enumerable:!0,get:function(){return YN.StorageOAuthScopes}});function Gtr(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 zv=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};Gu.Pipeline=zv;function Ytr(t,e={}){t||(t=new Co.AnonymousCredential);let r=new zv([],e);return r._credential=t,r}function qtr(t){let e=[Vtr,KYe,Wtr,ztr,jtr,Ktr,Ztr];if(t.factories.length){let r=t.factories.filter(A=>!e.some(s=>s(A)));if(r.length){let A=r.some(s=>Xtr(s));return{wrappedPolicies:(0,zYe.createRequestPolicyFactoryPolicy)(r),afterRetry:A}}}}function Jtr(t){let{httpClient:e,...r}=t.options,A=t._coreHttpClient;A||(A=e?(0,zYe.convertHttpClient)(e):(0,Co.getCachedDefaultHttpClient)(),t._coreHttpClient=A);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${YN.SDK_VERSION}`,i=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=(0,VYe.createClientPipeline)({...r,loggingOptions:{additionalAllowedHeaderNames:YN.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:YN.StorageBlobLoggingAllowedQueryParameters,logger:Htr.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:WYe.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deseriali Line truncated
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new oC.SASQueryParameters(t.version,n,A,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 csr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(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 usr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(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,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function lsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(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,e.userDelegationKey),stringToSign:n}}function gsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function dsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function hsr(t,e){if(t=cC(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",A=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",A=t.versionId));let s;t.permissions&&(t.blobName?s=sC.BlobSASPermissions.parse(t.permissions.toString()).toString():s=nC.ContainerSASPermissions.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?(0,mA.truncatedISO8061Date)(t.startsOn,!1):"",t.expiresOn?(0,mA.truncatedISO8061Date)(t.expiresOn,!1):"",aC(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?(0,mA.truncatedISO8061Date)(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?(0,iC.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,A,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new oC.SASQueryParameters(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function aC(t,e,r){let A=[`/blob/${t}/${e}`];return r&&A.push(`/${r}`),A.join("")}function cC(t){let e=t.version?t.version:M4e.SERVICE_VERSION;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 B_=E(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.BlobLeaseClient=void 0;var Esr=Zr(),qu=fo(),JN=AC(),f_=Sa(),Vee=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let A=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=A.container):(this._isContainer=!1,this._containerOrBlobOperation=A.blob),r||(r=(0,Esr.randomUUID)()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==qu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==qu.ETagNone||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 JN.tracingClient.withSpan("BlobLeaseClient-acquireLease",r,async A=>(0,f_.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:A.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==qu.ETagNone||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==qu.ETagNone||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 JN.tracingClient.withSpan("BlobLeaseClient-changeLease",r,async A=>{let s=(0,f_.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:A.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==qu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==qu.ETagNone||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 JN.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,async r=>(0,f_.assertResponse)(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!==qu.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.i Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${rqe.terminalStates.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let l=i(c,r);if(l!==void 0)return{response:await e(l).catch(tqe({state:r,stateProxy:A,isOperationError:o})),status:u}}return{response:c,status:u}}async function Ysr(t){let{poll:e,state:r,stateProxy:A,options:s,getOperationStatus:n,getResourceLocation:i,getOperationLocation:o,isOperationError:a,withOperationLocation:c,getPollingInterval:u,processResult:l,getError:g,updateState:d,setDelay:h,isDone:B,setErrorAsResult:Q}=t,{operationLocation:C}=r.config;if(C!==void 0){let{response:p,status:w}=await Gsr({poll:e,getOperationStatus:n,state:r,stateProxy:A,operationLocation:C,getResourceLocation:i,isOperationError:a,options:s});if(Aqe({status:w,response:p,state:r,stateProxy:A,isDone:B,processResult:l,getError:g,setErrorAsResult:Q}),!rqe.terminalStates.includes(w)){let k=u?.(p);k&&h(k);let J=o?.(p,r);if(J!==void 0){let j=C!==J;r.config.operationLocation=J,c?.(J,j)}else c?.(C,!1)}d?.(r,p)}}Rh.pollOperation=Ysr});var Ete=E(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});yA.pollHttpOperation=yA.isOperationError=yA.getResourceLocation=yA.getOperationStatus=yA.getOperationLocation=yA.initHttpOperation=yA.getStatusFromInitialResponse=yA.getErrorFromResponse=yA.parseRetryAfter=yA.inferLroMode=void 0;var sqe=k_(),gte=S_();function nqe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function iqe(t){return t.headers.location}function oqe(t){return t.headers["operation-location"]}function aqe(t){return t.headers["azure-asyncoperation"]}function qsr(t){var e;let{location:r,requestMethod:A,requestPath:s,resourceLocationConfig:n}=t;switch(A){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=i())!==null&&e!==void 0?e:s;default:return i()}function i(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function cqe(t){let{rawResponse:e,requestMethod:r,requestPath:A,resourceLocationConfig:s}=t,n=oqe(e),i=aqe(e),o=nqe({operationLocation:n,azureAsyncOperation:i}),a=iqe(e),c=r?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:qsr({requestMethod:c,location:a,requestPath:A,resourceLocationConfig:s})}:a!==void 0?{mode:"ResourceLocation",operationLocation:a}:c==="PUT"&&A?{mode:"Body",operationLocation:A}:void 0}yA.inferLroMode=cqe;function uqe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return dte(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return gte.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Jsr(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return uqe({status:r,statusCode:t.statusCode})}function Vsr(t){var e,r;let{properties:A,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=A?.provisioningState)!==null&&r!==void 0?r:s;return uqe({status:n,statusCode:t.statusCode})}function dte(t){return t===202?"running":t<300?"succeeded":"failed"}function lqe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Wsr(new Date(e)):r*1e3}}yA.parseRetryAfter=lqe;function gqe(t){let e=Eqe(t,"error");if(!e){gte.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){gte.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}yA.getErrorFromResponse=gqe;function Wsr(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function dqe(t){let{response:e,state:r,operationLocation:A}=t;function s(){var i;switch((i=r.config.metadata)===null||i===void 0?void 0:i.mode){case void 0:return dte(e.rawResponse.statusCode);case"Body":return hte(e,r);default:return"running"}}let n=s();return n==="running"&&A===void 0?"succeeded":n}yA.getStatusFromInitialResponse=dqe;async function zsr(t){let{stateProxy:e,resourceLocationConfig:r,processResult:A,lro:s,setErrorAsResult:n}=t;return(0,sqe.initOperation)({init:async()=>{let i=await s.sendInitialRequest(),o=cqe({rawResponse:i.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:i,operationLocation:o?.operationLocation,resourceLocation:o?.resourceLocation},o?.mode?{metadata:{mode:o.mode}}:{})},stateProxy:e,processResult:A?({flatResponse:i},o)=>A(i,o):({flatResponse:i})=>i,getOperationStatus:dqe,setErrorAsResult:n})}yA.initHttpOperation=zsr;function hqe({rawResponse:t},e){var r;sLine truncated
`):i=[e.accountName,A,s,n,t.startsOn?(0,gP.truncatedISO8061Date)(t.startsOn,!1):"",(0,gP.truncatedISO8061Date)(t.expiresOn,!1),t.ipRange?(0,Yqe.ipRangeToString)(t.ipRange):"",t.protocol?t.protocol:"",r,""].join(`
`);let o=e.computeHMACSHA256(i);return{sasQueryParameters:new tir.SASQueryParameters(r,o,A.toString(),s,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}});var jqe=E(EP=>{"use strict";Object.defineProperty(EP,"__esModule",{value:!0});EP.BlobServiceClient=void 0;var sir=gp(),nir=ns(),Jqe=Zr(),jN=Qh(),iir=Ote(),hP=Sa(),dC=wc(),ju=Sa(),Ku=AC(),oir=AP(),air=o_(),Vqe=aP(),Wqe=Jte(),zqe=lP(),Vte=class t extends air.StorageClient{serviceContext;static fromConnectionString(e,r){r=r||{};let A=(0,hP.extractConnectionStringParts)(e);if(A.kind==="AccountConnString")if(Jqe.isNodeLike){let s=new dC.StorageSharedKeyCredential(A.accountName,A.accountKey);r.proxyOptions||(r.proxyOptions=(0,nir.getDefaultProxySettings)(A.proxyUri));let n=(0,jN.newPipeline)(s,r);return new t(A.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(A.kind==="SASConnString"){let s=(0,jN.newPipeline)(new dC.AnonymousCredential,r);return new t(A.url+"?"+A.accountSas,s)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,A){let s;(0,jN.isPipelineLike)(r)?s=r:Jqe.isNodeLike&&r instanceof dC.StorageSharedKeyCredential||r instanceof dC.AnonymousCredential||(0,sir.isTokenCredential)(r)?s=(0,jN.newPipeline)(r,A):s=(0,jN.newPipeline)(new dC.AnonymousCredential,A),super(e,s),this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new iir.ContainerClient((0,hP.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-createContainer",r,async A=>{let s=this.getContainerClient(e),n=await s.create(A);return{containerClient:s,containerCreateResponse:n}})}async deleteContainer(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-deleteContainer",r,async A=>this.getContainerClient(e).delete(A))}async undeleteContainer(e,r,A={}){return Ku.tracingClient.withSpan("BlobServiceClient-undeleteContainer",A,async s=>{let n=this.getContainerClient(A.destinationContainerName||e),i=n.storageClientContext.container,o=(0,ju.assertResponse)(await i.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:s.tracingOptions}));return{containerClient:n,containerUndeleteResponse:o}})}async getProperties(e={}){return Ku.tracingClient.withSpan("BlobServiceClient-getProperties",e,async r=>(0,ju.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setProperties(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-setProperties",r,async A=>(0,ju.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:A.tracingOptions})))}async getStatistics(e={}){return Ku.tracingClient.withSpan("BlobServiceClient-getStatistics",e,async r=>(0,ju.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async getAccountInfo(e={}){return Ku.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,async r=>(0,ju.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async listContainersSegment(e,r={}){return Ku.tracingClient.withSpan("BlobServiceClient-listContainersSegment",r,async A=>(0,ju.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:r.abortSignal,marker:e,...r,include:typeof r.include=="string"?[r.include]:r.include,tracingOptions:A.tracingOptions})))}async findBlobsByTagsSegment(e,r,A={}){return Ku.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",A,async s=>{let n=(0,ju.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:A.abortSignal,where:e,marker:r,maxPageSize:A.maxPageSize,tracingOptions:s.tracingOptions}));return{...n,_response:n._response,blobs:n.blobs.map(o=>{let a="";return o.tags?.blobTagSet.length===1&&(a=o.tags.blobTagSet[0].value),{...o,tags:(0,hP.toTags)(o.tags),tagValue:a}})}})}async*findBlobsByTagsSegments(e,r,A={}){let s;if(r||r===void 0)do s=await this.findBlobsByTagsSegment(e,r,A),s.blobs=s.blobs||[],r=s.continuationToken,yield s;while(r)}async*findBlobsByTagsItems(e,r={}){let A;for await(let s of this.findBlobsByTagsSegments(e,A,r))yield*s.blobs}findBlobsByTags(e,r={}){let A={...r},s=this.findBlobsByTagsItems(e,A);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(e,n.continuationToken,{maxPageSize:n.maxPageSize,...A})}}async*listSegments(e,r={}){let A;if(e||e===void 0)do A=await this.listContainersSegment(e,r),A.containerItems=A.containerItems||[],e=A.continuationToken,yield await A;while(e)}async*listItems(e={}){let r;for await(let A of this.listSegments(r,e))yield*A.containerItems}listContainers(e={}){e.prefix===""&&(e.prefix=void 0);let r=[];e.i 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"}};pi.NetworkError=IP;IP.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var QP=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};pi.UsageError=QP;QP.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var e5e=E(mi=>{"use strict";var dir=mi&&mi.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),hir=mi&&mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Eir=mi&&mi.__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)&&dir(e,t,r);return hir(e,t),e},fir=mi&&mi.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(mi,"__esModule",{value:!0});mi.uploadCacheArchiveSDK=mi.UploadProgress=void 0;var $te=Eir(go()),Cir=Wte(),Bir=Zte(),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),A=Date.now()-this.startTime,s=(e/(1024*1024)/(A/1e3)).toFixed(1);$te.info(`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()}};mi.UploadProgress=pP;function Iir(t,e,r){var A;return fir(this,void 0,void 0,function*(){let s=new Cir.BlobClient(t),n=s.getBlockBlobClient(),i=new pP((A=r?.archiveSizeBytes)!==null&&A!==void 0?A:0),o={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:i.onProgress()};try{i.startDisplayTimer(),$te.debug(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let a=yield n.uploadFile(e,o);if(a._response.status>=400)throw new Bir.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${a._response.status}`);return a}catch(a){throw $te.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${a.message}`),a}finally{i.stopDisplayTimer()}})}mi.uploadCacheArchiveSDK=Iir});var tre=E(wA=>{"use strict";var Qir=wA&&wA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),pir=wA&&wA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mir=wA&&wA.__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)&&Qir(e,t,r);return pir(e,t),e},yP=wA&&wA.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(wA,"__esModule",{value:!0});wA.retryHttpClientResponse=wA.retryTypedResponse=wA.retry=wA.isRetryableStatusCode=wA.isServerErrorStatusCode=wA.isSuccessStatusCode=void 0;var t5e=mir(go()),mP=Pf(),Op=m0();function yir(t){return t?t>=200&&t<300:!1}wA.isSuccessStatusCode=yir;function r5e(t){return t?t>=500:!0}wA.isServerErrorStatusCode=r5e;function A5e(t){return t?[mP.HttpCodes.BadGateway,mP.HttpCodes.ServiceUnavailable,mP.HttpCodes.GatewayTimeout].includes(t):!1}wA.isRetryableStatusCode=A5e;function bir(t){return yP(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ere(t,e,r,A=Op.DefaultRetryAttempts,s=Op.DefaultRetryDelay,n=void 0){return yP(this,void 0,void 0,function*(){let i="",o=1;for(;o<=A;){let a,c,u=!1;try{a=yield e()}catch(l){n&&(a=n(l)),u=!0,i=l.message}if(a&&(c=r(a),!r5e(c)))return a;if(c&&(u=A5e(c),i=`Cache service responded with ${c}`),t5e.debug(`${t} - Attempt ${o} of Line truncated
Other caches with similar key:`);for(let o of n?.artifactCaches||[])Qo.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}function oor(t,e,r){return yi(this,void 0,void 0,function*(){let A=new $ir.URL(t),s=(0,are.getDownloadOptions)(r);A.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield(0,NP.downloadCacheStorageSDK)(t,e,s):s.concurrentBlobDownloads?yield(0,NP.downloadCacheHttpClientConcurrent)(t,e,s):yield(0,NP.downloadCacheHttpClient)(t,e):yield(0,NP.downloadCacheHttpClient)(t,e)})}Ns.downloadCache=oor;function aor(t,e,r){return yi(this,void 0,void 0,function*(){let A=cre(),s=Yp.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield(0,Fh.retryTypedResponse)("reserveCache",()=>yi(this,void 0,void 0,function*(){return A.postJson(tR("caches"),n)}))})}Ns.reserveCache=aor;function E5e(t,e){return`bytes ${t}-${e}/*`}function cor(t,e,r,A,s){return yi(this,void 0,void 0,function*(){Qo.debug(`Uploading chunk of size ${s-A+1} bytes at offset ${A} with content range: ${E5e(A,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":E5e(A,s)},i=yield(0,Fh.retryHttpClientResponse)(`uploadChunk (start: ${A}, end: ${s})`,()=>yi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!(0,Fh.isSuccessStatusCode)(i.message.statusCode))throw new Error(`Cache service responded with ${i.message.statusCode} during upload chunk.`)})}function uor(t,e,r,A){return yi(this,void 0,void 0,function*(){let s=Yp.getArchiveFileSizeInBytes(r),n=tR(`caches/${e.toString()}`),i=ire.openSync(r,"r"),o=(0,are.getUploadOptions)(A),a=Yp.assertDefined("uploadConcurrency",o.uploadConcurrency),c=Yp.assertDefined("uploadChunkSize",o.uploadChunkSize),u=[...new Array(a).keys()];Qo.debug("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>yi(this,void 0,void 0,function*(){for(;l<s;){let g=Math.min(s-l,c),d=l,h=l+g-1;l+=c,yield cor(t,n,()=>ire.createReadStream(r,{fd:i,start:d,end:h,autoClose:!1}).on("error",B=>{throw new Error(`Cache upload failed because file read failed with ${B.message}`)}),d,h)}})))}finally{ire.closeSync(i)}})}function lor(t,e,r){return yi(this,void 0,void 0,function*(){let A={size:r};return yield(0,Fh.retryTypedResponse)("commitCache",()=>yi(this,void 0,void 0,function*(){return t.postJson(tR(`caches/${e.toString()}`),A)}))})}function gor(t,e,r,A){return yi(this,void 0,void 0,function*(){if((0,are.getUploadOptions)(A).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,eor.uploadCacheArchiveSDK)(r,e,A)}else{let n=cre();Qo.debug("Upload cache"),yield uor(n,t,e,A),Qo.debug("Commiting cache");let i=Yp.getArchiveFileSizeInBytes(e);Qo.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let o=yield lor(n,t,i);if(!(0,Fh.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);Qo.info("Cache saved successfully")}})}Ns.saveCache=gor});var RP=E(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.isJsonObject=qp.typeofJsonValue=void 0;function dor(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}qp.typeofJsonValue=dor;function hor(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}qp.isJsonObject=hor});var TP=E(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.base64encode=Jp.base64decode=void 0;var Qg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),SP=[];for(let t=0;t<Qg.length;t++)SP[Qg[t].charCodeAt(0)]=t;SP[45]=Qg.indexOf("+");SP[95]=Qg.indexOf("/");function Eor(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),A=0,s=0,n,i=0;for(let o=0;o<t.length;o++){if(n=SP[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:i=n,s=1;break;case 1:r[A++]=i<<2|(n&48)>>4,i=n,s=2;break;case 2:r[A++]=(i&15)<<4|(n&60)>>2,i=n,s=3;break;case 3:r[A++]=(i&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,A)}Jp.base64decode=Eor;function Cor(t){let e="",r=0,A,s=0;for(let n=0;n<t.length;n++)switch(A=t[n],r){case 0:e+=Qg[A>>2],s=(A&3)<<4,r=1;break;case 1:e+=Qg[s|A>>4],s=(A&15)<<2,r=2;break;case 2:e+=Qg[s|A>>6],e+=Qg[A&63],r=0;break}return r&&(e+=Qg[s],e+="=",r==1&&(e+="=")),e}Jp.base64encode=Cor});var C5e=E(kP=>{"use strict";Object.defineProperty(kP,"__esModule",{value:!0});kP.utf8read=void 0;var ure=t=>String.fromCharCode.apply(String,t);function Bor(t){if(t.length<1)return"";let e=0,r=[],A=[],s=0,n,i=t.length;for(;e<i;)n=t[e++],n<128?A[s++]=n:n>191&&n<224?A[s++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,A[s++]=55296+(n>>10),A[s++]=56320+(n&1023)):A[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(ure(A)),s=0);return r.length?(s&&r.push(ure(A.slice(0,s))),r.join("")):ure(A.slice(0,s))}kP.utf8read=Bor});var rR=E(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.WireType=Xu.mergeBinaryOptions=Xu.UnknownFieldHandler=void 0;var Ior;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,A,s,n,i)=>{(e(A)?A[t.symbol]:A[t.symbol]=[]).push({no:s,wireType:n,data:i})},t.onWrite=(r,A,s)=>{for(let{no:n,wireType:i,data:o}of t.list(A))s.tag(n,i).raw(o)},t.list=(r,A)=>{if(e(r)){let s=r[t.symbol];return A?s.filter(n=>n.no==A):s}return[]},t.last=(r,A)=>t.list(r,A).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Ior=Xu.UnknownFieldHandler||(Xu.UnknownFieldHandler={}));function Qor(t,e){return Object.assign(Object.assign({},t),e)}Xu.mergeBinaryOptions=Qor;var por;(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"})(por=Xu.WireType||(Xu.WireType={}))});var xP=E(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.varint32read=bi.varint32write=bi.int64toString=bi.int64fromString=bi.varint64write=bi.varint64read=void 0;function mor(){let t=0,e=0;for(let A=0;A<28;A+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<A,(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 A=3;A<=31;A+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<A,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}bi.varint64read=mor;function yor(t,e,r){for(let n=0;n<28;n=n+7){let i=t>>>n,o=!(!(i>>>7)&&e==0),a=(o?i|128:i)&255;if(r.push(a),!o)return}let A=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?A|128:A)&255),!!s){for(let n=3;n<31;n=n+7){let i=e>>>n,o=!!(i>>>7),a=(o?i|128:i)&255;if(r.push(a),!o)return}r.push(e>>>31&1)}}bi.varint64write=yor;var FP=65536*65536;function bor(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,A=0,s=0;function n(i,o){let a=Number(t.slice(i,o));s*=r,A=A*r+a,A>=FP&&(s=s+(A/FP|0),A=A%FP)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,A,s]}bi.int64fromString=bor;function wor(t,e){if(e>>>0<=2097151)return""+(FP*e+(t>>>0));let r=t&16777215,A=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+A*6777216+s*6710656,i=A+s*8147497,o=s*2,a=1e7;n>=a&&(i+=Math.floor(n/a),n%=a),i>=a&&(o+=Math.floor(i/a),i%=a);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(o,0)+c(i,o)+c(n,1)}bi.int64toString=wor;function Dor(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)}}bi.varint32write=Dor;function Nor(){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}bi.varint32read=Nor});var Uh=E(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.PbLong=xh.PbULong=xh.detectBi=void 0;var AR=xP(),pr;function B5e(){let t=new DataView(new ArrayBuffer(8));pr=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}xh.detectBi=B5e;B5e();function I5e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Q5e=/^-?[0-9]+$/,MP=4294967296,UP=2147483648, Line truncated
`)}};iO.RpcError=vre});var Pre=E(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0});aO.mergeRpcOptions=void 0;var K5e=OA();function Kar(t,e){if(!e)return t;let r={};oO(t,r),oO(e,r);for(let A of Object.keys(e)){let s=e[A];switch(A){case"jsonOptions":r.jsonOptions=K5e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=K5e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},oO(t.meta,r.meta),oO(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}aO.mergeRpcOptions=Kar;function oO(t,e){if(!t)return;let r=e;for(let[A,s]of Object.entries(t))s instanceof Date?r[A]=new Date(s.getTime()):Array.isArray(s)?r[A]=s.concat():r[A]=s}});var Hre=E(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});fC.Deferred=fC.DeferredState=void 0;var el;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(el=fC.DeferredState||(fC.DeferredState={}));var Ore=class{constructor(e=!0){this._state=el.PENDING,this._promise=new Promise((r,A)=>{this._resolve=r,this._reject=A}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==el.PENDING)throw new Error(`cannot resolve ${el[this.state].toLowerCase()}`);this._resolve(e),this._state=el.RESOLVED}reject(e){if(this.state!==el.PENDING)throw new Error(`cannot reject ${el[this.state].toLowerCase()}`);this._reject(e),this._state=el.REJECTED}resolvePending(e){this._state===el.PENDING&&this.resolve(e)}rejectPending(e){this._state===el.PENDING&&this.reject(e)}};fC.Deferred=Ore});var Yre=E(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0});cO.RpcOutputStreamController=void 0;var X5e=Hre(),CC=OA(),Gre=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 A=r.indexOf(e);A>=0&&r.splice(A,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,A){CC.assert((e?1:0)+(r?1:0)+(A?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),A&&this.notifyComplete()}notifyMessage(e){CC.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){CC.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(){CC.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;CC.assert(e,"bad state"),CC.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 X5e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let A=r.p;CC.assert(A.state==X5e.DeferredState.PENDING,"iterator contract broken"),"value"in e?A.resolve(e):A.reject(e),delete r.p}else r.q.push(e)}};cO.RpcOutputStreamController=Gre});var Jre=E(Zp=>{"use strict";var Xar=Zp&&Zp.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(Zp,"__esModule",{value:!0});Zp.UnaryCall=void 0;var qre=class{constructor(e,r,A,s,n,i,o){this.method=e,this.requestHeaders=r,this.request=A,this.headers=s,this.response=n,this.status=i,this.trailers=o}then(e,r){return this.promiseFinished().then(A=>e?Promise.resolve(e(A)):A,A=>r?Promise.resolve(r(A)):Promise.reject(A))}promiseFinished(){return Xar(this,void 0,void 0,function*(){let[e,r,A,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:A,trailers:s}})}};Zp.UnaryCall=qre});var Wre=E($p=>{"use strict";var Zar=$p&&$p.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty($p,"__esModule",{value:!0});$p.ServerStreamingCall=void 0;var Vre=class Line truncated
`));let A=yield EAe(r,"create");yield fAe(A,t)})}cn.createTar=Vcr});var I9e=E(ZA=>{"use strict";var Wcr=ZA&&ZA.__createBinding||(Object.create?(function(t,e,r,A){A===void 0&&(A=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,A,s)}):(function(t,e,r,A){A===void 0&&(A=r),t[A]=e[r]})),zcr=ZA&&ZA.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BR=ZA&&ZA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Wcr(e,t,r);return zcr(e,t),e},Em=ZA&&ZA.__awaiter||function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};Object.defineProperty(ZA,"__esModule",{value:!0});ZA.saveCache=ZA.restoreCache=ZA.isFeatureAvailable=ZA.ReserveCacheError=ZA.ValidationError=void 0;var Bt=BR(go()),CO=BR(I("path")),tA=BR(b0()),dm=BR(f5e()),C9e=BR(d9e()),IR=wP(),vh=f9e(),jcr=m0(),S1r=Pf(),_h=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};ZA.ValidationError=_h;var CR=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};ZA.ReserveCacheError=CR;function B9e(t){if(!t||t.length===0)throw new _h("Path Validation Error: At least one directory or file path is required")}function CAe(t){if(t.length>512)throw new _h(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new _h(`Key Validation Error: ${t} cannot contain commas.`)}function Kcr(){return(0,IR.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}ZA.isFeatureAvailable=Kcr;function Xcr(t,e,r,A,s=!1){return Em(this,void 0,void 0,function*(){let n=(0,IR.getCacheServiceVersion)();return Bt.debug(`Cache service version: ${n}`),B9e(t),n==="v2"?yield $cr(t,e,r,A,s):yield Zcr(t,e,r,A,s)})}ZA.restoreCache=Xcr;function Zcr(t,e,r,A,s=!1){return Em(this,void 0,void 0,function*(){r=r||[];let n=[e,...r];if(Bt.debug("Resolved Keys:"),Bt.debug(JSON.stringify(n)),n.length>10)throw new _h("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of n)CAe(a);let i=yield tA.getCompressionMethod(),o="";try{let a=yield dm.getCacheEntry(n,t,{compressionMethod:i,enableCrossOsArchive:s});if(!a?.archiveLocation)return;if(A?.lookupOnly)return Bt.info("Lookup only - skipping download"),a.cacheKey;o=CO.join(yield tA.createTempDirectory(),tA.getCacheFileName(i)),Bt.debug(`Archive Path: ${o}`),yield dm.downloadCache(a.archiveLocation,o,A),Bt.isDebug()&&(yield(0,vh.listTar)(o,i));let c=tA.getArchiveFileSizeInBytes(o);return Bt.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,vh.extractTar)(o,i),Bt.info("Cache restored successfully"),new hm(a.cacheKey,c)}finally{try{yield tA.unlinkFile(o)}catch(a){Bt.debug(`Failed to delete archive: ${a}`)}}})}function $cr(t,e,r,A,s=!1){return Em(this,void 0,void 0,function*(){A=Object.assign(Object.assign({},A),{useAzureSdk:!0}),r=r||[];let n=[e,...r];if(Bt.debug("Resolved Keys:"),Bt.debug(JSON.stringify(n)),n.length>10)throw new _h("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)CAe(o);let i="";try{let o=C9e.internalCacheTwirpClient(),a=yield tA.getCompressionMethod(),c={key:e,restoreKeys:r,version:tA.getCacheVersion(t,a,s)},u=yield o.GetCacheEntryDownloadURL(c);if(!u.ok){Bt.debug(`Cache not found for version ${c.version} of keys: ${n.join(", ")}`);return}if(c.key!==u.matchedKey?Bt.info(`Cache hit for restore-key: ${u.matchedKey}`):Bt.info(`Cache hit for: ${u.matchedKey}`),A?.lookupOnly)return Bt.info("Lookup only - skipping download"),u.matchedKey;i=CO.join(yield tA.createTempDirectory(),tA.getCacheFileName(a)),Bt.debug(`Archive path: ${i}`),Bt.debug(`Starting download of archive to: ${i}`),yield dm.downloadCache(u.signedDownloadUrl,i,A);let g=tA.getArchiveFileSizeInBytes(i);return Bt.info(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),Bt.isDebug()&&(yield(0,vh.listTar)(i,a)),yield(0,vh.extractTar)(i,a),Bt.info("Cache restored successfully"),new hm(u.matchedKey,g)}finally{try{i&&(yield tA.unlinkFile(i))}catch(o){Bt.debug(`Failed to delete archive: ${o}`)}}})}function eur(t,e,r,A=!1){return Em(this,void 0,void 0,function*(){let s=(0,IR.getCacheServiceVersion)();return Bt.debug(`Cache service version: ${s}`),B9e(t),CAe(e),s==="v2"?yield rur(t,e,r,A):yield tur(t,e,r,A)})}ZA.saveCache=eur;function tur(t,e,r,A=!1){var s,n,i,o,a;return Em(this,void 0,void 0,function*(){let c=yield tA.getCompressionMethod(),u=-1,l=yield tA.resolvePaths(t);if(Bt.debug(" Line truncated
`:T1(t.children):EB(t)?T1(t.children):On(t)?t.data:""}function Ql(t){return Array.isArray(t)?t.map(Ql).join(""):dr(t)&&!gE(t)?Ql(t.children):On(t)?t.data:""}function by(t){return Array.isArray(t)?t.map(by).join(""):dr(t)&&(t.type===Ut.Tag||EB(t))?by(t.children):On(t)?t.data:""}function BB(t){return dr(t)?t.children:[]}function Mge(t){return t.parent||null}function m3(t){let e=Mge(t);if(e!=null)return BB(e);let r=[t],{prev:A,next:s}=t;for(;A!=null;)r.unshift(A),{prev:A}=A;for(;s!=null;)r.push(s),{next:s}=s;return r}function yAt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function bAt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function wAt(t){return t.name}function k1(t){let{next:e}=t;for(;e!==null&&!me(e);)({next:e}=e);return e}function F1(t){let{prev:e}=t;for(;e!==null&&!me(e);)({prev:e}=e);return e}function pl(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 DAt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let A=e.next=t.next;A&&(A.prev=e);let s=e.parent=t.parent;if(s){let n=s.children;n[n.lastIndexOf(t)]=e,t.parent=null}}function NAt(t,e){if(pl(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 RAt(t,e){pl(e);let{parent:r}=t,A=t.next;if(e.next=A,e.prev=t,t.next=e,e.parent=r,A){if(A.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(A),0,e)}}else r&&r.children.push(e)}function SAt(t,e){if(pl(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 TAt(t,e){pl(e);let{parent:r}=t;if(r){let A=r.children;A.splice(A.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function IB(t,e,r=!0,A=1/0){return x1(t,Array.isArray(e)?e:[e],r,A)}function x1(t,e,r,A){let s=[],n=[Array.isArray(e)?e:[e]],i=[0];for(;;){if(i[0]>=n[0].length){if(i.length===1)return s;n.shift(),i.shift();continue}let o=n[0][i[0]++];if(t(o)&&(s.push(o),--A<=0))return s;r&&dr(o)&&o.children.length>0&&(i.unshift(0),n.unshift(o.children))}}function kAt(t,e){return e.find(t)}function U1(t,e,r=!0){let A=Array.isArray(e)?e:[e];for(let s=0;s<A.length;s++){let n=A[s];if(me(n)&&t(n))return n;if(r&&dr(n)&&n.children.length>0){let i=U1(t,n.children,!0);if(i)return i}}return null}function Lge(t,e){return(Array.isArray(e)?e:[e]).some(r=>me(r)&&t(r)||dr(r)&&Lge(t,r.children))}function FAt(t,e){let r=[],A=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=A[0].length){if(A.length===1)return r;A.shift(),s.shift();continue}let n=A[0][s[0]++];me(n)&&t(n)&&r.push(n),dr(n)&&n.children.length>0&&(s.unshift(0),A.unshift(n.children))}}var M1={tag_name(t){return typeof t=="function"?e=>me(e)&&t(e.name):t==="*"?me:e=>me(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>On(e)&&t(e.data):e=>On(e)&&e.data===t}};function y3(t,e){return typeof e=="function"?r=>me(r)&&e(r.attribs[t]):r=>me(r)&&r.attribs[t]===e}function xAt(t,e){return r=>t(r)||e(r)}function vge(t){let e=Object.keys(t).map(r=>{let A=t[r];return Object.prototype.hasOwnProperty.call(M1,r)?M1[r](A):y3(r,A)});return e.length===0?null:e.reduce(xAt)}function UAt(t,e){let r=vge(t);return r?r(e):!0}function MAt(t,e,r,A=1/0){let s=vge(t);return s?IB(s,e,r,A):[]}function LAt(t,e,r=!0){return Array.isArray(e)||(e=[e]),U1(y3("id",t),e,r)}function dE(t,e,r=!0,A=1/0){return IB(M1.tag_name(t),e,r,A)}function vAt(t,e,r=!0,A=1/0){return IB(y3("class",t),e,r,A)}function _At(t,e,r=!0,A=1/0){return IB(M1.tag_type(t),e,r,A)}function PAt(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 A=r.parent;A;A=A.parent)if(t.includes(A)){t.splice(e,1);break}}return t}var Lo;(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"})(Lo||(Lo={}));function _ge(t,e){let r=[],A=[];if(t===e)return 0;let s=dr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=dr(e)?e:e.parent;s;)A.unshift(s),s=s.parent;let n=Math.min(r.length,A.length),i=0;for(;i<n&&r[i]===A[i];)i++;if(i===0)return Lo.DISCONNECTED;let o=r[i-1],a=o.children,c=r[i],u=A[i];return a.indexOf(c)>a.indexOf(u)?o===e?Lo.FOLLOWING|Lo.CONTAINED_BY:Lo.FOLLOWING:o===t?Lo.PRECEDING|Lo.CONTAINS:Lo.PRECEDING}function jg(t){return t=t.filter((e,r,A)=>!A.includes(e,r+1)),t.sort((e,r)=>{let A=_ge(e,r);return A&Lo.PRECEDING?-1:A&Lo.FOLLOWING?1:0}),t}function b3(t){let e=L1(qAt,t);return e?e.name==="feed"?OAt(e):HAt(e):null}function OAt(t){var e;let r=t.children,A={type:"atom",items:dE("entry",r).map(i=>{var o;let{children:a}=i,c={media:Pge(a)};Hn(c,"id","id",a),Hn(c,"title","title",a);let u=(o=L1("link",a))===null||o===void 0?void 0:o.attribs.href;u&&(c.link=u);let l=Kg("summary",a)||Kg("conten Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),hl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(hl("Creating `tls.Socket`: %o",this.connectOpts),i=o_e.connect(this.connectOpts)):(hl("Creating `net.Socket`: %o",this.connectOpts),i=i_e.connect(this.connectOpts)),await(0,A_e.once)(i,"connect"),i}};cI.protocols=["http","https"];$s.HttpProxyAgent=cI;function u_e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var YZ=m(hI=>{"use strict";Object.defineProperty(hI,"__esModule",{value:!0});hI.state=void 0;hI.state={instrumenterImplementation:void 0}});var t$=m(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0});EI.state=void 0;EI.state={operationRequestMap:new WeakMap}});var Fre=m((LBt,G9e)=>{G9e.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 Ure=m((PBt,Mre)=>{var Y9e=Fre();Mre.exports={version:Y9e.version}});var kI=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.isJsonObject=wl.typeofJsonValue=void 0;function X9e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}wl.typeofJsonValue=X9e;function j9e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}wl.isJsonObject=j9e});var MI=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.base64encode=Nl.base64decode=void 0;var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),FI=[];for(let t=0;t<so.length;t++)FI[so[t].charCodeAt(0)]=t;FI[45]=so.indexOf("+");FI[95]=so.indexOf("/");function Z9e(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=FI[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)}Nl.base64decode=Z9e;function $9e(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}Nl.base64encode=$9e});var Lre=m(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.utf8read=void 0;var sk=t=>String.fromCharCode.apply(String,t);function eGe(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(sk(s)),n=0);return r.length?(n&&r.push(sk(s.slice(0,n))),r.join("")):sk(s.slice(0,n))}UI.utf8read=eGe});var Kh=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var tGe;(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])})(tGe=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function rGe(t,e){return Object.assign(Object.assign({},t),e)}di.mergeBinaryOptions=rGe;var sGe;(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"})(sGe=di.WireType||(di.WireType={}))});var PI=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 nGe(){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=nGe;function iGe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}_r.varint64write=iGe;var LI=65536*65536;function oGe(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>=LI&&(n=n+(s/LI|0),s=s%LI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}_r.int64fromString=oGe;function aGe(t,e){if(e>>>0<=2097151)return""+(LI*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=aGe;function AGe(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=AGe;function cGe(){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=cGe});var pa=m(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.PbLong=ma.PbULong=ma.detectBi=void 0;var Xh=PI(),He;function Pre(){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}ma.detectBi=Pre;Pre();function vre(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]+$/,OI=4294967296,vI=2147483648,_I=c Line truncated
`)}};uB.RpcError=xk});var kk=m(dB=>{"use strict";Object.defineProperty(dB,"__esModule",{value:!0});dB.mergeRpcOptions=void 0;var fse=Et();function RYe(t,e){if(!e)return t;let r={};lB(t,r),lB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=fse.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=fse.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},lB(t.meta,r.meta),lB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}dB.mergeRpcOptions=RYe;function lB(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 Mk=m(VA=>{"use strict";Object.defineProperty(VA,"__esModule",{value:!0});VA.Deferred=VA.DeferredState=void 0;var fi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fi=VA.DeferredState||(VA.DeferredState={}));var Fk=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)}};VA.Deferred=Fk});var Lk=m(gB=>{"use strict";Object.defineProperty(gB,"__esModule",{value:!0});gB.RpcOutputStreamController=void 0;var mse=Mk(),JA=Et(),Uk=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){JA.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){JA.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){JA.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(){JA.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;JA.assert(e,"bad state"),JA.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 mse.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;JA.assert(s.state==mse.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};gB.RpcOutputStreamController=Uk});var vk=m(Fl=>{"use strict";var kYe=Fl&&Fl.__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(Fl,"__esModule",{value:!0});Fl.UnaryCall=void 0;var Pk=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 kYe(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}})}};Fl.UnaryCall=Pk});var _k=m(Ml=>{"use strict";var FYe=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.ServerStreamingCall=void 0;var Ok=class{constructor(e Line truncated
`:Cp(t.children):Wc(t)?Cp(t.children):Nr(t)?t.data:""}function Ui(t){return Array.isArray(t)?t.map(Ui).join(""):ve(t)&&!Wa(t)?Ui(t.children):Nr(t)?t.data:""}function Wd(t){return Array.isArray(t)?t.map(Wd).join(""):ve(t)&&(t.type===Be.Tag||Wc(t))?Wd(t.children):Nr(t)?t.data:""}function Xc(t){return ve(t)?t.children:[]}function BO(t){return t.parent||null}function y1(t){let e=BO(t);if(e!=null)return Xc(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 E0e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function C0e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function I0e(t){return t.name}function Ip(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Bp(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 B0e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Q0e(t,e){if(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 y0e(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 b0e(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 w0e(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 jc(t,e,r=!0,s=1/0){return Qp(t,Array.isArray(e)?e:[e],r,s)}function Qp(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 N0e(t,e){return e.find(t)}function yp(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=yp(t,i.children,!0);if(o)return o}}return null}function QO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||ve(r)&&QO(t,r.children))}function S0e(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 bp={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 b1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function T0e(t,e){return r=>t(r)||e(r)}function yO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(bp,r)?bp[r](s):b1(r,s)});return e.length===0?null:e.reduce(T0e)}function D0e(t,e){let r=yO(t);return r?r(e):!0}function x0e(t,e,r,s=1/0){let n=yO(t);return n?jc(n,e,r,s):[]}function R0e(t,e,r=!0){return Array.isArray(e)||(e=[e]),yp(b1("id",t),e,r)}function za(t,e,r=!0,s=1/0){return jc(bp.tag_name(t),e,r,s)}function k0e(t,e,r=!0,s=1/0){return jc(b1("class",t),e,r,s)}function F0e(t,e,r=!0,s=1/0){return jc(bp.tag_type(t),e,r,s)}function M0e(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 bO(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=bO(e,r);return s&Ts.PRECEDING?-1:s&Ts.FOLLOWING?1:0}),t}function w1(t){let e=wp(O0e,t);return e?e.name==="feed"?U0e(e):L0e(e):null}function U0e(t){var e;let r=t.children,s={type:"atom",items:za("entry",r).map(o=>{var a;let{children:A}=o,c={media:wO(A)};Sr(c,"id","id",A),Sr(c,"title","title",A);let u=(a=wp("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
: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 Po=Fr(Zg(),1);var H3={};function G3(t,e){return t===Po.default.falseFunc?Po.default.falseFunc:r=>e.isTag(r)&&t(r)}function Y3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let A=r.indexOf(t);return A<0||A===r.length-1?[]:r.slice(A+1).filter(e.isTag)}function O3(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 P3=(t,e,r,A,s)=>{let n=s(e,O3(r),A);return n===Po.default.trueFunc?t:n===Po.default.falseFunc?Po.default.falseFunc:i=>n(i)&&t(i)},j1={is:P3,matches:P3,where:P3,not(t,e,r,A,s){let n=s(e,O3(r),A);return n===Po.default.falseFunc?t:n===Po.default.trueFunc?Po.default.falseFunc:i=>!n(i)&&t(i)},has(t,e,r,A,s){let{adapter:n}=r,i=O3(r);i.relativeSelector=!0;let o=e.some(u=>u.some(ky))?[H3]:void 0,a=s(e,i,o);if(a===Po.default.falseFunc)return Po.default.falseFunc;let c=G3(a,n);if(o&&a!==Po.default.trueFunc){let{shouldTestNextSiblings:u=!1}=a;return l=>{if(!t(l))return!1;o[0]=l;let g=n.getChildren(l),d=u?[...g,...Y3(l,n)]:g;return n.existsOne(c,d)}}return u=>t(u)&&n.existsOne(c,n.getChildren(u))}};function Nde(t,e,r,A,s){var n;let{name:i,data:o}=e;if(Array.isArray(o)){if(!(i in j1))throw new Error(`Unknown pseudo-class :${i}(${o})`);return j1[i](t,o,r,A,s)}let a=(n=r.pseudos)===null||n===void 0?void 0:n[i],c=typeof a=="string"?a:z1[i];if(typeof c=="string"){if(o!=null)throw new Error(`Pseudo ${i} doesn't have any arguments`);let u=(0,Dde.parse)(c);return j1.is(t,u,r,A,s)}if(typeof a=="function")return _3(a,i,o,1),u=>a(u,o)&&t(u);if(i in RB)return RB[i](t,o,r,A);if(i in xy){let u=xy[i];return _3(u,i,o,2),l=>u(l,r,o)&&t(l)}throw new Error(`Unknown pseudo-class :${i}`)}var Oo=Fr(DB(),1);function q3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Rde(t,e,r,A,s){let{adapter:n,equals:i}=r;switch(e.type){case Oo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Oo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Oo.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()),mde[e.action](t,e,r)}case Oo.SelectorType.Pseudo:return Nde(t,e,r,A,s);case Oo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!r.xmlMode||r.lowerCaseTags)&&(o=o.toLowerCase()),function(c){return n.getName(c)===o&&t(c)}}case Oo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=q3(u,n);)if(t(u))return!0;return!1};let o=new WeakSet;return function(c){let u=c;for(;u=q3(u,n);)if(!o.has(u)){if(n.isTag(u)&&t(u))return!0;o.add(u)}return!1}}case"_flexibleDescendant":return function(a){let c=a;do if(t(c))return!0;while(c=q3(c,n));return!1};case Oo.SelectorType.Parent:return function(a){return n.getChildren(a).some(c=>n.isTag(c)&&t(c))};case Oo.SelectorType.Child:return function(a){let c=n.getParent(a);return c!=null&&n.isTag(c)&&t(c)};case Oo.SelectorType.Sibling:return function(a){let c=n.getSiblings(a);for(let u=0;u<c.length;u++){let l=c[u];if(i(a,l))break;if(n.isTag(l)&&t(l))return!0}return!1};case Oo.SelectorType.Adjacent:return n.prevElementSibling?function(a){let c=n.prevElementSibling(a);return c!=null&&t(c)}:function(a){let c=n.getSiblings(a),u;for(let l=0;l<c.length;l++){let g=c[l];if(i(a,g))break;n.isTag(g)&&(u=g)}return!!u&&t(u)};case Oo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Sde(t,e,r){let A=K1(t,e,r);return G3(A,e.adapter)}function K1(t,e,r){let A=typeof t=="string"?(0,Za.parse)(t):t;return X1(A,e,r)}function Tde(t){return t.type===Za.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Tde)))}var Mst={type:Za.SelectorType.Descendant},Lst={type:"_flexibleDescendant"},vst={type:Za.SelectorType.Pseudo,name:"scope",data:null};function _st(t,{adapter:e},r){let A=!!r?.every(s=>{let n=e.isTag(s)&&e.getParent(s);return s===H3||n&&e.isTag(n)});fo Line truncated
`)})):{name:s,value:n.replace(Vde,`\r
`)}}).toArray()}var iY={};Oa(iY,{extract:()=>$nt});function Znt(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 $nt(t){let e={};for(let r in t){let A=t[r],s=Array.isArray(A),{selector:n,value:i}=Znt(s?A[0]:A),o=typeof i=="function"?i:typeof i=="string"?a=>this._make(a).prop(i):a=>this._make(a).extract(i);if(s)e[r]=this._findBySelector(n,Number.POSITIVE_INFINITY).map((a,c)=>o(c,r,e)).get();else{let a=this._findBySelector(n,1);e[r]=a.length>0?o(a[0],r,e):void 0}}return e}var td=class{constructor(e,r,A){if(this.length=0,this.options=A,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};td.prototype.cheerio="[cheerio object]";td.prototype.splice=Array.prototype.splice;td.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(td.prototype,x3,rY,AY,sY,nY,iY);function Wde(t,e){return function r(A,s,n=!0){if(A==null)throw new Error("cheerio.load() expects a string");let i=hB(s),o=t(A,i,n,null);class a extends td{_make(l,g){let d=c(l,g);return d.prevObject=this,d}_parse(l,g,d,h){return t(l,g,d,h)}_render(l){return e(l,this.options)}}function c(u,l,g=o,d){if(u&&vo(u))return u;let h=hB(d,i),B=typeof g=="string"?[t(g,h,!1,null)]:"length"in g?g:[g],Q=vo(B)?B:new a(B,null,h);if(Q._root=Q,!u)return new a(void 0,Q,h);let C=typeof u=="string"&&wy(u)?t(u,h,!1,null).children:eit(u)?[u]:Array.isArray(u)?u:void 0,p=new a(C,Q,h);if(C)return p;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let w=u,k=l?typeof l=="string"?wy(l)?new a([t(l,h,!1,null)],Q,h):(w=`${l} ${w}`,Q):vo(l)?l:new a(Array.isArray(l)?l:[l],Q,h):Q;return k?k.find(w):p}return Object.assign(c,w3,{load:r,_root:o,_options:i,fn:a.prototype,prototype:a.prototype}),c}}function eit(t){return!!t.name||t.type===Uo.Root||t.type===Uo.Text||t.type===Uo.Comment}var tit=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]),yr="\uFFFD",R;(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"})(R||(R={}));var En={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function AT(t){return t>=55296&&t<=57343}function zde(t){return t>=56320&&t<=57343}function jde(t,e){return(t-55296)*1024+9216+e}function sT(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function nT(t){return t>=64976&&t<=65007||tit.has(t)}var q;(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 Rs=ie(Ro(),1);var G1={};function Y1(t,e){return t===Rs.default.falseFunc?Rs.default.falseFunc:r=>e.isTag(r)&&t(r)}function q1(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 H1(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 _1=(t,e,r,s,n)=>{let i=n(e,H1(r),s);return i===Rs.default.trueFunc?t:i===Rs.default.falseFunc?Rs.default.falseFunc:o=>i(o)&&t(o)},vp={is:_1,matches:_1,where:_1,not(t,e,r,s,n){let i=n(e,H1(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=H1(r);o.relativeSelector=!0;let a=e.some(u=>u.some(eg))?[G1]:void 0,A=n(e,o,a);if(A===Rs.default.falseFunc)return Rs.default.falseFunc;let c=Y1(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,...q1(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function g6(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in vp))throw new Error(`Unknown pseudo-class :${o}(${a})`);return vp[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:Pp[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,d6.parse)(c);return vp.is(t,u,r,s,n)}if(typeof A=="function")return O1(A,o,a,1),u=>A(u,a)&&t(u);if(o in ou)return ou[o](t,a,r,s);if(o in rg){let u=rg[o];return O1(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var ks=ie(nu(),1);function V1(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function h6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case 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()),A6[e.action](t,e,r)}case ks.SelectorType.Pseudo:return g6(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=V1(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=V1(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=V1(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 f6(t,e,r){let s=Op(t,e,r);return Y1(s,e.adapter)}function Op(t,e,r){let s=typeof t=="string"?(0,pn.parse)(t):t;return _p(s,e,r)}function m6(t){return t.type===pn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(m6)))}var xEe={type:pn.SelectorType.Descendant},REe={type:"_flexibleDescendant"},kEe={type:pn.SelectorType.Pseudo,name:"scope",data:null};function FEe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===G1||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(k6,`\r
`)}}).toArray()}var aw={};nn(aw,{extract:()=>zCe});function WCe(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 zCe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=WCe(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,M1,sw,nw,iw,ow,aw);function F6(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Jc(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=Jc(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"&&zd(u)?t(u,f,!1,null).children:KCe(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"?zd(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,N1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function KCe(t){return!!t.name||t.type===Ns.Root||t.type===Ns.Text||t.type===Ns.Comment}var XCe=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 Jp(t){return t>=55296&&t<=57343}function M6(t){return t>=56320&&t<=57343}function U6(t,e){return(t-55296)*1024+9216+e}function Wp(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function zp(t){return t>=64976&&t<=65007||XCe.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
${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(`
`)}`}},M2=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Abt,existsSync as sbt}from"fs";import{EOL as nbt}from"os";var DI=class{constructor(){var e,r,A;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(sbt(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Abt(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${nbt}`)}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=(A=process.env.GITHUB_GRAPHQL_URL)!==null&&A!==void 0?A:"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 WW=Fr(Tke(),1),kke=Fr(YW(),1),DMt=function(t,e,r,A){function s(n){return n instanceof r?n:new r(function(i){i(n)})}return new(r||(r=Promise))(function(n,i){function o(u){try{c(A.next(u))}catch(l){i(l)}}function a(u){try{c(A.throw(u))}catch(l){i(l)}}function c(u){u.done?n(u.value):s(u.value).then(o,a)}c((A=A.apply(t,e||[])).next())})};function Fke(t){return new WW.HttpClient().getAgent(t)}function NMt(t){return new WW.HttpClient().getAgentDispatcher(t)}function xke(t){let e=NMt(t);return(A,s)=>DMt(this,void 0,void 0,function*(){return(0,kke.fetch)(A,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Uke(){return process.env.GITHUB_API_URL||"https://api.github.com"}function vx(){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 _x(t,e,r,A){if(typeof r!="function")throw new Error("method for before hook must be a function");return A||(A={}),Array.isArray(e)?e.reverse().reduce((s,n)=>_x.bind(null,t,n,s,A),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,n)=>n.hook.bind(null,s,A),r)():r(A))}function Mke(t,e,r,A){let s=A;t.registry[r]||(t.registry[r]=[]),e==="before"&&(A=(n,i)=>Promise.resolve().then(s.bind(null,i)).then(n.bind(null,i))),e==="after"&&(A=(n,i)=>{let o;return Promise.resolve().then(n.bind(null,i)).then(a=>(o=a,s(o,i))).then(()=>o)}),e==="error"&&(A=(n,i)=>Promise.resolve().then(n.bind(null,i)).catch(o=>s(o,i))),t.registry[r].push({hook:A,orig:s})}function Lke(t,e,r){if(!t.registry[e])return;let A=t.registry[e].map(s=>s.orig).indexOf(r);A!==-1&&t.registry[e].splice(A,1)}var vke=Function.bind,_ke=vke.bind(vke);function Pke(t,e,r){let A=_ke(Lke,null).apply(null,r?[e,r]:[e]);t.api={remove:A},t.remove=A,["before","error","after","wrap"].forEach(s=>{let n=r?[e,s,r]:[e,s];t[s]=t.api[s]=_ke(Mke,null).apply(null,n)})}function SMt(){let t=Symbol("Singular"),e={registry:{}},r=_x.bind(null,e,t);return Pke(r,e,t),r}function TMt(){let t={registry:{}},e=_x.bind(null,t);return Pke(e,t),e}var Oke={Singular:SMt,Collection:TMt};var cz=Fr(nz(),1);var d2e=Fr(nz(),1);var yLt="0.0.0-development";function bLt(t){return`Request failed due to following response errors:
`)}`}},bC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as NPe,existsSync as SPe}from"fs";import{EOL as TPe}from"os";var rl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(SPe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(NPe(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${TPe}`)}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 PD=ie(lz(),1),dz=ie(ap(),1),HPe=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 gz(t){return new PD.HttpClient().getAgent(t)}function GPe(t){return new PD.HttpClient().getAgentDispatcher(t)}function hz(t){let e=GPe(t);return(s,n)=>HPe(this,void 0,void 0,function*(){return(0,dz.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function fz(){return process.env.GITHUB_API_URL||"https://api.github.com"}function RC(){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 mz(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 pz(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 Ez=Function.bind,Cz=Ez.bind(Ez);function Iz(t,e,r){let s=Cz(pz,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]=Cz(mz,null).apply(null,i)})}function qPe(){let t=Symbol("Singular"),e={registry:{}},r=kC.bind(null,e,t);return Iz(r,e,t),r}function VPe(){let t={registry:{}},e=kC.bind(null,t);return Iz(e,t),e}var Bz={Singular:qPe,Collection:VPe};var $D=ie(KD(),1);var zz=ie(KD(),1);var vve="0.0.0-development";function Ove(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var wLt=class extends Error{constructor(t,e,r){super(bLt(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},DLt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],NLt=["query","method","url"],g2e=/\/api\/v3\/?$/;function RLt(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 i in r)if(NLt.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let A=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(A).reduce((i,o)=>DLt.includes(o)?(i[o]=A[o],i):(i.variables||(i.variables={}),i.variables[o]=A[o],i),{}),n=A.baseUrl||t.endpoint.DEFAULTS.baseUrl;return g2e.test(n)&&(s.url=n.replace(g2e,"/api/graphql")),t(s).then(i=>{if(i.data.errors){let o={};for(let a of Object.keys(i.headers))o[a]=i.headers[a];throw new wLt(s,o,i.data)}return i.data.data})}function iz(t,e){let r=t.defaults(e);return Object.assign((s,n)=>RLt(r,s,n),{defaults:iz.bind(null,r),endpoint:r.endpoint})}var Mpr=iz(d2e.request,{headers:{"user-agent":`octokit-graphql.js/${yLt} ${vx()}`},method:"POST",url:"/graphql"});function h2e(t){return iz(t,{method:"POST",url:"/graphql"})}var oz="(?:[a-zA-Z0-9_-]+)",E2e="\\.",f2e=new RegExp(`^${oz}${E2e}${oz}${E2e}${oz}$`),SLt=f2e.test.bind(f2e);async function TLt(t){let e=SLt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),A=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":A?"user-to-server":"oauth"}}function kLt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function FLt(t,e,r,A){let s=e.endpoint.merge(r,A);return s.headers.authorization=kLt(t),e(s)}var C2e=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(TLt.bind(null,e),{hook:FLt.bind(null,e)})};var az="7.0.6";var B2e=()=>{},xLt=console.warn.bind(console),ULt=console.error.bind(console);function MLt(t={}){return typeof t.debug!="function"&&(t.debug=B2e),typeof t.info!="function"&&(t.info=B2e),typeof t.warn!="function"&&(t.warn=xLt),typeof t.error!="function"&&(t.error=ULt),t}var I2e=`octokit-core.js/${az} ${vx()}`,Hx=class{static VERSION=az;static defaults(e){return class extends this{constructor(...A){let s=A[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 Oke.Collection,A={baseUrl:cz.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(A.headers["user-agent"]=e.userAgent?`${e.userAgent} ${I2e}`:I2e,e.baseUrl&&(A.baseUrl=e.baseUrl),e.previews&&(A.mediaType.previews=e.previews),e.timeZone&&(A.headers["time-zone"]=e.timeZone),this.request=cz.request.defaults(A),this.graphql=h2e(this.request).defaults(A),this.log=MLt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...i}=e,o=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));r.wrap("request",o.hook),this.auth=o}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=C2e(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var uz="17.0.0";var LLt={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
See ${r.getDocumentationLink()}`;sur.push(A),Bl(A)}function p9e(t=!0){if(Q9e.length>0){By(`This job uses deprecated functionality from the '${BO()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Q9e)Yc(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var y9e="GRADLE_ACTION_ID";var m9e=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return w9e("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getBuildScanTermsOfUseUrl(){return dn("build-scan-terms-of-use-url")}getBuildScanTermsOfUseAgree(){return dn("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dn("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dn("develocity-token-expiry")}getDevelocityInjectionEnabled(){return IO("develocity-injection-enabled")}getDevelocityUrl(){return dn("develocity-url")}getDevelocityAllowUntrustedServer(){return IO("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return IO("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return IO("develocity-enforce-url")}getDevelocityPluginVersion(){return dn("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dn("develocity-ccud-plugin-version")}getPluginRepository(){return new pAe}verifyTermsOfUseAgreement(){return this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/terms-of-service"&&this.getBuildScanTermsOfUseUrl()!=="https://gradle.com/help/legal-terms-of-use"||this.getBuildScanTermsOfUseAgree()!=="yes"?(By("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1):!0}},pAe=class{getUrl(){return QAe("gradle-plugin-repository-url")}getUsername(){return QAe("gradle-plugin-repository-username")}getPassword(){return QAe("gradle-plugin-repository-password")}};function BO(){return process.env[y9e]}function b9e(t){uge(y9e,t)}function QAe(t){let e=dn(t);if(e.length>0)return e}function w9e(t,e=!1){let r=dn(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 IO(t){if(dn(t)!=="")return w9e(t)}var mAe=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function D9e(t){if(t instanceof AggregateError){Bl("Multiple errors returned");for(let e of t.errors)t3(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Yc(e.stack)}else t instanceof mAe?(Bl(String(t)),t.stack&&Yc(t.stack)):(Bl(String(t)),t instanceof Error&&t.stack&&Yc(t.stack))}async function our(){try{BO()==="gradle/wrapper-validation-action"&&IAe("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),b9e("gradle/actions/wrapper-validation");let t=await sbe(N9e.resolve("."),dn("allow-snapshots")==="true",dn("allow-checksums").split(","));if(t.isValid()){Yc(t.toDisplayString());let e=+dn("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}.`;Bl(r)}}else Bl(`At least one Gradle Wrapper Jar failed validation!
`)}var _ve=class extends Error{constructor(t,e,r){super(Ove(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},Hve=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Gve=["query","method","url"],Wz=/\/api\/v3\/?$/;function Yve(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(Gve.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)=>Hve.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 Wz.test(i)&&(n.url=i.replace(Wz,"/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 _ve(n,a,o.data)}return o.data.data})}function XD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>Yve(r,n,i),{defaults:XD.bind(null,r),endpoint:r.endpoint})}var Y$e=XD(zz.request,{headers:{"user-agent":`octokit-graphql.js/${vve} ${RC()}`},method:"POST",url:"/graphql"});function Kz(t){return XD(t,{method:"POST",url:"/graphql"})}var jD="(?:[a-zA-Z0-9_-]+)",Xz="\\.",jz=new RegExp(`^${jD}${Xz}${jD}${Xz}${jD}$`),qve=jz.test.bind(jz);async function Vve(t){let e=qve(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 Jve(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Wve(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=Jve(t),e(n)}var Zz=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(Vve.bind(null,e),{hook:Wve.bind(null,e)})};var ZD="7.0.6";var $z=()=>{},zve=console.warn.bind(console),Kve=console.error.bind(console);function Xve(t={}){return typeof t.debug!="function"&&(t.debug=$z),typeof t.info!="function"&&(t.info=$z),typeof t.warn!="function"&&(t.warn=zve),typeof t.error!="function"&&(t.error=Kve),t}var eK=`octokit-core.js/${ZD} ${RC()}`,UC=class{static VERSION=ZD;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 Bz.Collection,s={baseUrl:$D.request.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} ${eK}`:eK,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=$D.request.defaults(s),this.graphql=Kz(this.request).defaults(s),this.log=Xve(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=Zz(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 ex="17.0.0";var jve={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}"],createOrgV 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"}};xI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var RI=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"}};RI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var q9e=ie(Ure(),1);var Dse=ie(Qse(),1),Ct=ie(Et(),1),ps=ie(Et(),1),WA=ie(Et(),1),zA=ie(Et(),1),KA=ie(Et(),1);var Xk=ie(Et(),1),jk=ie(Et(),1),Nse=ie(Et(),1),Sse=ie(Et(),1),Tse=ie(Et(),1);var Wk=ie(Et(),1),zk=ie(Et(),1),yse=ie(Et(),1),bse=ie(Et(),1),wse=ie(Et(),1),Kk=class extends wse.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,bse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,yse.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?zk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Wk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Wk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?zk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mB=new Kk;var Zk=class extends Tse.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:()=>mB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Sse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nse.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(mB.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?jk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Xk.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)mB.internalBinaryWrite(e.scope[i],r.tag(2,Xk.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?jk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mi=new Zk;var $k=class extends KA.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,zA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,WA.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}},xse=new $k,eF=class extends KA.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,zA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,WA.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()}`;aqe.push(s),Fi(s)}function Pse(t=!0){if(Lse.length>0){No(`This job uses deprecated functionality from the '${pB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Lse)jt(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var Ose="GRADLE_ACTION_ID";var vse=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Hse("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 EB("develocity-injection-enabled")}getDevelocityUrl(){return ar("develocity-url")}getDevelocityAllowUntrustedServer(){return EB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return EB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return EB("develocity-enforce-url")}getDevelocityPluginVersion(){return ar("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return ar("develocity-ccud-plugin-version")}getPluginRepository(){return new AF}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)}},AF=class{getUrl(){return aF("gradle-plugin-repository-url")}getUsername(){return aF("gradle-plugin-repository-username")}getPassword(){return aF("gradle-plugin-repository-password")}};function pB(){return process.env[Ose]}function _se(t){X4(Ose,t)}function aF(t){let e=ar(t);if(e.length>0)return e}function Hse(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 EB(t){if(ar(t)!=="")return Hse(t)}var cF=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function Gse(t){if(t instanceof AggregateError){Fi("Multiple errors returned");for(let e of t.errors)cp(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&jt(e.stack)}else t instanceof cF?(Fi(String(t)),t.stack&&jt(t.stack)):(Fi(String(t)),t instanceof Error&&t.stack&&jt(t.stack))}async function cqe(){try{pB()==="gradle/wrapper-validation-action"&&oF("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),_se("gradle/actions/wrapper-validation");let t=await oz(Yse.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!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${t.toDisplayString()}`),t.invalid.length>0&&lge("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);p9e(!1)}catch(t){D9e(t)}}our();export{our as run};
${t.toDisplayString()}`),t.invalid.length>0&&j4("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);Pse(!1)}catch(t){Gse(t)}}cqe();export{cqe as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/web/fetch/body.js:
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/web/websocket/frame.js:
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
*/
//# 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/@actions/http-client/node_modules/undici/lib/core/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/tree.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/util/timers.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/core/connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/readable.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/util.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-request.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-stream.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/api-connect.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/api/index.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/@actions/http-client/node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/@actions/http-client/node_modules/undici/libLine 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": ";u6BAAA,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", "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", "handler", "rState", "err", "i", "processHeader", "headeLine 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": ";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
}
+36 -17
View File
@@ -15,6 +15,15 @@ for vulnerable dependencies, as well as to populate the
If you're confused by the behaviour you're seeing or have specific questions, please check out [the FAQ](dependency-submission-faq.md) before raising an issue.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## General usage
The following workflow will generate a dependency graph for a Gradle project and submit it immediately to the repository via the
@@ -36,14 +45,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
### Gradle execution
@@ -60,6 +69,17 @@ on the command-line will be used.
The action provides the ability to override the Gradle version and task to execute, as well as provide
additional arguments that will be passed to Gradle on the command-line. See [Configuration Parameters](#configuration-parameters) below.
### Selecting a cache provider
See [Selecting a cache provider](setup-gradle.md#selecting-a-cache-provider) for details on choosing between the `enhanced` (default) and `basic` cache providers via the `cache-provider` input.
### Disabling caching
Caching is enabled by default. You can disable caching for the action as follows:
```yaml
cache-disabled: true
```
### Publishing a Develocity Build Scan® from your dependency submission workflow
You can automatically publish a free Develocity Build Scan on every run of `gradle/actions/dependency-submission`.
@@ -68,7 +88,7 @@ Three input parameters are required, one to enable publishing and two more to ac
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
@@ -83,7 +103,7 @@ In some cases, the default action configuration will not be sufficient, and addi
```yaml
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Use a particular Gradle version instead of the configured wrapper.
gradle-version: '8.6'
@@ -130,7 +150,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate dependency graph but only store workflow artifacts for 1 day
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
artifact-retention-days: 1 # Default is 30 days or as configured for repository
```
@@ -139,7 +159,7 @@ To reduce storage costs for these artifacts, you can:
```yaml
- name: Generate and submit dependency graph but do not store as workflow artifact
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: 'generate-and-submit' # Default value is 'generate-submit-and-upload'
```
@@ -299,7 +319,7 @@ For example, if you want to exclude dependencies resolved by the `buildSrc` proj
```yaml
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
# Exclude all dependencies that originate solely in the 'buildSrc' project
dependency-graph-exclude-projects: ':buildSrc'
@@ -343,14 +363,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
```
#### 2. Add a dedicated Dependency Review workflow
@@ -405,14 +425,14 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Generate and save dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: generate-and-upload
```
@@ -435,7 +455,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download and submit dependency graph
uses: gradle/actions/dependency-submission@v5
uses: gradle/actions/dependency-submission@v6
with:
dependency-graph: download-and-submit # Download saved dependency-graph and submit
```
@@ -443,7 +463,7 @@ jobs:
# Gradle version compatibility
Dependency-graph generation is compatible with most versions of Gradle >= `5.2`, and is tested regularly against
Gradle versions `5.2.1`, `5.6.4`, `6.0.1`, `6.9.4`, `7.1.1` and `7.6.3`, as well as all patched versions of Gradle 8.x.
Gradle versions `5.2.1`, `5.6.4`, `6.0.1`, `6.9.4`, `7.1.1`, `7.6.6`, `8.0.2` and `8.14.4`, as well as all patched versions of Gradle 9.x.
A known exception to this is that Gradle `7.0`, `7.0.1` and `7.0.2` are not supported.
@@ -454,4 +474,3 @@ See [here](https://github.com/gradle/github-dependency-graph-gradle-plugin?tab=r
- Dependency Submission Demo repository: https://github.com/gradle/github-dependency-submission-demo
- GitHub Dependency Graph Gradle Plugin: https://github.com/gradle/github-dependency-graph-gradle-plugin
- Webinar - Gradle at Scale with GitHub and GitHub Actions at Allegro: https://www.youtube.com/watch?v=gV94I28FPos
+4 -4
View File
@@ -20,7 +20,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
```
## The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`
@@ -40,7 +40,7 @@ To convert your workflows, simply replace:
```
with
```
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
## Using the action to execute Gradle via the `arguments` parameter is deprecated
@@ -82,7 +82,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Assemble the project
run: ./gradlew assemble
@@ -99,7 +99,7 @@ The exact syntax depends on whether or not your project is configured with the [
```
- name: Setup Gradle for a non-wrapper project
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.11'
+233 -165
View File
@@ -2,13 +2,23 @@
This GitHub Action can be used to configure Gradle for optimal execution on any platform supported by GitHub Actions.
> [!NOTE]
> ### ⚡️ Choice of caching providers in v6
> To provide the fastest possible build experience this action includes **Enhanced Caching** via `gradle-actions-caching`, an optimized provider powered by proprietary technology. This feature is **free for all public repositories** and is currently available as a **Free Preview** for private repositories.
>
> **Prefer a 100% Open Source (MIT) path?**
> We also provide a **Basic Caching** provider as a thin wrapper over `actions/cache`. This provider is **free for all repositories** (public and private) and can be enabled at any time by setting `cache-provider: basic`.
>
> For a full breakdown of the components, usage tiers, and our **Safe Harbor** data privacy commitment, see our [Distribution & Licensing Guide](../DISTRIBUTION.md).
## Why use the `setup-gradle` action?
It is possible to directly invoke Gradle in your workflow, and the `actions/setup-java@v4` action provides a simple way to cache Gradle dependencies.
It is possible to directly invoke Gradle in your workflow, and the `actions/setup-java@v5` action provides a simple way to cache Gradle dependencies.
However, the `setup-gradle` action offers a several advantages over this approach:
- Easily [configure your workflow to use a specific version of Gradle](#build-with-a-specific-gradle-version) using the `gradle-version` parameter. Gradle distributions are automatically downloaded and cached.
- [Gradle Wrapper files are automatically validated](#gradle-wrapper-validation) against known checksums
- More sophisticated and more efficient caching of Gradle User Home between invocations, compared to `setup-java` and most custom configurations using `actions/cache`. [More details below](#caching-build-state-between-jobs).
- Detailed reporting of cache usage and cache configuration options allow you to [optimize the use of the GitHub actions cache](#optimizing-cache-effectiveness).
- [Generate and Submit a GitHub Dependency Graph](#github-dependency-graph-support) for your project, enabling Dependabot security alerts.
@@ -38,14 +48,14 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Execute Gradle build
run: ./gradlew build
@@ -58,7 +68,7 @@ Downloaded Gradle versions are stored in the GitHub Actions cache, to avoid havi
```yaml
- name: Setup Gradle 8.10
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: '8.10' # Quotes required to prevent YAML converting to number
- name: Build with Gradle 8.10
@@ -90,13 +100,13 @@ jobs:
gradle-rc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
id: setup-gradle
with:
gradle-version: release-candidate
@@ -112,24 +122,44 @@ The cached state includes:
- Any distributions downloaded to satisfy a `gradle-version` parameter.
- A subset of the Gradle User Home directory, including downloaded dependencies, wrapper distributions, and the local build cache.
To reduce the space required for caching, this action attempts to reduce duplication in cache entries on a best effort basis.
The state will be restored from the cache during the first `setup-gradle` step for any workflow job, and cache entries will be written back to the cache at the end of the job after all Gradle executions have been completed.
### Disabling caching
### Selecting a cache provider
The `setup-gradle` action offers two caching providers, offered under different license terms and with different features.
See [DISTRIBUTION.md](../DISTRIBUTION.md) for more details.
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.
```yaml
# Use the open-source basic cache provider
- uses: gradle/actions/setup-gradle@v6
id: setup-gradle
with:
cache-provider: basic
```
### Common cache configuration
The following options apply to both the `enhanced` and `basic` cache providers.
#### Disabling caching
Caching is enabled by default. You can disable caching for the action as follows:
```yaml
cache-disabled: true
```
### Using the cache read-only
#### Using the cache read-only
By default, The `setup-gradle` action will only write to the cache from Jobs on the default (`main`/`master`) branch.
Jobs on other branches will read entries from the cache but will not write updated entries.
This setup is designed around [GitHub imposed restrictions on cache access](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache) and should work well in most scenarios.
See [Optimizing cache effectiveness](#select-which-branches-should-write-to-the-cache) for a more detailed explanation.
See [Optimizing cache effectiveness](#optimizing-cache-effectiveness) for a more detailed explanation.
In some circumstances, it makes sense to change this default and configure a workflow Job to read existing cache entries but not to write changes back.
@@ -147,93 +177,7 @@ You can also configure read-only caching only for certain branches:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/release' }}
```
### Using the cache write-only
In certain circumstances it may be desirable to start with a clean Gradle User Home state, but to save the state at the end of a workflow Job:
```yaml
cache-write-only: true
```
### Configuring cache cleanup
The Gradle User Home directory tends to grow over time. When you switch to a new Gradle wrapper version
or upgrade a dependency version the old files are not automatically and immediately removed.
While this can make sense in a local environment, in a GitHub Actions environment
it can lead to ever-larger Gradle User Home cache entries being saved and restored.
To avoid this situation, the `setup-gradle` and `dependency-submission` actions will perform "cache-cleanup",
purging any unused files from the Gradle User Home before saving it to the GitHub Actions cache.
Cache cleanup will attempt to remove any files that are initially restored to the Gradle User Home directory
but that are not used used by Gradle during the GitHub Actions Workflow.
If a Gradle build fails when running the Job, then it is possible that some required files and dependencies
will not be touched during the Job. To prevent these files from being purged, the default behavior is for
cache cleanup to run only when all Gradle builds in the Job are successful.
Gradle Home cache cleanup is enabled by default, and can be controlled by the `cache-cleanup` parameter as follows:
- `cache-cleanup: always`: Always run cache cleanup, even when a Gradle build fails in the Job.
- `cache-cleanup: on-success` (default): Run cache cleanup when the Job contains no failing Gradle builds.
- `cache-cleanup: never`: Disable cache cleanup for the Job.
Cache cleanup will never run when the cache is configured as read-only or disabled.
### Overwriting an existing Gradle User Home
When the action detects that the Gradle User Home caches directory already exists (`$GRADLE_USER_HOME/caches`), then by default it will not overwrite the existing content of this directory.
This can occur when a prior action initializes this directory, or when using a self-hosted runner that retains this directory between uses.
In this case, the Job Summary will display a message like:
> Caching for Gradle actions was disabled due to pre-existing Gradle User Home
If you want to override the default and have the caches of the `setup-gradle` action overwrite existing content in the Gradle User Home, you can set the `cache-overwrite-existing` parameter to `true`:
```yaml
cache-overwrite-existing: true
```
### Saving configuration-cache data
When Gradle is executed with the [configuration-cache](https://docs.gradle.org/current/userguide/configuration_cache.html) enabled, the configuration-cache data is stored
in the project directory, at `<project-dir>/.gradle/configuration-cache`. Due to the way the configuration-cache works, [this file may contain stored credentials and other
secrets](https://docs.gradle.org/release-nightly/userguide/configuration_cache.html#config_cache:secrets), and this data needs to be encrypted to be safely stored in the GitHub Actions cache.
> [!IMPORTANT]
> To avoid potentially leaking secrets in the configuration-cache entry, the action will only save or restore configuration-cache data if the `cache-encryption-key` parameter is set.
To benefit from configuration caching in your GitHub Actions workflow, you must:
- Execute your build with Gradle 8.6 or newer. This can be achieved directly or via the Gradle Wrapper.
- Enable the configuration cache for your build.
- Generate a [valid Gradle encryption key](https://docs.gradle.org/8.6/userguide/configuration_cache.html#config_cache:secrets:configuring_encryption_key) and save it as a [GitHub Actions secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).
- Provide the secret key via the `cache-encryption-key` action parameter.
```yaml
jobs:
gradle-with-configuration-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v5
with:
gradle-version: '8.6'
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- run: gradle build --configuration-cache
```
Even with everything correctly configured, you may find that the configuration-cache entry is not reused in your workflow.
This is often due to a known issue: [Included builds containing build logic prevent configuration-cache reuse](https://github.com/gradle/actions/issues/21). Refer to the issue for more details.
> [!NOTE]
> The configuration cache cannot be saved or restored in workflows triggered by a pull requests from a repository fork.
> This is because [GitHub secrets are not passed to workflows triggered by PRs from forks](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow).
> This prevents a malicious PR from reading the configuration-cache data, which may encode secrets read by Gradle.
### Incompatibility with other caching mechanisms
#### Incompatibility with other caching mechanisms
When using `setup-gradle` we recommend that you avoid using other mechanisms to save and restore the Gradle User Home.
@@ -243,18 +187,22 @@ Specifically:
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.
## How Gradle User Home caching works
## Enhanced Caching
### Properties of the GitHub Actions cache
Enhanced Caching is the default cache provider. It uses the proprietary `gradle-actions-caching` library to provide advanced caching features including fine-grained cache entries, intelligent cache cleanup, and deduplication of cached content. This reduces cache storage requirements and improves restore times compared to basic caching.
### How Enhanced Caching works
#### Properties of the GitHub Actions cache
The GitHub Actions cache has some properties that present problems for efficient caching of the Gradle User Home.
- Immutable entries: once a cache entry is written for a key, it cannot be overwritten or changed.
- Branch scope: cache entries written for a Git branch are not visible from actions running against different branches or tags. Entries written for the default branch are visible to all. https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
- Restore keys: if no exact match is found, a set of partial keys can be provided that will match by cache key prefix. https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
Each of these properties has influenced the design and implementation of the caching in `setup-gradle`, as described below.
Each of these properties has influenced the design and implementation of Enhanced Caching, as described below.
### Which content is cached
#### Which content is cached
Using experiments and observations, we have attempted to identify which Gradle User Home content is worth saving and restoring between build invocations. We considered both the respective size of the content and the impact this content has on build times. As well as the obvious candidates like downloaded dependencies, we saw that compiled build scripts, transformed Jar files, and other content can also have a significant impact.
@@ -266,9 +214,9 @@ In the end, we opted to save and restore as much content as is practical, includ
- `caches/jars-9`: Jar files that have been processed/instrumented by Gradle
- `caches/build-cache-1`: The local build cache
In certain cases, a particular section of Gradle User Home will be too large to make caching effective. In these cases, particular subdirectories can be excluded from caching. See [Exclude content from Gradle User Home cache](#exclude-content-from-gradle-user-home-cache).
In certain cases, a particular section of Gradle User Home will be too large to make caching effective. In these cases, particular subdirectories can be excluded from caching. See [Include/exclude content from Gradle User Home](#includeexclude-content-from-gradle-user-home).
### Cache keys
#### Cache keys
The actual content of the Gradle User Home after a build is the result of many factors, including:
- Core Gradle build files (`settings.gradle[.kts]`, `build.gradle[.kts]`, `gradle.properties`)
@@ -290,7 +238,7 @@ Specifically, the cache key is: `${cache-protocol}-gradle|${runner-os}|${job-id}
As such, the cache key is likely to change on each subsequent run of GitHub actions.
This allows the most recent state to always be available in the GitHub actions cache.
### Finding a matching cache entry
#### Finding a matching cache entry
In most cases, no exact match will exist for the cache key. Instead, the Gradle User Home will be restored for the closest matching cache entry, using a set of "restore keys". The entries will be matched with the following precedence:
- An exact match on OS, job id, workflow name, matrix, and Git SHA
@@ -304,9 +252,9 @@ After the Job is complete, the current Gradle User Home state will be collected
Note that while effective, this mechanism is not inherently efficient. It requires the entire Gradle User Home directory to be stored separately for each branch, for every OS+Job+Matrix combination. In addition, it writes a new cache entry on every GitHub Actions run.
This inefficiency is effectively mitigated by [Deduplication of Gradle User Home cache entries](#deduplication-of-gradle-user-home-cache-entries) and can be further optimized for a workflow using the techniques described in [Optimizing cache effectiveness](#optimizing-cache-effectiveness).
This inefficiency is effectively mitigated by [Deduplication of cache entries](#deduplication-of-cache-entries) and can be further optimized for a workflow using the techniques described in [Optimizing cache effectiveness](#optimizing-cache-effectiveness).
### Deduplication of Gradle User Home cache entries
#### Deduplication of cache entries
To reduce duplication between cache entries, certain artifacts in Gradle User Home are extracted and cached independently based on their identity. This allows each Gradle User Home cache entry to be relatively small, sharing common elements between them without duplication.
@@ -318,53 +266,78 @@ Artifacts that are cached independently include:
For example, this means that all jobs executing a particular version of the Gradle wrapper will share a single common entry for this wrapper distribution and one for each of the generated Gradle API jars.
### Stopping the Gradle daemon
#### Stopping the Gradle daemon
By default, the action will stop all running Gradle daemons in the post-action step, before saving the Gradle User Home state.
This allows for any Gradle User Home cleanup to occur, and avoid file-locking issues on Windows.
If caching is disabled or the cache is in read-only mode, the daemon will not be stopped and will continue running after the job is completed.
## Optimizing cache effectiveness
### Enhanced Caching configuration options
Cache storage space for GitHub actions is limited, and writing new cache entries can trigger the deletion of existing entries.
Eviction of shared cache entries can reduce cache effectiveness, slowing down your `setup-gradle` steps.
The following configuration options only apply when using the `enhanced` cache provider.
There are a several actions you can take if your cache use is less effective due to entry eviction.
#### Using the cache write-only
At the end of a Job, The `setup-gradle` action will write a summary of the Gradle builds executed, together with a detailed report of the cache entries that were read and written during the Job. This report can provide valuable insights that may help to determine the right way to optimize the cache usage for your workflow.
In certain circumstances it may be desirable to start with a clean Gradle User Home state, but to save the state at the end of a workflow Job:
### Select which jobs should write to the cache
```yaml
cache-write-only: true
```
Consider a workflow that first runs a Job "compile-and-unit-test" to compile the code and run some basic unit tests, which is followed by a matrix of parallel "integration-test" jobs that each run a set of integration tests for the repository. Each "integration test" Job requires all of the dependencies required by "compile-and-unit-test", and possibly one or 2 additional dependencies.
#### Overwriting an existing Gradle User Home
By default, a new cache entry will be written on completion of each integration test job. If no additional dependencies were downloaded then this cache entry will share the "dependencies" entry with the "compile-and-unit-test" job, but if a single dependency was downloaded then an entirely new "dependencies" entry would be written. (The `setup-gradle` action does not _yet_ support a layered cache that could do this more efficiently). If each of these "integration-test" entries with their different "dependencies" entries is too large, then it could result in other important entries being evicted from the GitHub Actions cache.
When the action detects that the Gradle User Home caches directory already exists (`$GRADLE_USER_HOME/caches`), then by default it will not overwrite the existing content of this directory.
This can occur when a prior action initializes this directory, or when using a self-hosted runner that retains this directory between uses.
Some techniques can be used to avoid/mitigate this issue:
- Configure the "integration-test" jobs with `cache-read-only: true`, meaning that the Job will use the entry written by the "compile-and-unit-test" job. This will avoid the overhead of cache entries for each of these jobs, at the expense of re-downloading any additional dependencies required by "integration-test".
- Add a step to the "compile-and-unit-test" job which downloads all dependencies required by the integration-test jobs but does not execute the tests. This will allow the "dependencies" entry for "compile-and-unit-test" to be shared among all cache entries for "integration-test". The resulting "integration-test" entries should be much smaller, reducing the potential for eviction.
- Combine the above 2 techniques, so that no cache entry is written by "integration-test" jobs, but all required dependencies are already present from the restored "compile-and-unit-test" entry.
In this case, the Job Summary will display a message like:
> Caching for Gradle actions was disabled due to pre-existing Gradle User Home
### Select which branches should write to the cache
If you want to override the default and have the caches of the `setup-gradle` action overwrite existing content in the Gradle User Home, you can set the `cache-overwrite-existing` parameter to `true`:
GitHub cache entries are not shared between builds on different branches or tags.
Workflow runs can _only_ restore caches created in either the same branch or the default branch (usually `main`).
This means that each branch will have its own Gradle User Home cache scope, and will not benefit from cache entries written for other (non-default) branches.
```yaml
cache-overwrite-existing: true
```
By default, The `setup-gradle` action will only _write_ to the cache for builds run on the default (`master`/`main`) branch.
Jobs running on other branches will only read from the cache. In most cases, this is the desired behavior.
This is because Jobs running on other branches will benefit from the cached Gradle User Home from `main`,
without writing private cache entries which could lead to evicting these shared entries.
#### Configuring cache cleanup
If you have other long-lived development branches that would benefit from writing to the cache,
you can configure this by disabling the `cache-read-only` action parameter for these branches.
See [Using the cache read-only](#using-the-cache-read-only) for more details.
The Gradle User Home directory tends to grow over time. When you switch to a new Gradle wrapper version
or upgrade a dependency version the old files are not automatically and immediately removed.
While this can make sense in a local environment, in a GitHub Actions environment
it can lead to ever-larger Gradle User Home cache entries being saved and restored.
Note there are some cases where writing cache entries is typically unhelpful (these are disabled by default):
- For `pull_request` triggered runs, the cache scope is limited to the merge ref (`refs/pull/.../merge`) and can only be restored by re-runs of the same pull request.
- For `merge_group` triggered runs, the cache scope is limited to a temporary branch with a special prefix created to validate pull request changes, and won't be available on subsequent Merge Queue executions.
To avoid this situation, the `setup-gradle` and `dependency-submission` actions will perform "cache-cleanup",
purging any unused files from the Gradle User Home before saving it to the GitHub Actions cache.
Cache cleanup will attempt to remove any files that are initially restored to the Gradle User Home directory
but that are not used by Gradle during the GitHub Actions Workflow.
### Exclude content from Gradle User Home cache
If a Gradle build fails when running the Job, then it is possible that some required files and dependencies
will not be touched during the Job. To prevent these files from being purged, the default behavior is for
cache cleanup to run only when all Gradle builds in the Job are successful.
Gradle Home cache cleanup is enabled by default, and can be controlled by the `cache-cleanup` parameter as follows:
- `cache-cleanup: always`: Always run cache cleanup, even when a Gradle build fails in the Job.
- `cache-cleanup: on-success` (default): Run cache cleanup when the Job contains no failing Gradle builds.
- `cache-cleanup: never`: Disable cache cleanup for the Job.
Cache cleanup will never run when the cache is configured as read-only or disabled.
#### Cache encryption key
The `cache-encryption-key` parameter allows you to provide a base64-encoded AES key to encrypt configuration-cache data stored in the GitHub Actions cache. This is useful when your configuration-cache entries contain sensitive information.
```yaml
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
```
A suitable key can be generated with:
```
openssl rand -base64 16
```
The key is exported as the `GRADLE_ENCRYPTION_KEY` environment variable for use by subsequent steps.
#### Include/exclude content from Gradle User Home
As well as any wrapper distributions, the action will attempt to save and restore the `caches` and `notifications` directories from Gradle User Home.
@@ -387,7 +360,57 @@ gradle-home-cache-excludes: |
You can specify any number of fixed paths or patterns to include or exclude.
File pattern support is documented at https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#patterns-to-match-file-paths.
### Disable local build-cache when remote build-cache is available
#### Strict cache matching
By default, the Enhanced Caching provider will attempt to restore the Gradle User Home from cache entries written by other Jobs in the same workflow (using restore keys). Setting `gradle-home-cache-strict-match` to `true` disables this behavior, so that cache entries are only restored from the same Job.
```yaml
gradle-home-cache-strict-match: true
```
> [!NOTE]
> This is an experimental feature that may be useful if you find that cache entries from other Jobs are causing issues.
### Optimizing cache effectiveness
Cache storage space for GitHub actions is limited, and writing new cache entries can trigger the deletion of existing entries.
Eviction of shared cache entries can reduce cache effectiveness, slowing down your `setup-gradle` steps.
There are a several actions you can take if your cache use is less effective due to entry eviction.
At the end of a Job, The `setup-gradle` action will write a summary of the Gradle builds executed, together with a detailed report of the cache entries that were read and written during the Job. This report can provide valuable insights that may help to determine the right way to optimize the cache usage for your workflow.
#### Select which jobs should write to the cache
Consider a workflow that first runs a Job "compile-and-unit-test" to compile the code and run some basic unit tests, which is followed by a matrix of parallel "integration-test" jobs that each run a set of integration tests for the repository. Each "integration test" Job requires all of the dependencies required by "compile-and-unit-test", and possibly one or 2 additional dependencies.
By default, a new cache entry will be written on completion of each integration test job. If no additional dependencies were downloaded then this cache entry will share the "dependencies" entry with the "compile-and-unit-test" job, but if a single dependency was downloaded then an entirely new "dependencies" entry would be written. (The `setup-gradle` action does not _yet_ support a layered cache that could do this more efficiently). If each of these "integration-test" entries with their different "dependencies" entries is too large, then it could result in other important entries being evicted from the GitHub Actions cache.
Some techniques can be used to avoid/mitigate this issue:
- Configure the "integration-test" jobs with `cache-read-only: true`, meaning that the Job will use the entry written by the "compile-and-unit-test" job. This will avoid the overhead of cache entries for each of these jobs, at the expense of re-downloading any additional dependencies required by "integration-test".
- Add a step to the "compile-and-unit-test" job which downloads all dependencies required by the integration-test jobs but does not execute the tests. This will allow the "dependencies" entry for "compile-and-unit-test" to be shared among all cache entries for "integration-test". The resulting "integration-test" entries should be much smaller, reducing the potential for eviction.
- Combine the above 2 techniques, so that no cache entry is written by "integration-test" jobs, but all required dependencies are already present from the restored "compile-and-unit-test" entry.
#### Select which branches should write to the cache
GitHub cache entries are not shared between builds on different branches or tags.
Workflow runs can _only_ restore caches created in either the same branch or the default branch (usually `main`).
This means that each branch will have its own Gradle User Home cache scope, and will not benefit from cache entries written for other (non-default) branches.
By default, The `setup-gradle` action will only _write_ to the cache for builds run on the default (`master`/`main`) branch.
Jobs running on other branches will only read from the cache. In most cases, this is the desired behavior.
This is because Jobs running on other branches will benefit from the cached Gradle User Home from `main`,
without writing private cache entries which could lead to evicting these shared entries.
If you have other long-lived development branches that would benefit from writing to the cache,
you can configure this by disabling the `cache-read-only` action parameter for these branches.
See [Using the cache read-only](#using-the-cache-read-only) for more details.
Note there are some cases where writing cache entries is typically unhelpful (these are disabled by default):
- For `pull_request` triggered runs, the cache scope is limited to the merge ref (`refs/pull/.../merge`) and can only be restored by re-runs of the same pull request.
- For `merge_group` triggered runs, the cache scope is limited to a temporary branch with a special prefix created to validate pull request changes, and won't be available on subsequent Merge Queue executions.
#### Disable local build-cache when remote build-cache is available
If you have a remote build-cache available for your build, then it is recommended to do the following:
- Enable [remote build-cache push](https://docs.gradle.org/current/userguide/build_cache.html#sec:build_cache_configure_use_cases) for your GitHub Actions builds
@@ -397,6 +420,52 @@ As well as reducing the content that needs to be saved to the GitHub Actions cac
this setup will ensure that your CI builds populate the remote cache and keep the cache entries fresh by reading these entries.
Local builds can then benefit from the remote cache.
## Basic Caching
Basic Caching is an open-source (MIT) alternative that uses `@actions/cache` to provide straightforward, path-based caching of Gradle dependencies. It uses the same caching strategy as `actions/setup-java` with `cache: gradle`.
To enable Basic Caching:
```yaml
- uses: gradle/actions/setup-gradle@v6
with:
cache-provider: basic
```
### What Basic Caching stores
The basic provider saves and restores two directories from the Gradle User Home:
- `~/.gradle/caches` — downloaded dependencies, compiled build scripts, transforms, and the local build cache
- `~/.gradle/wrapper` — wrapper distributions
### Cache key strategy
The cache key is computed from the contents of your Gradle build files, using the format:
`setup-java-{RUNNER_OS}-{arch}-gradle-{hash}`
The hash is derived from the following file patterns:
- `**/*.gradle*`
- `**/gradle-wrapper.properties`
- `buildSrc/**/Versions.kt`
- `buildSrc/**/Dependencies.kt`
- `gradle/*.versions.toml`
- `**/versions.properties`
Unlike the Enhanced Caching provider, Basic Caching does not use restore keys. If no exact cache key match is found, the cache starts empty. This means that when you update a dependency or change a build file, the next build will re-download all dependencies and write a fresh cache entry.
### Limitations
The basic provider does not support the following Enhanced Caching features:
- **Cache cleanup** (`cache-cleanup`): Stale entries are not automatically removed.
- **Deduplication**: The entire `caches` and `wrapper` directories are stored as a single cache entry, without deduplication of individual artifacts.
- **Include/exclude paths** (`gradle-home-cache-includes` / `gradle-home-cache-excludes`): The cached paths are fixed.
- **Write-only mode** (`cache-write-only`): Not available with basic caching.
- **Overwrite existing** (`cache-overwrite-existing`): Not available with basic caching.
- **Strict cache matching** (`gradle-home-cache-strict-match`): Not applicable since restore keys are not used.
If you need these features, switch to the default [Enhanced Caching](#enhanced-caching) provider.
## Debugging and Troubleshooting
To debug a failed job, it can be useful to run with [debug logging enabled](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging).
@@ -465,14 +534,14 @@ jobs:
run-gradle-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
add-job-summary-as-pr-comment: 'on-failure' # Valid values are 'never' (default), 'always', and 'on-failure'
@@ -502,14 +571,14 @@ jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Run build with Gradle wrapper
run: ./gradlew build --scan
@@ -540,7 +609,7 @@ If you do not want wrapper-validation to occur automatically, you can disable it
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: false
```
@@ -552,7 +621,7 @@ These are not allowed by default.
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: true
allow-snapshot-wrappers: true
@@ -610,14 +679,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Run the usual CI build (dependency-graph will be generated and submitted post-job)
@@ -644,7 +713,7 @@ graph cannot be generated or submitted. You can enable this behavior with the `d
```yaml
# Ensure that the workflow Job will fail if the dependency graph cannot be submitted
- uses: gradle/actions/setup-gradle@v5
- uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
dependency-graph-continue-on-failure: false
@@ -662,14 +731,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Run a build, resolving the 'dependency-graph' plugin from the plugin portal proxy
@@ -692,14 +761,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
dependency-graph: generate-and-submit
- name: Build the app, generating a graph of dependencies required
@@ -743,7 +812,7 @@ To publish to https://scans.gradle.com, you must specify in your workflow that y
```yaml
- name: Setup Gradle to publish build scans
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
build-scan-publish: true
build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service'
@@ -765,7 +834,7 @@ The short-lived access token will then be used wherever a Develocity access key
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }} # Long-lived access key, visiblility is restricted to this step.
@@ -783,7 +852,7 @@ To avoid this, use the `develocity-token-expiry` parameter to specify a differen
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
develocity-token-expiry: '8' # The number of hours that the access token should remain valid (max 24).
@@ -805,7 +874,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
# The build will automatically use a short-lived access token to authenticate with Develocity
- name: Run a Gradle build that is configured to publish to Develocity.
@@ -837,7 +906,7 @@ Here's a minimal example:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-injection-enabled: true
develocity-url: 'https://develocity.your-server.com'
@@ -847,14 +916,14 @@ Here's a minimal example:
run: ./gradlew build
```
This configuration will automatically apply `v4.3.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.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 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:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
with:
develocity-access-key: ${{ secrets.MY_DEVELOCITY_ACCESS_KEY }}
@@ -905,7 +974,7 @@ Here's an example using the env vars:
```yaml
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Run a Gradle build with Develocity injection enabled with environment variables
run: ./gradlew build
@@ -933,4 +1002,3 @@ Each of the plugins is signed by Gradle, and you can simply add the following sn
</trusted-key>
</trusted-keys>
```
+4 -4
View File
@@ -50,7 +50,7 @@ We created an example [Homoglyph attack PR here](https://github.com/JLLeitschuh/
Simply add this action to your workflow **after** having checked out your source tree and **before** running any Gradle build:
```yaml
uses: gradle/actions/wrapper-validation@v5
uses: gradle/actions/wrapper-validation@v6
```
This action step should precede any step using `gradle/gradle-build-action` or `gradle/actions/setup-gradle`.
@@ -72,8 +72,8 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v5
- uses: actions/checkout@v6
- uses: gradle/actions/wrapper-validation@v6
```
## Contributing to an external GitHub Repository
@@ -120,7 +120,7 @@ restore these Jars on checkout. Without this, only a pointer to the Wrapper Jar
```
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
lfs: true # gradle-wrapper.jar verification will fail without this
```
@@ -0,0 +1,27 @@
Software License Agreement Copyright (c) 2026 Gradle, Inc. All rights
reserved.
1. PROPRIETARY AND CONFIDENTIAL. This software and its source code are the
proprietary and confidential property of Gradle, Inc.
2. LICENSE GRANT AND TERMS OF USE. Subject to your compliance with the Terms
of Use referenced below, Gradle, Inc. grants you a non-exclusive,
non-transferable license to use this library solely for internal CI/CD
purposes. Your use, installation, and distribution of this software are
strictly governed by the Gradle, Inc. Terms of Use, which can be found at the
following URL: https://gradle.com/legal/terms-of-use/. By downloading,
installing, or using this software, you agree to be bound by the terms and
conditions set forth in the link above.
3. RESTRICTIONS. Unless expressly permitted in the Terms of Use referenced
above, you may not: (a) Modify, decompile, or reverse engineer this software.
(b) Redistribute the source code or binaries without prior written consent.
(c) Use this software for any purpose not authorized by the Terms of Use.
4. NO WARRANTY. AS SET FORTH IN THE GRADLE, INC. TERMS OF USE, THIS SOFTWARE IS
PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+3 -3
View File
@@ -19,14 +19,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
uses: gradle/actions/setup-gradle@v6
- name: Build with Gradle
run: ./gradlew build
```
+177
View File
@@ -0,0 +1,177 @@
# Type descriptors based on https://github.com/typesafegithub/github-actions-typing
inputs:
gradle-version:
type: string
# Cache configuration
cache-provider:
type: enum
allowed-values:
- basic
- enhanced
cache-disabled:
type: boolean
cache-read-only:
type: boolean
cache-write-only:
type: boolean
cache-overwrite-existing:
type: boolean
cache-encryption-key:
type: string
cache-cleanup:
type: enum
allowed-values:
- never
- on-success
- always
gradle-home-cache-cleanup:
type: boolean
gradle-home-cache-includes:
type: list
separator: '\n'
list-item:
type: string
gradle-home-cache-excludes:
type: list
separator: '\n'
list-item:
type: string
# Job summary configuration
add-job-summary:
type: enum
allowed-values:
- never
- always
- on-failure
add-job-summary-as-pr-comment:
type: enum
allowed-values:
- never
- always
- on-failure
# Dependency Graph configuration
dependency-graph:
type: enum
allowed-values:
- disabled
- generate
- generate-and-submit
- generate-and-upload
- download-and-submit
dependency-graph-report-dir:
type: string
dependency-graph-continue-on-failure:
type: boolean
dependency-graph-exclude-projects:
type: string
dependency-graph-include-projects:
type: string
dependency-graph-exclude-configurations:
type: string
dependency-graph-include-configurations:
type: string
artifact-retention-days:
type: integer
# Build Scan configuration
build-scan-publish:
type: boolean
build-scan-terms-of-use-url:
type: enum
allowed-values:
- https://gradle.com/terms-of-service
- https://gradle.com/help/legal-terms-of-use
build-scan-terms-of-use-agree:
type: enum
allowed-values:
- 'yes'
develocity-access-key:
type: string
develocity-token-expiry:
type: integer
develocity-injection-enabled:
type: boolean
develocity-url:
type: string
develocity-allow-untrusted-server:
type: boolean
develocity-capture-file-fingerprints:
type: boolean
develocity-enforce-url:
type: boolean
develocity-plugin-version:
type: string
develocity-ccud-plugin-version:
type: string
gradle-plugin-repository-url:
type: string
gradle-plugin-repository-username:
type: string
gradle-plugin-repository-password:
type: string
# Wrapper validation configuration
validate-wrappers:
type: boolean
allow-snapshot-wrappers:
type: boolean
# Deprecated action inputs
arguments:
type: string
# Experimental action inputs
gradle-home-cache-strict-match:
type: boolean
# Internal action inputs
workflow-job-context:
type: string
github-token:
type: string
outputs:
build-scan-url:
type: string
dependency-graph-file:
type: string
gradle-version:
type: string
+8
View File
@@ -9,6 +9,14 @@ inputs:
required: false
# Cache configuration
cache-provider:
description: |
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.
required: false
default: 'enhanced'
cache-disabled:
description: When 'true', all caching is disabled. No entries will be written to or read from the cache.
required: false
+1025 -2707
View File
File diff suppressed because it is too large. Load diff
+25 -21
View File
@@ -5,7 +5,6 @@
"type": "module",
"description": "Execute Gradle Build",
"scripts": {
"postinstall": "patch-package",
"prettier-write": "prettier --write 'src/**/*.ts'",
"prettier-check": "prettier --check 'src/**/*.ts'",
"lint": "eslint 'src/**/*.ts'",
@@ -36,45 +35,50 @@
"node": ">=24.0.0"
},
"dependencies": {
"@actions/artifact": "6.1.0",
"@actions/cache": "4.0.5",
"@actions/core": "3.0.0",
"@actions/artifact": "6.2.1",
"@actions/cache": "6.0.1",
"@actions/core": "3.0.1",
"@actions/exec": "3.0.0",
"@actions/github": "9.0.0",
"@actions/glob": "0.6.1",
"@actions/http-client": "4.0.0",
"@actions/github": "9.1.1",
"@actions/glob": "0.7.0",
"@actions/http-client": "4.0.1",
"@actions/tool-cache": "4.0.0",
"@octokit/webhooks-types": "7.6.1",
"cheerio": "1.2.0",
"semver": "7.7.4",
"semver": "7.8.3",
"string-argv": "0.3.2",
"unhomoglyph": "1.0.6",
"which": "6.0.1"
"which": "7.0.0"
},
"devDependencies": {
"@jest/globals": "30.2.0",
"@jest/globals": "30.4.1",
"@types/jest": "30.0.0",
"@types/node": "25.3.0",
"@types/node": "25.9.2",
"@types/semver": "7.7.1",
"@types/unzipper": "0.10.11",
"@types/which": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.56.1",
"dedent": "1.7.1",
"esbuild": "0.27.3",
"eslint": "10.0.1",
"globals": "17.3.0",
"jest": "30.2.0",
"@typescript-eslint/eslint-plugin": "8.61.0",
"dedent": "1.7.2",
"esbuild": "0.28.0",
"eslint": "10.4.1",
"globals": "17.6.0",
"jest": "30.4.2",
"nock": "15.0.0",
"npm-run-all": "4.1.5",
"patch-package": "8.0.1",
"prettier": "3.8.1",
"ts-jest": "29.4.6",
"prettier": "3.8.4",
"ts-jest": "29.4.11",
"typescript": "5.9.3"
},
"overrides": {
"@azure/logger": "1.1.4",
"@octokit/request": "8.4.1",
"@octokit/request-error": "5.1.1",
"@octokit/plugin-paginate-rest": "9.2.2"
"@octokit/plugin-paginate-rest": "9.2.2",
"shell-quote": "1.8.4",
"fast-xml-parser": "5.8.0",
"fast-xml-builder": "1.2.0",
"eslint": {
"brace-expansion": "5.0.6"
}
}
}
-248
View File
@@ -1,248 +0,0 @@
diff --git a/node_modules/@actions/cache/lib/cache.d.ts b/node_modules/@actions/cache/lib/cache.d.ts
index ef0928b..d06e675 100644
--- a/node_modules/@actions/cache/lib/cache.d.ts
+++ b/node_modules/@actions/cache/lib/cache.d.ts
@@ -21,7 +21,8 @@ export declare function isFeatureAvailable(): boolean;
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform
* @returns string returns the key for the cache hit, otherwise returns undefined
*/
-export declare function restoreCache(paths: string[], primaryKey: string, restoreKeys?: string[], options?: DownloadOptions, enableCrossOsArchive?: boolean): Promise<string | undefined>;
+export declare function restoreCache(paths: string[], primaryKey: string, restoreKeys?: string[], options?: DownloadOptions, enableCrossOsArchive?: boolean): Promise<CacheEntry | undefined>;
+
/**
* Saves a list of files with the specified key
*
@@ -31,4 +32,12 @@ export declare function restoreCache(paths: string[], primaryKey: string, restor
* @param options cache upload options
* @returns number returns cacheId if the cache was saved successfully and throws an error if save fails
*/
-export declare function saveCache(paths: string[], key: string, options?: UploadOptions, enableCrossOsArchive?: boolean): Promise<number>;
+export declare function saveCache(paths: string[], key: string, options?: UploadOptions, enableCrossOsArchive?: boolean): Promise<CacheEntry>;
+
+// PATCHED: Add `CacheEntry` as return type for save/restore functions
+// This allows us to track and report on cache entry sizes.
+export declare class CacheEntry {
+ key: string;
+ size?: number;
+ constructor(key: string, size?: number);
+}
diff --git a/node_modules/@actions/cache/lib/cache.js b/node_modules/@actions/cache/lib/cache.js
index 41f2a37..2fe1600 100644
--- a/node_modules/@actions/cache/lib/cache.js
+++ b/node_modules/@actions/cache/lib/cache.js
@@ -165,26 +165,29 @@ function restoreCacheV1(paths, primaryKey, restoreKeys, options, enableCrossOsAr
core.info(`Cache Size: ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B)`);
yield (0, tar_1.extractTar)(archivePath, compressionMethod);
core.info('Cache restored successfully');
- return cacheEntry.cacheKey;
- }
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else {
- // warn on cache restore failure and continue build
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to restore: ${error.message}`);
- }
- else {
- core.warning(`Failed to restore: ${error.message}`);
- }
- }
+
+ // PATCHED - Include size of restored entry
+ return new CacheEntry(cacheEntry.cacheKey, archiveFileSize);
}
+ // PATCHED - propagate errors
+ // catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else {
+ // // warn on cache restore failure and continue build
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to restore: ${error.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to restore: ${error.message}`);
+ // }
+ // }
+ //}
finally {
// Try to delete the archive to save space
try {
@@ -257,26 +260,29 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
}
yield (0, tar_1.extractTar)(archivePath, compressionMethod);
core.info('Cache restored successfully');
- return response.matchedKey;
- }
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else {
- // Supress all non-validation cache related errors because caching should be optional
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to restore: ${error.message}`);
- }
- else {
- core.warning(`Failed to restore: ${error.message}`);
- }
- }
+
+ // PATCHED - Include size of restored entry
+ return new CacheEntry(response.matchedKey, archiveFileSize);
}
+ // PATCHED - propagate errors
+ // catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else {
+ // // Supress all non-validation cache related errors because caching should be optional
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to restore: ${error.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to restore: ${error.message}`);
+ // }
+ // }
+ //}
finally {
try {
if (archivePath) {
@@ -367,27 +373,31 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
}
core.debug(`Saving Cache (ID: ${cacheId})`);
yield cacheHttpClient.saveCache(cacheId, archivePath, '', options);
+
+ // PATCHED - Include size of saved entry
+ return new CacheEntry(key, archiveFileSize);
}
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else if (typedError.name === ReserveCacheError.name) {
- core.info(`Failed to save: ${typedError.message}`);
- }
- else {
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to save: ${typedError.message}`);
- }
- else {
- core.warning(`Failed to save: ${typedError.message}`);
- }
- }
- }
+ // PATCHED - propagate errors
+ //catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else if (typedError.name === ReserveCacheError.name) {
+ // core.info(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to save: ${typedError.message}`);
+ // }
+ // }
+ //}
finally {
// Try to delete the archive to save space
try {
@@ -471,27 +481,31 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
}
cacheId = parseInt(finalizeResponse.entryId);
+
+ // PATCHED - Include size of saved entry
+ return new CacheEntry(key, archiveFileSize);
}
- catch (error) {
- const typedError = error;
- if (typedError.name === ValidationError.name) {
- throw error;
- }
- else if (typedError.name === ReserveCacheError.name) {
- core.info(`Failed to save: ${typedError.message}`);
- }
- else {
- // Log server errors (5xx) as errors, all other errors as warnings
- if (typedError instanceof http_client_1.HttpClientError &&
- typeof typedError.statusCode === 'number' &&
- typedError.statusCode >= 500) {
- core.error(`Failed to save: ${typedError.message}`);
- }
- else {
- core.warning(`Failed to save: ${typedError.message}`);
- }
- }
- }
+ // PATCHED - propagate errors
+ //catch (error) {
+ // const typedError = error;
+ // if (typedError.name === ValidationError.name) {
+ // throw error;
+ // }
+ // else if (typedError.name === ReserveCacheError.name) {
+ // core.info(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // // Log server errors (5xx) as errors, all other errors as warnings
+ // if (typedError instanceof http_client_1.HttpClientError &&
+ // typeof typedError.statusCode === 'number' &&
+ // typedError.statusCode >= 500) {
+ // core.error(`Failed to save: ${typedError.message}`);
+ // }
+ // else {
+ // core.warning(`Failed to save: ${typedError.message}`);
+ // }
+ // }
+ //}
finally {
// Try to delete the archive to save space
try {
@@ -504,4 +518,12 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
return cacheId;
});
}
+// PATCHED - CacheEntry class
+class CacheEntry {
+ constructor(key, size) {
+ this.key = key;
+ this.size = size;
+ }
+}
+
//# sourceMappingURL=cache.js.map
\ No newline at end of file
@@ -5,7 +5,7 @@ import * as dependencyGraph from '../../dependency-graph'
import {parseArgsStringToArgv} from 'string-argv'
import {
BuildScanConfig,
DevelocityConfig,
CacheConfig,
DependencyGraphConfig,
DependencyGraphOption,
@@ -15,6 +15,7 @@ import {
} from '../../configuration'
import {saveDeprecationState} from '../../deprecation-collector'
import {handleMainActionError} from '../../errors'
import {forceExit} from '../../force-exit'
/**
* The main entry point for the action, called by Github Actions for the step.
@@ -24,7 +25,7 @@ export async function run(): Promise<void> {
setActionId('gradle/actions/dependency-submission')
// Configure Gradle environment (Gradle User Home)
await setupGradle.setup(new CacheConfig(), new BuildScanConfig(), new WrapperValidationConfig())
await setupGradle.setup(new CacheConfig(), new DevelocityConfig(), new WrapperValidationConfig())
// Capture the enabled state of dependency-graph
const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED']
@@ -67,7 +68,7 @@ export async function run(): Promise<void> {
}
// Explicit process.exit() to prevent waiting for hanging promises.
process.exit()
await forceExit()
}
run()
@@ -2,6 +2,7 @@ import * as setupGradle from '../../setup-gradle'
import {CacheConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {forceExit} from '../../force-exit'
// Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
// @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
@@ -19,7 +20,7 @@ export async function run(): Promise<void> {
}
// Explicit process.exit() to prevent waiting for promises left hanging by `@actions/cache` on save.
process.exit()
await forceExit()
}
run()
Loaded 100 of 147 files, more files were not shown because too many files have changed in this diff. Show more