Compare commits

...
21 Commits
Author SHA1 Message Date
dependabot[bot] 9c971963be Bump the github-actions group across 2 directories with 9 updates (#1024)
Bumps the github-actions group with 9 updates in the / directory:

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

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

Updates `actions/checkout` from 6.0.3 to 7.0.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/releases">actions/checkout's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>skip running unsafe pr check if input is default by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2518">actions/checkout#2518</a></li>
<li>trim only ascii whitespace for branch by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2521">actions/checkout#2521</a></li>
<li>escape values passed to --unset by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2530">actions/checkout#2530</a></li>
<li>Various dependency updates</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v7...v7.0.1">https://github.com/actions/checkout/compare/v7...v7.0.1</a></p>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>block checking out fork pr for pull_request_target and workflow_run
by <a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
<li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the
minor-actions-dependencies group across 1 directory by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li>
<li>Bump flatted from 3.3.1 to 3.4.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li>
<li>Bump js-yaml from 4.1.0 to 4.2.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li>
<li>Bump <code>@​actions/core</code> and
<code>@​actions/tool-cache</code> and Remove uuid by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li>
<li>upgrade module to esm and update dependencies by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li>
<li>Bump the minor-npm-dependencies group across 1 directory with 3
updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li>
<li>getting ready for checkout v7 release by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2464">actions/checkout#2464</a></li>
<li>update error wording by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2467">actions/checkout#2467</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.3...v7.0.0">https://github.com/actions/checkout/compare/v6.0.3...v7.0.0</a></p>
<h2>v6.1.0</h2>
<h2>What's Changed</h2>
<ul>
<li><strong>[BREAKING]</strong> backport
<code>allow-unsafe-pr-checkout</code> to v6 by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2500">actions/checkout#2500</a></li>
<li>backport fixes to releases-v6 by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2527">actions/checkout#2527</a></li>
</ul>
<p><a
href="https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/">https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/</a>
for more details about this breaking change</p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/checkout/compare/v6.0.3...v6.1.0">https://github.com/actions/checkout/compare/v6.0.3...v6.1.0</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>v7.0.1</h2>
<ul>
<li>Skip running unsafe pr check if input is default by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2518">actions/checkout#2518</a></li>
<li>Trim only ascii whitespace for branch by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2521">actions/checkout#2521</a></li>
<li>Escape values passed to --unset by <a
href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2530">actions/checkout#2530</a></li>
<li>Various dependency updates</li>
</ul>
<h2>v7.0.0</h2>
<ul>
<li>Block checking out fork PR for pull_request_target and workflow_run
by <a href="https://github.com/aiqiaoy"><code>@​aiqiaoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li>
<li>Various dependency updates</li>
</ul>
<h2>v6.0.3</h2>
<ul>
<li>Fix checkout init for SHA-256 repositories by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li>
<li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a
href="https://github.com/yaananth"><code>@​yaananth</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li>
</ul>
<h2>v6.0.2</h2>
<ul>
<li>Fix tag handling: preserve annotations and explicit fetch-tags by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li>
</ul>
<h2>v6.0.1</h2>
<ul>
<li>Add worktree support for persist-credentials includeIf by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li>
</ul>
<h2>v6.0.0</h2>
<ul>
<li>Persist creds to a separate file by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li>
<li>Update README to include Node.js 24 support details and requirements
by <a href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li>
</ul>
<h2>v5.0.1</h2>
<ul>
<li>Port v6 cleanup to v5 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li>
</ul>
<h2>v5.0.0</h2>
<ul>
<li>Update actions checkout to use node 24 by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li>
</ul>
<h2>v4.3.1</h2>
<ul>
<li>Port v6 cleanup to v4 by <a
href="https://github.com/ericsciple"><code>@​ericsciple</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li>
</ul>
<h2>v4.3.0</h2>
<ul>
<li>docs: update README.md by <a
href="https://github.com/motss"><code>@​motss</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li>
<li>Add internal repos for checking out multiple repositories by <a
href="https://github.com/mouismail"><code>@​mouismail</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li>
<li>Documentation update - add recommended permissions to Readme by <a
href="https://github.com/benwells"><code>@​benwells</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li>
<li>Adjust positioning of user email note and permissions heading by <a
href="https://github.com/joshmgross"><code>@​joshmgross</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li>
<li>Update README.md by <a
href="https://github.com/nebuk89"><code>@​nebuk89</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li>
<li>Update CODEOWNERS for actions by <a
href="https://github.com/TingluoHuang"><code>@​TingluoHuang</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li>
<li>Update package dependencies by <a
href="https://github.com/salmanmkc"><code>@​salmanmkc</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li>
</ul>
<h2>v4.2.2</h2>
<ul>
<li><code>url-helper.ts</code> now leverages well-known environment
variables by <a href="https://github.com/jww3"><code>@​jww3</code></a>
in <a
href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li>
<li>Expand unit test coverage for <code>isGhes</code> by <a
href="https://github.com/jww3"><code>@​jww3</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li>
</ul>
<h2>v4.2.1</h2>
<ul>
<li>Check out other refs/* by commit if provided, fall back to ref by <a
href="https://github.com/orhantoy"><code>@​orhantoy</code></a> in <a
href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/checkout/commit/3d3c42e5aac5ba805825da76410c181273ba90b1"><code>3d3c42e</code></a>
prep v7.0.1 release (<a
href="https://redirect.github.com/actions/checkout/issues/2531">#2531</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/28802689a136bfcdb721715abd713740beecbe07"><code>2880268</code></a>
escape values passed to --unset (<a
href="https://redirect.github.com/actions/checkout/issues/2530">#2530</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/12cd2235efa0937479335606d7c3ac9f6c0973b1"><code>12cd223</code></a>
trim only ascii whitespace for branch (<a
href="https://redirect.github.com/actions/checkout/issues/2521">#2521</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/62661c4e71a304b2823ed026347b8d34c3eac541"><code>62661c4</code></a>
skip running unsafe pr check if input is default (<a
href="https://redirect.github.com/actions/checkout/issues/2518">#2518</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/e8d4307400f9427dba7cb98e488d6ab85f1cec5f"><code>e8d4307</code></a>
Bump the minor-actions-dependencies group with 2 updates (<a
href="https://redirect.github.com/actions/checkout/issues/2499">#2499</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/631c942040754b6e095e929c1677c07e10ed4f87"><code>631c942</code></a>
eslint 9 (<a
href="https://redirect.github.com/actions/checkout/issues/2474">#2474</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/4f1f4aec02e41874fa0262ea8ff5172d7978ad1e"><code>4f1f4ae</code></a>
Bump actions/upload-artifact from 4 to 7 (<a
href="https://redirect.github.com/actions/checkout/issues/2476">#2476</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/ba097532fb203f7e88c9c3c0b899b49469908a92"><code>ba09753</code></a>
Bump actions/checkout from 6 to 7 (<a
href="https://redirect.github.com/actions/checkout/issues/2488">#2488</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/b9e0990d219a03df7633c93f6f005a8fecbcab22"><code>b9e0990</code></a>
Bump docker/login-action from 3.3.0 to 4.2.0 (<a
href="https://redirect.github.com/actions/checkout/issues/2479">#2479</a>)</li>
<li><a
href="https://github.com/actions/checkout/commit/e8cb398be4a550817e382abf69e4c12c76fce1f2"><code>e8cb398</code></a>
Bump docker/build-push-action from 6.5.0 to 7.2.0 (<a
href="https://redirect.github.com/actions/checkout/issues/2478">#2478</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/checkout/compare/df4cb1c069e1874edd31b4311f1884172cec0e10...3d3c42e5aac5ba805825da76410c181273ba90b1">compare
view</a></li>
</ul>
</details>
<br />

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

Updates `gradle/actions/setup-gradle` from 6.1.0 to 6.2.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gradle/actions/releases">gradle/actions/setup-gradle's
releases</a>.</em></p>
<blockquote>
<h2>v6.2.0</h2>
<h2>Highlights</h2>
<p>This release brings significant behaviour improvements to
<strong>Enhanced caching</strong>, improvements to the generated Job
Summary, and a number of correctness and security fixes.</p>
<ol>
<li><strong>Improved cache-cleanup mechanism.</strong> Cleanup of stale
files from the Gradle User Home is now faster, and no longer depends on
Gradle or a JVM. It works by inspecting the local file state directly,
removing the Gradle invocation from the post-build step.</li>
<li><strong>More granular, more stable caching.</strong> The local build
cache is stored as a separate cache entry, so it can be restored and
invalidated independently of the main Gradle User Home entry. Transient
Gradle housekeeping files are excluded from the cache, reducing its size
and improving stability.</li>
<li><strong>Hide obsolete Job summaries in PR commments</strong>: When a
new Job summary comment is added to a PR, previous outdated Job
summaries are now hidden.</li>
<li><strong>Improved caching report in the job summary.</strong> The
cache report now uses a single, consistent layout across all cache
states and providers. Provider information is integrated directly into
the report, and per-entry details are available in an expandable
section. (<a
href="https://redirect.github.com/gradle/actions/issues/985">#985</a>)</li>
<li><strong>Correctness and security fixes.</strong> A unique cache key
is now used per run attempt, so re-runs no longer collide; the job
summary shows the cache key string rather than an internal id; and
bundled dependencies have been updated, including a ReDoS fix and a
fast-xml CVE fix.</li>
</ol>
<h2>What's Changed</h2>
<ul>
<li>Remove unnecessary dependency overrides by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/981">gradle/actions#981</a></li>
<li>Scope CI-integ-test concurrency groups per-branch by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/983">gradle/actions#983</a></li>
<li>Improve typings by <a
href="https://github.com/Vampire"><code>@​Vampire</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/938">gradle/actions#938</a></li>
<li>Hide obsolete Job summaries by <a
href="https://github.com/SimonMarquis"><code>@​SimonMarquis</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/902">gradle/actions#902</a></li>
<li>CI: add requireable aggregate/no-op checks for branch protection by
<a href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/984">gradle/actions#984</a></li>
<li>Redesign the caching Job Summary by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/985">gradle/actions#985</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Vampire"><code>@​Vampire</code></a> made
their first contribution in <a
href="https://redirect.github.com/gradle/actions/pull/938">gradle/actions#938</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.1.1...v6.2.0">https://github.com/gradle/actions/compare/v6.1.1...v6.2.0</a></p>
<h2>v6.1.1</h2>
<p>This release updates various dependency versions, resolving several
reported security vulnerabilities.
No functional changes are included</p>
<h2>What's Changed</h2>
<ul>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/sources/test/init-scripts by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/961">gradle/actions#961</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/gradle-plugin by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/962">gradle/actions#962</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/groovy-dsl by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/963">gradle/actions#963</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/java-toolchain by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/964">gradle/actions#964</a></li>
<li>Bump Gradle Wrapper from 9.4.1 to 9.5.1 in
/.github/workflow-samples/kotlin-dsl by <a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/965">gradle/actions#965</a></li>
<li>Update known wrapper checksums by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/937">gradle/actions#937</a></li>
<li>Bump the github-actions group across 2 directories with 8 updates by
<a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/976">gradle/actions#976</a></li>
<li>Bump the npm-dependencies group across 1 directory with 14 updates
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/970">gradle/actions#970</a></li>
<li>Bump references to Develocity Gradle plugin from 4.4.0 to 4.4.2 by
<a
href="https://github.com/bot-githubaction"><code>@​bot-githubaction</code></a>
in <a
href="https://redirect.github.com/gradle/actions/pull/973">gradle/actions#973</a></li>
<li>Bump the npm-dependencies group in /sources with 5 updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/gradle/actions/pull/977">gradle/actions#977</a></li>
<li>Update <code>@​actions/cache</code> and
<code>@​actions/artifact</code>, stop ignoring them in Dependabot by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/978">gradle/actions#978</a></li>
<li>Resolve npm security vulnerabilities via dependency overrides by <a
href="https://github.com/bigdaz"><code>@​bigdaz</code></a> in <a
href="https://redirect.github.com/gradle/actions/pull/980">gradle/actions#980</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/gradle/actions/compare/v6.1.0...v6.1.1">https://github.com/gradle/actions/compare/v6.1.0...v6.1.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gradle/actions/commit/3f131e8634966bd73d06cc69884922b02e6faf92"><code>3f131e8</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/97715a29bc75b4c8eeea944dee111d567bb582b5"><code>97715a2</code></a>
Redesign the caching Job Summary (<a
href="https://redirect.github.com/gradle/actions/issues/985">#985</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/8b6cdb5f580ff6b19af985e0fa90cd86daf1d3e1"><code>8b6cdb5</code></a>
CI: add requireable aggregate/no-op checks for branch protection (<a
href="https://redirect.github.com/gradle/actions/issues/984">#984</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/5852e0e5d82ffa89e04ed56eb37c14028a1ce459"><code>5852e0e</code></a>
[bot] Update dist directory</li>
<li><a
href="https://github.com/gradle/actions/commit/318eed703815f0482a7498a267b758f78fe7bcb9"><code>318eed7</code></a>
Hide obsolete Job summaries (<a
href="https://redirect.github.com/gradle/actions/issues/902">#902</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/a7406612929c8997f724ceab900ed029936e3bf5"><code>a740661</code></a>
Improve typings (<a
href="https://redirect.github.com/gradle/actions/issues/938">#938</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/7ae0d0208cc8604463cd30cf64c54d08ac84d13f"><code>7ae0d02</code></a>
Update gradle-actions-caching library to v0.6.0 (<a
href="https://redirect.github.com/gradle/actions/issues/982">#982</a>)</li>
<li><a
href="https://github.com/gradle/actions/commit/e473973a5b07be6339cc6d3cf458bb1b30eb9b08"><code>e473973</code></a>
Scope CI-integ-test concurrency groups per-branch</li>
<li><a
href="https://github.com/gradle/actions/commit/35a4a3f355e0599a8af664843f0d1a683e5b2230"><code>35a4a3f</code></a>
Queue up integ-test runs</li>
<li><a
href="https://github.com/gradle/actions/commit/b6eebf33f1e928997bb7ff32e39933e3c015ccff"><code>b6eebf3</code></a>
[bot] Update dist directory</li>
<li>Additional commits viewable in <a
href="https://github.com/gradle/actions/compare/50e97c2cd7a37755bbfafc9c5b7cafaece252f6e...3f131e8634966bd73d06cc69884922b02e6faf92">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/init` from 4.36.2 to 4.37.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/init's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.4</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>v4.37.3</h2>
<p>No user facing changes.</p>
<h2>v4.37.2</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>v4.37.1</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>v4.37.0</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>v4.36.3</h2>
<p>No user facing changes.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/init's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/f205ea1c3313d32999d8d6a48b4f6530d4437b38"><code>f205ea1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4053">#4053</a>
from github/update-v4.37.4-9130ce0f7</li>
<li><a
href="https://github.com/github/codeql-action/commit/e40d079dd9dd4a5c74f625cecd83867c8208aa71"><code>e40d079</code></a>
Update changelog for v4.37.4</li>
<li><a
href="https://github.com/github/codeql-action/commit/9130ce0f733a0d17b9e1b9692c2af19be6c69dda"><code>9130ce0</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4051">#4051</a>
from github/update-bundle/codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/c62d82468641dca0f8df108ab73e2a8407ac9cf7"><code>c62d824</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/da0c1901011e62af9c02aae8bf5b8885b11f7741"><code>da0c190</code></a>
Update default bundle to codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/18420e3271f74589575af831a523c833acda327f"><code>18420e3</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4043">#4043</a>
from github/mbg/ts/changelog</li>
<li><a
href="https://github.com/github/codeql-action/commit/7e8d8970f03ec5a78ab372fc0778e8e4194111a5"><code>7e8d897</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4046">#4046</a>
from github/mbg/repo-prop/code-quality</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d4c474c2ca5ea2965b9e53fabb7b67b0100016c"><code>2d4c474</code></a>
Log <code>!analysisKindSupported</code> case</li>
<li><a
href="https://github.com/github/codeql-action/commit/98c05a17d327d7c4055fca83114434ab56baacf6"><code>98c05a1</code></a>
Fix argument validation in <code>rollback-changelog.ts</code></li>
<li><a
href="https://github.com/github/codeql-action/commit/8289a49271cbb335d374e7e2e7a50c1576be0afe"><code>8289a49</code></a>
Ignore repository property for unsupported analysis kinds</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...f205ea1c3313d32999d8d6a48b4f6530d4437b38">compare
view</a></li>
</ul>
</details>
<br />

Updates `github/codeql-action/analyze` from 4.36.2 to 4.37.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/releases">github/codeql-action/analyze's
releases</a>.</em></p>
<blockquote>
<h2>v4.37.4</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>v4.37.3</h2>
<p>No user facing changes.</p>
<h2>v4.37.2</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>v4.37.1</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>v4.37.0</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>v4.36.3</h2>
<p>No user facing changes.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/github/codeql-action/blob/main/CHANGELOG.md">github/codeql-action/analyze's
changelog</a>.</em></p>
<blockquote>
<h1>CodeQL Action Changelog</h1>
<p>See the <a
href="https://github.com/github/codeql-action/releases">releases
page</a> for the relevant changes to the CodeQL CLI and language
packs.</p>
<h2>[UNRELEASED]</h2>
<ul>
<li>Fixed a bug where a network error while streaming the download of
the CodeQL bundle could terminate the <code>init</code> Action instead
of falling back to downloading the bundle before extracting it. <a
href="https://redirect.github.com/github/codeql-action/pull/4061">#4061</a></li>
</ul>
<h2>4.37.4 - 29 Jul 2026</h2>
<ul>
<li>This version of the CodeQL Action adds support for the
<code>tools</code> input for the <code>codeql-action/init</code> step to
be specified using a <code>github-codeql-tools</code> <a
href="https://docs.github.com/en/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization">repository
property</a>. This feature will gradually be rolled out following the
release of this version. Once rolled out, this allows for the CodeQL CLI
version that is used in GitHub-managed workflows, such as Default Setup,
to be set to a custom value. For example, customers who run into issues
with rate limits when a new CodeQL CLI version is released can set the
value to <code>toolcache</code> to always use the CodeQL CLI version
that is available in the runner toolcache. For Advanced Setup workflows,
the value provided for <code>tools</code> in the workflow definition
always takes precedence unless the value of the repository property
starts with <code>!</code>. <a
href="https://redirect.github.com/github/codeql-action/pull/4037">#4037</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.2">2.26.2</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4051">#4051</a></li>
</ul>
<h2>4.37.3 - 22 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.37.2 - 21 Jul 2026</h2>
<ul>
<li>The new address format for the <code>config-file</code> input that
was introduced in CodeQL Action 4.37.0 is now enabled by default. In
addition to the format described there, the <code>remote=</code> prefix
can now be used to explicitly indicate that the input refers to a remote
file. All previous input formats continue to be accepted as well. <a
href="https://redirect.github.com/github/codeql-action/pull/4023">#4023</a></li>
<li>The CodeQL Action can now make use of <a
href="https://docs.github.com/en/code-security/how-tos/secure-at-scale/configure-organization-security/manage-usage-and-access/giving-org-access-private-registries">configured
private registries</a> in Default Setup to retrieve CodeQL configuration
files from remote repositories that require authentication. This will
allow customers to store their CodeQL configuration in a single
repository that can then be referenced by Default Setup workflows in
other repositories. We expect to roll this and other, related changes
out to everyone in July. <a
href="https://redirect.github.com/github/codeql-action/pull/4007">#4007</a></li>
</ul>
<h2>4.37.1 - 16 Jul 2026</h2>
<ul>
<li><em>Upcoming breaking change</em>: Add a deprecation warning for
customers using CodeQL version 2.20.6 and earlier. These versions of
CodeQL were discontinued on 1 July 2026 alongside GitHub Enterprise
Server 3.16, and will be unsupported by the next minor release of the
CodeQL Action. <a
href="https://redirect.github.com/github/codeql-action/pull/3956">#3956</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.1">2.26.1</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/4019">#4019</a></li>
</ul>
<h2>4.37.0 - 08 Jul 2026</h2>
<ul>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.26.0">2.26.0</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3995">#3995</a></li>
<li>In addition to the existing input format, the
<code>config-file</code> input for the <code>codeql-action/init</code>
step will soon support a new <code>[owner/]repo[@ref][:path]</code>
format. All components except the repository name are optional. If
omitted, <code>owner</code> defaults to the same owner as the repository
the analysis is running for, <code>ref</code> to <code>main</code>, and
<code>path</code> to <code>.github/codeql-action.yaml</code>. Support
for this format ships in this version of the CodeQL Action, but will
only be enabled over the coming weeks. <a
href="https://redirect.github.com/github/codeql-action/pull/3973">#3973</a></li>
</ul>
<h2>4.36.3 - 01 Jul 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.2 - 04 Jun 2026</h2>
<ul>
<li>Cache CodeQL CLI version information across Actions steps. <a
href="https://redirect.github.com/github/codeql-action/pull/3943">#3943</a></li>
<li>Reduce requests while waiting for analysis processing by using
exponential backoff when polling SARIF processing status. <a
href="https://redirect.github.com/github/codeql-action/pull/3937">#3937</a></li>
<li>Update default CodeQL bundle version to <a
href="https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.25.6">2.25.6</a>.
<a
href="https://redirect.github.com/github/codeql-action/pull/3948">#3948</a></li>
</ul>
<h2>4.36.1 - 02 Jun 2026</h2>
<p>No user facing changes.</p>
<h2>4.36.0 - 22 May 2026</h2>
<ul>
<li><em>Breaking change</em>: Bump the minimum required CodeQL bundle
version to 2.19.4. <a
href="https://redirect.github.com/github/codeql-action/pull/3894">#3894</a></li>
<li>Add support for SHA-256 Git object IDs. <a
href="https://redirect.github.com/github/codeql-action/pull/3893">#3893</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/github/codeql-action/commit/f205ea1c3313d32999d8d6a48b4f6530d4437b38"><code>f205ea1</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4053">#4053</a>
from github/update-v4.37.4-9130ce0f7</li>
<li><a
href="https://github.com/github/codeql-action/commit/e40d079dd9dd4a5c74f625cecd83867c8208aa71"><code>e40d079</code></a>
Update changelog for v4.37.4</li>
<li><a
href="https://github.com/github/codeql-action/commit/9130ce0f733a0d17b9e1b9692c2af19be6c69dda"><code>9130ce0</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4051">#4051</a>
from github/update-bundle/codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/c62d82468641dca0f8df108ab73e2a8407ac9cf7"><code>c62d824</code></a>
Add changelog note</li>
<li><a
href="https://github.com/github/codeql-action/commit/da0c1901011e62af9c02aae8bf5b8885b11f7741"><code>da0c190</code></a>
Update default bundle to codeql-bundle-v2.26.2</li>
<li><a
href="https://github.com/github/codeql-action/commit/18420e3271f74589575af831a523c833acda327f"><code>18420e3</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4043">#4043</a>
from github/mbg/ts/changelog</li>
<li><a
href="https://github.com/github/codeql-action/commit/7e8d8970f03ec5a78ab372fc0778e8e4194111a5"><code>7e8d897</code></a>
Merge pull request <a
href="https://redirect.github.com/github/codeql-action/issues/4046">#4046</a>
from github/mbg/repo-prop/code-quality</li>
<li><a
href="https://github.com/github/codeql-action/commit/2d4c474c2ca5ea2965b9e53fabb7b67b0100016c"><code>2d4c474</code></a>
Log <code>!analysisKindSupported</code> case</li>
<li><a
href="https://github.com/github/codeql-action/commit/98c05a17d327d7c4055fca83114434ab56baacf6"><code>98c05a1</code></a>
Fix argument validation in <code>rollback-changelog.ts</code></li>
<li><a
href="https://github.com/github/codeql-action/commit/8289a49271cbb335d374e7e2e7a50c1576be0afe"><code>8289a49</code></a>
Ignore repository property for unsupported analysis kinds</li>
<li>Additional commits viewable in <a
href="https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...f205ea1c3313d32999d8d6a48b4f6530d4437b38">compare
view</a></li>
</ul>
</details>
<br />

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

_Description has been truncated_

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

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

Updates `globals` from 17.7.0 to 17.8.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globals/releases">globals's
releases</a>.</em></p>
<blockquote>
<h2>v17.8.0</h2>
<ul>
<li>Update globals (2026-07-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/347">#347</a>)
7394811</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0">https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globals/commit/36c76590583fc1f31d755525862eda1793a7d661"><code>36c7659</code></a>
17.8.0</li>
<li><a
href="https://github.com/sindresorhus/globals/commit/739481186ed54482e29845eff0bc44803c35fde8"><code>7394811</code></a>
Update globals (2026-07-01) (<a
href="https://redirect.github.com/sindresorhus/globals/issues/347">#347</a>)</li>
<li>See full diff in <a
href="https://github.com/sindresorhus/globals/compare/v17.7.0...v17.8.0">compare
view</a></li>
</ul>
</details>
<br />


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

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

---

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

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


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-01 21:03:01 -06:00
Bot Githubaction 73e4c4222b Update gradle-actions-caching library to v1.0.0 (#1029)
Updates to the latest gradle-actions-caching library.
2026-08-01 20:57:35 -06:00
Daz DeBoerandClaude Opus 5 a9d14388b4 Add dependabot ignore rules for TypeScript 7.x and @types/node 25.x/26.x
Previously handled via `@dependabot ignore` issue comments, which don't
provide enough control. Declaring the rules in the config makes them
explicit and reviewable.

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

## 1. Bump Gradle Wrapper from 9.5.1 to 9.6.1

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

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

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

## 2. Update known wrapper checksums

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

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

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

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

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

## Verification

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

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

Original bot authorship is preserved on all three commits.

## Superseded PRs

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

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

---------

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

## 1. Adjust dependabot's TypeScript choices

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

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

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

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

## 2. Clear 5 open security advisories

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

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

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

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

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

## 3. Downgrade nock to 14.0.17

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

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

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

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

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

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

## 5. Run CI workflows on Node 24

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

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

## Verification

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

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

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

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

## Not included

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

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

---------

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

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

## Layout

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

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

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

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

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

## Notes

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

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

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

## Verification

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

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

---------

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

## Root cause

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

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

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

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

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

## Changes

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

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

## Not related to #1013

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

## Verification

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

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

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

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

## What

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

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

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

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

## Expected result

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

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

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

---------

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

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

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

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

(`ForceDependencyResolutionPlugin` is not IP-compatible.)

## Fix

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

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

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

---------

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

## What's here

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

## Cross-repo dependency

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

## Verification

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

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

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 19:51:57 -06:00
91 changed files with 2326 additions and 1304 deletions

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ runs:
using: "composite"
steps:
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
+5
View File
@@ -15,6 +15,11 @@ updates:
npm-dependencies:
patterns:
- "*"
ignore:
- dependency-name: "typescript"
versions: ["7.x"]
- dependency-name: "@types/node"
versions: ["25.x", "26.x"]
- package-ecosystem: "github-actions"
# github-actions with directory: "/" only monitors .github/workflows
# https://github.com/dependabot/dependabot-core/issues/6345
+3
View File
@@ -3,3 +3,6 @@
# Ignore Gradle build output directory
build
# Marker file written when the 'test' task is configured
task-configured.txt
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+2 -2
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+2 -2
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.develocity") version "4.4.2"
id("com.gradle.develocity") version "4.5.0"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
}
develocity {
+4 -4
View File
@@ -18,15 +18,15 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Setup Gradle
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
with:
@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
+3 -3
View File
@@ -31,11 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v3.29.5
with:
languages: ${{ matrix.language }}
config: |
@@ -43,4 +43,4 @@ jobs:
- sources/src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v3.29.5
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v3.29.5
+3 -3
View File
@@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
# Detect whether anything relevant to the init-script tests changed.
@@ -36,14 +36,14 @@ jobs:
sources/test/init-scripts/**
- name: Setup Java
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
if: steps.changes.outputs.any_changed == 'true' || github.event_name != 'pull_request'
# Use a released version to avoid breakages
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
env:
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
- name: Run integration tests
+10
View File
@@ -14,6 +14,16 @@ permissions:
contents: read
jobs:
smoke-tests:
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching
cancel-in-progress: false
with:
skip-dist: true
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
uses: ./.github/workflows/suite-integ-test-caching.yml
concurrency:
+14 -2
View File
@@ -19,11 +19,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
if: ${{ needs.determine-suite.outputs.suite != 'full' }}
uses: ./.github/actions/build-dist
smoke-tests:
needs: build-distribution
uses: ./.github/workflows/suite-smoke-test-caching.yml
concurrency:
group: CI-smoke-test-caching-${{ github.ref }}
cancel-in-progress: false
with:
skip-dist: false
runner-os: '["ubuntu-latest", "windows-latest"]'
secrets: inherit
caching-integ-tests:
needs: build-distribution
uses: ./.github/workflows/suite-integ-test-caching.yml
@@ -64,6 +74,7 @@ jobs:
if: ${{ always() }}
needs:
- build-distribution
- smoke-tests
- caching-integ-tests
- other-integ-tests
- dependency-submission-integ-tests
@@ -74,6 +85,7 @@ jobs:
run: |
echo "One or more integ-test jobs did not succeed:"
echo " build-distribution: ${{ needs.build-distribution.result }}"
echo " smoke-tests: ${{ needs.smoke-tests.result }}"
echo " caching-integ-tests: ${{ needs.caching-integ-tests.result }}"
echo " other-integ-tests: ${{ needs.other-integ-tests.result }}"
echo " dependency-submission-integ-tests: ${{ needs.dependency-submission-integ-tests.result }}"
+2 -2
View File
@@ -21,13 +21,13 @@ jobs:
steps:
- name: 'Checkout code'
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
show-progress: false
- name: 'Run analysis'
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
with:
results_file: results.sarif
results_format: sarif
+4 -4
View File
@@ -23,14 +23,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
@@ -73,7 +73,7 @@ jobs:
# Important: The push event will not trigger any other workflows, see
# https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_author: bot-githubaction <bot-githubaction@gradle.com>
commit_user_name: bot-githubaction
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
validate-typings:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: typesafegithub/github-actions-typing@9ddf35b71a482be7d8922b28e8d00df16b77e315 # v2.2.2
with:
ignored-action-files: |
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
with:
allow-checksums: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+9 -9
View File
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -120,7 +120,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -137,7 +137,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -154,7 +154,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and upload distribution
uses: ./.github/actions/build-dist
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -41,7 +41,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -57,7 +57,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -83,7 +83,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -91,7 +91,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -115,7 +115,7 @@ jobs:
runs-on: ubuntu-latest # This test only runs on Ubuntu
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -146,7 +146,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -170,7 +170,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -62,7 +62,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -80,7 +80,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -123,7 +123,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -160,7 +160,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -86,7 +86,7 @@ jobs:
contents: read
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -58,7 +58,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -82,7 +82,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -104,7 +104,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -124,7 +124,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -172,7 +172,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -255,7 +255,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -272,7 +272,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -309,7 +309,7 @@ jobs:
runs-on: ubuntu-latest # Test is not compatible with Windows
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -350,7 +350,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -382,7 +382,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -401,7 +401,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -60,17 +60,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java 16
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version: 16
- name: Setup Java 20
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: 'temurin'
java-version: 20
@@ -30,7 +30,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.4.2']
plugin-version: ['3.16.2', '4.5.0']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -43,7 +43,7 @@ jobs:
java-version: 11
- plugin-version: '3.16.2'
accessKeyEnv: GRADLE_ENTERPRISE_ACCESS_KEY
- plugin-version: '4.4.2'
- plugin-version: '4.5.0'
accessKeyEnv: DEVELOCITY_ACCESS_KEY
runs-on: ${{ matrix.os }}
env:
@@ -55,7 +55,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -92,7 +92,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: ['3.16.2', '4.4.2']
plugin-version: ['3.16.2', '4.5.0']
include:
- java-version: 17
- gradle: '8.14.3'
@@ -106,7 +106,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -148,7 +148,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.4.2' ]
plugin-version: [ '3.16.2', '4.5.0' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -162,7 +162,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -191,7 +191,7 @@ jobs:
matrix:
gradle: ['current', '8.14.3', '7.6.2', '6.9.4', '5.6.4']
os: ${{fromJSON(inputs.runner-os)}}
plugin-version: [ '3.16.2', '4.4.2' ]
plugin-version: [ '3.16.2', '4.5.0' ]
include:
- java-version: 17
- gradle: '8.14.3'
@@ -205,7 +205,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -33,7 +33,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
run: gradle help "-DgradleVersionCheck=7.1.1"
# Configure JDK 17 for Gradle 9 and later
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: temurin
java-version: 17
@@ -105,12 +105,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
@@ -24,7 +24,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,7 +43,7 @@ jobs:
container: fedora:latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -43,29 +43,6 @@ jobs:
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
restore-gradle-home-dependencies-cache:
needs: restore-gradle-home-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
# Test that the gradle-user-home cache will cache and restore local build-cache
restore-gradle-home-build-cache:
needs: restore-gradle-home-seed-build
@@ -77,7 +54,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -100,7 +77,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -125,7 +102,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -56,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
with:
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -52,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -111,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout: |
.github
@@ -145,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v4.2.2 # Checkout the repository with no wrappers
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4.2.2 # Checkout the repository with no wrappers
with:
sparse-checkout: |
.github/actions
@@ -1,4 +1,4 @@
name: Test basic cache provider
name: Smoke test basic caching
on:
workflow_call:
@@ -15,7 +15,7 @@ on:
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: basic-cache-provider-${{ inputs.cache-key-prefix }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-basic-caching-${{ inputs.cache-key-prefix }}
permissions:
contents: read
@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -39,9 +39,12 @@ jobs:
with:
cache-provider: basic
cache-read-only: false # For testing, allow writing cache entries on non-default branches
# Basic caching does no daemon management, so the workflow must ensure no daemon is left
# holding locks on the Gradle User Home when the post-action save runs. Without this, `tar`
# cannot read the Gradle '*.lock' files on Windows and the cache entry is never saved.
- name: Build kotlin-dsl project
working-directory: .github/workflow-samples/kotlin-dsl
run: ./gradlew build
run: ./gradlew build --no-daemon
basic-cache-verify-build:
needs: basic-cache-seed-build
@@ -53,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
@@ -0,0 +1,67 @@
name: Smoke test enhanced caching
on:
workflow_call:
inputs:
cache-key-prefix:
type: string
default: '0'
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: smoke-test-enhanced-caching-${{ inputs.cache-key-prefix }}
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: smoke-test-enhanced-caching
permissions:
contents: read
jobs:
enhanced-cache-seed-build:
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: false # For testing, allow writing cache entries on non-default branches
- name: Build using Gradle wrapper
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
# Test that the gradle-user-home cache will cache dependencies, by running build with --offline
enhanced-cache-verify-build:
needs: enhanced-cache-seed-build
strategy:
max-parallel: 1
fail-fast: false
matrix:
os: ${{fromJSON(inputs.runner-os)}}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize integ-test
uses: ./.github/actions/init-integ-test
- name: Setup Gradle
uses: ./setup-gradle
with:
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test --offline
@@ -57,9 +57,3 @@ jobs:
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
basic-cache-provider:
uses: ./.github/workflows/integ-test-basic-cache-provider.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
@@ -0,0 +1,27 @@
name: suite-smoke-test-caching
on:
workflow_call:
inputs:
runner-os:
type: string
default: '["ubuntu-latest"]'
skip-dist:
type: boolean
default: false
permissions:
contents: read
jobs:
enhanced-caching:
uses: ./.github/workflows/smoke-test-enhanced-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
basic-caching:
uses: ./.github/workflows/smoke-test-basic-caching.yml
with:
runner-os: '${{ inputs.runner-os }}'
skip-dist: ${{ inputs.skip-dist }}
+3 -3
View File
@@ -19,12 +19,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 20
node-version: 24
cache: npm
cache-dependency-path: sources/package-lock.json
+151 -150
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var K8e=Object.create;var $M=Object.defineProperty;var $8e=Object.getOwnPropertyDescriptor;var X8e=Object.getOwnPropertyNames;var Z8e=Object.getPrototypeOf,e4e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sa=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},t4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of X8e(e))!e4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=$8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?K8e(Z8e(t)):{},t4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var HZ=E(Hp=>{"use strict";var x7t=b("net"),a4e=b("tls"),tL=b("http"),UZ=b("https"),c4e=b("events"),R7t=b("assert"),A4e=b("util");Hp.httpOverHttp=u4e;Hp.httpsOverHttp=l4e;Hp.httpOverHttps=d4e;Hp.httpsOverHttps=h4e;function u4e(t){var e=new Au(t);return e.request=tL.request,e}function l4e(t){var e=new Au(t);return e.request=tL.request,e.createSocket=PZ,e.defaultPort=443,e}function d4e(t){var e=new Au(t);return e.request=UZ.request,e}function h4e(t){var e=new Au(t);return e.request=UZ.request,e.createSocket=PZ,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=OZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}A4e.inherits(Au,c4e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,OZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Rl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Rl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Rl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Rl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Rl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Au.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function PZ(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=a4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function OZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Rl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Rl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Rl=function(){};Hp.debug=Rl});var nL=E((k7t,GZ)=>{GZ.exports=HZ()});var yr=E((v7t,qZ)=>{qZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((_7t,fee)=>{"use strict";var YZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[YZ]===!0}[YZ]=!0},VZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=class extends Br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[VZ]===!0}[VZ]=!0},WZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=class extends Br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[WZ]===!0}[WZ]=!0},JZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=class extends Br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[JZ]===!0}[JZ]=!0},zZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function x5e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(h5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function R5e(){return"allowed"}function D5e(){return"success"}function k5e(){return"success"}function v5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _5e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function $p(t,e){return t}function F5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:$p(t.domainLookupStartTime,r),domainLookupEndTime:$p(t.domainLookupEndTime,r),connectionStartTime:$p(t.connectionStartTime,r),connectionEndTime:$p(t.connectionEndTime,r),secureConnectionStartTime:$p(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function M5e(t){return $p(E5e.now(),t)}function L5e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Tte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function U5e(t){return{referrerPolicy:t.referrerPolicy}}function P5e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=Bte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=pS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=NI(t);return pS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return Vh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function SI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function O5e(t,e){if(gS===void 0)return!0;let r=xte(e);if(r==="no metadata"||r.length===0)return!0;let n=G5e(r),s=q5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=gS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Y5e(c,a))return!0}return!1}var H5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function xte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=H5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Qte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function G5e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function q5e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function Y5e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function V5e(t){}function pS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function W5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function J5e(t){return t.controller.state==="aborted"}function z5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function j5e(t){return y5e[t.toLowerCase()]??t}function K5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Vh(typeof e=="string"),e}var $5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Rte(t,e,r=0,n=1){class s{ Line truncated
`);function NHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function THe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function xHe(t,e){ES(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&CS(t,wHe,i)||i.position===t.length-4&&CS(t,SHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=RHe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",NHe(u)||(u=""),h=new bHe([d],A,{type:u})):h=EHe(Buffer.from(d)),ES(Gte(c)),ES(typeof h=="string"&&Gte(h)||IHe(h)),s.push(yHe(c,h,A))}}function RHe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Zp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!CHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Zp(a=>a===32||a===9,t,e),mHe(o)){case"content-disposition":{if(r=n=null,!CS(t,QHe,e)||(e.position+=17,r=Vte(t,e),r===null))return"failure";if(CS(t,Yte,e)){let a=e.position+Yte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Vte(t,e),n===null))return"failure"}break}case"content-type":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=qte(a);break}case"content-transfer-encoding":{let a=Zp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=qte(a);break}default:Zp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Vte(t,e){ES(t[e.position-1]===34);let r=Zp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Zp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function CS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Wte.exports={multipartFormDataParser:xHe,validateBoundary:THe}});var rm=E((iWt,nre)=>{"use strict";var RI=dt(),{ReadableStreamFrom:DHe,isBlobLike:zte,isReadableStreamLike:kHe,readableStreamClose:vHe,createDeferredPromise:_He,fullyReadBody:FHe,extractMimeType:MHe,utf8DecodeBytes:$te}=xi(),{FormData:jte}=xI(),{kState:tm}=Dl(),{webidl:LHe}=Kn(),{Blob:UHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Xte,isDisturbed:PHe}=b("node:stream"),{isArrayBuffer:OHe}=b("node:util/types"),{serializeAMimeType:HHe}=Ks(),{multipartFormDataParser:GHe}=Jte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function qHe(){}var Zte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ere;Zte&&(ere=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!PHe(e)&&!Xte(e)&&e.cancel("Response object has been garbage collected").catch(qHe)}));function tre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:zte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?IS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>vHe(c))},start(){},type:"bytes"}),aU(kHe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(OHe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=IS.encode(A+`; name="${u(l(I))}"\r
var g6e=Object.create;var pL=Object.defineProperty;var p6e=Object.getOwnPropertyDescriptor;var m6e=Object.getOwnPropertyNames;var E6e=Object.getPrototypeOf,C6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},I6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m6e(e))!C6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=p6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?g6e(E6e(t)):{},I6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var Dee=C($p=>{"use strict";var gJt=Q("net"),S6e=Q("tls"),IL=Q("http"),Tee=Q("https"),N6e=Q("events"),pJt=Q("assert"),T6e=Q("util");$p.httpOverHttp=x6e;$p.httpsOverHttp=R6e;$p.httpOverHttps=D6e;$p.httpsOverHttps=k6e;function x6e(t){var e=new Au(t);return e.request=IL.request,e}function R6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=xee,e.defaultPort=443,e}function D6e(t){var e=new Au(t);return e.request=Tee.request,e}function k6e(t){var e=new Au(t);return e.request=Tee.request,e.createSocket=xee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=Ree(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}T6e.inherits(Au,N6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,Ree(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),vl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){vl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){vl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return vl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),vl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Au.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function xee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=S6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function Ree(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var vl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?vl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:vl=function(){};$p.debug=vl});var BL=C((EJt,kee)=>{kee.exports=Dee()});var br=C((CJt,vee)=>{vee.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var _t=C((IJt,ste)=>{"use strict";var _ee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_ee]===!0}[_ee]=!0},Fee=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Fee]===!0}[Fee]=!0},Mee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Mee]===!0}[Mee]=!0},Lee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[Lee]===!0}[Lee]=!0},Uee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Uee]===!0}[Uee]=!0},Pee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function zHe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(kHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function jHe(){return"allowed"}function KHe(){return"success"}function $He(){return"success"}function XHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ZHe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":kS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function am(t,e){return t}function e9e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:am(t.domainLookupStartTime,r),domainLookupEndTime:am(t.domainLookupEndTime,r),connectionStartTime:am(t.connectionStartTime,r),connectionEndTime:am(t.connectionEndTime,r),secureConnectionStartTime:am(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function t9e(t){return am(LHe.now(),t)}function r9e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Ere(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function n9e(t){return{referrerPolicy:t.referrerPolicy}}function s9e(t){let e=t.referrerPolicy;Vh(e);let r=null;if(t.referrer==="client"){let a=dre();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=kS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=OI(t);return kS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(t,e){return Vh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function PI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function i9e(t,e){if(DS===void 0)return!0;let r=Cre(e);if(r==="no metadata"||r.length===0)return!0;let n=a9e(r),s=c9e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=DS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),A9e(c,a))return!0}return!1}var o9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Cre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=o9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();fre.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function a9e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function c9e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function A9e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function u9e(t){}function kS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function l9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function d9e(t){return t.controller.state==="aborted"}function h9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function f9e(t){return OHe[t.toLowerCase()]??t}function g9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Vh(typeof e=="string"),e}var p9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ire(t,e,r=0,n=1){class s{ Line truncated
`);function W9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function J9e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function z9e(t,e){_S(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&FS(t,Y9e,i)||i.position===t.length-4&&FS(t,V9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=j9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",W9e(u)||(u=""),h=new G9e([d],A,{type:u})):h=L9e(Buffer.from(d)),_S(kre(c)),_S(typeof h=="string"&&kre(h)||P9e(h)),s.push(O9e(c,h,A))}}function j9e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Am(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!U9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Am(a=>a===32||a===9,t,e),M9e(o)){case"content-disposition":{if(r=n=null,!FS(t,q9e,e)||(e.position+=17,r=Fre(t,e),r===null))return"failure";if(FS(t,_re,e)){let a=e.position+_re.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Fre(t,e),n===null))return"failure"}break}case"content-type":{let a=Am(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=vre(a);break}case"content-transfer-encoding":{let a=Am(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=vre(a);break}default:Am(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Fre(t,e){_S(t[e.position-1]===34);let r=Am(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Am(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function FS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Mre.exports={multipartFormDataParser:z9e,validateBoundary:J9e}});var dm=C((VJt,Jre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:K9e,isBlobLike:Ure,isReadableStreamLike:$9e,readableStreamClose:X9e,createDeferredPromise:Z9e,fullyReadBody:eGe,extractMimeType:tGe,utf8DecodeBytes:Hre}=vi(),{FormData:Pre}=GI(),{kState:lm}=_l(),{webidl:rGe}=Zn(),{Blob:nGe}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Gre,isDisturbed:sGe}=Q("node:stream"),{isArrayBuffer:iGe}=Q("node:util/types"),{serializeAMimeType:oGe}=ei(),{multipartFormDataParser:aGe}=Lre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var MS=new TextEncoder;function cGe(){}var qre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Yre;qre&&(Yre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sGe(e)&&!Gre(e)&&e.cancel("Response object has been garbage collected").catch(cGe)}));function Vre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Ure(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?MS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>X9e(c))},start(){},type:"bytes"}),SU($9e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(iGe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=MS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=IS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=MS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=IS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(zte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:DHe(t)}if((typeof s=="string"||RI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Xte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function YHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),tre(t,e)}function VHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function WHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function JHe(t){return{blob(){return em(this,r=>{let n=Kte(this);return n===null?n="":n&&(n=HHe(n)),new UHe([r],{type:n})},t)},arrayBuffer(){return em(this,r=>new Uint8Array(r).buffer,t)},text(){return em(this,$te,t)},json(){return em(this,jHe,t)},formData(){return em(this,r=>{let n=Kte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=GHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new jte;return i[tm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new jte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return em(this,r=>new Uint8Array(r),t)}}}function zHe(t){Object.assign(t.prototype,JHe(t))}async function em(t,e,r){if(LHe.brandCheck(t,r),rre(t))throw new TypeError("Body is unusable: Body has already been read");WHe(t[tm]);let n=_He(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[tm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await FHe(t[tm].body,i,s),n.promise)}function rre(t){let e=t[tm].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function jHe(t){return JSON.parse($te(t))}function Kte(t){let e=t[tm].headersList,r=MHe(e);return r==="failure"?null:r}nre.exports={extractBody:tre,safelyExtractBody:YHe,cloneBody:VHe,mixinBody:zHe,streamRegistry:ere,hasFinalizationRegistry:Zte,bodyUnusable:rre}});var fre=E((oWt,hre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:sre}=qp(),AU=YL(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:KHe,RequestAbortedError:ure,HeadersTimeoutError:$He,HeadersOverflowError:XHe,SocketError:SS,InformationalError:nm,BodyTimeoutError:ZHe,HTTPParserError:e9e,ResponseExceededMaxSizeError:t9e}=Lt(),{kUrl:lre,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:r9e,kSize:ire,kWriting:vl,kQueue:Ta,kNoRef:DI,kKeepAliveDefaultTimeout:n9e,kHostHeader:s9e,kPendingIdx:i9e,kRunningIdx:Qo,kError:wo,kPipelining:QS,kSocket:sm,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:o9e,kKeepAliveTimeoutThreshold:a9e,kHeadersTimeout:c9e,kBodyTimeout:A9e,kStrictContentLength:fU,kMaxRequests:ore,kCounter:u9e,kMaxResponseSize:l9e,kOnError:d9e,kResume:kl,kHTTPContext:dre}=yr(),Sc=ete(),h9e=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Xe.addListener,f9e=Xe.removeAllListeners,lU;async function g9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(nte())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onStatus(new yS(Nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderField(new yS(Nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderValue(new yS(Nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onBody(new yS(Nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=g9e();gU.catch();var gn=null,Nc=null,bS=0,Tc=null,p9e=0,kI=1,im=2|kI,wS=4|kI,pU=8|p9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[s9e],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=MS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(Ure(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:K9e(t)}if((typeof s=="string"||qI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Gre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function AGe(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Vre(t,e)}function uGe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function lGe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function dGe(t){return{blob(){return um(this,r=>{let n=Ore(this);return n===null?n="":n&&(n=oGe(n)),new nGe([r],{type:n})},t)},arrayBuffer(){return um(this,r=>new Uint8Array(r).buffer,t)},text(){return um(this,Hre,t)},json(){return um(this,fGe,t)},formData(){return um(this,r=>{let n=Ore(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aGe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Pre;return i[lm]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Pre;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return um(this,r=>new Uint8Array(r),t)}}}function hGe(t){Object.assign(t.prototype,dGe(t))}async function um(t,e,r){if(rGe.brandCheck(t,r),Wre(t))throw new TypeError("Body is unusable: Body has already been read");lGe(t[lm]);let n=Z9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[lm].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await eGe(t[lm].body,i,s),n.promise)}function Wre(t){let e=t[lm].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function fGe(t){return JSON.parse(Hre(t))}function Ore(t){let e=t[lm].headersList,r=tGe(e);return r==="failure"?null:r}Jre.exports={extractBody:Vre,safelyExtractBody:AGe,cloneBody:uGe,mixinBody:hGe,streamRegistry:Yre,hasFinalizationRegistry:qre,bodyUnusable:Wre}});var Ane=C((WJt,cne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:zre}=Zp(),TU=AU(),{RequestContentLengthMismatchError:Wh,ResponseContentLengthMismatchError:jre,RequestAbortedError:nne,InvalidArgumentError:gGe,HeadersTimeoutError:pGe,HeadersOverflowError:mGe,SocketError:hm,InformationalError:fm,BodyTimeoutError:EGe,HTTPParserError:CGe,ResponseExceededMaxSizeError:IGe}=_t(),{kUrl:sne,kReset:ti,kClient:OS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ine,kSize:Kre,kWriting:Fl,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:yGe,kHostHeader:BGe,kPendingIdx:bGe,kRunningIdx:To,kError:Ts,kPipelining:HS,kSocket:zh,kKeepAliveTimeoutValue:qS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:QGe,kKeepAliveTimeoutThreshold:wGe,kHeadersTimeout:SGe,kBodyTimeout:NGe,kStrictContentLength:kU,kMaxRequests:$re,kCounter:TGe,kMaxResponseSize:xGe,kOnError:Xre,kResume:gu,kHTTPContext:one}=br(),_i=Yte(),Zre=Buffer.alloc(0),LS=Buffer[Symbol.species],US=Pe.addListener,RGe=Pe.removeAllListeners,jh=Symbol("kIdleSocketValidation"),Jh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function DGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Jte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onStatus(new LS(xc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onHeaderField(new LS(xc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onHeaderValue(new LS(xc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-Rc+xc.byteOffset;return Ur.onBody(new LS(xc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=DGe();vU.catch();var Ur=null,xc=null,PS=0,Rc=null,kGe=0,VI=1,gm=2|VI,GS=4|VI,_U=8|kGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[BGe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[QS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return sre.sendHeaders.hasSubscribers&&sre.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?cre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?cre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?Are(f,c.stream(),t,e,h,u,p,l):B9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?y9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?Are(f,c,t,e,h,u,p,l):Ge(!1),!0}function y9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ure;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[vl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function cre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[HS]&&!h[ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return zre.sendHeaders.hasSubscribers&&zre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?tne(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?tne(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?rne(f,c.stream(),t,e,h,u,g,l):PGe(f,c,t,e,h,u,g,l):Pe.isStream(c)?UGe(f,c,t,e,h,u,g,l):Pe.isIterable(c)?rne(f,c,t,e,h,u,g,l):Me(!1),!0}function UGe(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"stream body cannot be pipelined");let c=!1,A=new YS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new nne;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Fl]&&r[cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function tne(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ti]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[kl]()}catch(c){t(c)}}async function B9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function PGe(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[kl]()}catch(c){t(c)}}async function Are(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var TS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[vl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function rne(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new YS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var YS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Fl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Wh;process.emitWarning(new Wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===im&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vl]=!1,e[wo])throw e[wo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===gm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fl]=!1,e[Ts])throw e[Ts];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Wh;process.emitWarning(new Wh)}e[Mr].timeout&&e[Mr].timeoutType===im&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[kl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[vl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};hre.exports=m9e});var Bre=E((aWt,yre)=>{"use strict";var So=b("node:assert"),{pipeline:b9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:gre,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:xS,kReset:DS,kClient:om,kRunning:kS,kPending:Q9e,kQueue:_l,kPendingIdx:IU,kRunningIdx:xa,kError:Da,kSocket:Dn,kStrictContentLength:w9e,kOnError:yU,kMaxConcurrentStreams:Ire,kHTTP2Session:Ra,kResume:Fl,kSize:S9e,kHTTPContext:N9e}=yr(),gu=Symbol("open streams"),pre,mre=!1,RS;try{RS=b("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:T9e,HTTP2_HEADER_METHOD:x9e,HTTP2_HEADER_PATH:R9e,HTTP2_HEADER_SCHEME:D9e,HTTP2_HEADER_CONTENT_LENGTH:k9e,HTTP2_HEADER_EXPECT:v9e,HTTP2_HEADER_STATUS:_9e}}=RS;function F9e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function M9e(t,e){t[Dn]=e,mre||(mre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=RS.connect(t[xS],{createConnection:()=>e,peerMaxConcurrentStreams:t[Ire]});r[gu]=0,r[om]=t,r[Dn]=e,Et.addListener(r,"error",U9e),Et.addListener(r,"frameError",P9e),Et.addListener(r,"end",O9e),Et.addListener(r,"goaway",H9e),Et.addListener(r,"close",function(){let{[om]:s}=this,{[Dn]:i}=s,o=this[Dn][Da]||this[Da]||new _I("closed",Et.getSocketInfo(i));if(s[Ra]=null,s.destroyed){So(s[Q9e]===0);let a=s[_l].splice(s[xa]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Da]=s,this[om][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Da]||new _I("closed",Et.getSocketInfo(this));t[Dn]=null,this[Ra]!=null&&this[Ra].destroy(s),t[IU]=t[xa],So(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Fl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return q9e(t,...s)},resume(){L9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function L9e(t){let e=t[Dn];e?.destroyed===!1&&(t[S9e]===0&&t[Ire]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function U9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Da]=t,this[om][yU](t)}function P9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Da]=n,this[om][yU](n)}}function O9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function H9e(t){let e=this[Da]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[om];if(r[Dn]=null,r[N9e]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),Et.destroy(this[Dn],e),r[xa]<r[_l].length){let n=r[_l][r[xa]];r[_l][r[xa]++]=null,Et.errorRequest(r,n,e),r[IU]=r[xa]}So(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Fl]()}function G9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function q9e(t,e){let r=t[Ra],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[xS];l[T9e]=i||`${h}${f?`:${f}`:""}`,l[x9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new gre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[_l][t[xa]++]=null,t[Fl]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[gu],t[_l][t[xa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[gu],t[_l][t[xa]++]=null}),d.once("close",()=>{r[gu]-=1,r[gu]===0&&r.unref()}),!0;l[R9e]=s,l[D9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){pre??=rm().extractBody;let[N,M]=pre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),G9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[w9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[k9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[v9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[gGe]=c??3e5,this[fGe]=s??3e5,this[pGe]=C??!0,this[mGe]=N,this[wU]=O,this[Ll]=null,this[BGe]=P>-1?P:-1,this[QGe]=ee??100,this[Kr]=null,this[ka]=[],this[mu]=0,this[va]=0,this[UI]=ce=>NU(this,ce),this[bGe]=ce=>_re(this,ce)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[ka].length-this[va]}get[OI](){return this[va]-this[mu]}get[PI](){return this[ka].length-this[mu]}get[aGe](){return!!this[Kr]&&!this[cm]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(vre(this)||1)||this[HI]>0)}[oGe](e){Fre(this),this.once("connect",e)}[yGe](e,r){let n=e.origin||this[Rc].origin,s=new eGe(n,e,r);return this[ka].push(s),this[zh]||(Jh.bodyLength(s.body)==null&&Jh.isIterable(s.body)?(this[zh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[zh]&&this[Ul]!==2&&this[QU]&&(this[Ul]=2),this[Ul]<2}async[CGe](){return new Promise(e=>{this[PI]?this[Ll]=e:e(null)})}async[IGe](e){return new Promise(r=>{let n=this[ka].splice(this[va]);for(let i=0;i<n.length;i++){let o=n[i];Jh.errorRequest(this,o,e)}let s=()=>{this[Ll]&&(this[Ll](),this[Ll]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},NGe=FS();function _re(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){pu(t[va]===t[mu]);let r=t[ka].splice(t[mu]);for(let n=0;n<r.length;n++){let s=r[n];Jh.errorRequest(t,s,e)}pu(t[PI]===0)}}async function Fre(t){pu(!t[cm]),pu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Rc];if(r[0]==="["){let i=r.indexOf("]");pu(i!==-1);let o=r.substring(1,i);pu(kre.isIP(o)),r=o}t[cm]=!0,am.beforeConnect.hasSubscribers&&am.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ml],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Jh.destroy(i.on("error",Rre),new nGe);return}pu(i);try{t[Kr]=i.alpnProtocol==="h2"?await SGe(t,i):await wGe(t,i)}catch(o){throw i.destroy().on("error",Rre),o}t[cm]=!1,i[EGe]=0,i[wU]=t[wU],i[iGe]=t,i[AGe]=null,am.connected.hasSubscribers&&am.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[Rc],[t])}catch(i){if(t.destroyed)return;if(t[cm]=!1,am.connectError.hasSubscribers&&am.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ml],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(pu(t[OI]===0);t[HI]>0&&t[ka][t[va]].servername===t[Ml];){let o=t[ka][t[va]++];Jh.errorRequest(t,o,i)}else _re(t,i);t.emit("connectionError",t[Rc],[t],i)}t[UI]()}function Dre(t){t[Ul]=0,t.emit("drain",t[Rc],[t])}function NU(t,e){t[zh]!==2&&(t[zh]=2,TGe(t,e),t[zh]=0,t[mu]>256&&(t[ka].splice(0,t[mu]),t[va]-=t[mu],t[mu]=0))}function TGe(t,e){for(;;){if(t.destroyed){pu(t[HI]===0);return}if(t[Ll]&&!t[PI]){t[Ll](),t[Ll]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ul]=2;else if(t[Ul]===2){e?(t[Ul]=1,queueMicrotask(()=>Dre(t))):Dre(t);continue}if(t[HI]===0||t[OI]>=(vre(t)||1))return;let r=t[ka][t[va]];if(t[Rc].protocol==="https:"&&t[Ml]!==r.servername){if(t[OI]>0)return;t[Ml]=r.servername,t[Kr]?.destroy(new rGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[cm])return;if(!t[Kr]){Fre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[va]++:t[ka].splice(t[va],1)}}Mre.exports=SU});var TU=E((dWt,Lre)=>{"use strict";var LS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Lre.exports=class{constructor(){this.head=this.tail=new LS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Pre=E((hWt,Ure)=>{var{kFree:xGe,kConnected:RGe,kPending:DGe,kQueued:kGe,kRunning:vGe,kSize:_Ge}=yr(),jh=Symbol("pool"),xU=class{constructor(e){this[jh]=e}get connected(){return this[jh][RGe]}get free(){return this[jh][xGe]}get pending(){return this[jh][DGe]}get queued(){return this[jh][kGe]}get running(){return this[jh][vGe]}get size(){return this[jh][_Ge]}};Ure.exports=xU});var FU=E((fWt,jre)=>{"use strict";var FGe=Jp(),MGe=TU(),{kConnected:RU,kSize:Ore,kRunning:Hre,kPending:Gre,kQueued:GI,kBusy:LGe,kFree:UGe,kUrl:PGe,kClose:OGe,kDestroy:HGe,kDispatch:GGe}=yr(),qGe=Pre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),qre=Symbol("onConnect"),Yre=Symbol("onDisconnect"),Vre=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Wh;process.emitWarning(new Wh)}e[lr].timeout&&e[lr].timeoutType===gm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fl]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};cne.exports=vGe});var mne=C((JJt,pne)=>{"use strict";var xo=Q("node:assert"),{pipeline:OGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:une,SocketError:JI,InformationalError:UU}=_t(),{kUrl:VS,kReset:JS,kClient:pm,kRunning:zS,kPending:HGe,kQueue:Ml,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:_n,kStrictContentLength:GGe,kOnError:OU,kMaxConcurrentStreams:gne,kHTTP2Session:va,kResume:Ll,kSize:qGe,kHTTPContext:YGe}=br(),pu=Symbol("open streams"),lne,dne=!1,WS;try{WS=Q("node:http2")}catch{WS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:VGe,HTTP2_HEADER_METHOD:WGe,HTTP2_HEADER_PATH:JGe,HTTP2_HEADER_SCHEME:zGe,HTTP2_HEADER_CONTENT_LENGTH:jGe,HTTP2_HEADER_EXPECT:KGe,HTTP2_HEADER_STATUS:$Ge}}=WS;function XGe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function ZGe(t,e){t[_n]=e,dne||(dne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=WS.connect(t[VS],{createConnection:()=>e,peerMaxConcurrentStreams:t[gne]});r[pu]=0,r[pm]=t,r[_n]=e,Et.addListener(r,"error",tqe),Et.addListener(r,"frameError",rqe),Et.addListener(r,"end",nqe),Et.addListener(r,"goaway",sqe),Et.addListener(r,"close",function(){let{[pm]:s}=this,{[_n]:i}=s,o=this[_n][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[HGe]===0);let a=s[Ml].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[pm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[_n]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[zS]===0),t.emit("disconnect",t[VS],[t],s),t[Ll]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return oqe(t,...s)},resume(){eqe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function eqe(t){let e=t[_n];e?.destroyed===!1&&(t[qGe]===0&&t[gne]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function tqe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_n][_a]=t,this[pm][OU](t)}function rqe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_n][_a]=n,this[pm][OU](n)}}function nqe(){let t=new JI("other side closed",Et.getSocketInfo(this[_n]));this.destroy(t),Et.destroy(this[_n],t)}function sqe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[pm];if(r[_n]=null,r[YGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[_n],e),r[ka]<r[Ml].length){let n=r[Ml][r[ka]];r[Ml][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[zS]===0),r.emit("disconnect",r[VS],[r],e),r[Ll]()}function iqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function oqe(t,e){let r=t[va],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[VS];l[VGe]=i||`${h}${f?`:${f}`:""}`,l[WGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new une,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Ml][t[ka]++]=null,t[Ll]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Ml][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Ml][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[JGe]=s,l[zGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){lne??=dm().extractBody;let[B,M]=lne(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),iqe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[GGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[jGe]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[KGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[kqe]=c??3e5,this[Dqe]=s??3e5,this[vqe]=I??!0,this[_qe]=B,this[YU]=V,this[Pl]=null,this[Pqe]=P>-1?P:-1,this[Hqe]=Z??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[Oqe]=ue=>xne(this,ue)}get pipelining(){return this[XS]}set pipelining(e){this[XS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Qqe](){return!!this[Xr]&&!this[Em]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(Tne(this)||1)||this[ey]>0)}[bqe](e){Rne(this),this.once("connect",e)}[Uqe](e,r){let n=e.origin||this[kc].origin,s=new mqe(n,e,r);return this[Fa].push(s),this[$h]||(Kh.bodyLength(s.body)==null&&Kh.isIterable(s.body)?(this[$h]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[$h]&&this[Ol]!==2&&this[qU]&&(this[Ol]=2),this[Ol]<2}async[Mqe](){return new Promise(e=>{this[XI]?this[Pl]=e:e(null)})}async[Lqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];Kh.errorRequest(this,o,e)}let s=()=>{this[Pl]&&(this[Pl](),this[Pl]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},Yqe=$S();function xne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];Kh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function Rne(t){mu(!t[Em]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[kc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Nne.isIP(o)),r=o}t[Em]=!0,mm.beforeConnect.hasSubscribers&&mm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ul],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Kh.destroy(i.on("error",wne),new Iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await qqe(t,i):await Gqe(t,i)}catch(o){throw i.destroy().on("error",wne),o}t[Em]=!1,i[Fqe]=0,i[YU]=t[YU],i[Bqe]=t,i[Sqe]=null,mm.connected.hasSubscribers&&mm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[kc],[t])}catch(i){if(t.destroyed)return;if(t[Em]=!1,mm.connectError.hasSubscribers&&mm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ul],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ul];){let o=t[Fa][t[Ma]++];Kh.errorRequest(t,o,i)}else xne(t,i);t.emit("connectionError",t[kc],[t],i)}t[$I]()}function Sne(t){t[Ol]=0,t.emit("drain",t[kc],[t])}function WU(t,e){t[$h]!==2&&(t[$h]=2,Vqe(t,e),t[$h]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Vqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Pl]&&!t[XI]){t[Pl](),t[Pl]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Ol]=2;else if(t[Ol]===2){e?(t[Ol]=1,queueMicrotask(()=>Sne(t))):Sne(t);continue}if(t[ey]===0||t[ZI]>=(Tne(t)||1))return;let r=t[Fa][t[Ma]];if(t[kc].protocol==="https:"&&t[Ul]!==r.servername){if(t[ZI]>0)return;t[Ul]=r.servername,t[Xr]?.destroy(new Cqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[Em])return;if(!t[Xr]){Rne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Dne.exports=VU});var JU=C((XJt,kne)=>{"use strict";var ZS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};kne.exports=class{constructor(){this.head=this.tail=new ZS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ZS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var _ne=C((ZJt,vne)=>{var{kFree:Wqe,kConnected:Jqe,kPending:zqe,kQueued:jqe,kRunning:Kqe,kSize:$qe}=br(),Xh=Symbol("pool"),zU=class{constructor(e){this[Xh]=e}get connected(){return this[Xh][Jqe]}get free(){return this[Xh][Wqe]}get pending(){return this[Xh][zqe]}get queued(){return this[Xh][jqe]}get running(){return this[Xh][Kqe]}get size(){return this[Xh][$qe]}};vne.exports=zU});var eP=C((ezt,Yne)=>{"use strict";var Xqe=nm(),Zqe=JU(),{kConnected:jU,kSize:Fne,kRunning:Mne,kPending:Lne,kQueued:ty,kBusy:eYe,kFree:tYe,kUrl:rYe,kClose:nYe,kDestroy:sYe,kDispatch:iYe}=br(),oYe=_ne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),Une=Symbol("onConnect"),Pne=Symbol("onDisconnect"),One=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};tie.exports=FP});var tN=E((GWt,oie)=>{"use strict";var nie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:gVe}=Lt(),pVe=lm();iie()===void 0&&sie(new pVe);function sie(t){if(!t||typeof t.dispatch!="function")throw new gVe("Argument agent must implement Agent");Object.defineProperty(globalThis,nie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function iie(){return globalThis[nie]}oie.exports={setGlobalDispatcher:sie,getGlobalDispatcher:iie}});var rN=E((YWt,aie)=>{"use strict";aie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Aie=E((VWt,cie)=>{"use strict";var mVe=_S();cie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new mVe(r,o,s,i);return r(a,c)}}});var lie=E((WWt,uie)=>{"use strict";var EVe=VS();uie.exports=t=>e=>function(n,s){return e(n,new EVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var hie=E((JWt,die)=>{"use strict";var CVe=dt(),{InvalidArgumentError:IVe,RequestAbortedError:yVe}=Lt(),BVe=rN(),MP=class extends BVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new IVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=CVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new yVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function bVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}die.exports=bVe});var pie=E((zWt,gie)=>{"use strict";var{isIP:QVe}=b("node:net"),{lookup:wVe}=b("node:dns"),SVe=rN(),{InvalidArgumentError:ym,InformationalError:NVe}=Lt(),fie=Math.pow(2,31)-1,LP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new NVe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){wVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===fie?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===fie?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new UP(this,e,r)}},UP=class extends SVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":jae(i)&&(r[s]=i);break;case"id":Kae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&jae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Kae(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};$ae.exports={EventSourceStream:bO}});var oce=E((wJt,ice)=>{"use strict";var{pipeline:Lze}=b("node:stream"),{fetching:Uze}=ry(),{makeRequest:Pze}=Qm(),{webidl:Bu}=Kn(),{EventSourceStream:Oze}=Xae(),{parseMIMEType:Hze}=Ks(),{createFastMessageEvent:Gze}=Rm(),{isNetworkError:Zae}=ey(),{delay:qze}=yO(),{kEnumerableProperty:lf}=dt(),{environmentSettingsObject:ece}=xi(),tce=!1,rce=3e3,gy=0,nce=1,py=2,Yze="anonymous",Vze="use-credentials",Fm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Bu.util.markAsUncloneable(this);let n="EventSource constructor";Bu.argumentLengthCheck(arguments,1,n),tce||(tce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Bu.converters.USVString(e,n,"url"),r=Bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:rce};let s=ece,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yze;r.withCredentials&&(o=Vze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ece.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Pze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{Zae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Zae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hze(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=nce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gze(c.type,c.options))}});Lze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Uze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await qze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},sce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:nce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(Fm,sce);Object.defineProperties(Fm.prototype,sce);Object.defineProperties(Fm.prototype,{close:lf,onerror:lf,onmessage:lf,onopen:lf,readyState:lf,url:lf,withCredentials:lf});Bu.converters.EventSourceInitDict=Bu.dictionaryConverter([{key:"withCredentials",converter:Bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Bu.converters.any}]);ice.exports={EventSource:Fm,defaultReconnectionTime:rce}});var YN=E((SJt,Ye)=>{"use strict";var Wze=Am(),ace=II(),Jze=um(),zze=sne(),jze=lm(),Kze=zU(),$ze=Tne(),Xze=_ne(),cce=Lt(),qN=dt(),{InvalidArgumentError:GN}=cce,Mm=Ise(),Zze=BI(),eje=xP(),tje=rie(),rje=kP(),nje=pP(),sje=VS(),{getGlobalDispatcher:Ace,setGlobalDispatcher:ije}=tN(),oje=rN(),aje=_S(),cje=FS();Object.assign(ace.prototype,Mm);Ye.exports.Dispatcher=ace;Ye.exports.Client=Wze;Ye.exports.Pool=Jze;Ye.exports.BalancedPool=zze;Ye.exports.Agent=jze;Ye.exports.ProxyAgent=Kze;Ye.exports.EnvHttpProxyAgent=$ze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?A3:C.type==="?"?c3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==hT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===hT)return[n,s];if(!s)return P$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=U$e;function U$e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?A3:e.dot?R$e:D$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?O$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(JAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};cn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===mf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function P$e(t){return t.replace(/\\(.)/g,"$1")}function O$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ym=E((Djt,eue)=>{"use strict";var z$e="2.0.0",j$e=Number.MAX_SAFE_INTEGER||9007199254740991,K$e=16,$$e=250,X$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];eue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:K$e,MAX_SAFE_BUILD_LENGTH:$$e,MAX_SAFE_INTEGER:j$e,RELEASE_TYPES:X$e,SEMVER_SPEC_VERSION:z$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((kjt,tue)=>{"use strict";var Z$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};tue.exports=Z$e});var Vm=E((Lc,rue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l3,MAX_SAFE_BUILD_LENGTH:eXe,MAX_LENGTH:tXe}=Ym(),rXe=vy();Lc=rue.exports={};var nXe=Lc.re=[],sXe=Lc.safeRe=[],me=Lc.src=[],iXe=Lc.safeSrc=[],Ee=Lc.t={},oXe=0,d3="[a-zA-Z0-9-]",aXe=[["\\s",1],["\\d",tXe],[d3,eXe]],cXe=t=>{for(let[e,r]of aXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};$ie.exports=eO});var mN=C((Tzt,roe)=>{"use strict";var Zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:k7e}=_t(),v7e=ym();toe()===void 0&&eoe(new v7e);function eoe(t){if(!t||typeof t.dispatch!="function")throw new k7e("Argument agent must implement Agent");Object.defineProperty(globalThis,Zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function toe(){return globalThis[Zie]}roe.exports={setGlobalDispatcher:eoe,getGlobalDispatcher:toe}});var EN=C((Rzt,noe)=>{"use strict";noe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var ioe=C((Dzt,soe)=>{"use strict";var _7e=KS();soe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new _7e(r,o,s,i);return r(a,c)}}});var aoe=C((kzt,ooe)=>{"use strict";var F7e=aN();ooe.exports=t=>e=>function(n,s){return e(n,new F7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Aoe=C((vzt,coe)=>{"use strict";var M7e=dt(),{InvalidArgumentError:L7e,RequestAbortedError:U7e}=_t(),P7e=EN(),tO=class extends P7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new L7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=M7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new U7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function O7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}coe.exports=O7e});var doe=C((_zt,loe)=>{"use strict";var{isIP:H7e}=Q("node:net"),{lookup:G7e}=Q("node:dns"),q7e=EN(),{InvalidArgumentError:km,InformationalError:Y7e}=_t(),uoe=Math.pow(2,31)-1,rO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Y7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){G7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===uoe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===uoe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new nO(this,e,r)}},nO=class extends q7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Yce(i)&&(r[s]=i);break;case"id":Vce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vce(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Wce.exports={EventSourceStream:WO}});var tAe=C((ljt,eAe)=>{"use strict";var{pipeline:Xje}=Q("node:stream"),{fetching:Zje}=fy(),{makeRequest:eKe}=Fm(),{webidl:bu}=Zn(),{EventSourceStream:tKe}=Jce(),{parseMIMEType:rKe}=ei(),{createFastMessageEvent:nKe}=Hm(),{isNetworkError:zce}=dy(),{delay:sKe}=YO(),{kEnumerableProperty:ff}=dt(),{environmentSettingsObject:jce}=vi(),Kce=!1,$ce=3e3,Ty=0,Xce=1,xy=2,iKe="anonymous",oKe="use-credentials",Wm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Kce||(Kce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ce};let s=jce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=iKe;r.withCredentials&&(o=oKe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=eKe(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{zce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?rKe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Xce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new tKe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(nKe(c.type,c.options))}});Xje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Zje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await sKe(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Wm,Zce);Object.defineProperties(Wm.prototype,Zce);Object.defineProperties(Wm.prototype,{close:ff,onerror:ff,onmessage:ff,onopen:ff,readyState:ff,url:ff,withCredentials:ff});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);eAe.exports={EventSource:Wm,defaultReconnectionTime:$ce}});var oT=C((djt,je)=>{"use strict";var aKe=Cm(),rAe=vI(),cKe=Im(),AKe=Zne(),uKe=ym(),lKe=hP(),dKe=bse(),hKe=Rse(),nAe=_t(),iT=dt(),{InvalidArgumentError:sT}=nAe,Jm=pie(),fKe=FI(),gKe=zP(),pKe=Xie(),mKe=$P(),EKe=FP(),CKe=aN(),{getGlobalDispatcher:sAe,setGlobalDispatcher:IKe}=mN(),yKe=EN(),BKe=KS(),bKe=$S();Object.assign(rAe.prototype,Jm);je.exports.Dispatcher=rAe;je.exports.Client=aKe;je.exports.Pool=cKe;je.exports.BalancedPool=AKe;je.exports.Agent=uKe;je.exports.ProxyAgent=lKe;je.exports.EnvHttpProxyAgent=dKe;je.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),Z=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==xT&&(ke="$");var et=z+Z+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===xT)return[n,s];if(!s)return eZe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=ZXe;function ZXe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?v3:e.dot?VXe:WXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?tZe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Yue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function eZe(t){return t.replace(/\\(.)/g,"$1")}function tZe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e0=C((C$t,$ue)=>{"use strict";var AZe="2.0.0",uZe=Number.MAX_SAFE_INTEGER||9007199254740991,lZe=16,dZe=250,hZe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$ue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lZe,MAX_SAFE_BUILD_LENGTH:dZe,MAX_SAFE_INTEGER:uZe,RELEASE_TYPES:hZe,SEMVER_SPEC_VERSION:AZe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((I$t,Xue)=>{"use strict";var fZe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xue.exports=fZe});var t0=C((Pc,Zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:gZe,MAX_LENGTH:pZe}=e0(),mZe=Jy();Pc=Zue.exports={};var EZe=Pc.re=[],CZe=Pc.safeRe=[],me=Pc.src=[],IZe=Pc.safeSrc=[],Ee=Pc.t={},yZe=0,M3="[a-zA-Z0-9-]",BZe=[["\\s",1],["\\d",pZe],[M3,gZe]],bZe=t=>{for(let[e,r]of BZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ktt()+e+" "+t[0]}function Ktt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function $tt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Xtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ztt(){return process.env.DEBUG}function ert(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}XT.exports=t8()(vn);var{formatters:Rde}=XT.exports;Rde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Rde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=E((cXt,s8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?s8.exports=Qde():s8.exports=Dde()});var _de=E(oi=>{"use strict";var trt=oi&&oi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rrt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kde=oi&&oi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&trt(e,t,r);return rrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var nrt=kde(b("http")),srt=kde(b("https"));async function vde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=vde;async function irt(t){let r=(await vde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=irt;function ort(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?srt:nrt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=ort});var o8=E(qi=>{"use strict";var Mde=qi&&qi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),art=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=qi&&qi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Mde(e,t,r);return art(e,t),e},crt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Mde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var Art=Lde(b("net")),Fde=Lde(b("http")),urt=b("https");crt(_de(),qi);var Oc=Symbol("AgentBaseInternalState"),i8=class extends Fde.Agent{constructor(e){super(e),this[Oc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Art.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?urt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Fde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Oc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Oc].currentSocket;if(this[Oc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Oc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Oc]&&(this[Oc].defaultPort=e)}get protocol(){return this[Oc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Oc]&&(this[Oc].protocol=e)}};qi.Agent=i8});var Ude=E(e0=>{"use strict";var lrt=e0&&e0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e0,"__esModule",{value:!0});e0.parseProxyResponse=void 0;var drt=lrt(ZT()),ex=(0,drt.default)("https-proxy-agent:parse-proxy-response");function hrt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+gx.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=dnt()+e+" "+t[0]}function dnt(){return Mn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hnt(...t){return process.stderr.write(fx.formatWithOptions(Mn.inspectOpts,...t)+`
`)}function fnt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gnt(){return process.env.DEBUG}function pnt(t){t.inspectOpts={};let e=Object.keys(Mn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mn.inspectOpts[e[r]]}gx.exports=w8()(Mn);var{formatters:Nhe}=gx.exports;Nhe.o=function(t){return this.inspectOpts.colors=this.useColors,fx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nhe.O=function(t){return this.inspectOpts.colors=this.useColors,fx.inspect(t,this.inspectOpts)}});var px=C((KZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=yhe():T8.exports=The()});var Dhe=C(ui=>{"use strict";var mnt=ui&&ui.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ent=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=ui&&ui.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&mnt(e,t,r);return Ent(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var Cnt=xhe(Q("http")),Int=xhe(Q("https"));async function Rhe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=Rhe;async function ynt(t){let r=(await Rhe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ynt;function Bnt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Int:Cnt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=Bnt});var R8=C(zi=>{"use strict";var vhe=zi&&zi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=zi&&zi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vhe(e,t,r);return bnt(e,t),e},Qnt=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vhe(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var wnt=_he(Q("net")),khe=_he(Q("http")),Snt=Q("https");Qnt(Dhe(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends khe.Agent{constructor(e){super(e),this[Gc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new wnt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Snt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof khe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Fhe=C(u0=>{"use strict";var Nnt=u0&&u0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(u0,"__esModule",{value:!0});u0.parseProxyResponse=void 0;var Tnt=Nnt(px()),mx=(0,Tnt.default)("https-proxy-agent:parse-proxy-response");function xnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),mx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),mx("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){ex("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}ex("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}e0.parseProxyResponse=hrt});var Yde=E(_o=>{"use strict";var frt=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),grt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gde=_o&&_o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&frt(e,t,r);return grt(e,t),e},qde=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var tx=Gde(b("net")),Pde=Gde(b("tls")),prt=qde(b("assert")),mrt=qde(ZT()),Ert=o8(),Crt=b("url"),Irt=Ude(),zy=(0,mrt.default)("https-proxy-agent"),Ode=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends Ert.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Crt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Hde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=Pde.connect(Ode(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=tx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){mx("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}mx("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}u0.parseProxyResponse=xnt});var Hhe=C(Uo=>{"use strict";var Rnt=Uo&&Uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Dnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Phe=Uo&&Uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rnt(e,t,r);return Dnt(e,t),e},Ohe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Ex=Phe(Q("net")),Mhe=Phe(Q("tls")),knt=Ohe(Q("assert")),vnt=Ohe(px()),_nt=R8(),Fnt=Q("url"),Mnt=Fhe(),cB=(0,vnt.default)("https-proxy-agent"),Lhe=t=>t.servername===void 0&&t.host&&!Ex.isIP(t.host)?{...t,servername:t.host}:t,Cx=class extends _nt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fnt.URL(e):e,this.proxyHeaders=r?.headers??{},cB("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Uhe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Mhe.connect(Lhe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Ex.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ex.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,Irt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",yrt),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),Pde.connect({...Hde(Ode(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,prt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];_o.HttpsProxyAgent=rx;function yrt(t){t.resume()}function Hde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Jde=E(Fo=>{"use strict";var Brt=Fo&&Fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),brt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=Fo&&Fo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Brt(e,t,r);return brt(e,t),e},Qrt=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var wrt=Wde(b("net")),Srt=Wde(b("tls")),Nrt=Qrt(ZT()),Trt=b("events"),xrt=o8(),Vde=b("url"),t0=(0,Nrt.default)("http-proxy-agent"),nx=class extends xrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Vde.URL(e):e,this.proxyHeaders=r?.headers??{},t0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Rrt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Vde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;t0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(t0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Mnt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Lnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Mhe.connect({...Uhe(Lhe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Ex.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,knt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Cx.protocols=["http","https"];Uo.HttpsProxyAgent=Cx;function Lnt(t){t.resume()}function Uhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yhe=C(Po=>{"use strict";var Unt=Po&&Po.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qhe=Po&&Po.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Unt(e,t,r);return Pnt(e,t),e},Ont=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Hnt=qhe(Q("net")),Gnt=qhe(Q("tls")),qnt=Ont(px()),Ynt=Q("events"),Vnt=R8(),Ghe=Q("url"),l0=(0,qnt.default)("http-proxy-agent"),Ix=class extends Vnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ghe.URL(e):e,this.proxyHeaders=r?.headers??{},l0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Wnt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Ghe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;l0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(l0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),t0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(t0("Creating `tls.Socket`: %o",this.connectOpts),i=Srt.connect(this.connectOpts)):(t0("Creating `net.Socket`: %o",this.connectOpts),i=wrt.connect(this.connectOpts)),await(0,Trt.once)(i,"connect"),i}};nx.protocols=["http","https"];Fo.HttpProxyAgent=nx;function Rrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var mhe=E(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var _he=E(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var fpe=E((Agr,Uct)=>{Uct.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var ppe=E((ugr,gpe)=>{var Pct=fpe();gpe.exports={version:Pct.version}});var XR=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.isJsonObject=w0.typeofJsonValue=void 0;function zct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}w0.typeofJsonValue=zct;function jct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}w0.isJsonObject=jct});var eD=E(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.base64encode=S0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<Gu.length;t++)ZR[Gu[t].charCodeAt(0)]=t;ZR[45]=Gu.indexOf("+");ZR[95]=Gu.indexOf("/");function Kct(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=ZR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}S0.base64decode=Kct;function $ct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}S0.base64encode=$ct});var ype=E(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function Xct(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}tD.utf8read=Xct});var YB=E(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.WireType=lA.mergeBinaryOptions=lA.UnknownFieldHandler=void 0;var Zct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Zct=lA.UnknownFieldHandler||(lA.UnknownFieldHandler={}));function eAt(t,e){return Object.assign(Object.assign({},t),e)}lA.mergeBinaryOptions=eAt;var tAt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(tAt=lA.WireType||(lA.WireType={}))});var nD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function rAt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=rAt;function nAt(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}hi.varint64write=nAt;var rD=65536*65536;function sAt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=rD&&(s=s+(n/rD|0),n=n%rD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=sAt;function iAt(t,e){if(e>>>0<=2097151)return""+(rD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}hi.int64toString=iAt;function oAt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=oAt;function aAt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=aAt});var Id=E(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var VB=nD(),ir;function Bpe(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Cd.detectBi=Bpe;Bpe();function bpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qpe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=Q9});var S9=E(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var eme=At();function xut(t,e){if(!e)return t;let r={};DD(t,r),DD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=eme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=eme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DD(t.meta,r.meta),DD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}kD.mergeRpcOptions=xut;function DD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var T9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var fA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fA=jf.DeferredState||(jf.DeferredState={}));var N9=class{constructor(e=!0){this._state=fA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==fA.PENDING)throw new Error(`cannot resolve ${fA[this.state].toLowerCase()}`);this._resolve(e),this._state=fA.RESOLVED}reject(e){if(this.state!==fA.PENDING)throw new Error(`cannot reject ${fA[this.state].toLowerCase()}`);this._reject(e),this._state=fA.REJECTED}resolvePending(e){this._state===fA.PENDING&&this.resolve(e)}rejectPending(e){this._state===fA.PENDING&&this.reject(e)}};jf.Deferred=N9});var R9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var tme=T9(),Kf=At(),x9=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Kf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Kf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Kf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Kf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Kf.assert(e,"bad state"),Kf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new tme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==tme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=x9});var k9=E(v0=>{"use strict";var Rut=v0&&v0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(v0,"__esModule",{value:!0});v0.UnaryCall=void 0;var D9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Rut(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};v0.UnaryCall=D9});var _9=E(_0=>{"use strict";var Dut=_0&&_0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(_0,"__esModule",{value:!0});_0.ServerStreamingCall=void 0;var v9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),l0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(l0("Creating `tls.Socket`: %o",this.connectOpts),i=Gnt.connect(this.connectOpts)):(l0("Creating `net.Socket`: %o",this.connectOpts),i=Hnt.connect(this.connectOpts)),await(0,Ynt.once)(i,"connect"),i}};Ix.protocols=["http","https"];Po.HttpProxyAgent=Ix;function Wnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ffe=C(kx=>{"use strict";Object.defineProperty(kx,"__esModule",{value:!0});kx.state=void 0;kx.state={instrumenterImplementation:void 0}});var Dfe=C(Lx=>{"use strict";Object.defineProperty(Lx,"__esModule",{value:!0});Lx.state=void 0;Lx.state={operationRequestMap:new WeakMap}});var fme=C(($pr,eut)=>{eut.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var pme=C((Xpr,gme)=>{var tut=fme();gme.exports={version:tut.version}});var gD=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.isJsonObject=F0.typeofJsonValue=void 0;function uut(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}F0.typeofJsonValue=uut;function lut(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}F0.isJsonObject=lut});var mD=C(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});M0.base64encode=M0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pD=[];for(let t=0;t<Gu.length;t++)pD[Gu[t].charCodeAt(0)]=t;pD[45]=Gu.indexOf("+");pD[95]=Gu.indexOf("/");function dut(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=pD[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}M0.base64decode=dut;function hut(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}M0.base64encode=hut});var yme=C(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function fut(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}ED.utf8read=fut});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var gut;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(gut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function put(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=put;var mut;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(mut=hA.WireType||(hA.WireType={}))});var ID=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function Eut(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}mi.varint64read=Eut;function Cut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}mi.varint64write=Cut;var CD=65536*65536;function Iut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=CD&&(s=s+(n/CD|0),n=n%CD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=Iut;function yut(t,e){if(e>>>0<=2097151)return""+(CD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}mi.int64toString=yut;function But(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}mi.varint32write=But;function but(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}mi.varint32read=but});var Bd=C(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.PbLong=yd.PbULong=yd.detectBi=void 0;var ib=ID(),or;function Bme(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}yd.detectBi=Bme;Bme();function bme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qme=/^-?[0-9]+$/,BD=4294967296,yD=2147483648,bD=c Line truncated
`)}};JD.RpcError=j9});var $9=C(jD=>{"use strict";Object.defineProperty(jD,"__esModule",{value:!0});jD.mergeRpcOptions=void 0;var e0e=At();function Vlt(t,e){if(!e)return t;let r={};zD(t,r),zD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=e0e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=e0e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zD(t.meta,r.meta),zD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}jD.mergeRpcOptions=Vlt;function zD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.RpcOutputStreamController=void 0;var t0e=Z9(),Zf=At(),eG=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Zf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Zf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Zf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Zf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Zf.assert(e,"bad state"),Zf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new t0e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==t0e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};KD.RpcOutputStreamController=eG});var nG=C(q0=>{"use strict";var Wlt=q0&&q0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(q0,"__esModule",{value:!0});q0.UnaryCall=void 0;var rG=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Wlt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};q0.UnaryCall=rG});var iG=C(Y0=>{"use strict";var Jlt=Y0&&Y0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.ServerStreamingCall=void 0;var sG=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var lIe=E(uIe=>{"use strict";var xY=el().Buffer;uIe._dbcs=tl;var Zn=-1,AIe=-2,na=-10,Us=-1e3,dE=new Array(256),Yb=-1;for(gk=0;gk<256;gk++)dE[gk]=Zn;var gk;function tl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=dE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(dE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(dE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=AIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function SIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(lIt.has(s)){r=s;break}}return r}function NIt(t,e){let r=SIt(e);r!==""&&(t.referrerPolicy=r)}function TIt(){return"allowed"}function xIt(){return"success"}function RIt(){return"success"}function DIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function kIt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&JV(t.origin)&&!JV(wg(t))&&(e=null);break;case"same-origin":Zb(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function mE(t,e){return t}function vIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mE(t.domainLookupStartTime,r),domainLookupEndTime:mE(t.domainLookupEndTime,r),connectionStartTime:mE(t.connectionStartTime,r),connectionEndTime:mE(t.connectionEndTime,r),secureConnectionStartTime:mE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function _It(t){return mE(gIt.now(),t)}function FIt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function HBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function MIt(t){return{referrerPolicy:t.referrerPolicy}}function LIt(t){let e=t.referrerPolicy;eQ(e);let r=null;if(t.referrer==="client"){let i=MBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=WV(r),s=WV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??WV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return Zb(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return Zb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Zb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function WV(t,e=!1){return eQ(Yd.is.URL(t)),t=new URL(t),VBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var UIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),PIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function GBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),PIt(t)):UIt(t)}function OIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||GBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Qg(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:OIt(t.origin):!1}function HIt(t){}function Zb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GIt(t){return t.controller.state==="aborted"}function qIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function YIt(t){return mIt[t.toLowerCase()]??t}var VIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,VIt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function WIt(t,e,r,n=0,s=1){let i=qBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=oa(a=>r7(a)&&a!==59,t,e);i=e7.decode(o)}return{name:n,value:i}}function pyt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=t7(o,!0,!0,a=>a===9||a===32),!cyt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,oa(a=>a===32||a===9,t,e),ayt(o)){case"content-disposition":{if(r=n=null,oa(c=>r7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=gyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=oa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),s=$Be(a);break}case"content-transfer-encoding":{let a=oa(c=>c!==10&&c!==13,t,e);a=t7(a,!1,!0,c=>c===9||c===32),i=$Be(a);break}default:oa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function oa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function t7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function myt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Eyt(t){return t<=31||t===127}function Cyt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function r7(t){return t<=127&&t!==32&&t!==9&&!Eyt(t)&&!Cyt(t)}XBe.exports={multipartFormDataParser:fyt,validateBoundary:hyt}});var tQ=E((mBr,ebe)=>{"use strict";function Iyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}ebe.exports={createDeferredPromise:Iyt}});var IE=E((EBr,ibe)=>{"use strict";var i7=Ze(),{ReadableStreamFrom:yyt,readableStreamClose:Byt,fullyReadBody:byt,extractMimeType:Qyt}=ro(),{FormData:tbe,setFormDataState:wyt}=Ok(),{webidl:cc}=es(),n7=b("node:assert"),{isErrored:s7,isDisturbed:Syt}=b("node:stream"),{isUint8Array:Nyt}=b("node:util/types"),{serializeAMimeType:Tyt}=ia(),{multipartFormDataParser:xyt}=ZBe(),{createDeferredPromise:Ryt}=tQ(),{parseJSONFromBytes:Dyt}=sl(),{utf8DecodeBytes:kyt}=_k(),{runtimeFeatures:vyt}=il(),_yt=vyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Hk=new TextEncoder;function Fyt(){}var Myt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Syt(e)&&!s7(e)&&e.cancel("Response object has been garbage collected").catch(Fyt)});function nbe(t,e=!1){let r=null,n=null;cc.is.ReadableStream(t)?r=t:cc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),n7(cc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(cc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cc.is.BufferSource(t))i=cc.util.getCopyOfBytesHeldByBufferSource(t);else if(cc.is.FormData(t)){let A=`----formdata-undici-0${`${_yt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var dye=C(lye=>{"use strict";var rV=tl().Buffer;lye._dbcs=rl;var rs=-1,uye=-2,aa=-10,Hs=-1e3,BE=new Array(256),iQ=-1;for(vk=0;vk<256;vk++)BE[vk]=rs;var vk;function rl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=BE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(BE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(BE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=uye)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Wyt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(Dyt.has(s)){r=s;break}}return r}function Jyt(t,e){let r=Wyt(e);r!==""&&(t.referrerPolicy=r)}function zyt(){return"allowed"}function jyt(){return"success"}function Kyt(){return"success"}function $yt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Xyt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&y7(t.origin)&&!y7(Tg(t))&&(e=null);break;case"same-origin":gQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function NE(t,e){return t}function Zyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:NE(t.domainLookupStartTime,r),domainLookupEndTime:NE(t.domainLookupEndTime,r),connectionStartTime:NE(t.connectionStartTime,r),connectionEndTime:NE(t.connectionEndTime,r),secureConnectionStartTime:NE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function eBt(t){return NE(Fyt.now(),t)}function tBt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Hbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function rBt(t){return{referrerPolicy:t.referrerPolicy}}function nBt(t){let e=t.referrerPolicy;pQ(e);let r=null;if(t.referrer==="client"){let i=Mbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vd.is.URL(t.referrer)&&(r=t.referrer);let n=I7(r),s=I7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??I7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return gQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return gQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return gQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function I7(t,e=!1){return pQ(Vd.is.URL(t)),t=new URL(t),Vbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var sBt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),iBt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Gbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),iBt(t)):sBt(t)}function oBt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Gbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Vd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:oBt(t.origin):!1}function aBt(t){}function gQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function cBt(t){return t.controller.state==="aborted"}function ABt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uBt(t){return Lyt[t.toLowerCase()]??t}var lBt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,lBt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function dBt(t,e,r,n=0,s=1){let i=qbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ua(a=>R7(a)&&a!==59,t,e);i=T7.decode(o)}return{name:n,value:i,extended:s}}function MBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=x7(o,!0,!0,a=>a===9||a===32),!TBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),NBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>R7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=FBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=x7(a,!1,!0,c=>c===9||c===32),s=$be(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=x7(a,!1,!0,c=>c===9||c===32),i=$be(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function x7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function LBt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function UBt(t){return t<=31||t===127}function PBt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function R7(t){return t<=127&&t!==32&&t!==9&&!UBt(t)&&!PBt(t)}Xbe.exports={multipartFormDataParser:_Bt,validateBoundary:vBt}});var mQ=C((oQr,eQe)=>{"use strict";function OBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}eQe.exports={createDeferredPromise:OBt}});var RE=C((aQr,iQe)=>{"use strict";var v7=Ze(),{ReadableStreamFrom:HBt,readableStreamClose:GBt,fullyReadBody:qBt,extractMimeType:YBt}=ao(),{FormData:tQe,setFormDataState:VBt}=sv(),{webidl:lc}=ns(),D7=Q("node:assert"),{isErrored:k7,isDisturbed:WBt}=Q("node:stream"),{isUint8Array:JBt}=Q("node:util/types"),{serializeAMimeType:zBt}=Aa(),{multipartFormDataParser:jBt}=Zbe(),{createDeferredPromise:KBt}=mQ(),{parseJSONFromBytes:$Bt}=il(),{utf8DecodeBytes:XBt}=Xk(),{runtimeFeatures:ZBt}=ol(),ebt=ZBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),iv=new TextEncoder;function tbt(){}var rbt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!WBt(e)&&!k7(e)&&e.cancel("Response object has been garbage collected").catch(tbt)});function nQe(t,e=!1){let r=null,n=null;lc.is.ReadableStream(t)?r=t:lc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),D7(lc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(lc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(lc.is.BufferSource(t))i=lc.util.getCopyOfBytesHeldByBufferSource(t);else if(lc.is.FormData(t)){let A=`----formdata-undici-0${`${ebt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Hk.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=iv.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=Hk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=iv.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Hk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(cc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(i7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=cc.is.ReadableStream(t)?t:yyt(t)}return(typeof i=="string"||Nyt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(s7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!s7(r)&&n.enqueue(typeof A=="string"?Hk.encode(A):new Uint8Array(A));queueMicrotask(()=>Byt(n))})(),[{stream:r,source:i,length:o},a]}function Lyt(t,e=!1){return cc.is.ReadableStream(t)&&(n7(!i7.isDisturbed(t),"The body has already been consumed."),n7(!t.locked,"The stream is locked.")),nbe(t,e)}function Uyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Pyt(t,e){return{blob(){return CE(this,n=>{let s=rbe(e(this));return s===null?s="":s&&(s=Tyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return CE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return CE(this,kyt,t,e)},json(){return CE(this,Dyt,t,e)},formData(){return CE(this,n=>{let s=rbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xyt(n,s),o=new tbe;return wyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new tbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return CE(this,n=>new Uint8Array(n),t,e)}}}function Oyt(t,e){Object.assign(t.prototype,Pyt(t,e))}function CE(t,e,r,n){try{cc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),sbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Ryt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(byt(t.body,o,i),s.promise)}function sbe(t){let e=t.body;return e!=null&&(e.stream.locked||i7.isDisturbed(e.stream))}function rbe(t){let e=t.headersList,r=Qyt(e);return r==="failure"?null:r}ibe.exports={extractBody:nbe,safelyExtractBody:Lyt,cloneBody:Uyt,mixinBody:Oyt,streamRegistry:Myt,bodyUnusable:sbe}});var pbe=E((CBr,gbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:obe}=Gd(),o7=HY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Hyt,RequestAbortedError:dbe,HeadersTimeoutError:Gyt,HeadersOverflowError:qyt,SocketError:sQ,InformationalError:yE,BodyTimeoutError:Yyt,HTTPParserError:Vyt,ResponseExceededMaxSizeError:Wyt}=Ke(),{kUrl:hbe,kReset:Bi,kClient:h7,kParser:Wr,kBlocking:iQ,kRunning:ms,kPending:Jyt,kSize:abe,kWriting:Wd,kQueue:Ac,kNoRef:rQ,kKeepAliveDefaultTimeout:zyt,kHostHeader:jyt,kPendingIdx:Kyt,kRunningIdx:aa,kError:ca,kPipelining:Yk,kSocket:BE,kKeepAliveTimeoutValue:Wk,kMaxHeadersSize:$yt,kKeepAliveMaxTimeout:Xyt,kKeepAliveTimeoutThreshold:Zyt,kHeadersTimeout:eBt,kBodyTimeout:tBt,kStrictContentLength:A7,kMaxRequests:cbe,kCounter:rBt,kMaxResponseSize:nBt,kOnError:sBt,kResume:Vd,kHTTPContext:fbe,kClosed:u7}=Kt(),wA=iBe(),iBt=Buffer.alloc(0),Gk=Buffer[Symbol.species],oBt=Je.removeAllListeners,a7;function aBt(){let t=process.env.JEST_WORKER_ID?vV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(cBe())}catch{}return e||(e=new WebAssembly.Module(t||vV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onStatus(new Gk(SA.buffer,o,i))},wasm_on_message_begin:n=>(We(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onHeaderField(new Gk(SA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onHeaderValue(new Gk(SA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(bn.ptr===n);let o=s-NA+SA.byteOffset;return bn.onBody(new Gk(SA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var c7=null,bn=null,SA=null,qk=0,NA=null,cBt=0,nQ=1,bE=2|nQ,Vk=4|nQ,l7=8|cBt,d7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[$yt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[nBt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[jyt],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=iv.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(lc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(v7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=lc.is.ReadableStream(t)?t:HBt(t)}return(typeof i=="string"||JBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(k7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!k7(r)&&n.enqueue(typeof A=="string"?iv.encode(A):new Uint8Array(A));queueMicrotask(()=>GBt(n))})(),[{stream:r,source:i,length:o},a]}function nbt(t,e=!1){return lc.is.ReadableStream(t)&&(D7(!v7.isDisturbed(t),"The body has already been consumed."),D7(!t.locked,"The stream is locked.")),nQe(t,e)}function sbt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function ibt(t,e){return{blob(){return xE(this,n=>{let s=rQe(e(this));return s===null?s="":s&&(s=zBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return xE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return xE(this,XBt,t,e)},json(){return xE(this,$Bt,t,e)},formData(){return xE(this,n=>{let s=rQe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=jBt(n,s),o=new tQe;return VBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new tQe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return xE(this,n=>new Uint8Array(n),t,e)}}}function obt(t,e){Object.assign(t.prototype,ibt(t,e))}function xE(t,e,r,n){try{lc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),sQe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=KBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(qBt(t.body,o,i),s.promise)}function sQe(t){let e=t.body;return e!=null&&(e.stream.locked||v7.isDisturbed(e.stream))}function rQe(t){let e=t.headersList,r=YBt(e);return r==="failure"?null:r}iQe.exports={extractBody:nQe,safelyExtractBody:nbt,cloneBody:sbt,mixinBody:obt,streamRegistry:rbt,bodyUnusable:sQe}});var IQe=C((cQr,CQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:oQe}=qd(),_7=fV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:aQe,RequestAbortedError:gQe,InvalidArgumentError:abt,HeadersTimeoutError:cbt,HeadersOverflowError:Abt,SocketError:Rg,InformationalError:DE,BodyTimeoutError:ubt,HTTPParserError:lbt,ResponseExceededMaxSizeError:dbt}=Xe(),{kUrl:pQe,kReset:Si,kClient:uv,kParser:pr,kBlocking:IQ,kRunning:fn,kPending:H7,kSize:cQe,kWriting:Wd,kQueue:dc,kNoRef:EQ,kKeepAliveDefaultTimeout:hbt,kHostHeader:fbt,kPendingIdx:gbt,kRunningIdx:la,kError:Gs,kPipelining:cv,kSocket:kg,kKeepAliveTimeoutValue:lv,kMaxHeadersSize:pbt,kKeepAliveMaxTimeout:mbt,kKeepAliveTimeoutThreshold:Ebt,kHeadersTimeout:Cbt,kBodyTimeout:Ibt,kStrictContentLength:L7,kMaxRequests:AQe,kCounter:ybt,kMaxResponseSize:Bbt,kOnError:uQe,kResume:cl,kHTTPContext:mQe,kClosed:U7}=Kt(),co=ibe(),lQe=Buffer.alloc(0),ov=Buffer[Symbol.species],bbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),G7=Symbol("kSocketUsed"),F7;function Qbt(){let t=process.env.JEST_WORKER_ID?a7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(cbe())}catch{}return e||(e=new WebAssembly.Module(t||a7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new ov(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new ov(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new ov(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new ov(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var M7=null,zr=null,NA=null,av=0,TA=null,wbt=0,CQ=1,kE=2|CQ,Av=4|CQ,P7=8|wbt,O7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[pbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[fbt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Yk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return obe.sendHeaders.hasSubscribers&&obe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?ube(f,null,t,e,h,u,p,l):Je.isBuffer(c)?ube(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?lbe(f,c.stream(),t,e,h,u,p,l):CBt(f,c,t,e,h,u,p,l):Je.isStream(c)?EBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?lbe(f,c,t,e,h,u,p,l):We(!1),!0}function EBt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new Jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new dbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Wd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function ube(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[cv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return oQe.sendHeaders.hasSubscribers&&oQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?hQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?hQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?fQe(f,c.stream(),t,e,h,u,g,l):Lbt(f,c,t,e,h,u,g,l):De.isStream(c)?Mbt(f,c,t,e,h,u,g,l):De.isIterable(c)?fQe(f,c,t,e,h,u,g,l):He(!1),!0}function Mbt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new dv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new gQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Wd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function hQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Bi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Si]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Vd]()}catch(c){t(c)}}async function CBt(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[cl]()}catch(c){t(c)}}async function Lbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Bi]=!0),r[Vd]()}catch(c){t(c)}}async function lbe(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{We(c===null),s[ca]?h(s[ca]):c=d});s.on("close",A).on("drain",A);let l=new Jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ca])throw s[ca];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Jk=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ca])throw r[ca];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[A7])throw new Sg;process.emitWarning(new Sg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Si]=!0),r[cl]()}catch(c){t(c)}}async function fQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new dv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var dv=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[L7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===bE&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wd]=!1,e[ca])throw e[ca];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[pr].timeout&&r[pr].timeoutType===kE&&r[pr].timeout.refresh&&r[pr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Wd]=!1,e[Gs])throw e[Gs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[A7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===bE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Vd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};gbe.exports=ABt});var wbe=E((IBr,Qbe)=>{"use strict";var ua=b("node:assert"),{pipeline:IBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:m7,RequestAbortedError:yBt,SocketError:AQ,InformationalError:Jd,InvalidArgumentError:BBt}=Ke(),{kUrl:cQ,kReset:$k,kClient:no,kRunning:uQ,kPending:bBt,kQueue:zd,kPendingIdx:C7,kRunningIdx:uc,kError:so,kSocket:Dr,kStrictContentLength:QBt,kOnError:QE,kMaxConcurrentStreams:jk,kPingInterval:mbe,kHTTP2Session:al,kHTTP2InitialWindowSize:wBt,kHTTP2ConnectionWindowSize:SBt,kResume:TA,kSize:NBt,kHTTPContext:I7,kClosed:E7,kBodyTimeout:TBt,kEnableConnectProtocol:oQ,kRemoteSettings:aQ,kHTTP2Stream:zk,kHTTP2SessionState:y7}=Kt(),{channels:Ebe}=Gd(),Aa=Symbol("open streams"),Cbe,Kk;try{Kk=b("node:http2")}catch{Kk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xBt,HTTP2_HEADER_METHOD:Ibe,HTTP2_HEADER_PATH:ybe,HTTP2_HEADER_SCHEME:f7,HTTP2_HEADER_CONTENT_LENGTH:RBt,HTTP2_HEADER_EXPECT:DBt,HTTP2_HEADER_STATUS:g7,HTTP2_HEADER_PROTOCOL:kBt,NGHTTP2_REFUSED_STREAM:vBt,NGHTTP2_CANCEL:_Bt}}=Kk;function p7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function FBt(t,e){t[Dr]=e;let r=t[wBt],n=t[SBt],s=Kk.connect(t[cQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[jk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[Aa]=0,s[no]=t,s[Dr]=e,s[y7]={ping:{interval:t[mbe]===0?null:setInterval(PBt,t[mbe],s).unref()}},s[oQ]=!1,s[aQ]=!1,n&&ut.addListener(s,"connect",LBt.bind(s,n)),ut.addListener(s,"error",OBt),ut.addListener(s,"frameError",HBt),ut.addListener(s,"end",GBt),ut.addListener(s,"goaway",qBt),ut.addListener(s,"close",YBt),ut.addListener(s,"remoteSettings",UBt),s.unref(),t[al]=s,e[al]=s,ut.addListener(e,"error",WBt),ut.addListener(e,"end",JBt),ut.addListener(e,"close",VBt),e[E7]=!1,e.on("close",zBt),{version:"h2",defaultPipelining:1/0,write(i){return KBt(t,i)},resume(){MBt(t)},destroy(i,o){e[E7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[uQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[aQ]===!1;return!1}}}function MBt(t){let e=t[Dr];e?.destroyed===!1&&(t[NBt]===0||t[jk]===0?(e.unref(),t[al].unref()):(e.ref(),t[al].ref()))}function LBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function UBt(t){if(this[no][jk]=t.maxConcurrentStreams??this[no][jk],this[aQ]===!0&&this[oQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][QE](e);return}this[oQ]=t.enableConnectProtocol??this[oQ],this[aQ]=!0,this[no][TA]()}function PBt(t){let e=t[y7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[no],o=this[no];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[QE](a)}else i.emit("ping",s)}}function OBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][QE](t)}function HBt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][QE](n)}}function GBt(){let t=new AQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function qBt(t){let e=this[so]||new AQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[I7]=null,this.close(),this[al]=null,ut.destroy(this[Dr],e),r[uc]<r[zd].length){let n=r[zd][r[uc]];r[zd][r[uc]++]=null,ut.errorRequest(r,n,e),r[C7]=r[uc]}ua(r[uQ]===0),r.emit("disconnect",r[cQ],[r],e),r.emit("connectionError",r[cQ],[r],e),r[TA]()}function YBt(){let{[no]:t,[y7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new AQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[I7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ua(t[bBt]===0);let s=t[zd].splice(t[uc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function VBt(){let t=this[so]||new AQ("closed",ut.getSocketInfo(this)),e=this[al][no];e[Dr]=null,e[I7]=null,this[al]!==null&&this[al].destroy(t),e[C7]=e[uc],ua(e[uQ]===0),e.emit("disconnect",e[cQ],[e],t),e[TA]()}function WBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][QE](t)}function JBt(){ut.destroy(this,new AQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Ebe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[DBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[zk]=!0,O()),++n[Aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[g7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),p7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[zd][t[uc]++]=null,t[TA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[uc]++]=null,t[C7]=t[uc],t[TA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[Aa]-=1,n[Aa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Jd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Jd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[Aa]-=1,n[Aa]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?Bbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Bbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?bbe(m,f,d.stream(),t,e,t[Dr],y,C):XBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?$Bt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?bbe(m,f,d,t,e,t[Dr],y,C):ua(!1)}}function Bbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ua(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[$k]=!0),s.onRequestSent(),n[TA]()}catch(c){t(c)}}function $Bt(t,e,r,n,s,i,o,a){ua(a!==0||i[uQ]===0,"stream body cannot be pipelined");let c=IBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[$k]=!0),i[TA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function XBt(t,e,r,n,s,i,o,a){ua(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new m7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[$k]=!0),n[TA]()}catch(c){t(c)}}async function bbe(t,e,r,n,s,i,o,a){ua(o!==0||n[uQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ua(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[$k]=!0),n[TA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Qbe.exports=FBt});var Zd=E((yBr,_be)=>{"use strict";var cl=b("node:assert"),Rbe=b("node:net"),lQ=b("node:http"),Ng=Ze(),{ClientStats:ZBt}=pV(),{channels:wE}=Gd(),ebt=Jye(),tbt=yg(),{InvalidArgumentError:gr,InformationalError:rbt,ClientDestroyedError:nbt}=Ke(),sbt=Bg(),{kUrl:xA,kServerName:Xd,kClient:ibt,kBusy:B7,kConnect:obt,kResuming:Tg,kRunning:gQ,kPending:pQ,kSize:dQ,kQueue:lc,kConnected:abt,kConnecting:SE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:Sbe,kHostHeader:cbt,kPendingIdx:dc,kRunningIdx:Al,kError:Abt,kPipelining:Xk,kKeepAliveTimeoutValue:ubt,kMaxHeadersSize:lbt,kKeepAliveMaxTimeout:dbt,kKeepAliveTimeoutThreshold:hbt,kHeadersTimeout:fbt,kBodyTimeout:gbt,kStrictContentLength:pbt,kConnector:hQ,kMaxRequests:b7,kCounter:mbt,kClose:Ebt,kDestroy:Cbt,kDispatch:Ibt,kLocalAddress:fQ,kMaxResponseSize:ybt,kOnError:Bbt,kHTTPContext:nn,kMaxConcurrentStreams:bbt,kHTTP2InitialWindowSize:Qbt,kHTTP2ConnectionWindowSize:wbt,kResume:$d,kPingInterval:Sbt}=Kt(),Nbt=pbe(),Tbt=wbe(),jd=Symbol("kClosedResolve"),xbt=lQ&&lQ.maxHeaderSize&&Number.isInteger(lQ.maxHeaderSize)&&lQ.maxHeaderSize>0?()=>lQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},Nbe=()=>{};function Dbe(t){return t[Xk]??t[nn]?.defaultPipelining??1}var Q7=class extends tbt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[gbt]=a??3e5,this[fbt]=n??3e5,this[pbt]=m??!0,this[b7]=N,this[jd]=null,this[ybt]=O>-1?O:-1,this[nn]=null,this[bbt]=D??100,this[Qbt]=te??262144,this[wbt]=ce??524288,this[Sbt]=ge??6e4,this[lc]=[],this[Al]=0,this[dc]=0,this[$d]=De=>w7(this,De),this[Bbt]=De=>kbe(this,De)}get pipelining(){return this[Xk]}set pipelining(e){this[Xk]=e,this[$d](!0)}get stats(){return new ZBt(this)}get[pQ](){return this[lc].length-this[dc]}get[gQ](){return this[dc]-this[Al]}get[dQ](){return this[lc].length-this[Al]}get[abt](){return!!this[nn]&&!this[SE]&&!this[nn].destroyed}get[B7](){return!!(this[nn]?.busy(null)||this[dQ]>=(Dbe(this)||1)||this[pQ]>0)}[obt](e){vbe(this),this.once("connect",e)}[Ibt](e,r){let n=new ebt(this[xA].origin,e,r);return this[lc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>w7(this))):this[$d](!0)),this[Tg]&&this[Kd]!==2&&this[B7]&&(this[Kd]=2),this[Kd]<2}[Ebt](){return new Promise(e=>{this[dQ]?this[jd]=e:e(null)})}[Cbt](e){return new Promise(r=>{let n=this[lc].splice(this[dc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[$d]()})}};function kbe(t,e){if(t[gQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cl(t[dc]===t[Al]);let r=t[lc].splice(t[Al]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}cl(t[dQ]===0)}}function vbe(t){cl(!t[SE]),cl(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[xA];if(r[0]==="["){let i=r.indexOf("]");cl(i!==-1);let o=r.substring(1,i);cl(Rbe.isIPv6(o)),r=o}t[SE]=!0,wE.beforeConnect.hasSubscribers&&wE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ]}),t[hQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Xd],localAddress:t[fQ]},(i,o)=>{if(i){Tbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}if(t.destroyed){Ng.destroy(o.on("error",Nbe),new nbt),t[$d]();return}cl(o);try{t[nn]=o.alpnProtocol==="h2"?Tbt(t,o):Nbt(t,o)}catch(a){o.destroy().on("error",Nbe),Tbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[$d]();return}t[SE]=!1,o[mbt]=0,o[b7]=t[b7],o[ibt]=t,o[Abt]=null,wE.connected.hasSubscribers&&wE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],socket:o}),t.emit("connect",t[xA],[t]),t[$d]()})}function Tbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[SE]=!1,wE.connectError.hasSubscribers&&wE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Xd],localAddress:t[fQ]},connector:t[hQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cl(t[gQ]===0);t[pQ]>0&&t[lc][t[dc]].servername===t[Xd];){let o=t[lc][t[dc]++];Ng.errorRequest(t,o,e)}else kbe(t,e);t.emit("connectionError",t[xA],[t],e)}}function xbe(t){t[Kd]=0,t.emit("drain",t[xA],[t])}function w7(t,e){t[Tg]!==2&&(t[Tg]=2,Rbt(t,e),t[Tg]=0,t[Al]>256&&(t[lc].splice(0,t[Al]),t[dc]-=t[Al],t[Al]=0))}function Rbt(t,e){for(;;){if(t.destroyed){cl(t[pQ]===0);return}if(t[jd]&&!t[dQ]){t[jd](),t[jd]=null;return}if(t[nn]&&t[nn].resume(),t[B7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>xbe(t))):xbe(t);continue}if(t[pQ]===0||t[gQ]>=(Dbe(t)||1))return;let r=t[lc][t[dc]];if(r===null)return;if(t[xA].protocol==="https:"&&t[Xd]!==r.servername){if(t[gQ]>0)return;t[Xd]=r.servername,t[nn]?.destroy(new rbt("servername changed"),()=>{t[nn]=null,w7(t)})}if(t[SE])return;if(!t[nn]){vbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[dc]++:t[lc].splice(t[dc],1)}}_be.exports=Q7});var S7=E((bBr,Fbe)=>{"use strict";var Zk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Fbe.exports=class{constructor(){this.head=this.tail=new Zk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Zk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ev=E((QBr,Ybe)=>{"use strict";var{PoolStats:Dbt}=pV(),kbt=yg(),vbt=S7(),{kConnected:N7,kSize:Mbe,kRunning:Lbe,kPending:Ube,kQueued:mQ,kBusy:_bt,kFree:Fbt,kUrl:Mbt,kClose:Lbt,kDestroy:Ubt,kDispatch:Pbt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),EQ=Symbol("queue"),T7=Symbol("closed resolve"),x7=Symbol("onDrain"),Pbe=Symbol("onConnect"),Obe=Symbol("onDisconnect"),Hbe=Symbol("onConnectionError"),R7=Symbol("get dispatcher"),Gbe=Symbol("add client"),qbe=Symbol("remove client"),D7=class extends kbt{[EQ]=new vbt;[mQ]=0;[Vn]=[];[Ps]=!1;[x7](e,r,n){let s=this[EQ],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[L7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===kE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[cl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};CQe.exports=Sbt});var xQe=C((AQr,TQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:Ubt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:W7,RequestAbortedError:Pbt,SocketError:QQ,InformationalError:Jd,InvalidArgumentError:Obt}=Xe(),{kUrl:bQ,kReset:pv,kClient:Ao,kRunning:wQ,kPending:Hbt,kQueue:zd,kPendingIdx:z7,kRunningIdx:hc,kError:uo,kSocket:vr,kStrictContentLength:Gbt,kOnError:vE,kMaxConcurrentStreams:fv,kPingInterval:yQe,kHTTP2Session:Al,kHTTP2InitialWindowSize:qbt,kHTTP2ConnectionWindowSize:Ybt,kResume:xA,kSize:Vbt,kHTTPContext:j7,kClosed:J7,kBodyTimeout:Wbt,kEnableConnectProtocol:yQ,kRemoteSettings:BQ,kHTTP2Stream:hv,kHTTP2SessionState:K7}=Kt(),{channels:BQe}=qd(),da=Symbol("open streams"),bQe,gv;try{gv=Q("node:http2")}catch{gv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Jbt,HTTP2_HEADER_METHOD:QQe,HTTP2_HEADER_PATH:wQe,HTTP2_HEADER_SCHEME:q7,HTTP2_HEADER_CONTENT_LENGTH:zbt,HTTP2_HEADER_EXPECT:jbt,HTTP2_HEADER_STATUS:Y7,HTTP2_HEADER_PROTOCOL:Kbt,NGHTTP2_REFUSED_STREAM:$bt,NGHTTP2_CANCEL:Xbt}}=gv;function V7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function Zbt(t,e){t[vr]=e;let r=t[qbt],n=t[Ybt],s=gv.connect(t[bQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[fv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[K7]={ping:{interval:t[yQe]===0?null:setInterval(nQt,t[yQe],s).unref()}},s[yQ]=!1,s[BQ]=!1,n&&ut.addListener(s,"connect",tQt.bind(s,n)),ut.addListener(s,"error",sQt),ut.addListener(s,"frameError",iQt),ut.addListener(s,"end",oQt),ut.addListener(s,"goaway",aQt),ut.addListener(s,"close",cQt),ut.addListener(s,"remoteSettings",rQt),s.unref(),t[Al]=s,e[Al]=s,ut.addListener(e,"error",uQt),ut.addListener(e,"end",lQt),ut.addListener(e,"close",AQt),e[J7]=!1,e.on("close",dQt),{version:"h2",defaultPipelining:1/0,write(i){return fQt(t,i)},resume(){eQt(t)},destroy(i,o){e[J7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[wQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[BQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[BQ]===!1;return!1}}}function eQt(t){let e=t[vr];e?.destroyed===!1&&(t[Vbt]===0||t[fv]===0?(e.unref(),t[Al].unref()):(e.ref(),t[Al].ref()))}function tQt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function rQt(t){if(this[Ao][fv]=t.maxConcurrentStreams??this[Ao][fv],this[BQ]===!0&&this[yQ]===!0&&t.enableConnectProtocol===!1){let e=new Jd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][vE](e);return}this[yQ]=t.enableConnectProtocol??this[yQ],this[BQ]=!0,this[Ao][xA]()}function nQt(t){let e=t[K7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Ao],o=this[Ao];if(n!=null){let a=new Jd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[vE](a)}else i.emit("ping",s)}}function sQt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][vE](t)}function iQt(t,e,r){if(r===0){let n=new Jd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][vE](n)}}function oQt(){let t=new QQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function aQt(t){let e=this[uo]||new QQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[j7]=null,this.close(),this[Al]=null,ut.destroy(this[vr],e),r[hc]<r[zd].length){let n=r[zd][r[hc]];r[zd][r[hc]++]=null,ut.errorRequest(r,n,e),r[z7]=r[hc]}ha(r[wQ]===0),r.emit("disconnect",r[bQ],[r],e),r.emit("connectionError",r[bQ],[r],e),r[xA]()}function cQt(){let{[Ao]:t,[K7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new QQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[j7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Hbt]===0);let s=t[zd].splice(t[hc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function AQt(){let t=this[uo]||new QQ("closed",ut.getSocketInfo(this)),e=this[Al][Ao];e[vr]=null,e[j7]=null,this[Al]!==null&&this[Al].destroy(t),e[z7]=e[hc],ha(e[wQ]===0),e.emit("disconnect",e[bQ],[e],t),e[xA]()}function uQt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][vE](t)}function lQt(){ut.destroy(this,new QQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;BQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[jbt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[hv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[hv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[Y7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),V7(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[zd][t[hc]++]=null,t[xA]()):(m(new Jd("HTTP/2: stream half-closed (remote)")),t[zd][t[hc]++]=null,t[z7]=t[hc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Jd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Jd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?SQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?SQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?NQe(m,f,d.stream(),t,e,t[vr],y,I):pQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?gQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?NQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function SQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[pv]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function gQt(t,e,r,n,s,i,o,a){ha(a!==0||i[wQ]===0,"stream body cannot be pipelined");let c=Ubt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[pv]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function pQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new W7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[pv]=!0),n[xA]()}catch(c){t(c)}}async function NQe(t,e,r,n,s,i,o,a){ha(o!==0||n[wQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[pv]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}TQe.exports=Zbt});var Xd=C((uQr,LQe)=>{"use strict";var ul=Q("node:assert"),vQe=Q("node:net"),SQ=Q("node:http"),_g=Ze(),{ClientStats:mQt}=qV(),{channels:_E}=qd(),EQt=JBe(),CQt=Qg(),{InvalidArgumentError:mr,InformationalError:IQt,ClientDestroyedError:yQt}=Xe(),BQt=wg(),{kUrl:RA,kServerName:$d,kClient:bQt,kBusy:X7,kConnect:QQt,kResuming:Fg,kRunning:RQ,kPending:DQ,kSize:NQ,kQueue:fc,kConnected:wQt,kConnecting:FE,kNeedDrain:Kd,kKeepAliveDefaultTimeout:RQe,kHostHeader:SQt,kPendingIdx:gc,kRunningIdx:dl,kError:NQt,kPipelining:mv,kKeepAliveTimeoutValue:TQt,kMaxHeadersSize:xQt,kKeepAliveMaxTimeout:RQt,kKeepAliveTimeoutThreshold:DQt,kHeadersTimeout:kQt,kBodyTimeout:vQt,kStrictContentLength:_Qt,kConnector:TQ,kMaxRequests:Z7,kCounter:FQt,kClose:MQt,kDestroy:LQt,kDispatch:UQt,kLocalAddress:xQ,kMaxResponseSize:PQt,kOnError:OQt,kHTTPContext:on,kMaxConcurrentStreams:HQt,kHTTP2InitialWindowSize:GQt,kHTTP2ConnectionWindowSize:qQt,kResume:ll,kPingInterval:YQt}=Kt(),VQt=IQe(),WQt=xQe(),jd=Symbol("kClosedResolve"),JQt=SQ&&SQ.maxHeaderSize&&Number.isInteger(SQ.maxHeaderSize)&&SQ.maxHeaderSize>0?()=>SQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},DQe=()=>{};function _Qe(t){return t[mv]??t[on]?.defaultPipelining??1}var eW=class extends CQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:Z,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[vQt]=a??3e5,this[kQt]=n??3e5,this[_Qt]=m??!0,this[Z7]=B,this[jd]=null,this[PQt]=V>-1?V:-1,this[on]=null,this[HQt]=v??100,this[GQt]=te??262144,this[qQt]=ce??524288,this[YQt]=ue??6e4,this[fc]=[],this[dl]=0,this[gc]=0,this[ll]=ke=>tW(this,ke),this[OQt]=ke=>FQe(this,ke)}get pipelining(){return this[mv]}set pipelining(e){this[mv]=e,this[ll](!0)}get stats(){return new mQt(this)}get[DQ](){return this[fc].length-this[gc]}get[RQ](){return this[gc]-this[dl]}get[NQ](){return this[fc].length-this[dl]}get[wQt](){return!!this[on]&&!this[FE]&&!this[on].destroyed}get[X7](){return!!(this[on]?.busy(null)||this[NQ]>=(_Qe(this)||1)||this[DQ]>0)}[QQt](e){MQe(this),this.once("connect",e)}[UQt](e,r){let n=new EQt(this[RA].origin,e,r);return this[fc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>tW(this))):this[ll](!0)),this[Fg]&&this[Kd]!==2&&this[X7]&&(this[Kd]=2),this[Kd]<2}[MQt](){return new Promise(e=>{this[NQ]?this[jd]=e:e(null)})}[LQt](e){return new Promise(r=>{let n=this[fc].splice(this[gc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[jd]&&(this[jd](),this[jd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ll]()})}};function FQe(t,e){if(t[RQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ul(t[gc]===t[dl]);let r=t[fc].splice(t[dl]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}ul(t[NQ]===0)}}function MQe(t){ul(!t[FE]),ul(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");ul(i!==-1);let o=r.substring(1,i);ul(vQe.isIPv6(o)),r=o}t[FE]=!0,_E.beforeConnect.hasSubscribers&&_E.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ]});try{t[TQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[xQ]},(i,o)=>{if(i){$7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ll]();return}if(t.destroyed){_g.destroy(o.on("error",DQe),new yQt),t[ll]();return}ul(o);try{t[on]=o.alpnProtocol==="h2"?WQt(t,o):VQt(t,o)}catch(a){o.destroy().on("error",DQe),$7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ll]();return}t[FE]=!1,o[FQt]=0,o[Z7]=t[Z7],o[bQt]=t,o[NQt]=null,_E.connected.hasSubscribers&&_E.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ],socket:o}),t.emit("connect",t[RA],[t]),t[ll]()})}catch(i){$7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ll]()}}function $7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[FE]=!1,_E.connectError.hasSubscribers&&_E.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[$d],localAddress:t[xQ]},connector:t[TQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ul(t[RQ]===0);t[DQ]>0&&t[fc][t[gc]].servername===t[$d];){let o=t[fc][t[gc]++];_g.errorRequest(t,o,e)}else FQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function kQe(t){t[Kd]=0,t.emit("drain",t[RA],[t])}function tW(t,e){t[Fg]!==2&&(t[Fg]=2,zQt(t,e),t[Fg]=0,t[dl]>256&&(t[fc].splice(0,t[dl]),t[gc]-=t[dl],t[dl]=0))}function zQt(t,e){for(;;){if(t.destroyed){ul(t[DQ]===0);return}if(t[jd]&&!t[NQ]){t[jd](),t[jd]=null;return}if(t[on]&&t[on].resume(),t[X7])t[Kd]=2;else if(t[Kd]===2){e?(t[Kd]=1,queueMicrotask(()=>kQe(t))):kQe(t);continue}if(t[DQ]===0||t[RQ]>=(_Qe(t)||1))return;let r=t[fc][t[gc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[$d]!==r.servername){if(t[RQ]>0)return;t[$d]=r.servername,t[on]?.destroy(new IQt("servername changed"),()=>{t[on]=null,tW(t)})}if(t[FE])return;if(!t[on]){MQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[gc]++:t[fc].splice(t[gc],1)}}LQe.exports=eW});var rW=C((dQr,UQe)=>{"use strict";var Ev=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};UQe.exports=class{constructor(){this.head=this.tail=new Ev}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Ev),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Cv=C((hQr,JQe)=>{"use strict";var{PoolStats:jQt}=qV(),KQt=Qg(),$Qt=rW(),{kConnected:nW,kSize:PQe,kRunning:OQe,kPending:HQe,kQueued:kQ,kBusy:XQt,kFree:ZQt,kUrl:ewt,kClose:twt,kDestroy:rwt,kDispatch:nwt}=Kt(),zn=Symbol("clients"),qs=Symbol("needDrain"),vQ=Symbol("queue"),sW=Symbol("closed resolve"),iW=Symbol("onDrain"),GQe=Symbol("onConnect"),qQe=Symbol("onDisconnect"),YQe=Symbol("onConnectionError"),oW=Symbol("get dispatcher"),VQe=Symbol("add client"),WQe=Symbol("remove client"),aW=class extends KQt{[vQ]=new $Qt;[kQ]=0;[zn] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var{InvalidArgumentError:M1t}=Ke(),{runtimeFeatures:L1t}=il();function U1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var h1e=L1t.has("crypto")?b("node:crypto"):null,P1t=h1e?.hash?t=>h1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function g1e(t){return Array.isArray(t)&&(t.length&1)===0}function O1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function H1t(t){let e={};if(!t)return e;if(g1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var f1e=["record","playback","update"];function G1t(t){if(!f1e.includes(t))throw new M1t(`Invalid snapshot mode: ${t}. Must be one of: ${f1e.join(", ")}`)}p1e.exports={createHeaderFilters:U1t,hashId:P1t,isUndiciHeaders:g1e,normalizeHeaders:H1t,isUrlExcludedFactory:O1t,validateSnapshotMode:G1t}});var w1e=E((rbr,Q1e)=>{"use strict";var{writeFile:q1t,readFile:Y1t,mkdir:V1t}=b("node:fs/promises"),{dirname:W1t,resolve:m1e}=b("node:path"),{setTimeout:J1t,clearTimeout:E1e}=b("node:timers"),{InvalidArgumentError:C1e,UndiciError:z1t}=Ke(),{hashId:j1t,isUrlExcludedFactory:K1t,normalizeHeaders:I1e,createHeaderFilters:y1e}=zW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||I1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:B1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function B1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function b1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function vQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return j1t(r)}var jW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=y1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=K1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#a,this.matchOptions),s=vQ(n),i=I1e(r.headers),o={statusCode:r.statusCode,headers:b1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=kQ(e,this.#a,this.matchOptions),n=vQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new C1e("Snapshot path is required");try{let n=await Y1t(m1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new z1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new C1e("Snapshot path is required");let n=m1e(r);await V1t(W1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await q1t(n,JSON.s Line truncated
${e.format(r)}`.trim())}};ESe.exports=wJ});var NJ=C((YQr,BSe)=>{"use strict";var{InvalidArgumentError:ZSt}=Xe(),{runtimeFeatures:eNt}=ol();function tNt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var CSe=eNt.has("crypto")?Q("node:crypto"):null,rNt=CSe?.hash?t=>CSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ySe(t){return Array.isArray(t)&&(t.length&1)===0}function nNt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function sNt(t){let e={};if(!t)return e;if(ySe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var ISe=["record","playback","update"];function iNt(t){if(!ISe.includes(t))throw new ZSt(`Invalid snapshot mode: ${t}. Must be one of: ${ISe.join(", ")}`)}BSe.exports={createHeaderFilters:tNt,hashId:rNt,isUndiciHeaders:ySe,normalizeHeaders:sNt,isUrlExcludedFactory:nNt,validateSnapshotMode:iNt}});var DSe=C((VQr,RSe)=>{"use strict";var{writeFile:oNt,readFile:aNt,mkdir:cNt}=Q("node:fs/promises"),{dirname:ANt,resolve:bSe}=Q("node:path"),{setTimeout:uNt,clearTimeout:QSe}=Q("node:timers"),{InvalidArgumentError:wSe,UndiciError:lNt}=Xe(),{hashId:dNt,isUrlExcludedFactory:hNt,normalizeHeaders:SSe,createHeaderFilters:NSe}=NJ();function VQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||SSe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:TSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function TSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function xSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function WQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return dNt(r)}var TJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=NSe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=hNt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=VQ(e,this.#c,this.matchOptions),s=WQ(n),i=SSe(r.headers),o={statusCode:r.statusCode,headers:xSe(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=VQ(e,this.#c,this.matchOptions),n=WQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new wSe("Snapshot path is required");try{let n=await aNt(bSe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new lNt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new wSe("Snapshot path is required");let n=bSe(r);await cNt(ANt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await oNt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ho} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_getValuesQuery ON cacheInterceptorV${ho}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_deleteByUrlQuery ON cacheInterceptorV${ho}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ao}
FROM cacheInterceptorV${ho}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ho} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ho} (
url,
method,
body,
@@ -182,91 +182,91 @@ ${e.format(r)}`.trim())}};d1e.exports=WW});var zW=E((tbr,p1e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ho}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ho}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${ho}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){mJ(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){mJ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){mJ(e),MNt(r);let n=0,s=[],i=this;return new FNt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!LNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function LNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Gg=E((Qbr,kSe)=>{"use strict";var{kConstruct:UNt}=Kt(),{kEnumerableProperty:HE}=Ze(),{iteratorMixin:PNt,isValidHeaderName:LQ,isValidHeaderValue:NSe}=ro(),{webidl:wt}=es(),CJ=b("node:assert"),Dv=b("node:util");function SSe(t){return t===10||t===13||t===9||t===32}function TSe(t){let e=0,r=t.length;for(;r>e&&SSe(t.charCodeAt(r-1));)--r;for(;r>e&&SSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function xSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});IJ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)IJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function IJ(t,e,r){if(r=TSe(r),LQ(e)){if(!NSe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(DSe(t)==="immutable")throw new TypeError("immutable");return vv(t).append(e,r,!1)}function ONt(t){let e=vv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function RSe(t,e){return t[0]<e[0]?-1:1}var kv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":PTe(i)&&(r[s]=i);break;case"id":OTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&PTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&OTe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};HTe.exports={EventSourceStream:nz}});var KTe=E((jbr,jTe)=>{"use strict";var{pipeline:n2t}=b("node:stream"),{fetching:s2t}=GQ(),{makeRequest:i2t}=qE(),{webidl:Hs}=es(),{EventSourceStream:o2t}=GTe(),{parseMIMEType:a2t}=ia(),{createFastMessageEvent:c2t}=s_(),{isNetworkError:qTe}=PQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:YTe}=ro(),VTe=!1,WTe=3e3,jQ=0,JTe=1,KQ=2,A2t="anonymous",u2t="use-credentials",ZE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=jQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),VTe||(VTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=YTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=A2t;r.withCredentials===!0&&(o=u2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=YTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=i2t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===KQ)return;this.#r=jQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!qTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?a2t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=JTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new o2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(c2t(c.type,c.options))}});n2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=s2t(e)}#A(){this.#r!==KQ&&(this.#r=jQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===jQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==KQ&&(this.#r=KQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},zTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:JTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1}};Object.defineProperties(ZE,zTe);Object.defineProperties(ZE.prototype,zTe);Object.defineProperties(ZE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>WTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);jTe.exports={EventSource:ZE,defaultReconnectionTime:WTe}});var rxe=E((Kbr,pe)=>{"use strict";var l2t=Zd(),XTe=zb(),d2t=xg(),h2t=Xbe(),f2t=rQe(),g2t=kg(),p2t=$7(),m2t=J7(),E2t=PQe(),C2t=VQe(),I2t=zQe(),ZTe=Ke(),m_=Ze(),{InvalidArgumentError:p_}=ZTe,eC=xwe(),y2t=Bg(),B2t=FW(),{MockCallHistory:b2 Line truncated
`)}close(){this.#n.close()}get(e){rz(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){rz(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){rz(e),pxt(r);let n=0,s=[],i=this;return new gxt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!mxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function mxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((hwr,ZNe)=>{"use strict";var{kConstruct:Ext}=Kt(),{kEnumerableProperty:ZE}=Ze(),{iteratorMixin:Cxt,isValidHeaderName:ZQ,isValidHeaderValue:zNe}=ao(),{webidl:wt}=ns(),sz=Q("node:assert"),Kv=Q("node:util");function JNe(t){return t===10||t===13||t===9||t===32}function jNe(t){let e=0,r=t.length;for(;r>e&&JNe(t.charCodeAt(r-1));)--r;for(;r>e&&JNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function KNe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});iz(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)iz(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function iz(t,e,r){if(r=jNe(r),ZQ(e)){if(!zNe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(XNe(t)==="immutable")throw new TypeError("immutable");return Xv(t).append(e,r,!1)}function Ixt(t){let e=Xv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function $Ne(t,e){return t[0]<e[0]?-1:1}var $v=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":sRe(i)&&(r[s]=i);break;case"id":iRe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sRe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&iRe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oRe.exports={EventSourceStream:Vz}});var gRe=C((Uwr,fRe)=>{"use strict";var{pipeline:Mkt}=Q("node:stream"),{fetching:Lkt}=sw(),{makeRequest:Ukt}=tC(),{webidl:Vs}=ns(),{EventSourceStream:Pkt}=aRe(),{parseMIMEType:Okt}=Aa(),{createFastMessageEvent:Hkt}=b_(),{isNetworkError:cRe}=tw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:ARe}=ao(),uRe=!1,lRe=3e3,lw=0,dRe=1,dw=2,Gkt="anonymous",qkt="use-credentials",lC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=lw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),uRe||(uRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=ARe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Gkt;r.withCredentials===!0&&(o=qkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ARe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Ukt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===dw)return;this.#r=lw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!cRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Okt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Pkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Hkt(c.type,c.options))}});Mkt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Lkt(e)}#A(){this.#r!==dw&&(this.#r=lw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===lw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==dw&&(this.#r=dw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},hRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:lw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1}};Object.defineProperties(lC,hRe);Object.defineProperties(lC.prototype,hRe);Object.defineProperties(lC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>lRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);fRe.exports={EventSource:lC,defaultReconnectionTime:lRe}});var yRe=C((Pwr,pe)=>{"use strict";var Ykt=Xd(),mRe=uQ(),Vkt=Mg(),Wkt=twe(),Jkt=iwe(),zkt=Pg(),jkt=xW(),Kkt=wW(),$kt=Ywe(),Xkt=$we(),Zkt=e1e(),ERe=Xe(),M_=Ze(),{InvalidArgumentError:F_}=ERe,dC=F1e(),evt=wg(),tvt=fJ(),{MockCallHistory:rv Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return _2t(e,r).catch(n=>{throw $Te?txe(n,$Te):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=PQ().Response;pe.exports.Request=qE().Request;pe.exports.FormData=Ok().FormData;var{setGlobalOrigin:F2t,getGlobalOrigin:M2t}=MV();pe.exports.setGlobalOrigin=F2t;pe.exports.getGlobalOrigin=M2t;var{CacheStorage:L2t}=FNe(),{kConstruct:U2t}=Kt();pe.exports.caches=new L2t(U2t);var{deleteCookie:P2t,getCookies:O2t,getSetCookies:H2t,setCookie:G2t,parseCookie:q2t}=zNe();pe.exports.deleteCookie=P2t;pe.exports.getCookies=O2t;pe.exports.getSetCookies=H2t;pe.exports.setCookie=G2t;pe.exports.parseCookie=q2t;var{parseMIMEType:Y2t,serializeAMimeType:V2t}=ia();pe.exports.parseMIMEType=Y2t;pe.exports.serializeAMimeType=V2t;var{CloseEvent:W2t,ErrorEvent:J2t,MessageEvent:z2t}=s_(),{WebSocket:j2t,ping:K2t}=TTe();pe.exports.WebSocket=j2t;pe.exports.CloseEvent=W2t;pe.exports.ErrorEvent=J2t;pe.exports.MessageEvent=z2t;pe.exports.ping=K2t;pe.exports.WebSocketStream=MTe().WebSocketStream;pe.exports.WebSocketError=XJ().WebSocketError;pe.exports.request=$Q(eC.request);pe.exports.stream=$Q(eC.stream);pe.exports.pipeline=$Q(eC.pipeline);pe.exports.connect=$Q(eC.connect);pe.exports.upgrade=$Q(eC.upgrade);pe.exports.MockClient=B2t;pe.exports.MockCallHistory=b2t;pe.exports.MockCallHistoryLog=Q2t;pe.exports.MockPool=S2t;pe.exports.MockAgent=w2t;pe.exports.SnapshotAgent=N2t;pe.exports.mockErrors=T2t;var{EventSource:$2t}=KTe();pe.exports.EventSource=$2t;function X2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=X2t});var XQ=E(dh=>{"use strict";dh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");dh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");dh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";dh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);dh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);dh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());dh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var sxe=E((Zbr,nxe)=>{"use strict";var{asciiLowercase:E_,solelyContainsHTTPTokenCodePoints:Z2t,soleyContainsHTTPQuotedStringTokenCodePoints:ekt}=XQ();nxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=E_(String(e)),this._map.get(e)}has(e){return e=E_(String(e)),this._map.has(e)}set(e,r){if(e=E_(String(e)),r=String(r),!Z2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!ekt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=E_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var axe=E((eQr,oxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:tkt,removeTrailingHTTPWhitespace:ixe,isHTTPWhitespaceChar:rkt,solelyContainsHTTPTokenCodePoints:sz,soleyContainsHTTPQuotedStringTokenCodePoints:nkt,asciiLowercase:iz,collectAnHTTPQuotedString:skt}=XQ();oxe.exports=t=>{t=tkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!sz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ixe(n),n.length===0||!sz(n))return null;let s={type:iz(r),subtype:iz(n),parameters:new Map};for(;e<t.length;){for(++e;rkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=iz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=skt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ixe(o),o==="")continue}i.length>0&&sz(i)&&nkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Axe=E((tQr,cxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:ikt}=XQ();cxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!ikt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var hxe=E((nQr,dxe)=>{"use strict";var okt=sxe(),akt=axe(),ckt=Axe(),{asciiLowercase:uxe,solelyContainsHTTPTokenCodePoints:lxe}=XQ();dxe.exports=class{constructor(e){e=String(e);let r=akt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new okt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=uxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!lxe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=uxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!lxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return ckt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var Dxe=E(Qn=>{"use strict";var dz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Dkt=dz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?nj:f.type==="?"?oj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=_vt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==sj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Mvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?nj:r.dot?kvt:vvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Uvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Gs))}),o.filter(a=>a!==Gs).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;ij.sep!=="/"&&(e=e.split(ij.sep).join("/")),e=e.split(eDe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return go.defaults(e).Minimatch}};go.Minimatch=aC});var cDe=E((r1r,aDe)=>{aDe.exports=oDe;var Aj=b("fs"),{EventEmitter:Ovt}=b("events"),{Minimatch:cj}=nDe(),{resolve:Hvt}=b("path");function Gvt(t,e){return new Promise((r,n)=>{Aj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function sDe(t,e){return new Promise((r,n)=>{(e?Aj.stat:Aj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?sDe(t,!1):null):r(null):r(o)})})}async function*iDe(t,e,r,n,s,i){let o=await Gvt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await sDe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*iDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*qvt(t,e,r,n){yield*iDe("",t,e,r,n,!0)}function Yvt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var k_=class extends Ovt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Yvt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new cj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new cj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new cj(i,{dot:!0}))}this.iterator=qvt(Hvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return hvt(e,r).catch(n=>{throw pRe?IRe(n,pRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=tw().Response;pe.exports.Request=tC().Request;pe.exports.FormData=sv().FormData;var{setGlobalOrigin:fvt,getGlobalOrigin:gvt}=u7();pe.exports.setGlobalOrigin=fvt;pe.exports.getGlobalOrigin=gvt;var{CacheStorage:pvt}=rxe(),{kConstruct:mvt}=Kt();pe.exports.caches=new pvt(mvt);var{deleteCookie:Evt,getCookies:Cvt,getSetCookies:Ivt,setCookie:yvt,parseCookie:Bvt}=fxe();pe.exports.deleteCookie=Evt;pe.exports.getCookies=Cvt;pe.exports.getSetCookies=Ivt;pe.exports.setCookie=yvt;pe.exports.parseCookie=Bvt;var{parseMIMEType:bvt,serializeAMimeType:Qvt}=Aa();pe.exports.parseMIMEType=bvt;pe.exports.serializeAMimeType=Qvt;var{CloseEvent:wvt,ErrorEvent:Svt,MessageEvent:Nvt}=b_(),{WebSocket:Tvt,ping:xvt}=Jxe();pe.exports.WebSocket=Tvt;pe.exports.CloseEvent=wvt;pe.exports.ErrorEvent=Svt;pe.exports.MessageEvent=Nvt;pe.exports.ping=xvt;pe.exports.WebSocketStream=tRe().WebSocketStream;pe.exports.WebSocketError=Oz().WebSocketError;pe.exports.request=hw(dC.request);pe.exports.stream=hw(dC.stream);pe.exports.pipeline=hw(dC.pipeline);pe.exports.connect=hw(dC.connect);pe.exports.upgrade=hw(dC.upgrade);pe.exports.MockClient=tvt;pe.exports.MockCallHistory=rvt;pe.exports.MockCallHistoryLog=nvt;pe.exports.MockPool=ivt;pe.exports.MockAgent=svt;pe.exports.SnapshotAgent=ovt;pe.exports.mockErrors=avt;var{EventSource:Rvt}=gRe();pe.exports.EventSource=Rvt;function Dvt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Dvt});var fw=C(dh=>{"use strict";dh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");dh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");dh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";dh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);dh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);dh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());dh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var bRe=C((Gwr,BRe)=>{"use strict";var{asciiLowercase:L_,solelyContainsHTTPTokenCodePoints:kvt,soleyContainsHTTPQuotedStringTokenCodePoints:vvt}=fw();BRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=L_(String(e)),this._map.get(e)}has(e){return e=L_(String(e)),this._map.has(e)}set(e,r){if(e=L_(String(e)),r=String(r),!kvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!vvt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=L_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var SRe=C((qwr,wRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:_vt,removeTrailingHTTPWhitespace:QRe,isHTTPWhitespaceChar:Fvt,solelyContainsHTTPTokenCodePoints:Wz,soleyContainsHTTPQuotedStringTokenCodePoints:Mvt,asciiLowercase:Jz,collectAnHTTPQuotedString:Lvt}=fw();wRe.exports=t=>{t=_vt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Wz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=QRe(n),n.length===0||!Wz(n))return null;let s={type:Jz(r),subtype:Jz(n),parameters:new Map};for(;e<t.length;){for(++e;Fvt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Jz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Lvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=QRe(o),o==="")continue}i.length>0&&Wz(i)&&Mvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var TRe=C((Ywr,NRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Uvt}=fw();NRe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!Uvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var kRe=C((Wwr,DRe)=>{"use strict";var Pvt=bRe(),Ovt=SRe(),Hvt=TRe(),{asciiLowercase:xRe,solelyContainsHTTPTokenCodePoints:RRe}=fw();DRe.exports=class{constructor(e){e=String(e);let r=Ovt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Pvt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=xRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!RRe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=xRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!RRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Hvt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KRe=C(Nn=>{"use strict";var ej=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),l_t=ej(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Wj:f.type==="?"?jj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=mFt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+Z,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=Z;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");Z=Fe;let ke=Z===""&&r!==Jj?"(?:$|\\/)":"";s=v+z+Z+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Jj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return CFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Wj:r.dot?gFt:pFt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?yFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ws))}),o.filter(a=>a!==Ws).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;zj.sep!=="/"&&(e=e.split(zj.sep).join("/")),e=e.split(C2e),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Co.defaults(e).Minimatch}};Co.Minimatch=CC});var N2e=C((WSr,S2e)=>{S2e.exports=w2e;var Xj=Q("fs"),{EventEmitter:bFt}=Q("events"),{Minimatch:$j}=B2e(),{resolve:QFt}=Q("path");function wFt(t,e){return new Promise((r,n)=>{Xj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function b2e(t,e){return new Promise((r,n)=>{(e?Xj.stat:Xj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?b2e(t,!1):null):r(null):r(o)})})}async function*Q2e(t,e,r,n,s,i){let o=await wFt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await b2e(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Q2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*SFt(t,e,r,n){yield*Q2e("",t,e,r,n,!0)}function NFt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var $_=class extends bFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=NFt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new $j(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new $j(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new $j(i,{dot:!0}))}this.iterator=SFt(QFt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(b1).map(q=>q.replace(Q1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,B)}class AI{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):uI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):uI(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Mp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,xn;function Bo(Hh,...mI){if(Hh)return Pe?xn(Hh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Op=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Op):Mt._tasks.push(Op),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Hh,mI)=>{Ir=Hh,xn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var xn=Ue[Nt],Bo=V.indexOf(xn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),xn.callback(be,...Pe),be!=null&&Bt("error",be,xn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Pp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,xn)=>{if(Ir)return Nt(Ir);Pe(xn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Pp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var xn=te(yo(Ue));F(be,xn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Oh("saturated")},unsaturated:{writable:!1,value:Oh("unsaturated")},empty:{writable:!1,value:Oh("empty")},drain:{writable:!1,value:Oh("drain")},error:{writable:!1,value:Oh("error")}}),Mt}function lI(Q,B){return Mp(Q,1,B)}function Lp(Q,B,w){return Mp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var wa=m(Io,4);function Up(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=cu(),wa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[au]}}function w1(...Q){return Up(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var X=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(EDe=global[rs]||[],IDe(vr,EDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||CDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,L_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),CDe()}return Object.defineProperty(e,L_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var EDe;global[rs]||IDe(global,vr[rs]);hj.exports=lj(Zvt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(hj.exports=lj(vr),vr.__patched=!0);function lj(t){$vt(t),t.gracefulify=lj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?cC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?cC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Xvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?cC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function cC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),dj()}var M_;function CDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);dj()}function dj(){if(clearTimeout(M_),M_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}M_===void 0&&(M_=setTimeout(dj,0))}}});var U_=E((a1r,yDe)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Zke.exports={AggregateError:jj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Kj=E((mSr,eve)=>{"use strict";eve.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Is=E((ESr,nve)=>{"use strict";var{format:BUt,inspect:nF}=Kj(),{AggregateError:bUt}=Tr(),QUt=globalThis.AggregateError||bUt,wUt=Symbol("kIsNodeError"),SUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],NUt=/^([A-Z][a-z0-9]*)+$/,TUt="__node_internal_",sF={};function ap(t,e){if(!t)throw new sF.ERR_INTERNAL_ASSERTION(e)}function tve(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function xUt(t,e,r){if(typeof e=="function")return ap(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:BUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(xUt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[wUt]=!0,sF[t]=n}function rve(t){let e=TUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function RUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new QUt([e,t],e.message);return r.code=e.code,r}return t||e}var $j=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new sF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)ap(typeof c=="string","All expected entries have to be of type string"),SUt.includes(c)?s.push(c.toLowerCase()):NUt.test(c)?i.push(c):(ap(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=xX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=xX(" "+s+"="+n[s]+`
`);return kt.from(r)};jC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};jC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&HYt,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),zYt(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=kM+WYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(wOe,r,f1),kt.copy(UYt,r,RX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(NOe(r),6),148),r)};jC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-kM,i=zC(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=VYt(s),d=e[157]===0?null:zC(e,157,100,r),h=zC(e,265,32),f=zC(e,297,32),p=Dh(e,329,8),I=Dh(e,337,8),m=NOe(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(GYt(e))e[345]&&(i=zC(e,345,155,r)+"/"+i);else if(!qYt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function GYt(t){return kt.equals(wOe,t.subarray(f1,f1+6))}function qYt(t){return kt.equals(PYt,t.subarray(f1,f1+6))&&kt.equals(OYt,t.subarray(RX,RX+2))}function YYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function VYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function WYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function SOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function NOe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kh(t,e){return t=t.toString(8),t.length>e?LYt.slice(0,e)+" ":MYt.slice(0,e-t.length)+t+" "}function JYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function zYt(t,e,r){t.toString(8).length>11?JYt(t,e,r):kt.write(e,kh(t,11),r)}function jYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return jYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=YYt(SOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function zC(t,e,r,n){return kt.toString(t.subarray(e,SOe(t,0,e,e+r)),n)}function xX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var kOe=E((YTr,DOe)=>{var{Writable:KYt,Readable:$Yt,getStreamError:TOe}=TX(),XYt=hX(),xOe=qC(),KC=DX(),ZYt=xOe.alloc(0),vX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new XYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return ZYt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return xOe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},_X=class extends $Yt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(TOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=ROe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},FX=class extends KYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function xce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",z1(t,e));process.stdout.write(vO.EOL),Na("set-output",{name:t},Bc(e))}function Xl(t){process.exitCode=kO.Failure,Pi(t)}function Oa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Na("debug",{},t)}function Pi(t,e={}){Na("error",V1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Na("warning",V1(e),t instanceof Error?t.toString():t)}function Rce(t,e={}){Na("notice",V1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+vO.EOL)}function jje(t){ZM("group",t)}function Kje(){ZM("endgroup")}function ZN(t,e){return zje(this,void 0,void 0,function*(){jje(t);let r;try{r=yield e()}finally{Kje()}return r})}function wu(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",z1(t,e));Na("save-state",{name:t},Bc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as uz from"fs";import*as lz from"path";import*as y_ from"os";import{readFileSync as $je,existsSync as Xje}from"fs";import{EOL as Zje}from"os";var Lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Xje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse($je(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Zje}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var UO=fe(Fce(),1),Mce=fe(YN(),1),dKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Lce(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Uce(t){return new UO.HttpClient().getAgent(t)}function hKe(t){return new UO.HttpClient().getAgentDispatcher(t)}function Pce(t){let e=hKe(t);return(n,s)=>dKe(this,void 0,void 0,function*(){return(0,Mce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Oce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function oT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>oT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Hce(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Gce(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var qce=Function.bind,Yce=qce.bind(qce);function Vce(t,e,r){let n=Yce(Gce,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Yce(Hce,null). Line truncated
`+b);let[,F]=S;return F.replace(/\s/g,"").split(P1).map(G=>G.replace(O1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Wp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,kn;function So(Hh,...xI){if(Hh)return Ye?kn(Hh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var Kp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(Kp):Ut._tasks.push(Kp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Hh,xI)=>{Br=Hh,kn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var kn=qe[Nt],So=Y.indexOf(kn);So===0?Y.shift():So>0&&Y.splice(So,1),kn.callback(be,...Ye),be!=null&&Bt("error",be,kn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function jp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,kn)=>{if(Br)return Nt(Br);Ye(kn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var kn=te(wo(qe));F(be,kn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Oh("saturated")},unsaturated:{writable:!1,value:Oh("unsaturated")},empty:{writable:!1,value:Oh("empty")},drain:{writable:!1,value:Oh("drain")},error:{writable:!1,value:Oh("error")}}),Ut}function bI(w,b){return Wp(w,1,b)}function Jp(w,b,S){return Wp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function zp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function H1(...w){return zp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var X=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(L2e=global[is]||[],P2e(Fr,L2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||U2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,rF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),U2e()}return Object.defineProperty(e,rF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var L2e;global[is]||P2e(global,Fr[is]);rK.exports=eK(MFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(rK.exports=eK(Fr),Fr.__patched=!0);function eK(t){_Ft(t),t.gracefulify=eK,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,Z){return typeof z=="function"&&(Z=z,z=null),te(v,z,Z);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?IC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=0),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,Z){typeof z=="function"&&(Z=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,Z);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?IC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=FFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function IC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),tK()}var tF;function U2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);tK()}function tK(){if(clearTimeout(tF),tF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}tF===void 0&&(tF=setTimeout(tK,0))}}});var nF=C(($Sr,O2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};E_e.exports={AggregateError:UK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var PK=C((aTr,C_e)=>{"use strict";C_e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=C((cTr,B_e)=>{"use strict";var{format:iOt,inspect:BF}=PK(),{AggregateError:oOt}=Rr(),aOt=globalThis.AggregateError||oOt,cOt=Symbol("kIsNodeError"),AOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],uOt=/^([A-Z][a-z0-9]*)+$/,lOt="__node_internal_",bF={};function mp(t,e){if(!t)throw new bF.ERR_INTERNAL_ASSERTION(e)}function I_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function dOt(t,e,r){if(typeof e=="function")return mp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:iOt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(dOt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[cOt]=!0,bF[t]=n}function y_e(t){let e=lOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function hOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aOt([e,t],e.message);return r.code=e.code,r}return t||e}var OK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new bF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)mp(typeof c=="string","All expected entries have to be of type string"),AOt.includes(c)?s.push(c.toLowerCase()):uOt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=CZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=CZ(" "+s+"="+n[s]+`
`);return kt.from(r)};aI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};aI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&N7t,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),_7t(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=$M+k7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(Y3e,r,R1),kt.copy(Q7t,r,IZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(W3e(r),6),148),r)};aI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-$M,i=oI(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=D7t(s),d=e[157]===0?null:oI(e,157,100,r),h=oI(e,265,32),f=oI(e,297,32),g=Dh(e,329,8),E=Dh(e,337,8),m=W3e(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(T7t(e))e[345]&&(i=oI(e,345,155,r)+"/"+i);else if(!x7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function T7t(t){return kt.equals(Y3e,t.subarray(R1,R1+6))}function x7t(t){return kt.equals(w7t,t.subarray(R1,R1+6))&&kt.equals(S7t,t.subarray(IZ,IZ+2))}function R7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function D7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function k7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function V3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function W3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kh(t,e){return t=t.toString(8),t.length>e?b7t.slice(0,e)+" ":B7t.slice(0,e-t.length)+t+" "}function v7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function _7t(t,e,r){t.toString(8).length>11?v7t(t,e,r):kt.write(e,kh(t,11),r)}function F7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return F7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=R7t(V3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function oI(t,e,r,n){return kt.toString(t.subarray(e,V3e(t,0,e,e+r)),n)}function CZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $3e=C((_Rr,K3e)=>{var{Writable:M7t,Readable:L7t,getStreamError:J3e}=EZ(),U7t=nZ(),z3e=tI(),cI=yZ(),P7t=z3e.alloc(0),bZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new U7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return P7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return z3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},QZ=class extends L7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(J3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=j3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},wZ=class extends M7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function QAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",uS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},wc(e))}function ed(t){process.exitCode=t3.Failure,Yi(t)}function Ga(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",aS(e),t instanceof Error?t.toString():t)}function ze(t,e={}){Ra("warning",aS(e),t instanceof Error?t.toString():t)}function wAe(t,e={}){Ra("notice",aS(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+r3.EOL)}function SAe(t){EL("group",t)}function NAe(){EL("endgroup")}function gT(t,e){return A$e(this,void 0,void 0,function*(){SAe(t);let r;try{r=yield e()}finally{NAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",uS(t,e));Ra("save-state",{name:t},wc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as Xz from"fs";import*as Zz from"path";import*as O_ from"os";import{readFileSync as u$e,existsSync as l$e}from"fs";import{EOL as d$e}from"os";var zm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l$e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u$e(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${d$e}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var a3=ge(kAe(),1),vAe=ge(oT(),1),w$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function _Ae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function FAe(t){return new a3.HttpClient().getAgent(t)}function S$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function MAe(t){let e=S$e(t);return(n,s)=>w$e(this,void 0,void 0,function*(){return(0,vAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function LAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function td(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function BT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>BT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function UAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function PAe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var OAe=Function.bind,HAe=OAe.bind(OAe);function GAe(t,e,r){let n=HAe(PAe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=HAe(UAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var t$e=class extends Error{constructor(t,e,r){super(e$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},r$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],n$e=["query","method","url"],pAe=/\/api\/v3\/?$/;function s$e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(n$e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>r$e.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return pAe.test(i)&&(s.url=i.replace(pAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new t$e(s,a,o.data)}return o.data.data})}function zO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>s$e(r,s,i),{defaults:zO.bind(null,r),endpoint:r.endpoint})}var Rzt=zO(Sy,{headers:{"user-agent":`octokit-graphql.js/${ZKe} ${Zl()}`},method:"POST",url:"/graphql"});function mAe(t){return zO(t,{method:"POST",url:"/graphql"})}var jO="(?:[a-zA-Z0-9_-]+)",EAe="\\.",CAe=new RegExp(`^${jO}${EAe}${jO}${EAe}${jO}$`),i$e=CAe.test.bind(CAe);async function o$e(t){let e=i$e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function a$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function c$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=a$e(t),e(s)}var IAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(o$e.bind(null,e),{hook:c$e.bind(null,e)})};var KO="7.0.6";var yAe=()=>{},A$e=console.warn.bind(console),u$e=console.error.bind(console);function l$e(t={}){return typeof t.debug!="function"&&(t.debug=yAe),typeof t.info!="function"&&(t.info=yAe),typeof t.warn!="function"&&(t.warn=A$e),typeof t.error!="function"&&(t.error=u$e),t}var BAe=`octokit-core.js/${KO} ${Zl()}`,AT=class{static VERSION=KO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Wce.Collection,n={baseUrl:Sy.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${BAe}`:BAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=mAe(this.request).defaults(n),this.log=l$e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=IAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var $O="17.0.0";var d$e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`)}var fXe=class extends Error{constructor(t,e,r){super(hXe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},gXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],pXe=["query","method","url"],hue=/\/api\/v3\/?$/;function mXe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(pXe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>gXe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return hue.test(i)&&(s.url=i.replace(hue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new fXe(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>mXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var pKt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${dXe} ${td()}`},method:"POST",url:"/graphql"});function fue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",gue="\\.",pue=new RegExp(`^${E3}${gue}${E3}${gue}${E3}$`),EXe=pue.test.bind(pue);async function CXe(t){let e=EXe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function IXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function yXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=IXe(t),e(s)}var mue=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(CXe.bind(null,e),{hook:yXe.bind(null,e)})};var C3="7.0.6";var Eue=()=>{},BXe=console.warn.bind(console),bXe=console.error.bind(console);function QXe(t={}){return typeof t.debug!="function"&&(t.debug=Eue),typeof t.info!="function"&&(t.info=Eue),typeof t.warn!="function"&&(t.warn=BXe),typeof t.error!="function"&&(t.error=bXe),t}var Cue=`octokit-core.js/${C3} ${td()}`,wT=class{static VERSION=C3;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new qAe.Collection,n={baseUrl:Py.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Cue}`:Cue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=fue(this.request).defaults(n),this.log=QXe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=mue(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var I3="17.0.0";var wXe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Dy(i));return n.searchPaths.push(...i3(n.patterns)),n})}static stat(e,r,n){return u3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield qm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield qm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield qm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var W$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function ZAe(t,e){return W$e(this,void 0,void 0,function*(){return yield gT.create(t,e)})}var Vle=fe(Uy(),1);import*as DT from"crypto";import*as Jm from"fs";import*as yf from"path";import*as Wle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var xT=2,RT=5e3,D3=5e3,k3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Yle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",v3="manifest.txt",BKt=10*Math.pow(1024,3);var Wm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},rtt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},ntt="1.0";function Hy(){return Wm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=yf.join(n,"actions","temp")}let r=yf.join(e,DT.randomUUID());return yield df(r),r})}function Uc(t){return Jm.statSync(t).size}function _3(t){return Wm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield ZAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=rtt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Gy(t){return Wm(this,void 0,void 0,function*(){return Wle.promisify(Jm.unlink)(t)})}function Jle(t){return Wm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Pa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Wm(this,void 0,void 0,function*(){let t=yield Jle("zstd",["--quiet"]),e=Vle.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function sd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function zle(){return Wm(this,void 0,void 0,function*(){return Jm.existsSync(k3)?k3:(yield Jle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function F3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(ntt),DT.createHash("sha256").update(n.join("|")).digest("hex")}function jle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Q0 from"fs";import{URL as Oct}from"url";var Pc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as stt}from"node:os";import itt from"node:util";import ott from"node:process";function Kle(t,...e){ott.stderr.write(`${itt.format(t,...e)}${stt}`)}import Yy from"node:process";function vT(t){return Yy.env[t]}var $le=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,Xle=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,_T=!0;var Zle=vT("DEBUG"),tde,M3=[],L3=[],FT=[];Zle&&U3(Zle);var rde=Object.assign(t=>nde(t),{enable:U3,enabled:P3,disable:att,log:Kle});function U3(t){tde=t,M3=[],L3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L3.push(r.substring(1)):M3.push(r);for(let r of FT)r.enabled=P3(r.namespace)}function P3(t){if(t.endsWith("*"))return!0;for(let e of L3)if(ede(t,e))return!1;for(let e of M3)if(ede(t,e))return!0;return!1}function ede(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function att(){let t=tde||"";return U3(""),t}function nde(t){let e=Object.assign(r,{enabled:P3(t),destroy:ctt,log:rde.log,namespace:t,extend:Att});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ctt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function Att(t){let e=nde(`${this.namespace}:${t}`);return e.log=this.log,e}var jm=rde;var O3=["verbose","info","warning","error"],sde={verbose:400,info:300,warning:200,error:100};function ide(t,e){e.log=(...r)=>{t.log(...r)}}function ode(t){return O3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=jm(t.namespace);s.log=(...u)=>{jm.log(...u)};function i(u){if(u&&!ode(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${O3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);jm.enable(l.join(","))}r&&(ode(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function o(u){return!!(n&&sde[u.level]<=sde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(ide(u,d),o(d)){let h=jm.disable();jm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return ide(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var ade=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),utt=ade.logger;function Vy(t){return ade.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ltt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*dtt(t){for(let e of t.values())yield[e.name,e.value]}var H3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(LT(e),{name:e,value:ltt(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ptt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Km(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import V3 from"node:http";import W3 from"node:https";import ude from"node:zlib";import{Transform as mtt}from"node:stream";var si=Vy("ts-http-runtime");var Ett={};function Wy(t){return t&&typeof t.pipe=="function"}function lde(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function dde(t){return t&&typeof t.byteLength=="number"}var OT=class extends mtt{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},J3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Pc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Ya;si.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Btt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new OT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Ctt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ytt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=lde(a));let u=Promise.resolve();Wy(c)&&(u=lde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?V3.request(a,c):W3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Pc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):dde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W3.globalAgent;let s=e.tlsSettings??Ett,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new W3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Ctt(t){let e=Gi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function Itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ude.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ude.createInflate();return t.pipe(n),n}return t}function ytt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Btt(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:dde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function hde(){return new J3}function HT(){return hde()}var z3="logPolicy";function GT(t={}){let e=t.logger??si.info,r=new Ya({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:z3,asy Line truncated
`;return e}function qrt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function Yrt(t){let e=0;for(let r of t){let n=qrt(r);if(n===void 0)return;e+=n}return e}async function Vrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Grt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Zm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Zm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Zm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var aZe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Kue(t,e){return aZe(this,void 0,void 0,function*(){return yield DT.create(t,e)})}var Gde=ge(Xy(),1);import*as zT from"crypto";import*as n0 from"fs";import*as Qf from"path";import*as qde from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var VT=2,WT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Hde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",uXt=10*Math.pow(1024,3),JT="cache read denied:";var r0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ert=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Crt="1.0";function tB(){return r0(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Qf.join(n,"actions","temp")}let r=Qf.join(e,zT.randomUUID());return yield gf(r),r})}function Oc(t){return n0.statSync(t).size}function s8(t){return r0(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Kue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Ert(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function rB(t){return r0(this,void 0,void 0,function*(){return qde.promisify(n0.unlink)(t)})}function Yde(t){return r0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Ha(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return r0(this,void 0,void 0,function*(){let t=yield Yde("zstd",["--quiet"]),e=Gde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function od(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Vde(){return r0(this,void 0,void 0,function*(){return n0.existsSync(r8)?r8:(yield Yde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function s0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Crt),zT.createHash("sha256").update(n.join("|")).digest("hex")}function Wde(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as _0 from"fs";import{URL as rut}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Irt}from"node:os";import yrt from"node:util";import Brt from"node:process";function Jde(t,...e){Brt.stderr.write(`${yrt.format(t,...e)}${Irt}`)}import sB from"node:process";function KT(t){return sB.env[t]}var zde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,jde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,$T=!0;var Kde=KT("DEBUG"),Xde,o8=[],a8=[],XT=[];Kde&&c8(Kde);var Zde=Object.assign(t=>ehe(t),{enable:c8,enabled:A8,disable:brt,log:Jde});function c8(t){Xde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of XT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if($de(t,e))return!1;for(let e of o8)if($de(t,e))return!0;return!1}function $de(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function brt(){let t=Xde||"";return c8(""),t}function ehe(t){let e=Object.assign(r,{enabled:A8(t),destroy:Qrt,log:Zde.log,namespace:t,extend:wrt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return XT.push(e),e}function Qrt(){let t=XT.indexOf(this);return t>=0?(XT.splice(t,1),!0):!1}function wrt(t){let e=ehe(`${this.namespace}:${t}`);return e.log=this.log,e}var i0=Zde;var u8=["verbose","info","warning","error"],the={verbose:400,info:300,warning:200,error:100};function rhe(t,e){e.log=(...r)=>{t.log(...r)}}function nhe(t){return u8.includes(t)}function ZT(t){let e=new Set,r=KT(t.logLevelEnvVarName),n,s=i0(t.namespace);s.log=(...u)=>{i0.log(...u)};function i(u){if(u&&!nhe(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);i0.enable(l.join(","))}r&&(nhe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&the[u.level]<=the[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(rhe(u,d),o(d)){let h=i0.disable();i0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return rhe(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var she=ZT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Srt=she.logger;function iB(t){return she.createClientLogger(t)}function ex(t){return t.toLowerCase()}function Nrt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Trt(t){for(let e of t.values())yield[e.name,e.value]}var l8=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(ex(e),{name:e,value:Nrt(r)})}get(e){return this._headersMap.get(ex(e))?.value}has(e){return this._ Line truncated
${krt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function o0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import ahe from"node:zlib";import{Transform as vrt}from"node:stream";var ci=iB("ts-http-runtime");var _rt={};function oB(t){return t&&typeof t.pipe=="function"}function che(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Ahe(t){return t&&typeof t.byteLength=="number"}var nx=class extends vrt{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Ja;ci.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=Urt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new nx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Frt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Mrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new nx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Lrt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=che(a));let u=Promise.resolve();oB(c)&&(u=che(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ahe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??_rt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Frt(t){let e=Ji();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function Mrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ahe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ahe.createInflate();return t.pipe(n),n}return t}function Lrt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function Urt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:Ahe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function uhe(){return new m8}function sx(){return uhe()}var E8="logPolicy";function ix(t={}){let e=t.logger??ci.info,r=new Ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`;return e}function ist(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function ost(t){let e=0;for(let r of t){let n=ist(r);if(n===void 0)return;e+=n}return e}async function ast(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(sst(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
\r
`,"utf-8")],s=Yrt(n);s&&t.headers.set("Content-Length",s),t.body=await ihe(n)}var Ky="multipartPolicy",Wrt=70,Jrt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zrt(t){if(t.length>Wrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Jrt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:Ky,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?zrt(r):r=Hrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Vrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var ohe=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Qer=ohe.logger;function Mo(t){return ohe.createClientLogger(t)}var Hc=Mo("core-rest-pipeline");function d8(t={}){return GT({logger:Hc.info,...t})}var h8=cx;function f8(t={}){return Ax(t)}import g8 from"node:os";import ad from"node:process";function ahe(){return"User-Agent"}async function che(t){if(ad&&ad.versions){let e=`${g8.type()} ${g8.release()}; ${g8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var dx="1.24.0";function rnt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Ahe(){return ahe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await che(e);let r=rnt(e);return t?`${t} ${r}`:r}var uhe=Ahe(),lhe="userAgentPolicy";function p8(t={}){let e=hx(t.userAgentPrefix);return{name:lhe,async sendRequest(r,n){return r.headers.has(uhe)||r.headers.set(uhe,await e),n(r)}}}var dhe=Symbol("rawContent");function m8(t){return typeof t[dhe]=="function"}function hhe(t){return m8(t)?t[dhe]():t}var fx=Ky;function E8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)m8(n.body)&&(n.body=hhe(n.body));return t.sendRequest(e,r)}}}var C8=ox;function I8(){return ax()}function y8(t={}){return VT(t)}function B8(){return WT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function b8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var lnt="The delay was aborted.";function r0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return b8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??lnt})}function cd(t){if(bf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function fhe(t){return bf(t)}function n0(){return Bf()}var Wt=_T;function Ad(t){return c8(t)}function w8(t,e){return ix(t,e)}var ghe="setClientRequestIdPolicy";function S8(t="x-ms-client-request-id"){return{name:ghe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function N8(t){return JT(t)}function T8(t){return zT(t)}var s0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function phe(t={}){let e=new x8(t.parentContext);return t.span&&(e=e.setValue(s0.span,t.span)),t.namespace&&(e=e.setValue(s0.namespace,t.namespace)),e}var x8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Ehe=fe(mhe(),1),px=Ehe.state;function dnt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function hnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:dnt(),tracingContext:phe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return px.instrumenterImplementation||(px.instrumenterImplementation=hnt()),px.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Fst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=Rst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Zhe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=Zhe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Xhe(t,i);continue}else if(t[i+1]==="?"){if(i=$he(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=vst(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Khe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Khe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Khe(t){return t===" "||t===" "||t===`
`||t==="\r"}function $he(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Xhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Tst='"',xst="'";function Rst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Tst||t[e]===xst)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Dst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Zhe(t,e){let r=wx(t,Dst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",AB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!_st(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function kst(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function vst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,kst(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function _st(t){return J8(t)}function Fst(t){return J8(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function AB(t){return t.startIndex+t[1].length}var efe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},tfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},rfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=u0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=t4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=r4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ci(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=u0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=u0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=r4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=ait(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=oit(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function hit(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function fit(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function git(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function pit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function mit(t,e,r=">"){Line truncated
`;function wit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Tfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function a4(t,e){let r="";e.format&&(r=Qit);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Wi(a)):a instanceof Wi&&n.push(a)}let s=wit(t,e),i=new Yc;return xfe(t,e,r,i,n,s)}function xfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=o4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=c4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Tfe(u,!1,e,n,i),h=Sit(A[":@"],e);n.push(d,h);let f=Tit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=o4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=Mx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Fx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Nfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Nfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Rfe(A[u],e):C=xfe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Sit(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=dd(t[s]),n=!0}return n?r:null}function Rfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=c4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Nit(s[":@"],e),a=Rfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Nit(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${dd(s)}"`}return r}function c4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Nfe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Tfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=o4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function Tit(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function o4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function A4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var xit={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ui(t){if(this.options=Object.assign({},xit,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=ost(n);s&&t.headers.set("Content-Length",s),t.body=await rfe(n)}var uB="multipartPolicy",cst=70,Ast=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ust(t){if(t.length>cst)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Ast.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Nx(){return{name:uB,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ust(r):r=nst(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ast(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Tx(){return rx()}var nfe=ZT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),drr=nfe.logger;function Oo(t){return nfe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ix({logger:qc.info,...t})}var L8=wx;function U8(t={}){return Sx(t)}import P8 from"node:os";import Ad from"node:process";function sfe(){return"User-Agent"}async function ife(t){if(Ad&&Ad.versions){let e=`${P8.type()} ${P8.release()}; ${P8.arch()}`;Ad.versions.bun?t.set("Bun",`${Ad.versions.bun} (${e})`):Ad.versions.deno?t.set("Deno",`${Ad.versions.deno} (${e})`):Ad.versions.node&&t.set("Node",`${Ad.versions.node} (${e})`)}}var xx="1.24.0";function Est(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function ofe(){return sfe()}async function Rx(t){let e=new Map;e.set("core-rest-pipeline",xx),await ife(e);let r=Est(e);return t?`${t} ${r}`:r}var afe=ofe(),cfe="userAgentPolicy";function O8(t={}){let e=Rx(t.userAgentPrefix);return{name:cfe,async sendRequest(r,n){return r.headers.has(afe)||r.headers.set(afe,await e),n(r)}}}var Afe=Symbol("rawContent");function H8(t){return typeof t[Afe]=="function"}function ufe(t){return H8(t)?t[Afe]():t}var Dx=uB;function G8(){let t=Nx();return{name:Dx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ufe(n.body));return t.sendRequest(e,r)}}}var q8=bx;function Y8(){return Qx()}function V8(t={}){return cx(t)}function W8(){return Ax()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Nst="The delay was aborted.";function d0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Nst})}function ud(t){if(Sf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function lfe(t){return Sf(t)}function h0(){return wf()}var Jt=$T;function ld(t){return k8(t)}function j8(t,e){return Bx(t,e)}var dfe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:dfe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return ux(t)}function X8(t){return lx(t)}var f0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(f0.span,t.span)),t.namespace&&(e=e.setValue(f0.namespace,t.namespace)),e}var Z8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var gfe=ge(ffe(),1),vx=gfe.state;function Tst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function xst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Tst(),tracingContext:hfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return vx.instrumenterImplementation||(vx.instrumenterImplementation=xst()),vx.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!$it(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Wit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Kfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Kfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=jfe(t,i);continue}else if(t[i+1]==="?"){if(i=zfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=jit(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Jfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Jfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Jfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function zfe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return tn("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function jfe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Yit='"',Vit="'";function Wit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yit||t[e]===Vit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Jit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Kfe(t,e){let r=Gx(t,Jit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Kit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function zit(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function jit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,zit(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Kit(t){return m4(t)}function $it(t){return m4(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bB(t){return t.startIndex+t[1].length}var $fe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Xfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Zfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=I0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=w4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=S4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new di(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=I0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=I0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=bot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=Bot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function xot(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Rot(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function Dot(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function kot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function vot(t,e,r=">"){Line truncated
`;function Hot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function wge(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=Oot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new $i(a)):a instanceof $i&&n.push(a)}let s=Hot(t,e),i=new Wc;return Sge(t,e,r,i,n,s)}function Sge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:wge(u,!1,e,n,i),h=Got(A[":@"],e);n.push(d,h);let f=Yot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=Zx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Xx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Qge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Qge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Nge(A[u],e):I=Sge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Got(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=fd(t[s]),n=!0}return n?r:null}function Nge(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=k4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=qot(s[":@"],e),a=Nge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function qot(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${fd(s)}"`}return r}function k4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Qge(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:wge(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${fd(A)}"`}return i}function Yot(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function R4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function v4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Vot={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function fi(t){if(this.options=Object.assign({},Vot,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new $i(r)):r instanceof $i&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Rit(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function u4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return a4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yc,r=Rit(t,this.options);return this.j2x(t,0,e,r).val}};ui.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:u4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=u4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=u4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+dd(e)+'"'};function Dit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=dd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=dd(t[n]),r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Wot(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Wot(t,this.options);return this.j2x(t,0,e,r).val}};fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:_4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=_4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};fi.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+fd(e)+'"'};function Jot(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}fi.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=fd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=fd(t[n]),r=!0)}return r?e:null};fi.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Yx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Vx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return qit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var En=Mo("storage-common");var Lo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Lo||(Lo={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Yit=new _f("The operation was aborted."),EB=class extends Vc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(En.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(En.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return En.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return En.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return En.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(En.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Lo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Yit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Vit="storageBrowserPolicy";function Ffe(){return{name:Vit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Wit="StorageCorrectContentLengthPolicy";function Mfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Wit,async sendRequest(e,r){return t(e),r(e)}}}var Jit="storageRetryPolicy",d0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jit=new _f("The operation was aborted.");function Lfe(t={}){let e=t.retryPolicyType??d0.retryPolicyType,r=t.maxTries??d0.maxTries,n=t.retryDelayInMs??d0.retryDelayInMs,s=t.maxRetryDelayInMs??d0.maxRetryDelayInMs,i=t.secondaryHost??d0.secondaryHost,o=t.tryTimeoutInMs??d0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of zit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>uR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=aR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=cR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return iat("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Bn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var pd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},oat=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=pd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:pd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):pd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:pd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:pd.maxRetryDelayInMs):pd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:pd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:pd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=oR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=gd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Bn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(Bn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Bn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Bn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return Bn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Bn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Bn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Bn.info(`RetryPolicy: Delay for ${s}ms`),AR(s,n,oat)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var aat="storageBrowserPolicy";function kge(){return{name:aat,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=gd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var cat="StorageCorrectContentLengthPolicy";function vge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:cat,async sendRequest(e,r){return t(e),r(e)}}}var Aat="storageRetryPolicy",B0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},uat=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],lat=new Lf("The operation was aborted.");function _ge(t={}){let e=t.retryPolicyType??B0.retryPolicyType,r=t.maxTries??B0.maxTries,n=t.retryDelayInMs??B0.retryDelayInMs,s=t.maxRetryDelayInMs??B0.maxRetryDelayInMs,i=t.secondaryHost??B0.secondaryHost,o=t.tryTimeoutInMs??B0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return Bn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of uat)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Kit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Jx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Yx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Vx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:$it,async sendRequest(i,o){return e(i),o(i)}}}var Xit="storageRequestFailureDetailsParserPolicy";function Ufe(){return{name:Xit,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as Zit}from"node:crypto";var zx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Zit("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Va="",p4="*",eot=1*1024*1024;var tot=4*eot;var Pfe="AES256",Ofe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Hfe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Gfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],qfe="BlobUsesCustomerSpecifiedEncryption",Yfe="BlobDoesNotUseCustomerSpecifiedEncryption",Vfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function rot(t){let e=[not,Wfe,sot,iot,oot,aot,Aot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>cot(s));return{wrappedPolicies:V8(r),afterRetry:n}}}}function m4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?W8(e):f4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:Hfe,additionalAllowedQueryParameters:Gfe,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C8}),s.addPolicy(Mfe()),s.addPolicy(Lfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Ufe()),s.addPolicy(Ffe());let a=rot(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E4(t);Yi(c)?s.addPolicy(i0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ka(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function nct(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function sct(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function ict(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function oct(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function act(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function cct(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ka(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:Kx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var kB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=n0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};B0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Dct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},VH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ipe(t,e,r){return Dct(this,void 0,void 0,function*(){var n;let s=new $a(t),i=s.getBlockBlobClient(),o=new VH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new VR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as ape from"buffer";import*as uA from"fs";import*as cpe from"stream";import*as Ape from"util";var WR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function JR(t){return t?t>=200&&t<300:!1}function kct(t){return t?t>=500:!0}function vct(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function _ct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ope(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=xT,a=RT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!kct(d)))return l;if(d&&(h=vct(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield _ct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield ope(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof _c)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function b0(t,e){return WR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield ope(r,n,o=>o.message.statusCode,s,i)})}var Go=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Fct(t,e){return Go(this,void 0,void 0,function*(){yield Ape.promisify(cpe.pipeline)(t.message,e)})}var zR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return di(this,void 0,void 0,function*(){let n=new Oct(t),s=hpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lpe(t,e,s):s.concurrentBlobDownloads?yield upe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Ipe(t,e,r){return di(this,void 0,void 0,function*(){let n=zH(),s=zm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function Epe(t,e){return`bytes ${t}-${e}/*`}function Yct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Epe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Epe(n,s)},o=yield b0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!JR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Vct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Uc(r),i=qB(`caches/${e.toString()}`),o=Q0.openSync(r,"r"),a=WH(n),c=F3("uploadConcurrency",a.uploadConcurrency),A=F3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Yct(t,i,()=>Q0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{Q0.closeSync(o)}})}function Wct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return di(this,void 0,void 0,function*(){if(WH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ipe(r,e,n)}else{let i=zH();H("Upload cache"),yield Vct(i,t,e,n),H("Commiting cache");let o=Uc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Wct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var hme=fe(H9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var V9=fe(At(),1),W9=fe(At(),1),ume=fe(At(),1),lme=fe(At(),1),dme=fe(At(),1);var G9=fe(At(),1),q9=fe(At(),1),ame=fe(At(),1),cme=fe(At(),1),Ame=fe(At(),1),Y9=class extends Ame.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,cme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ame.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new Y9;var J9=class extends dme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>MD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,lme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ume.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(MD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var O0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function mme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function dG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function Eme(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OD(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),mme(s),A==="v2"?yield Alt(s,i,o,a,c):yield clt(s,i,o,a,c)})}function clt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)dG(d);let u=yield qy(),l="";try{let d=yield Cpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),sd(u)),H(`Archive Path: ${l}`),yield jH(d.archiveLocation,l,a),Oa()&&(yield sb(l,u));let h=Uc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield uG(l,u),$("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof _c&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function Alt(t,e,r,n){return O0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)dG(l);let u="";try{let l=aG(),d=yield qy(),h={key:i,restoreKeys:o,version:zm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?$(`Cache hit for restore-key: ${f.matchedKey}`):$(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),sd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield jH(f.signedDownloadUrl,u,a);let I=Uc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Oa()&&(yield sb(u,d)),yield uG(u,d),$("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof _c&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function HD(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),mme(n),dG(s),a==="v2"?yield llt(n,s,i,o):yield ult(n,s,i,o)})}function ult(t,e,r){return O0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield _3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield Hy(),I=ib.join(p,sd(d));H(`Archive Path: ${I}`);try{yield lG(p,f,d),Oa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Uc(I);if(H(`File Size: ${C}`),C>m&&!JH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield Ipe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new bd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield KH(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===bd.name Line truncated
See ${r.getDocumentationLink()}`;Cme.push(n),Xl(n)}function yme(){wu("deprecation-collector_deprecations",JSON.stringify(fG)),wu("deprecation-collector_errors",JSON.stringify(Cme))}import*as YD from"path";var Bme="GRADLE_ACTION_ID";var zD=".setup-gradle",ab=class t{getDependencyGraphOption(){let e=dr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return pA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return flt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,bme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return YD.resolve(Yu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new VD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var H0=class{isCacheDisabled(){return Eme()?pA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&pA("cache-read-only")}isCacheWriteOnly(){return pA("cache-write-only")}isCacheOverwriteExisting(){return pA("cache-overwrite-existing")}isCacheStrictMatch(){return pA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ob("gradle-home-cache-cleanup");if(e!==void 0)return qD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var ec=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return pA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return ob("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ob("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ob("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ob("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new VD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},VD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},WD=class{getGradleVersion(){re Line truncated
`+n(i)+s(i),a=dat("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>uR(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=aR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=cR(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:hat,async sendRequest(i,o){return e(i),o(i)}}}var fat="storageRequestFailureDetailsParserPolicy";function Fge(){return{name:fat,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as gat}from"node:crypto";var lR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return gat("sha256",this.key).update(e,"utf8").digest("base64")}};var dR="12.31.0",hR="2026-02-06";var fR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var za="",O4="*",pat=1*1024*1024;var mat=4*pat;var Mge="AES256",Lge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Uge=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Pge=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Oge="BlobUsesCustomerSpecifiedEncryption",Hge="BlobDoesNotUseCustomerSpecifiedEncryption",Gge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function Eat(t){let e=[Cat,qge,Iat,yat,Bat,bat,wat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Qat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${dR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:Uge,additionalAllowedQueryParameters:Pge,logger:tR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:eR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(vge()),s.addPolicy(_ge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Fge()),s.addPolicy(kge());let a=Eat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(g0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Za(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function CAt(t,e){if(t=Wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function IAt(t,e){if(t=Wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function yAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function BAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function bAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function QAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:hR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var WB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=h0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};k0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var JAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},g9=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function rme(t,e,r){return JAt(this,void 0,void 0,function*(){var n;let s=new ec(t),i=s.getBlockBlobClient(),o=new g9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new cD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as sme from"buffer";import*as dA from"fs";import*as ime from"stream";import*as ome from"util";var AD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function uD(t){return t?t>=200&&t<300:!1}function zAt(t){return t?t>=500:!0}function jAt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function KAt(t){return AD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function nme(t,e,r){return AD(this,arguments,void 0,function*(n,s,i,o=VT,a=WT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!zAt(d)))return l;if(d&&(h=jAt(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield KAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Mc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function v0(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.message.statusCode,s,i)})}var Wo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function $At(t,e){return Wo(this,void 0,void 0,function*(){yield ome.promisify(ime.pipeline)(t.message,e)})}var lD=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,O(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new rut(t),s=ume(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cme(t,e,s):s.concurrentBlobDownloads?yield ame(t,e,s):yield dD(t,e):yield dD(t,e)})}function Ime(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=s0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function Eme(t,e){return`bytes ${t}-${e}/*`}function out(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eme(n,s)},o=yield v0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!uD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function aut(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=_0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield out(t,i,()=>_0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{_0.closeSync(o)}})}function cut(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rme(r,e,n)}else{let i=C9();O("Upload cache"),yield aut(i,t,e,n),O("Commiting cache");let o=Oc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield cut(i,t,o);if(!uD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var h0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),u0e=ge(At(),1),l0e=ge(At(),1),d0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),a0e=ge(At(),1),c0e=ge(At(),1),A0e=ge(At(),1),gG=class extends A0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,c0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,a0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ZD=new gG;var EG=class extends d0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>ZD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,l0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,u0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(ZD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ZD.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var K0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",r2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},m0e=JT,n2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},s2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function E0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function C0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function i2(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),E0e(s);let u=E9();if(!dme(u)){$(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield wdt(s,i,o,a,c):yield Qdt(s,i,o,a,c)})}function Qdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield Cme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(m0e)?new n2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),od(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ga()&&(yield Eb(d,l));let f=Oc(d);return $(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),$("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Mc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):ze(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function wdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:s0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(m0e)?new n2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?$(`Cache hit for restore-key: ${g.matchedKey}`):$(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),od(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return $(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ga()&&(yield Eb(l,h)),yield FG(l,h),$("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Mc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function o2(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),E0e(n),UG(s);let c=E9();return hme(c)?a==="v2"?yield Ndt(n,s,i,o):yield Sdt(n,s,i,o):($(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Sdt(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,od(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ga()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;I0e.push(n),ed(n)}function B0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(I0e))}import*as A2 from"path";var b0e="GRADLE_ACTION_ID";var h2=".setup-gradle",yb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Rdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,Q0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return A2.resolve(Vu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new u2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var $0=class{isCacheDisabled(){return C0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=Ib("gradle-home-cache-cleanup");if(e!==void 0)return c2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var nc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return Ib("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return Ib("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return Ib("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return Ib("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new u2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},u2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},l2=class{getGradleVersion(){re Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new fb(i));return n.searchPaths.push(...CG(n.patterns)),n})}static stat(e,r,n){return SG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Y0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Y0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Y0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as NG from"crypto";import*as t2 from"fs";import*as $me from"stream";import*as Xme from"util";import*as Zme from"path";var xdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Rdt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function e0e(t,e){return xdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=NG.createHash("sha256"),f=0;try{for(var p=!0,I=Rdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Zme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(t2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=NG.createHash("sha256");yield Xme.promisify($me.pipeline)(t2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var t0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function TG(t,e){return t0e(this,void 0,void 0,function*(){return yield ZD.create(t,e)})}function r0e(t){return t0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield TG(e,{followSymbolicLinks:i});return e0e(o,r,s)})}import*as xG from"path";var Ddt="Gradle User Home",s0e="BASIC_CACHE_PRIMARY_KEY",i0e="BASIC_CACHE_RESTORED_KEY",kdt="setup-java",o0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],n2=class{async restore(e,r){let n=a0e(e),s=await vdt();wu(s0e,s);try{let i=await OD(n,s);i?(wu(i0e,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(s0e),i=by(i0e);if(n.readOnly)return{status:"read-only",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=a0e(e);try{return await HD(o,s),$(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[r2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function r2(t){return{entryName:Ddt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${o0e}], make sure you have checked out the target repository`);return`${kdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Fdt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Mdt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",DG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function u0e(t){return t.isCacheDisabled()?(RG("Cache is disabled: will not restore state from previous builds."),new DG):t.getCacheProvider()==="basic"?(RG(Mdt),new n2):(RG(Fdt),Ldt())}async function Ldt(){let t=Udt();return await import(_dt(t).href)}function Udt(){let t=import.meta.dirname,e=A0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(c0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function RG(t){console.info(t)}import s2 from"fs";import l0e from"path";var i2=class{constructor(e){this.cacheFile=l0e.resolve(e,zD,"valid-wrappers.json")}load(){if(s2.existsSync(this.cacheFile))try{return JSON.parse(s2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];s2.mkdirSync(l0e.dirname(this.cacheFile),{recursive:!0}),s2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var m0e=fe(g0e(),1);import*as p0e from"util";import*as o2 from"path";import*as a2 from"fs";var Ydt=p0e.promisify(a2.readdir);async function E0e(t){return(await C0e(t)).filter(r=>(0,m0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>o2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function C0e(t){let e=await Ydt(t),r=await Promise.all(e.map(async n=>{let s=o2.resolve(t,n),i=a2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?C0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Wdt={_useHtmlParser2:!1};function V0(t,e){if(!t)return e??Wdt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var tq={};Sa(tq,{contains:()=>B2,extract:()=>Oht,html:()=>Mht,merge:()=>G0e,parseHTML:()=>Uht,root:()=>Pht,text:()=>lg,xml:()=>Lht});var kd={};Sa(kd,{DocumentPosition:()=>jo,append:()=>Eht,appendChild:()=>mht,compareDocumentPosition:()=>U0e,existsOne:()=>M0e,filter:()=>K0,find:()=>E2,findAll:()=>Bht,findOne:()=>C2,findOneChild:()=>yht,getAttributeValue:()=>hht,getChildren:()=>j0,getElementById:()=>Sht,getElements:()=>wht,getElementsByClassName:()=>Nht,getElementsByTagName:()=>ug,getElementsByTagType:()=>Tht,getFeed:()=>eq,getInnerHTML:()=>dht,getName:()=>ght,getOuterHTML:()=>_0e,getParent:()=>F0e,getSiblings:()=>XG,getText:()=>g2,hasAttrib:()=>fht,hasChildren:()=>tr,innerText:()=>Ib,isCDATA:()=>W0,isComment:()=>Ag,isDocument:()=>zo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>p2,prepend:()=>Iht,prependChild:()=>Cht,prevElementSibling:()=>m2,removeElement:()=>Ku,removeSubsets:()=>xht,replaceElement:()=>pht,testElement:()=>Qht,textContent:()=>ju,uniqueSort:()=>Rd});var Jo={};Sa(Jo,{CDATA:()=>OG,Comment:()=>MG,Directive:()=>FG,Doctype:()=>HG,ElementType:()=>bt,Root:()=>vG,Script:()=>LG,Style:()=>UG,Tag:()=>PG,Text:()=>_G,isTag:()=>kG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function kG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var vG=bt.Root,_G=bt.Text,FG=bt.Directive,MG=bt.Comment,LG=bt.Script,UG=bt.Style,PG=bt.Tag,OG=bt.CDATA,HG=bt.Doctype;var c2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return J0(this,e)}},pb=class extends c2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},EA=class extends pb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends pb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends pb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},mb=class extends c2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:g2(t.children):W0(t)?g2(t.children):pi(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):tr(t)&&!Ag(t)?ju(t.children):pi(t)?t.data:""}function Ib(t){return Array.isArray(t)?t.map(Ib).join(""):tr(t)&&(t.type===bt.Tag||W0(t))?Ib(t.children):pi(t)?t.data:""}function j0(t){return tr(t)?t.children:[]}function F0e(t){return t.parent||null}function XG(t){let e=F0e(t);if(e!=null)return j0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function hht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function fht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function ght(t){return t.name}function p2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function m2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function pht(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function mht(t,e){if(Ku(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Eht(t,e){Ku(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Cht(t,e){if(Ku(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Iht(t,e){Ku(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function K0(t,e,r=!0,n=1/0){return E2(t,Array.isArray(e)?e:[e],r,n)}function E2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function yht(t,e){return e.find(t)}function C2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=C2(t,i.children,!0);if(o)return o}}return null}function M0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&M0e(t,r.children))}function Bht(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var I2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function ZG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function bht(t,e){return r=>t(r)||e(r)}function L0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(I2,r)?I2[r](n):ZG(r,n)});return e.length===0?null:e.reduce(bht)}function Qht(t,e){let r=L0e(t);return r?r(e):!0}function wht(t,e,r,n=1/0){let s=L0e(t);return s?K0(s,e,r,n):[]}function Sht(t,e,r=!0){return Array.isArray(e)||(e=[e]),C2(ZG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return K0(I2.tag_name(t),e,r,n)}function Nht(t,e,r=!0,n=1/0){return K0(ZG("class",t),e,r,n)}function Tht(t,e,r=!0,n=1/0){return K0(I2.tag_type(t),e,r,n)}function xht(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(jo||(jo={}));function U0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return jo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?jo.FOLLOWING|jo.CONTAINED_BY:jo.FOLLOWING:a===t?jo.PRECEDING|jo.CONTAINS:jo.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=U0e(e,r);return n&jo.PRECEDING?-1:n&jo.FOLLOWING?1:0}),t}function eq(t){let e=y2(_ht,t);return e?e.name==="feed"?Rht(e):Dht(e):null}function Rht(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:P0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=y2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Tb(i));return n.searchPaths.push(...VG(n.patterns)),n})}static stat(e,r,n){return ZG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield eE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield eE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield eE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as eq from"crypto";import*as I2 from"fs";import*as X0e from"stream";import*as Z0e from"util";import*as eEe from"path";var zht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},jht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function tEe(t,e){return zht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=eq.createHash("sha256"),f=0;try{for(var g=!0,E=jht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${eEe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(I2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=eq.createHash("sha256");yield Z0e.promisify(X0e.pipeline)(I2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var rEe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function tq(t,e){return rEe(this,void 0,void 0,function*(){return yield E2.create(t,e)})}function nEe(t){return rEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield tq(e,{followSymbolicLinks:i});return tEe(o,r,s)})}import*as rq from"path";var Kht="Gradle User Home",iEe="BASIC_CACHE_PRIMARY_KEY",oEe="BASIC_CACHE_RESTORED_KEY",$ht="setup-java",aEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],y2=class{async restore(e,r){let n=cEe(e),s=await Xht();Uc(iEe,s);try{let i=await i2(n,s);i?(Uc(oEe,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(iEe),i=My(oEe);if(n.readOnly)return{status:"read-only",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=cEe(e);try{return await o2(o,s)===-1?(ze(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):($(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${aEe}], make sure you have checked out the target repository`);return`${$ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var eft="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",tft="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",sq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function lEe(t){return t.isCacheDisabled()?(nq("Cache is disabled: will not restore state from previous builds."),new sq):t.getCacheProvider()==="basic"?(nq(tft),new y2):(nq(eft),rft())}async function rft(){let t=nft();return await import(Zht(t).href)}function nft(){let t=import.meta.dirname,e=uEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(AEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function nq(t){console.info(t)}import B2 from"fs";import dEe from"path";var b2=class{constructor(e){this.cacheFile=dEe.resolve(e,h2,"valid-wrappers.json")}load(){if(B2.existsSync(this.cacheFile))try{return JSON.parse(B2.readFileSync(this.cacheFile,"utf-8"))}catch(e){ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];B2.mkdirSync(dEe.dirname(this.cacheFile),{recursive:!0}),B2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var EEe=ge(pEe(),1);import*as mEe from"util";import*as Q2 from"path";import*as w2 from"fs";var Aft=mEe.promisify(w2.readdir);async function CEe(t){return(await IEe(t)).filter(r=>(0,EEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>Q2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function IEe(t){let e=await Aft(t),r=await Promise.all(e.map(async n=>{let s=Q2.resolve(t,n),i=w2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?IEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var lft={_useHtmlParser2:!1};function tE(t,e){if(!t)return e??lft;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Tq={};xa(Tq,{contains:()=>O2,extract:()=>igt,html:()=>tgt,merge:()=>qEe,parseHTML:()=>ngt,root:()=>sgt,text:()=>fg,xml:()=>rgt});var vd={};xa(vd,{DocumentPosition:()=>Zo,append:()=>Lft,appendChild:()=>Mft,compareDocumentPosition:()=>PEe,existsOne:()=>LEe,filter:()=>oE,find:()=>M2,findAll:()=>Hft,findOne:()=>L2,findOneChild:()=>Oft,getAttributeValue:()=>kft,getChildren:()=>iE,getElementById:()=>Vft,getElements:()=>Yft,getElementsByClassName:()=>Wft,getElementsByTagName:()=>hg,getElementsByTagType:()=>Jft,getFeed:()=>Nq,getInnerHTML:()=>Dft,getName:()=>_ft,getOuterHTML:()=>FEe,getParent:()=>MEe,getSiblings:()=>wq,getText:()=>v2,hasAttrib:()=>vft,hasChildren:()=>rr,innerText:()=>Fb,isCDATA:()=>rE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>_2,prepend:()=>Pft,prependChild:()=>Uft,prevElementSibling:()=>F2,removeElement:()=>$u,removeSubsets:()=>zft,replaceElement:()=>Fft,testElement:()=>qft,textContent:()=>Ku,uniqueSort:()=>Dd});var $o={};xa($o,{CDATA:()=>hq,Comment:()=>Aq,Directive:()=>cq,Doctype:()=>fq,ElementType:()=>bt,Root:()=>oq,Script:()=>uq,Style:()=>lq,Tag:()=>dq,Text:()=>aq,isTag:()=>iq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function iq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var oq=bt.Root,aq=bt.Text,cq=bt.Directive,Aq=bt.Comment,uq=bt.Script,lq=bt.Style,dq=bt.Tag,hq=bt.CDATA,fq=bt.Doctype;var S2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return nE(this,e)}},Db=class extends S2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends Db{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends Db{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends Db{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},kb=class extends S2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:v2(t.children):rE(t)?v2(t.children):Ii(t)?t.data:""}function Ku(t){return Array.isArray(t)?t.map(Ku).join(""):rr(t)&&!dg(t)?Ku(t.children):Ii(t)?t.data:""}function Fb(t){return Array.isArray(t)?t.map(Fb).join(""):rr(t)&&(t.type===bt.Tag||rE(t))?Fb(t.children):Ii(t)?t.data:""}function iE(t){return rr(t)?t.children:[]}function MEe(t){return t.parent||null}function wq(t){let e=MEe(t);if(e!=null)return iE(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function kft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function vft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function _ft(t){return t.name}function _2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function F2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function $u(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Fft(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Mft(t,e){if($u(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Lft(t,e){$u(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Uft(t,e){if($u(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Pft(t,e){$u(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function oE(t,e,r=!0,n=1/0){return M2(t,Array.isArray(e)?e:[e],r,n)}function M2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Oft(t,e){return e.find(t)}function L2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=L2(t,i.children,!0);if(o)return o}}return null}function LEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&LEe(t,r.children))}function Hft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var U2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function Sq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Gft(t,e){return r=>t(r)||e(r)}function UEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(U2,r)?U2[r](n):Sq(r,n)});return e.length===0?null:e.reduce(Gft)}function qft(t,e){let r=UEe(t);return r?r(e):!0}function Yft(t,e,r,n=1/0){let s=UEe(t);return s?oE(s,e,r,n):[]}function Vft(t,e,r=!0){return Array.isArray(e)||(e=[e]),L2(Sq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return oE(U2.tag_name(t),e,r,n)}function Wft(t,e,r=!0,n=1/0){return oE(Sq("class",t),e,r,n)}function Jft(t,e,r=!0,n=1/0){return oE(U2.tag_type(t),e,r,n)}function zft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Zo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Zo||(Zo={}));function PEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Dd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=PEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Nq(t){let e=P2(Zft,t);return e?e.name==="feed"?jft(e):Kft(e):null}function jft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:OEe(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=P2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=kd("summary",c)||kd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Xo=fe(vd(),1);var mq={};function Eq(t,e){return t===Xo.default.falseFunc?Xo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Cq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function pq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var gq=(t,e,r,n,s)=>{let i=s(e,pq(r),n);return i===Xo.default.trueFunc?t:i===Xo.default.falseFunc?Xo.default.falseFunc:o=>i(o)&&t(o)},_2={is:gq,matches:gq,where:gq,not(t,e,r,n,s){let i=s(e,pq(r),n);return i===Xo.default.falseFunc?t:i===Xo.default.trueFunc?Xo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=pq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Nb))?[mq]:void 0,c=s(e,o,a);if(c===Xo.default.falseFunc)return Xo.default.falseFunc;let A=Eq(c,i);if(a&&c!==Xo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Cq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function NEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:v2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,SEe.parse)(A);return _2.is(t,u,r,n,s)}if(typeof c=="function")return fq(c,o,a,1),u=>c(u,a)&&t(u);if(o in iE)return iE[o](t,a,r,n);if(o in xb){let u=xb[o];return fq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Zo=fe(nE(),1);function Iq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function TEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Zo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Zo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Zo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),BEe[e.action](t,e,r)}case Zo.SelectorType.Pseudo:return NEe(t,e,r,n,s);case Zo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Zo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Iq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Iq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Iq(A,i));return!1};case Zo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Zo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Zo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Zo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Zo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function xEe(t,e,r){let n=F2(t,e,r);return Eq(n,e.adapter)}function F2(t,e,r){let n=typeof t=="string"?(0,sc.parse)(t):t;return M2(n,e,r)}function REe(t){return t.type===sc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(REe)))}var wft={type:sc.SelectorType.Descendant},Sft={type:"_flexibleDescendant"},Nft={type:sc.SelectorType.Pseudo,name:"scope",data:null};function Tft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===mq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(WEe,`\r
`)}}).toArray()}var Mq={};Sa(Mq,{extract:()=>qgt});function Ggt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function qgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Ggt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Md=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,Aq,kq,vq,_q,Fq,Mq);function JEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=V0(s),a=t(n,o,i,null);class c extends Md{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&Ko(u))return u;let f=V0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Ko(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&yb(u)?t(u,f,!1,null).children:Ygt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?yb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Ko(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Ygt(t){return!!t.name||t.type===Jo.Root||t.type===Jo.Text||t.type===Jo.Comment}var Vgt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function G2(t){return t>=55296&&t<=57343}function zEe(t){return t>=56320&&t<=57343}function jEe(t,e){return(t-55296)*1024+9216+e}function q2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Y2(t){return t>=64976&&t<=65007||Vgt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ra=ge(_d(),1);var Yq={};function Vq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Wq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function qq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Gq=(t,e,r,n,s)=>{let i=s(e,qq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},X2={is:Gq,matches:Gq,where:Gq,not(t,e,r,n,s){let i=s(e,qq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=qq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Gb))?[Yq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Vq(c,i);if(a&&c!==ra.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Wq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function TCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in X2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return X2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:$2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,NCe.parse)(A);return X2.is(t,u,r,n,s)}if(typeof c=="function")return Hq(c,o,a,1),u=>c(u,a)&&t(u);if(o in gE)return gE[o](t,a,r,n);if(o in Yb){let u=Yb[o];return Hq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(hE(),1);function Jq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function xCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),bCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return TCe(t,e,r,n,s);case na.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Jq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Jq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Jq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case na.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function RCe(t,e,r){let n=Z2(t,e,r);return Vq(n,e.adapter)}function Z2(t,e,r){let n=typeof t=="string"?(0,ac.parse)(t):t;return ek(n,e,r)}function DCe(t){return t.type===ac.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(DCe)))}var Ygt={type:ac.SelectorType.Descendant},Vgt={type:"_flexibleDescendant"},Wgt={type:ac.SelectorType.Pseudo,name:"scope",data:null};function Jgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Yq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(JCe,`\r
`)}}).toArray()}var AY={};xa(AY,{extract:()=>cmt});function amt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function cmt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=amt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Ld=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Ld.prototype.cheerio="[cheerio object]";Ld.prototype.splice=Array.prototype.splice;Ld.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ld.prototype,Mq,iY,oY,aY,cY,AY);function zCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=tE(s),a=t(n,o,i,null);class c extends Ld{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&ea(u))return u;let f=tE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Mb(u)?t(u,f,!1,null).children:Amt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Mb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Tq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Amt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var umt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",N;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ok(t){return t>=55296&&t<=57343}function jCe(t){return t>=56320&&t<=57343}function KCe(t,e){return(t-55296)*1024+9216+e}function ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function ck(t){return t>=64976&&t<=65007||umt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},I_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function yxe(t){if(t instanceof AggregateError){Xl("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof $g?(Xl(String(t)),t.stack&&$(t.stack)):(Xl(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function Bxe(t,e,r){if(!t.doValidateWrappers())return;let n=new i2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Ixe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await ZN("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new $g(`At least one Gradle Wrapper Jar failed validation!
`)}`}},P_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function ORe(t){if(t instanceof AggregateError){ed("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof ap?(ed(String(t)),t.stack&&$(t.stack)):(ed(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function HRe(t,e,r){if(!t.doValidateWrappers())return;let n=new b2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await PRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await gT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new ap(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ho from"fs";import Xg from"path";function bxe(t,e,r){let n=Xg.resolve(e,zD);ho.mkdirSync(n,{recursive:!0}),ykt(e),Bkt(t),Oa()&&bkt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function ykt(t){let e=Xg.resolve(t,"init.d");ho.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Qkt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function Bkt(t){let e=wkt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=Skt(s,e);ho.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function bkt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import mo from"fs";import cp from"path";function GRe(t,e,r){let n=cp.resolve(e,h2);mo.mkdirSync(n,{recursive:!0}),e_t(e),t_t(t),Ga()&&r_t(e),r&&Cn("GRADLE_ENCRYPTION_KEY",r)}function e_t(t){let e=cp.resolve(t,"init.d");mo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=n_t("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function t_t(t){let e=s_t();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=i_t(s,e);mo.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function r_t(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function Qkt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function wkt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function n_t(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function s_t(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -280,55 +280,56 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Skt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Az="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Nkt="GRADLE_USER_HOME";async function Qxe(t,e,r){let n=await wxe(),s=await xkt();return process.env[Az]?($("Gradle setup only performed on first gradle/actions step in workflow."),!1):(pn(Az,!0),wu(Az,!0),wu(Nkt,s),bxe(n,s,t.getCacheEncryptionKey()),await(await u0e(t)).restore(s,Tkt(t)),await Bxe(r,Yu(),s),await Nme(e),!0)}function Tkt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function xkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yu();return lz.resolve(r,t)}let e=lz.resolve(await wxe(),".gradle");if(uz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(y_.platform()==="win32"&&e.startsWith("C:\\")&&uz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),pn("GRADLE_USER_HOME",r),r}return pn("GRADLE_USER_HOME",e),e}async function wxe(){let t=await By("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),y_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}var dRe=fe(Hxe(),1),pz=fe(Uy(),1);import*as tC from"fs";import*as sRe from"os";import*as hh from"path";import*as fz from"crypto";import*as ep from"fs";var qkt=fe(Uy(),1);import*as ZQ from"path";var Q_=fe(Uy(),1);import*as qxe from"stream";import*as Yxe from"util";import{ok as Vkt}from"assert";var Gxe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},B_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Gxe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Gxe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},b_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Wkt=process.platform==="win32",zQr=process.platform==="darwin",Jkt="actions/tool-cache";function Vxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ZQ.join(Jxe(),fz.randomUUID()),yield df(ZQ.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=hz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=hz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new B_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield zkt(t,e||"",r,n)}),c=>!(c instanceof b_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function zkt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Jkt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new b_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Yxe.promisify(qxe.pipeline),c=hz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield Cce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function Wxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield $kt(e),Wkt?yield jkt(t,e):yield Kkt(t,e),e})}function jkt(t,e){return Zg(this,void 0,void 0,function*(){let r= Line truncated
`," Line feed \\n"]]),wRe=new Map([...Xz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function SRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of wRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function i_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var $z="GRADLE_BUILD_ACTION_SETUP_COMPLETED",o_t="GRADLE_USER_HOME",a_t="DEVELOCITY_CACHE_TOKEN";async function qRe(t,e,r){let n=await YRe(),s=await A_t();if(process.env[$z])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;Cn($z,!0),Uc($z,!0),Uc(o_t,s),GRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await T0e(e);return Uc(a_t,o??""),await(await lEe(t)).restore(s,c_t(t,i,o)),await HRe(r,Vu(),s),S0e(e),!0}function c_t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function A_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Vu();return Zz.resolve(r,t)}let e=Zz.resolve(await YRe(),".gradle");if(Xz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),Cn("GRADLE_USER_HOME",e),e;if(O_.platform()==="win32"&&e.startsWith("C:\\")&&Xz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Cn("GRADLE_USER_HOME",r),r}return Cn("GRADLE_USER_HOME",e),e}async function YRe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),O_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}var DDe=ge(oDe(),1),sj=ge(Xy(),1);import*as hC from"fs";import*as bDe from"os";import*as hh from"path";import*as rj from"crypto";import*as up from"fs";var b_t=ge(Xy(),1);import*as gw from"path";var q_=ge(Xy(),1);import*as cDe from"stream";import*as ADe from"util";import{ok as w_t}from"assert";var aDe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},H_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return aDe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return aDe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},G_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},S_t=process.platform==="win32",U1r=process.platform==="darwin",N_t="actions/tool-cache";function uDe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||gw.join(dDe(),rj.randomUUID()),yield gf(gw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=tj("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=tj("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new H_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield T_t(t,e||"",r,n)}),c=>!(c instanceof G_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function T_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(N_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new G_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=ADe.promisify(cDe.pipeline),c=tj("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield fAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function lDe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter Line truncated
`," Line feed \\n"]]),YDe=new Map([...Oj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function VDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of YDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(wRe.values()).toString()}
Invalid characters include: ${Array.from(YDe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);$("Artifact name is valid!")}function Zz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Xz)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);$("Artifact name is valid!")}function Hj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Oj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(Xz.values()).toString()}
Invalid characters include: ${Array.from(Oj.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var RRe=fe(xRe(),1);function YA(){return`@actions/artifact-${RRe.version}`}var iC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},pl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ml=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},fh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},El=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};El.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function yvt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Bvt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return yvt(e)}catch{return atob(e)}}function DRe(t,e){if(typeof t!="string")throw new np("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new np(`Invalid token specified: missing part #${r+1}`);let s;try{s=Bvt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var x_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=N_(),e=DRe(t);if(!e.scp)throw x_;let r=e.scp.split(" ");if(r.length===0)throw x_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw x_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw x_}function kRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ua(r),Ua(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function vRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&kRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&kRe(t.signed_url)}var R_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ej=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=N_();this.baseUrl=fRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new Qu(i)])}request(e,r,n,s){return R_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>R_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return R_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(vRe(A),H(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(El.isNetworkErrorCode(a?.code))throw new El(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);$(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return R_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new ej(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new T_(e)}import*as oC from"fs";import{normalize as _Re,resolve as FRe}from"path";function MRe(t){if(!oC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ve("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);$(`Redirecting to blob download url: ${J3e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield z3e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function $3e(){return eI(this,arguments,void 0,function*(t=gRe()){return(yield ZVt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield G3e.mkdir(t,{recursive:!0})),t})}var t7t=5,r7t=[400,401,403,404,422];function tI(t,e=t7t,r=r7t){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return H(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var X3e="6.0.0";function kp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}kp.VERSION=X3e;var t8e=fe(Z3e(),1);var LM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var n7t="0.0.0-development";async function e8e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function s7t(t,e,r,n){let s=new t8e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(i7t.bind(null,t,e,r),n)}async function i7t(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new LM(s.data.errors[0].message,500,{request:n,response:s});return e8e(t,e,i,n)}return s}function vp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",e8e.bind(null,r,t)),t.hook.wrap("request",s7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=n7t;var r8e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function UM(t,e,r,n,s){return r8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ha(s,c,vp,kp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new pl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new ml(`Artifact not found for name: ${t}
`)}var jDe=ge(zDe(),1);function YA(){return`@actions/artifact-${jDe.version}`}var mC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Cl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},fh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},yl=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};yl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function tFt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function rFt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return tFt(e)}catch{return atob(e)}}function KDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=rFt(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var z_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=W_(),e=KDe(t);if(!e.scp)throw z_;let r=e.scp.split(" ");if(r.length===0)throw z_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw z_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw z_}function $De(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$De(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$De(t.signed_url)}var j_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Gj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=W_();this.baseUrl=vDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return j_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>j_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return j_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(XDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(yl.isNetworkErrorCode(a?.code))throw new yl(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);$(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return j_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Gj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new J_(e)}import*as EC from"fs";import{normalize as ZDe,resolve as e2e}from"path";function t2e(t){if(!EC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);$(`Redirecting to blob download url: ${d4e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield h4e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function p4e(){return dI(this,arguments,void 0,function*(t=_De()){return(yield PWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield a4e.mkdir(t,{recursive:!0})),t})}var HWt=5,GWt=[400,401,403,404,422];function hI(t,e=HWt,r=GWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var m4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=m4e;var I4e=ge(E4e(),1);var rL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var qWt="0.0.0-development";async function C4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function YWt(t,e,r,n){let s=new I4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(VWt.bind(null,t,e,r),n)}async function VWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new rL(s.data.errors[0].message,500,{request:n,response:s});return C4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",C4e.bind(null,r,t)),t.hook.wrap("request",YWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=qWt;var y4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function nL(t,e,r,n,s){return y4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield qa(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new Cl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],H(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function n8e(t){return r8e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ml(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],O(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function B4e(t){return y4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var s8e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function i8e(t,e,r,n,s){return s8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ha(s,c,vp,kp),u=yield UM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new pl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function o8e(t){return s8e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ml(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var a8e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},PM=ERe(),OM=100,o7t=Math.ceil(PM/OM);function c8e(t,e,r,n){return a8e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=tI(gf),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ha(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f}),I=Math.ceil(p.total_count/OM),m=p.total_count;m>PM&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${PM}. Results will be incomplete as only the first ${PM} artifacts will be returned`),I=o7t);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=u8e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function A8e(){return a8e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=u8e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function u8e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var y1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},a7t=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},_p=class{uploadArtifact(e,r,n,s){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;return a3e(e,r,n,s)}catch(i){throw Ve(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var b4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Q4e(t,e,r,n,s){return b4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=qa(s,c,qp,Gp),u=yield nL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new Cl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function w4e(t){return b4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var S4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},sL=LDe(),iL=100,WWt=Math.ceil(sL/iL);function N4e(t,e,r,n){return S4e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=hI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=qa(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iL,page:f}),E=Math.ceil(g.total_count/iL),m=g.total_count;m>sL&&(ze(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${sL}. Results will be incomplete as only the first ${sL} artifacts will be returned`),E=WWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:iL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=x4e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function T4e(){return S4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=x4e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function x4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var L1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},JWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Yp=class{uploadArtifact(e,r,n,s){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;return S8e(e,r,n,s)}catch(i){throw ze(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=a7t(r,["findBy"]);return j3e(e,n,s,i,o)}return K3e(e,r)}catch(n){throw Ve(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=JWt(r,["findBy"]);return f4e(e,n,s,i,o)}return g4e(e,r)}catch(n){throw ze(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return c8e(r,n,s,i,e?.latest)}return A8e(e?.latest)}catch(r){throw Ve(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return N4e(r,n,s,i,e?.latest)}return T4e(e?.latest)}catch(r){throw ze(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UM(e,n,s,i,o)}return n8e(e)}catch(n){throw Ve(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return nL(e,n,s,i,o)}return B4e(e)}catch(n){throw ze(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return y1(this,void 0,void 0,function*(){try{if(rC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return i8e(e,i,n,s,o)}return o8e(e)}catch(n){throw Ve(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return Q4e(e,i,n,s,o)}return w4e(e)}catch(n){throw ze(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var YRr=new _p;import*as HM from"path";import KX from"fs";var d8e="dependency-graph_";async function h8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await A7t(t);return}$("Enabling dependency graph generation"),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",E7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yu()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&pn(t,e)}async function f8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await l8e(t,!1);return;case"generate-submit-and-upload":await l8e(t,!0);return;case"generate-and-upload":await u7t(t)}}catch(r){p8e(t,e,r)}}async function A7t(t){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}try{await g8e(await l7t(t))}catch(e){p8e(t,"download-and-submit",e)}}async function l8e(t,e){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}let r=await $X();try{await g8e(r)}catch(n){try{await jX(r,t)}catch(s){$(String(s))}throw n}e&&await jX(r,t)}async function u7t(t){if(ZX()){$("Dependency graph not supported in the ACT environment.");return}await jX(await $X(),t)}async function l7t(t){let e=ri.payload.workflow_run?{token:jD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new _p,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(d8e)),s=t.getDownloadArtifactName();s&&($(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return $X()}async function $X(){let r=(await(await TG(`${f7t()}/**/*.json`)).glob()).filter(n=>!g7t(n));return r.forEach(p7t),$(`Found dependency graph files: ${r.join(", ")}`),r}async function jX(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Yu(),n=new _p;for(let s of t){let i=XX(s);$(`Uploading dependency graph file: ${i}`);let o=`${d8e}${HM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function g8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await h7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=d7t(e,r)),r}}function d7t(t,e){let n=`Dependency submission failed for ${XX(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var _2r=new Yp;import*as oL from"path";import OZ from"fs";var D4e="dependency-graph_";async function k4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await jWt(t);return}$("Enabling dependency graph generation"),Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",sJt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Vu()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Cn(t,e)}async function v4e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await R4e(t,!1);return;case"generate-submit-and-upload":await R4e(t,!0);return;case"generate-and-upload":await KWt(t)}}catch(r){F4e(t,e,r)}}async function jWt(t){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}try{await _4e(await $Wt(t))}catch(e){F4e(t,"download-and-submit",e)}}async function R4e(t,e){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}let r=await HZ();try{await _4e(r)}catch(n){try{await PZ(r,t)}catch(s){$(String(s))}throw n}e&&await PZ(r,t)}async function KWt(t){if(qZ()){$("Dependency graph not supported in the ACT environment.");return}await PZ(await HZ(),t)}async function $Wt(t){let e=oi.payload.workflow_run?{token:f2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new Yp,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(D4e)),s=t.getDownloadArtifactName();s&&($(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return HZ()}async function HZ(){let r=(await(await tq(`${eJt()}/**/*.json`)).glob()).filter(n=>!tJt(n));return r.forEach(rJt),$(`Found dependency graph files: ${r.join(", ")}`),r}async function PZ(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Vu(),n=new Yp;for(let s of t){let i=GZ(s);$(`Uploading dependency graph file: ${i}`);let o=`${D4e}${oL.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function _4e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await ZWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=XWt(e,r)),r}}function XWt(t,e){let n=`Dependency submission failed for ${GZ(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function h7t(t){let e=m7t(),r=KX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=XX(t);Rce(`Submitted ${i}: ${s.data.message}`)}function f7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function g7t(t){let e=`${t}.processed`;return KX.existsSync(e)}function p7t(t){let e=`${t}.processed`;KX.writeFileSync(e,"")}function p8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);Ve(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function m7t(){return Ha(jD())}function XX(t){let e=Yu();return HM.relative(e,t)}function E7t(){let t=ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function ZX(){return process.env.ACT!==void 0}function eZ(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(I7t(o[1],o[6],o[0]));while(o!==null);return i}function I7t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function y7t(t=process.platform){return t==="win32"?50:0}async function m8e(t=process.platform){let e=y7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function B7t(){try{Qme("gradle/actions/dependency-submission"),await Qxe(new H0,new ec,new JD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new ab;if(await h8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new WD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
`:n}async function ZWt(t){let e=nJt(),r=OZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=GZ(t);wAe(`Submitted ${i}: ${s.data.message}`)}function eJt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function tJt(t){let e=`${t}.processed`;return OZ.existsSync(e)}function rJt(t){let e=`${t}.processed`;OZ.writeFileSync(e,"")}function F4e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function nJt(){return qa(f2())}function GZ(t){let e=Vu();return oL.relative(e,t)}function sJt(){let t=oi;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function qZ(){return process.env.ACT!==void 0}function YZ(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(oJt(o[1],o[6],o[0]));while(o!==null);return i}function oJt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function aJt(t=process.platform){return t==="win32"?50:0}async function M4e(t=process.platform){let e=aJt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function cJt(){try{w0e("gradle/actions/dependency-submission"),await qRe(new $0,new nc,new d2);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new yb;if(await k4e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new l2,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
-Dorg.gradle.isolated-projects=false
${n}
${s}
`,o=eZ(i);await hRe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await f8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),yme()}catch(t){yxe(t)}await m8e()}B7t();export{B7t as run};
`,o=YZ(i);await kDe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await v4e(e),Cn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),B0e()}catch(t){ORe(t)}await M4e()}cJt();export{cJt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+141 -141
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var _fe=Object.create;var SS=Object.defineProperty;var Hfe=Object.getOwnPropertyDescriptor;var Gfe=Object.getOwnPropertyNames;var Yfe=Object.getPrototypeOf,qfe=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mi=(t,e)=>{for(var r in e)SS(t,r,{get:e[r],enumerable:!0})},Vfe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Gfe(e))!qfe.call(t,n)&&n!==r&&SS(t,n,{get:()=>e[n],enumerable:!(s=Hfe(e,n))||s.enumerable});return t};var Ee=(t,e,r)=>(r=t!=null?_fe(Yfe(t)):{},Vfe(e||!t||!t.__esModule?SS(r,"default",{value:t,enumerable:!0}):r,t));var r5=E(Cd=>{"use strict";var Jit=w("net"),jfe=w("tls"),RS=w("http"),$6=w("https"),Zfe=w("events"),Wit=w("assert"),$fe=w("util");Cd.httpOverHttp=epe;Cd.httpsOverHttp=tpe;Cd.httpOverHttps=rpe;Cd.httpsOverHttps=spe;function epe(t){var e=new fa(t);return e.request=RS.request,e}function tpe(t){var e=new fa(t);return e.request=RS.request,e.createSocket=e5,e.defaultPort=443,e}function rpe(t){var e=new fa(t);return e.request=$6.request,e}function spe(t){var e=new fa(t);return e.request=$6.request,e.createSocket=e5,e.defaultPort=443,e}function fa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=t5(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}$fe.inherits(fa,Zfe.EventEmitter);fa.prototype.addRequest=function(e,r,s,n){var i=this,o=kS({request:e},i.options,t5(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};fa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=kS({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),QA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){QA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){QA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return QA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),QA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};fa.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function e5(t,e){var r=this;fa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=kS({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=jfe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function t5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function kS(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var QA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?QA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:QA=function(){};Cd.debug=QA});var FS=E((Kit,s5)=>{s5.exports=r5()});var Et=E((Xit,n5)=>{n5.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var qe=E((jit,x5)=>{"use strict";var i5=Symbol.for("undici.error.UND_ERR"),Ct=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[i5]===!0}[i5]=!0},o5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),MS=class extends Ct{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[o5]===!0}[o5]=!0},a5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),US=class extends Ct{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[a5]===!0}[a5]=!0},A5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),LS=class extends Ct{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[A5]===!0}[A5]=!0},c5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),vS=class extends Ct{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[c5]===!0}[c5]=!0},u5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),PS=class extends Ct{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function C0e(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(s0e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function I0e(){return"allowed"}function B0e(){return"success"}function y0e(){return"success"}function Q0e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function b0e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&xT(t.origin)&&!xT(Yf(t))&&(e=null);break;case"same-origin":MC(t,Yf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function xd(t,e){return t}function w0e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:xd(t.domainLookupStartTime,r),domainLookupEndTime:xd(t.domainLookupEndTime,r),connectionStartTime:xd(t.connectionStartTime,r),connectionEndTime:xd(t.connectionEndTime,r),secureConnectionStartTime:xd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function N0e(t){return xd(A0e.now(),t)}function S0e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function YH(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function T0e(t){return{referrerPolicy:t.referrerPolicy}}function x0e(t){let e=t.referrerPolicy;cu(e);let r=null;if(t.referrer==="client"){let a=vH();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=TT(r),n=TT(r,!0);s.toString().length>4096&&(s=n);let i=MC(t,s),o=Gf(s)&&!Gf(t.url);switch(e){case"origin":return n??TT(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Yf(t);return MC(s,a)?s:Gf(s)&&!Gf(a)?"no-referrer":n}default:return o?"no-referrer":n}}function TT(t,e){return cu(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Gf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function D0e(t,e){if(FC===void 0)return!0;let r=qH(e);if(r==="no metadata"||r.length===0)return!0;let s=k0e(r),n=F0e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=FC.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),M0e(A,a))return!0}return!1}var R0e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function qH(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=R0e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();OH.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function k0e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function F0e(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function M0e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function U0e(t){}function MC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function L0e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function v0e(t){return t.controller.state==="aborted"}function P0e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function O0e(t){return l0e[t.toLowerCase()]??t}function _0e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return cu(typeof e=="string"),e}var H0e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function VH(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function mEe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function EEe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function CEe(t,e){LC(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&vC(t,fEe,i)||i.position===t.length-4&&vC(t,pEe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=IEe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",mEe(u)||(u=""),h=new hEe([d],c,{type:u})):h=AEe(Buffer.from(d)),LC(s9(A)),LC(typeof h=="string"&&s9(h)||uEe(h)),n.push(lEe(A,h,c))}}function IEe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Rd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=LT(o,!0,!0,a=>a===9||a===32),!cEe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Rd(a=>a===32||a===9,t,e),aEe(o)){case"content-disposition":{if(r=s=null,!vC(t,gEe,e)||(e.position+=17,r=o9(t,e),r===null))return"failure";if(vC(t,i9,e)){let a=e.position+i9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=o9(t,e),s===null))return"failure"}break}case"content-type":{let a=Rd(A=>A!==10&&A!==13,t,e);a=LT(a,!1,!0,A=>A===9||A===32),n=n9(a);break}case"content-transfer-encoding":{let a=Rd(A=>A!==10&&A!==13,t,e);a=LT(a,!1,!0,A=>A===9||A===32),i=n9(a);break}default:Rd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function o9(t,e){LC(t[e.position-1]===34);let r=Rd(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Rd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function LT(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function vC(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}a9.exports={multipartFormDataParser:CEe,validateBoundary:EEe}});var Md=E((yot,E9)=>{"use strict";var Jf=De(),{ReadableStreamFrom:BEe,isBlobLike:c9,isReadableStreamLike:yEe,readableStreamClose:QEe,createDeferredPromise:bEe,fullyReadBody:wEe,extractMimeType:NEe,utf8DecodeBytes:d9}=_s(),{FormData:u9}=Vf(),{kState:Fd}=bA(),{webidl:SEe}=Tr(),{Blob:TEe}=w("node:buffer"),vT=w("node:assert"),{isErrored:h9,isDisturbed:xEe}=w("node:stream"),{isArrayBuffer:DEe}=w("node:util/types"),{serializeAMimeType:REe}=cs(),{multipartFormDataParser:kEe}=A9(),PT;try{let t=w("node:crypto");PT=e=>t.randomInt(0,e)}catch{PT=t=>Math.floor(Math.random(t))}var PC=new TextEncoder;function FEe(){}var g9=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,f9;g9&&(f9=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!xEe(e)&&!h9(e)&&e.cancel("Response object has been garbage collected").catch(FEe)}));function p9(t,e=!1){let r=null;t instanceof ReadableStream?r=t:c9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?PC.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>QEe(A))},start(){},type:"bytes"}),vT(yEe(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(DEe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Jf.isFormDataLike(t)){let A=`----formdata-undici-0${`${PT(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var nme=Object.create;var WS=Object.defineProperty;var ime=Object.getOwnPropertyDescriptor;var ome=Object.getOwnPropertyNames;var ame=Object.getPrototypeOf,Ame=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ci=(t,e)=>{for(var r in e)WS(t,r,{get:e[r],enumerable:!0})},cme=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ome(e))!Ame.call(t,n)&&n!==r&&WS(t,n,{get:()=>e[n],enumerable:!(s=ime(e,n))||s.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?nme(ame(t)):{},cme(e||!t||!t.__esModule?WS(r,"default",{value:t,enumerable:!0}):r,t));var V5=E(Rd=>{"use strict";var Tat=w("net"),fme=w("tls"),ZS=w("http"),G5=w("https"),pme=w("events"),xat=w("assert"),mme=w("util");Rd.httpOverHttp=Eme;Rd.httpsOverHttp=Cme;Rd.httpOverHttps=Ime;Rd.httpsOverHttps=Bme;function Eme(t){var e=new pa(t);return e.request=ZS.request,e}function Cme(t){var e=new pa(t);return e.request=ZS.request,e.createSocket=Y5,e.defaultPort=443,e}function Ime(t){var e=new pa(t);return e.request=G5.request,e}function Bme(t){var e=new pa(t);return e.request=G5.request,e.createSocket=Y5,e.defaultPort=443,e}function pa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||ZS.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=q5(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}mme.inherits(pa,pme.EventEmitter);pa.prototype.addRequest=function(e,r,s,n){var i=this,o=$S({request:e},i.options,q5(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};pa.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=$S({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),SA("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,g){process.nextTick(function(){c(l,d,g)})}function c(l,d,g){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){SA("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(g.length>0){SA("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return SA("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),SA(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};pa.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function Y5(t,e){var r=this;pa.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=$S({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=fme.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function q5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $S(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var SA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?SA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:SA=function(){};Rd.debug=SA});var eT=E((Dat,J5)=>{J5.exports=V5()});var It=E((kat,W5)=>{W5.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var qe=E((Fat,EH)=>{"use strict";var z5=Symbol.for("undici.error.UND_ERR"),Bt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[z5]===!0}[z5]=!0},K5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tT=class extends Bt{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[K5]===!0}[K5]=!0},j5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rT=class extends Bt{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[j5]===!0}[j5]=!0},X5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sT=class extends Bt{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[X5]===!0}[X5]=!0},Z5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),nT=class extends Bt{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Z5]===!0}[Z5]=!0},$5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iT=class extends Bt{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vEe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(BEe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function PEe(){return"allowed"}function OEe(){return"success"}function _Ee(){return"success"}function HEe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function GEe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&jT(t.origin)&&!jT(rp(t))&&(e=null);break;case"same-origin":XC(t,rp(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function _d(t,e){return t}function YEe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:_d(t.domainLookupStartTime,r),domainLookupEndTime:_d(t.domainLookupEndTime,r),connectionStartTime:_d(t.connectionStartTime,r),connectionEndTime:_d(t.connectionEndTime,r),secureConnectionStartTime:_d(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function qEe(t){return _d(NEe.now(),t)}function VEe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function k9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function JEe(t){return{referrerPolicy:t.referrerPolicy}}function WEe(t){let e=t.referrerPolicy;lu(e);let r=null;if(t.referrer==="client"){let a=N9();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=KT(r),n=KT(r,!0);s.toString().length>4096&&(s=n);let i=XC(t,s),o=tp(s)&&!tp(t.url);switch(e){case"origin":return n??KT(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=rp(t);return XC(s,a)?s:tp(s)&&!tp(a)?"no-referrer":n}default:return o?"no-referrer":n}}function KT(t,e){return lu(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function tp(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function zEe(t,e){if(jC===void 0)return!0;let r=F9(e);if(r==="no metadata"||r.length===0)return!0;let s=jEe(r),n=XEe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=jC.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),ZEe(A,a))return!0}return!1}var KEe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function F9(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=KEe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();T9.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function jEe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function XEe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function ZEe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function $Ee(t){}function XC(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function eCe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function tCe(t){return t.controller.state==="aborted"}function rCe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function sCe(t){return xEe[t.toLowerCase()]??t}function nCe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return lu(typeof e=="string"),e}var iCe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function M9(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function UCe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function LCe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function vCe(t,e){$C(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&eI(t,FCe,i)||i.position===t.length-4&&eI(t,MCe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=PCe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let g;c!==null?(u??="text/plain",UCe(u)||(u=""),g=new DCe([d],c,{type:u})):g=NCe(Buffer.from(d)),$C(J9(A)),$C(typeof g=="string"&&J9(g)||TCe(g)),n.push(xCe(A,g,c))}}function PCe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Gd(a=>a!==10&&a!==13&&a!==58,t,e);if(o=sx(o,!0,!0,a=>a===9||a===32),!SCe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Gd(a=>a===32||a===9,t,e),wCe(o)){case"content-disposition":{if(r=s=null,!eI(t,kCe,e)||(e.position+=17,r=K9(t,e),r===null))return"failure";if(eI(t,z9,e)){let a=e.position+z9.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=K9(t,e),s===null))return"failure"}break}case"content-type":{let a=Gd(A=>A!==10&&A!==13,t,e);a=sx(a,!1,!0,A=>A===9||A===32),n=W9(a);break}case"content-transfer-encoding":{let a=Gd(A=>A!==10&&A!==13,t,e);a=sx(a,!1,!0,A=>A===9||A===32),i=W9(a);break}default:Gd(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function K9(t,e){$C(t[e.position-1]===34);let r=Gd(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Gd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function sx(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function eI(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}j9.exports={multipartFormDataParser:vCe,validateBoundary:LCe}});var Vd=E((nAt,aG)=>{"use strict";var ip=ke(),{ReadableStreamFrom:OCe,isBlobLike:Z9,isReadableStreamLike:_Ce,readableStreamClose:HCe,createDeferredPromise:GCe,fullyReadBody:YCe,extractMimeType:qCe,utf8DecodeBytes:tG}=Js(),{FormData:$9}=np(),{kState:qd}=TA(),{webidl:VCe}=kr(),{Blob:JCe}=w("node:buffer"),nx=w("node:assert"),{isErrored:rG,isDisturbed:WCe}=w("node:stream"),{isArrayBuffer:zCe}=w("node:util/types"),{serializeAMimeType:KCe}=gs(),{multipartFormDataParser:jCe}=X9(),ix;try{let t=w("node:crypto");ix=e=>t.randomInt(0,e)}catch{ix=t=>Math.floor(Math.random(t))}var tI=new TextEncoder;function XCe(){}var sG=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,nG;sG&&(nG=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!WCe(e)&&!rG(e)&&e.cancel("Response object has been garbage collected").catch(XCe)}));function iG(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Z9(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?tI.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>HCe(A))},start(){},type:"bytes"}),nx(_Ce(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(zCe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ip.isFormDataLike(t)){let A=`----formdata-undici-0${`${ix(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=PC.encode(c+`; name="${u(l(I))}"\r
`),d=[],g=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=tI.encode(c+`; name="${u(l(I))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=PC.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=tI.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=PC.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(c9(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:BEe(t)}if((typeof n=="string"||Jf.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!h9(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function MEe(t,e=!1){return t instanceof ReadableStream&&(vT(!Jf.isDisturbed(t),"The body has already been consumed."),vT(!t.locked,"The stream is locked.")),p9(t,e)}function UEe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function LEe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function vEe(t){return{blob(){return kd(this,r=>{let s=l9(this);return s===null?s="":s&&(s=REe(s)),new TEe([r],{type:s})},t)},arrayBuffer(){return kd(this,r=>new Uint8Array(r).buffer,t)},text(){return kd(this,d9,t)},json(){return kd(this,OEe,t)},formData(){return kd(this,r=>{let s=l9(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=kEe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new u9;return i[Fd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new u9;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return kd(this,r=>new Uint8Array(r),t)}}}function PEe(t){Object.assign(t.prototype,vEe(t))}async function kd(t,e,r){if(SEe.brandCheck(t,r),m9(t))throw new TypeError("Body is unusable: Body has already been read");LEe(t[Fd]);let s=bEe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Fd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await wEe(t[Fd].body,i,n),s.promise)}function m9(t){let e=t[Fd].body;return e!=null&&(e.stream.locked||Jf.isDisturbed(e.stream))}function OEe(t){return JSON.parse(d9(t))}function l9(t){let e=t[Fd].headersList,r=NEe(e);return r==="failure"?null:r}E9.exports={extractBody:p9,safelyExtractBody:MEe,cloneBody:UEe,mixinBody:PEe,streamRegistry:f9,hasFinalizationRegistry:g9,bodyUnusable:m9}});var x9=E((Qot,T9)=>{"use strict";var ue=w("node:assert"),Ce=De(),{channels:C9}=Bd(),OT=IT(),{RequestContentLengthMismatchError:uu,ResponseContentLengthMismatchError:_Ee,RequestAbortedError:w9,HeadersTimeoutError:HEe,HeadersOverflowError:GEe,SocketError:qC,InformationalError:Ud,BodyTimeoutError:YEe,HTTPParserError:qEe,ResponseExceededMaxSizeError:VEe}=qe(),{kUrl:N9,kReset:us,kClient:YT,kParser:Tt,kBlocking:Kf,kRunning:Mr,kPending:JEe,kSize:I9,kWriting:NA,kQueue:Ei,kNoRef:Wf,kKeepAliveDefaultTimeout:WEe,kHostHeader:zEe,kPendingIdx:KEe,kRunningIdx:wn,kError:Nn,kPipelining:GC,kSocket:Ld,kKeepAliveTimeoutValue:VC,kMaxHeadersSize:_T,kKeepAliveMaxTimeout:XEe,kKeepAliveTimeoutThreshold:jEe,kHeadersTimeout:ZEe,kBodyTimeout:$Ee,kStrictContentLength:qT,kMaxRequests:B9,kCounter:eCe,kMaxResponseSize:tCe,kOnError:rCe,kResume:wA,kHTTPContext:S9}=Et(),so=fH(),sCe=Buffer.alloc(0),OC=Buffer[Symbol.species],_C=Ce.addListener,nCe=Ce.removeAllListeners,HT;async function iCe(){let t=process.env.JEST_WORKER_ID?QT():void 0,e;try{e=await WebAssembly.compile(EH())}catch{e=await WebAssembly.compile(t||QT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onStatus(new OC(no.buffer,i,n))||0},wasm_on_message_begin:r=>(ue(nr.ptr===r),nr.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderField(new OC(no.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onHeaderValue(new OC(no.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ue(nr.ptr===r),nr.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ue(nr.ptr===r);let i=s-io+no.byteOffset;return nr.onBody(new OC(no.buffer,i,n))||0},wasm_on_message_complete:r=>(ue(nr.ptr===r),nr.onMessageComplete()||0)}})}var GT=null,VT=iCe();VT.catch();var nr=null,no=null,HC=0,io=null,oCe=0,zf=1,vd=2|zf,YC=4|zf,JT=8|oCe,WT=class{constructor(e,r,{exports:s}){ue(Number.isFinite(e[_T])&&e[_T]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(so.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`);d.push(C,m,g),typeof m.size=="number"?i+=C.byteLength+m.size+g.byteLength:f=!0}let p=tI.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Z9(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ip.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:OCe(t)}if((typeof n=="string"||ip.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!rG(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function ZCe(t,e=!1){return t instanceof ReadableStream&&(nx(!ip.isDisturbed(t),"The body has already been consumed."),nx(!t.locked,"The stream is locked.")),iG(t,e)}function $Ce(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function eIe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function tIe(t){return{blob(){return Yd(this,r=>{let s=eG(this);return s===null?s="":s&&(s=KCe(s)),new JCe([r],{type:s})},t)},arrayBuffer(){return Yd(this,r=>new Uint8Array(r).buffer,t)},text(){return Yd(this,tG,t)},json(){return Yd(this,sIe,t)},formData(){return Yd(this,r=>{let s=eG(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=jCe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new $9;return i[qd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new $9;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Yd(this,r=>new Uint8Array(r),t)}}}function rIe(t){Object.assign(t.prototype,tIe(t))}async function Yd(t,e,r){if(VCe.brandCheck(t,r),oG(t))throw new TypeError("Body is unusable: Body has already been read");eIe(t[qd]);let s=GCe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[qd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await YCe(t[qd].body,i,n),s.promise)}function oG(t){let e=t[qd].body;return e!=null&&(e.stream.locked||ip.isDisturbed(e.stream))}function sIe(t){return JSON.parse(tG(t))}function eG(t){let e=t[qd].headersList,r=qCe(e);return r==="failure"?null:r}aG.exports={extractBody:iG,safelyExtractBody:ZCe,cloneBody:$Ce,mixinBody:rIe,streamRegistry:nG,hasFinalizationRegistry:sG,bodyUnusable:oG}});var QG=E((iAt,yG)=>{"use strict";var oe=w("node:assert"),ce=ke(),{channels:AG}=kd(),ox=HT(),{RequestContentLengthMismatchError:du,ResponseContentLengthMismatchError:cG,RequestAbortedError:mG,InvalidArgumentError:nIe,HeadersTimeoutError:iIe,HeadersOverflowError:oIe,SocketError:Jd,InformationalError:Wd,BodyTimeoutError:aIe,HTTPParserError:AIe,ResponseExceededMaxSizeError:cIe}=qe(),{kUrl:EG,kReset:fs,kClient:iI,kParser:ht,kBlocking:Ap,kRunning:tr,kPending:CG,kSize:uG,kWriting:xA,kQueue:Ii,kNoRef:op,kKeepAliveDefaultTimeout:uIe,kHostHeader:lIe,kPendingIdx:dIe,kRunningIdx:xn,kError:jr,kPipelining:oI,kSocket:gu,kKeepAliveTimeoutValue:AI,kMaxHeadersSize:ax,kKeepAliveMaxTimeout:hIe,kKeepAliveTimeoutThreshold:gIe,kHeadersTimeout:fIe,kBodyTimeout:pIe,kStrictContentLength:ux,kMaxRequests:lG,kCounter:mIe,kMaxResponseSize:EIe,kOnError:dG,kResume:ya,kHTTPContext:IG}=It(),Ws=n9(),hG=Buffer.alloc(0),rI=Buffer[Symbol.species],sI=ce.addListener,CIe=ce.removeAllListeners,fu=Symbol("kIdleSocketValidation"),hu=Symbol("kIdleSocketValidationTimeout"),gx=Symbol("kSocketUsed"),Ax;async function IIe(){let t=process.env.JEST_WORKER_ID?qT():void 0,e;try{e=await WebAssembly.compile(a9())}catch{e=await WebAssembly.compile(t||qT())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onStatus(new rI(io.buffer,i,n))||0},wasm_on_message_begin:r=>(oe(Rt.ptr===r),Rt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onHeaderField(new rI(io.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onHeaderValue(new rI(io.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(oe(Rt.ptr===r),Rt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{oe(Rt.ptr===r);let i=s-oo+io.byteOffset;return Rt.onBody(new rI(io.buffer,i,n))||0},wasm_on_message_complete:r=>(oe(Rt.ptr===r),Rt.onMessageComplete()||0)}})}var cx=null,lx=IIe();lx.catch();var Rt=null,io=null,nI=0,oo=null,BIe=0,ap=1,zd=2|ap,aI=4|ap,dx=8|BIe,hx=class{constructor(e,r,{exports:s}){oe(Number.isFinite(e[ax])&&e[ax]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Ws.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,t Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[zEe],i?p+=`connection: upgrade\r
`:p+=t[lIe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[GC]&&!h[us]?p+=`connection: keep-alive\r
`:t[oI]&&!g[fs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let b=0;b<C.length;b++)p+=`${m}: ${C[b]}\r
`;else p+=`${m}: ${C}\r
`}return C9.sendHeaders.hasSubscribers&&C9.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Q9(f,null,t,e,h,u,p,l):Ce.isBuffer(A)?Q9(f,A,t,e,h,u,p,l):Ce.isBlobLike(A)?typeof A.stream=="function"?b9(f,A.stream(),t,e,h,u,p,l):dCe(f,A,t,e,h,u,p,l):Ce.isStream(A)?lCe(f,A,t,e,h,u,p,l):Ce.isIterable(A)?b9(f,A,t,e,h,u,p,l):ue(!1),!0}function lCe(t,e,r,s,n,i,o,a){ue(i!==0||r[Mr]===0,"stream body cannot be pipelined");let A=!1,c=new JC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new w9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ue(n.destroyed||n[NA]&&r[Mr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ce.destroy(e,f):Ce.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Q9(t,e,r,s,n,i,o,a){try{e?Ce.isBuffer(e)&&(ue(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return AG.sendHeaders.hasSubscribers&&AG.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?fG(f,null,t,e,g,u,p,l):ce.isBuffer(A)?fG(f,A,t,e,g,u,p,l):ce.isBlobLike(A)?typeof A.stream=="function"?pG(f,A.stream(),t,e,g,u,p,l):TIe(f,A,t,e,g,u,p,l):ce.isStream(A)?SIe(f,A,t,e,g,u,p,l):ce.isIterable(A)?pG(f,A,t,e,g,u,p,l):oe(!1),!0}function SIe(t,e,r,s,n,i,o,a){oe(i!==0||r[tr]===0,"stream body cannot be pipelined");let A=!1,c=new cI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ce.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new mG;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,oe(n.destroyed||n[xA]&&r[tr]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ce.destroy(e,f):ce.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(()=>g(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>g(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function fG(t,e,r,s,n,i,o,a){try{e?ce.isBuffer(e)&&(oe(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[us]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[fs]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(ue(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wA]()}catch(A){t(A)}}async function dCe(t,e,r,s,n,i,o,a){ue(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new uu;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(oe(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[ya]()}catch(A){t(A)}}async function TIe(t,e,r,s,n,i,o,a){oe(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new du;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[us]=!0),r[wA]()}catch(A){t(A)}}async function b9(t,e,r,s,n,i,o,a){ue(i!==0||r[Mr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{ue(A===null),n[Nn]?h(n[Nn]):A=d});n.on("close",c).on("drain",c);let l=new JC({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[Nn])throw n[Nn];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var JC=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[NA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Nn])throw r[Nn];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[qT])throw new uu;process.emitWarning(new uu)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[us]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[fs]=!0),r[ya]()}catch(A){t(A)}}async function pG(t,e,r,s,n,i,o,a){oe(i!==0||r[tr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{oe(A===null),n[jr]?g(n[jr]):A=d});n.on("close",c).on("drain",c);let l=new cI({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[jr])throw n[jr];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var cI=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[xA]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[jr])throw r[jr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[ux])throw new du;process.emitWarning(new du)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[fs]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Tt].timeout&&r[Tt].timeoutType===vd&&r[Tt].timeout.refresh&&r[Tt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[NA]=!1,e[Nn])throw e[Nn];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[ht].timeout&&r[ht].timeoutType===zd&&r[ht].timeout.refresh&&r[ht].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[xA]=!1,e[jr])throw e[jr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[qT])throw new uu;process.emitWarning(new uu)}e[Tt].timeout&&e[Tt].timeoutType===vd&&e[Tt].timeout.refresh&&e[Tt].timeout.refresh(),s[wA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[NA]=!1,e&&(ue(s[Mr]<=1,"pipeline should only contain this request"),n(e))}};T9.exports=aCe});var v9=E((bot,L9)=>{"use strict";var Sn=w("node:assert"),{pipeline:hCe}=w("node:stream"),Fe=De(),{RequestContentLengthMismatchError:zT,RequestAbortedError:D9,SocketError:Xf,InformationalError:KT}=qe(),{kUrl:WC,kReset:KC,kClient:Pd,kRunning:XC,kPending:gCe,kQueue:SA,kPendingIdx:XT,kRunningIdx:Ci,kError:Bi,kSocket:hr,kStrictContentLength:fCe,kOnError:jT,kMaxConcurrentStreams:U9,kHTTP2Session:Ii,kResume:TA,kSize:pCe,kHTTPContext:mCe}=Et(),Ba=Symbol("open streams"),R9,k9=!1,zC;try{zC=w("node:http2")}catch{zC={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ECe,HTTP2_HEADER_METHOD:CCe,HTTP2_HEADER_PATH:ICe,HTTP2_HEADER_SCHEME:BCe,HTTP2_HEADER_CONTENT_LENGTH:yCe,HTTP2_HEADER_EXPECT:QCe,HTTP2_HEADER_STATUS:bCe}}=zC;function wCe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function NCe(t,e){t[hr]=e,k9||(k9=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zC.connect(t[WC],{createConnection:()=>e,peerMaxConcurrentStreams:t[U9]});r[Ba]=0,r[Pd]=t,r[hr]=e,Fe.addListener(r,"error",TCe),Fe.addListener(r,"frameError",xCe),Fe.addListener(r,"end",DCe),Fe.addListener(r,"goaway",RCe),Fe.addListener(r,"close",function(){let{[Pd]:n}=this,{[hr]:i}=n,o=this[hr][Bi]||this[Bi]||new Xf("closed",Fe.getSocketInfo(i));if(n[Ii]=null,n.destroyed){Sn(n[gCe]===0);let a=n[SA].splice(n[Ci]);for(let A=0;A<a.length;A++){let c=a[A];Fe.errorRequest(n,c,o)}}}),r.unref(),t[Ii]=r,e[Ii]=r,Fe.addListener(e,"error",function(n){Sn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bi]=n,this[Pd][jT](n)}),Fe.addListener(e,"end",function(){Fe.destroy(this,new Xf("other side closed",Fe.getSocketInfo(this)))}),Fe.addListener(e,"close",function(){let n=this[Bi]||new Xf("closed",Fe.getSocketInfo(this));t[hr]=null,this[Ii]!=null&&this[Ii].destroy(n),t[XT]=t[Ci],Sn(t[XC]===0),t.emit("disconnect",t[WC],[t],n),t[TA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return FCe(t,...n)},resume(){SCe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function SCe(t){let e=t[hr];e?.destroyed===!1&&(t[pCe]===0&&t[U9]===0?(e.unref(),t[Ii].unref()):(e.ref(),t[Ii].ref()))}function TCe(t){Sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hr][Bi]=t,this[Pd][jT](t)}function xCe(t,e,r){if(r===0){let s=new KT(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hr][Bi]=s,this[Pd][jT](s)}}function DCe(){let t=new Xf("other side closed",Fe.getSocketInfo(this[hr]));this.destroy(t),Fe.destroy(this[hr],t)}function RCe(t){let e=this[Bi]||new Xf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Fe.getSocketInfo(this)),r=this[Pd];if(r[hr]=null,r[mCe]=null,this[Ii]!=null&&(this[Ii].destroy(e),this[Ii]=null),Fe.destroy(this[hr],e),r[Ci]<r[SA].length){let s=r[SA][r[Ci]];r[SA][r[Ci]++]=null,Fe.errorRequest(r,s,e),r[XT]=r[Ci]}Sn(r[XC]===0),r.emit("disconnect",r[WC],[r],e),r[TA]()}function kCe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function FCe(t,e){let r=t[Ii],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let T=0;T<c.length;T+=2){let R=c[T+0],M=c[T+1];if(Array.isArray(M))for(let F=0;F<M.length;F++)l[R]?l[R]+=`,${M[F]}`:l[R]=M[F];else l[R]=M}let d,{hostname:h,port:f}=t[WC];l[ECe]=i||`${h}${f?`:${f}`:""}`,l[CCe]=s;let p=T=>{e.aborted||e.completed||(T=T||new D9,Fe.errorRequest(t,e,T),d!=null&&Fe.destroy(d,T),Fe.destroy(u,T),t[SA][t[Ci]++]=null,t[TA]())};try{e.onConnect(p)}catch(T){Fe.errorRequest(t,e,T)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Ba],t[SA][t[Ci]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Ba],t[SA][t[Ci]++]=null}),d.once("close",()=>{r[Ba]-=1,r[Ba]===0&&r.unref()}),!0;l[ICe]=n,l[BCe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Fe.bodyLength(u);if(Fe.isFormDataLike(u)){R9??=Md().extractBody;let[T,R]=R9(u);l["content-type"]=R,u=T.stream,m=T.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),kCe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[fCe])return Fe.errorRequest(t,e,new zT),!1;process.emitWarning(new zT)}m!=null&&(Sn(u,"no body must not have content length"),l[yCe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[QCe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[iIe]=A??3e5,this[nIe]=n??3e5,this[oIe]=C??!0,this[aIe]=T,this[tx]=M,this[DA]=null,this[dIe]=_>-1?_:-1,this[gIe]=at??100,this[Gt]=null,this[yi]=[],this[Qa]=0,this[Qi]=0,this[ep]=xe=>sx(this,xe),this[hIe]=xe=>K9(this,xe)}get pipelining(){return this[eI]}set pipelining(e){this[eI]=e,this[ep](!0)}get[sp](){return this[yi].length-this[Qi]}get[rp](){return this[Qi]-this[Qa]}get[tp](){return this[yi].length-this[Qa]}get[jCe](){return!!this[Gt]&&!this[_d]&&!this[Gt].destroyed}get[ex](){return!!(this[Gt]?.busy(null)||this[tp]>=(z9(this)||1)||this[sp]>0)}[XCe](e){X9(this),this.once("connect",e)}[lIe](e,r){let s=e.origin||this[ao].origin,n=new qCe(s,e,r);return this[yi].push(n),this[du]||(lu.bodyLength(n.body)==null&&lu.isIterable(n.body)?(this[du]=1,queueMicrotask(()=>sx(this))):this[ep](!0)),this[du]&&this[RA]!==2&&this[ex]&&(this[RA]=2),this[RA]<2}async[cIe](){return new Promise(e=>{this[tp]?this[DA]=e:e(null)})}async[uIe](e){return new Promise(r=>{let s=this[yi].splice(this[Qi]);for(let i=0;i<s.length;i++){let o=s[i];lu.errorRequest(this,o,e)}let n=()=>{this[DA]&&(this[DA](),this[DA]=null),r(null)};this[Gt]?(this[Gt].destroy(e,n),this[Gt]=null):queueMicrotask(n),this[ep]()})}},mIe=$C();function K9(t,e){if(t[rp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ya(t[Qi]===t[Qa]);let r=t[yi].splice(t[Qa]);for(let s=0;s<r.length;s++){let n=r[s];lu.errorRequest(t,n,e)}ya(t[tp]===0)}}async function X9(t){ya(!t[_d]),ya(!t[Gt]);let{host:e,hostname:r,protocol:s,port:n}=t[ao];if(r[0]==="["){let i=r.indexOf("]");ya(i!==-1);let o=r.substring(1,i);ya(W9.isIP(o)),r=o}t[_d]=!0,Od.beforeConnect.hasSubscribers&&Od.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf]});try{let i=await new Promise((o,a)=>{t[Zf]({host:e,hostname:r,protocol:s,port:n,servername:t[xA],localAddress:t[$f]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){lu.destroy(i.on("error",V9),new WCe);return}ya(i);try{t[Gt]=i.alpnProtocol==="h2"?await pIe(t,i):await fIe(t,i)}catch(o){throw i.destroy().on("error",V9),o}t[_d]=!1,i[AIe]=0,i[tx]=t[tx],i[KCe]=t,i[$Ce]=null,Od.connected.hasSubscribers&&Od.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf],socket:i}),t.emit("connect",t[ao],[t])}catch(i){if(t.destroyed)return;if(t[_d]=!1,Od.connectError.hasSubscribers&&Od.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Gt]?.version,servername:t[xA],localAddress:t[$f]},connector:t[Zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ya(t[rp]===0);t[sp]>0&&t[yi][t[Qi]].servername===t[xA];){let o=t[yi][t[Qi]++];lu.errorRequest(t,o,i)}else K9(t,i);t.emit("connectionError",t[ao],[t],i)}t[ep]()}function J9(t){t[RA]=0,t.emit("drain",t[ao],[t])}function sx(t,e){t[du]!==2&&(t[du]=2,EIe(t,e),t[du]=0,t[Qa]>256&&(t[yi].splice(0,t[Qa]),t[Qi]-=t[Qa],t[Qa]=0))}function EIe(t,e){for(;;){if(t.destroyed){ya(t[sp]===0);return}if(t[DA]&&!t[tp]){t[DA](),t[DA]=null;return}if(t[Gt]&&t[Gt].resume(),t[ex])t[RA]=2;else if(t[RA]===2){e?(t[RA]=1,queueMicrotask(()=>J9(t))):J9(t);continue}if(t[sp]===0||t[rp]>=(z9(t)||1))return;let r=t[yi][t[Qi]];if(t[ao].protocol==="https:"&&t[xA]!==r.servername){if(t[rp]>0)return;t[xA]=r.servername,t[Gt]?.destroy(new JCe("servername changed"),()=>{t[Gt]=null,sx(t)})}if(t[_d])return;if(!t[Gt]){X9(t);return}if(t[Gt].destroyed||t[Gt].busy(r))return;!r.aborted&&t[Gt].write(r)?t[Qi]++:t[yi].splice(t[Qi],1)}}j9.exports=rx});var nx=E((xot,Z9)=>{"use strict";var tI=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Z9.exports=class{constructor(){this.head=this.tail=new tI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var eG=E((Dot,$9)=>{var{kFree:CIe,kConnected:IIe,kPending:BIe,kQueued:yIe,kRunning:QIe,kSize:bIe}=Et(),hu=Symbol("pool"),ix=class{constructor(e){this[hu]=e}get connected(){return this[hu][IIe]}get free(){return this[hu][CIe]}get pending(){return this[hu][BIe]}get queued(){return this[hu][yIe]}get running(){return this[hu][QIe]}get size(){return this[hu][bIe]}};$9.exports=ix});var lx=E((Rot,uG)=>{"use strict";var wIe=wd(),NIe=nx(),{kConnected:ox,kSize:tG,kRunning:rG,kPending:sG,kQueued:np,kBusy:SIe,kFree:TIe,kUrl:xIe,kClose:DIe,kDestroy:RIe,kDispatch:kIe}=Et(),FIe=eG(),ls=Symbol("clients"),Jr=Symbol("needDrain"),ip=Symbol("queue"),ax=Symbol("closed resolve"),Ax=Symbol("onDrain"),nG=Symbol("onConnect"),iG=Symbol("onDisconnect"),oG=Symbol("onConnectionError"),cx=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[ux])throw new du;process.emitWarning(new du)}e[ht].timeout&&e[ht].timeoutType===zd&&e[ht].timeout.refresh&&e[ht].timeout.refresh(),s[ya]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[xA]=!1,e&&(oe(s[tr]<=1,"pipeline should only contain this request"),n(e))}};yG.exports=yIe});var DG=E((oAt,RG)=>{"use strict";var Rn=w("node:assert"),{pipeline:xIe}=w("node:stream"),Ue=ke(),{RequestContentLengthMismatchError:fx,RequestAbortedError:bG,SocketError:cp,InformationalError:px}=qe(),{kUrl:uI,kReset:dI,kClient:Kd,kRunning:hI,kPending:RIe,kQueue:RA,kPendingIdx:mx,kRunningIdx:Bi,kError:Qi,kSocket:mr,kStrictContentLength:DIe,kOnError:Ex,kMaxConcurrentStreams:xG,kHTTP2Session:yi,kResume:DA,kSize:kIe,kHTTPContext:FIe}=It(),Qa=Symbol("open streams"),wG,NG=!1,lI;try{lI=w("node:http2")}catch{lI={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:MIe,HTTP2_HEADER_METHOD:UIe,HTTP2_HEADER_PATH:LIe,HTTP2_HEADER_SCHEME:vIe,HTTP2_HEADER_CONTENT_LENGTH:PIe,HTTP2_HEADER_EXPECT:OIe,HTTP2_HEADER_STATUS:_Ie}}=lI;function HIe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function GIe(t,e){t[mr]=e,NG||(NG=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=lI.connect(t[uI],{createConnection:()=>e,peerMaxConcurrentStreams:t[xG]});r[Qa]=0,r[Kd]=t,r[mr]=e,Ue.addListener(r,"error",qIe),Ue.addListener(r,"frameError",VIe),Ue.addListener(r,"end",JIe),Ue.addListener(r,"goaway",WIe),Ue.addListener(r,"close",function(){let{[Kd]:n}=this,{[mr]:i}=n,o=this[mr][Qi]||this[Qi]||new cp("closed",Ue.getSocketInfo(i));if(n[yi]=null,n.destroyed){Rn(n[RIe]===0);let a=n[RA].splice(n[Bi]);for(let A=0;A<a.length;A++){let c=a[A];Ue.errorRequest(n,c,o)}}}),r.unref(),t[yi]=r,e[yi]=r,Ue.addListener(e,"error",function(n){Rn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qi]=n,this[Kd][Ex](n)}),Ue.addListener(e,"end",function(){Ue.destroy(this,new cp("other side closed",Ue.getSocketInfo(this)))}),Ue.addListener(e,"close",function(){let n=this[Qi]||new cp("closed",Ue.getSocketInfo(this));t[mr]=null,this[yi]!=null&&this[yi].destroy(n),t[mx]=t[Bi],Rn(t[hI]===0),t.emit("disconnect",t[uI],[t],n),t[DA]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return KIe(t,...n)},resume(){YIe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function YIe(t){let e=t[mr];e?.destroyed===!1&&(t[kIe]===0&&t[xG]===0?(e.unref(),t[yi].unref()):(e.ref(),t[yi].ref()))}function qIe(t){Rn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[mr][Qi]=t,this[Kd][Ex](t)}function VIe(t,e,r){if(r===0){let s=new px(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[mr][Qi]=s,this[Kd][Ex](s)}}function JIe(){let t=new cp("other side closed",Ue.getSocketInfo(this[mr]));this.destroy(t),Ue.destroy(this[mr],t)}function WIe(t){let e=this[Qi]||new cp(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ue.getSocketInfo(this)),r=this[Kd];if(r[mr]=null,r[FIe]=null,this[yi]!=null&&(this[yi].destroy(e),this[yi]=null),Ue.destroy(this[mr],e),r[Bi]<r[RA].length){let s=r[RA][r[Bi]];r[RA][r[Bi]++]=null,Ue.errorRequest(r,s,e),r[mx]=r[Bi]}Rn(r[hI]===0),r.emit("disconnect",r[uI],[r],e),r[DA]()}function zIe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function KIe(t,e){let r=t[yi],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ue.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let S=0;S<c.length;S+=2){let D=c[S+0],F=c[S+1];if(Array.isArray(F))for(let U=0;U<F.length;U++)l[D]?l[D]+=`,${F[U]}`:l[D]=F[U];else l[D]=F}let d,{hostname:g,port:f}=t[uI];l[MIe]=i||`${g}${f?`:${f}`:""}`,l[UIe]=s;let p=S=>{e.aborted||e.completed||(S=S||new bG,Ue.errorRequest(t,e,S),d!=null&&Ue.destroy(d,S),Ue.destroy(u,S),t[RA][t[Bi]++]=null,t[DA]())};try{e.onConnect(p)}catch(S){Ue.errorRequest(t,e,S)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Qa],t[RA][t[Bi]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Qa],t[RA][t[Bi]++]=null}),d.once("close",()=>{r[Qa]-=1,r[Qa]===0&&r.unref()}),!0;l[LIe]=n,l[vIe]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Ue.bodyLength(u);if(Ue.isFormDataLike(u)){wG??=Vd().extractBody;let[S,D]=wG(u);l["content-type"]=D,u=S.stream,m=S.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),zIe(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[DIe])return Ue.errorRequest(t,e,new fx),!1;process.emitWarning(new fx)}m!=null&&(Rn(u,"no body must not have content length"),l[PIe]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[OIe]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("continue",b)):(d=r Line truncated
`,this[BBe]=A??3e5,this[IBe]=n??3e5,this[yBe]=C??!0,this[QBe]=S,this[yx]=F,this[FA]=null,this[TBe]=P>-1?P:-1,this[RBe]=Je??100,this[Yt]=null,this[bi]=[],this[wa]=0,this[wi]=0,this[hp]=Te=>bx(this,Te),this[xBe]=Te=>YG(this,Te)}get pipelining(){return this[mI]}set pipelining(e){this[mI]=e,this[hp](!0)}get[pp](){return this[bi].length-this[wi]}get[fp](){return this[wi]-this[wa]}get[gp](){return this[bi].length-this[wa]}get[hBe](){return!!this[Yt]&&!this[Xd]&&!this[Yt].destroyed}get[Bx](){return!!(this[Yt]?.busy(null)||this[gp]>=(GG(this)||1)||this[pp]>0)}[dBe](e){qG(this),this.once("connect",e)}[SBe](e,r){let s=e.origin||this[Ao].origin,n=new oBe(s,e,r);return this[bi].push(n),this[mu]||(pu.bodyLength(n.body)==null&&pu.isIterable(n.body)?(this[mu]=1,queueMicrotask(()=>bx(this))):this[hp](!0)),this[mu]&&this[MA]!==2&&this[Bx]&&(this[MA]=2),this[MA]<2}async[wBe](){return new Promise(e=>{this[gp]?this[FA]=e:e(null)})}async[NBe](e){return new Promise(r=>{let s=this[bi].splice(this[wi]);for(let i=0;i<s.length;i++){let o=s[i];pu.errorRequest(this,o,e)}let n=()=>{this[FA]&&(this[FA](),this[FA]=null),r(null)};this[Yt]?(this[Yt].destroy(e,n),this[Yt]=null):queueMicrotask(n),this[hp]()})}},FBe=pI();function YG(t,e){if(t[fp]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ba(t[wi]===t[wa]);let r=t[bi].splice(t[wa]);for(let s=0;s<r.length;s++){let n=r[s];pu.errorRequest(t,n,e)}ba(t[gp]===0)}}async function qG(t){ba(!t[Xd]),ba(!t[Yt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ao];if(r[0]==="["){let i=r.indexOf("]");ba(i!==-1);let o=r.substring(1,i);ba(HG.isIP(o)),r=o}t[Xd]=!0,jd.beforeConnect.hasSubscribers&&jd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp]});try{let i=await new Promise((o,a)=>{t[lp]({host:e,hostname:r,protocol:s,port:n,servername:t[kA],localAddress:t[dp]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){pu.destroy(i.on("error",OG),new cBe);return}ba(i);try{t[Yt]=i.alpnProtocol==="h2"?await kBe(t,i):await DBe(t,i)}catch(o){throw i.destroy().on("error",OG),o}t[Xd]=!1,i[bBe]=0,i[yx]=t[yx],i[lBe]=t,i[fBe]=null,jd.connected.hasSubscribers&&jd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp],socket:i}),t.emit("connect",t[Ao],[t])}catch(i){if(t.destroyed)return;if(t[Xd]=!1,jd.connectError.hasSubscribers&&jd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[kA],localAddress:t[dp]},connector:t[lp],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ba(t[fp]===0);t[pp]>0&&t[bi][t[wi]].servername===t[kA];){let o=t[bi][t[wi]++];pu.errorRequest(t,o,i)}else YG(t,i);t.emit("connectionError",t[Ao],[t],i)}t[hp]()}function _G(t){t[MA]=0,t.emit("drain",t[Ao],[t])}function bx(t,e){t[mu]!==2&&(t[mu]=2,MBe(t,e),t[mu]=0,t[wa]>256&&(t[bi].splice(0,t[wa]),t[wi]-=t[wa],t[wa]=0))}function MBe(t,e){for(;;){if(t.destroyed){ba(t[pp]===0);return}if(t[FA]&&!t[gp]){t[FA](),t[FA]=null;return}if(t[Yt]&&t[Yt].resume(),t[Bx])t[MA]=2;else if(t[MA]===2){e?(t[MA]=1,queueMicrotask(()=>_G(t))):_G(t);continue}if(t[pp]===0||t[fp]>=(GG(t)||1))return;let r=t[bi][t[wi]];if(t[Ao].protocol==="https:"&&t[kA]!==r.servername){if(t[fp]>0)return;t[kA]=r.servername,t[Yt]?.destroy(new ABe("servername changed"),()=>{t[Yt]=null,bx(t)})}if(t[Xd])return;if(!t[Yt]){qG(t);return}if(t[Yt].destroyed||t[Yt].busy(r))return;!r.aborted&&t[Yt].write(r)?t[wi]++:t[bi].splice(t[wi],1)}}VG.exports=Qx});var wx=E((lAt,JG)=>{"use strict";var EI=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};JG.exports=class{constructor(){this.head=this.tail=new EI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new EI),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zG=E((dAt,WG)=>{var{kFree:UBe,kConnected:LBe,kPending:vBe,kQueued:PBe,kRunning:OBe,kSize:_Be}=It(),Eu=Symbol("pool"),Nx=class{constructor(e){this[Eu]=e}get connected(){return this[Eu][LBe]}get free(){return this[Eu][UBe]}get pending(){return this[Eu][vBe]}get queued(){return this[Eu][PBe]}get running(){return this[Eu][OBe]}get size(){return this[Eu][_Be]}};WG.exports=Nx});var kx=E((hAt,nY)=>{"use strict";var HBe=Ld(),GBe=wx(),{kConnected:Sx,kSize:KG,kRunning:jG,kPending:XG,kQueued:mp,kBusy:YBe,kFree:qBe,kUrl:VBe,kClose:JBe,kDestroy:WBe,kDispatch:zBe}=It(),KBe=zG(),ps=Symbol("clients"),Xr=Symbol("needDrain"),Ep=Symbol("queue"),Tx=Symbol("closed resolve"),xx=Symbol("onDrain"),ZG=Symbol("onConnect"),$G=Symbol("onDisconnect"),eY=Symbol("onConnectionError"),Rx=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};pq.exports=l2});var CI=E((iat,Bq)=>{"use strict";var Eq=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:iQe}=qe(),oQe=Yd();Iq()===void 0&&Cq(new oQe);function Cq(t){if(!t||typeof t.dispatch!="function")throw new iQe("Argument agent must implement Agent");Object.defineProperty(globalThis,Eq,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Iq(){return globalThis[Eq]}Bq.exports={setGlobalDispatcher:Cq,getGlobalDispatcher:Iq}});var II=E((aat,yq)=>{"use strict";yq.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var bq=E((Aat,Qq)=>{"use strict";var aQe=ZC();Qq.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new aQe(r,o,n,i);return r(a,A)}}});var Nq=E((cat,wq)=>{"use strict";var AQe=cI();wq.exports=t=>e=>function(s,n){return e(s,new AQe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var Tq=E((uat,Sq)=>{"use strict";var cQe=De(),{InvalidArgumentError:uQe,RequestAbortedError:lQe}=qe(),dQe=II(),d2=class extends dQe{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new uQe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=cQe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new lQe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function hQe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new d2({maxSize:i},n);return e(s,o)}}Sq.exports=hQe});var Rq=E((lat,Dq)=>{"use strict";var{isIP:gQe}=w("node:net"),{lookup:fQe}=w("node:dns"),pQe=II(),{InvalidArgumentError:$d,InformationalError:mQe}=qe(),xq=Math.pow(2,31)-1,h2=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new mQe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){fQe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===xq?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===xq?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new g2(this,e,r)}},g2=class extends pQe{#e=null;#t=null;#s=null;#r=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":u7(i)&&(r[n]=i);break;case"id":l7(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&u7(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&l7(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};d7.exports={EventSourceStream:$2}});var B7=E((Gat,I7)=>{"use strict";var{pipeline:SNe}=w("node:stream"),{fetching:TNe}=Ep(),{makeRequest:xNe}=rh(),{webidl:Ta}=Tr(),{EventSourceStream:DNe}=h7(),{parseMIMEType:RNe}=cs(),{createFastMessageEvent:kNe}=Ah(),{isNetworkError:g7}=pp(),{delay:FNe}=j2(),{kEnumerableProperty:Tu}=De(),{environmentSettingsObject:f7}=_s(),p7=!1,m7=3e3,Rp=0,E7=1,kp=2,MNe="anonymous",UNe="use-credentials",hh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Rp;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Ta.util.markAsUncloneable(this);let s="EventSource constructor";Ta.argumentLengthCheck(arguments,1,s),p7||(p7=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ta.converters.USVString(e,s,"url"),r=Ta.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:m7};let n=f7,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=MNe;r.withCredentials&&(o=UNe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=f7.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=xNe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===kp)return;this.#r=Rp;let e={request:this.#n,dispatcher:this.#a},r=s=>{g7(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(g7(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?RNe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=E7,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new DNe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(kNe(A.type,A.options))}});SNe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=TNe(e)}async#c(){this.#r!==kp&&(this.#r=Rp,this.dispatchEvent(new Event("error")),await FNe(this.#o.reconnectionTime),this.#r===Rp&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ta.brandCheck(this,t),this.#r!==kp&&(this.#r=kp,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},C7={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Rp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:E7,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:kp,writable:!1}};Object.defineProperties(hh,C7);Object.defineProperties(hh.prototype,C7);Object.defineProperties(hh.prototype,{close:Tu,onerror:Tu,onmessage:Tu,onopen:Tu,readyState:Tu,url:Tu,withCredentials:Tu});Ta.converters.EventSourceInitDict=Ta.dictionaryConverter([{key:"withCredentials",converter:Ta.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ta.converters.any}]);I7.exports={EventSource:hh,defaultReconnectionTime:m7}});var AB=E((Yat,de)=>{"use strict";var LNe=Hd(),y7=Lf(),vNe=Gd(),PNe=CG(),ONe=Yd(),_Ne=bx(),HNe=YG(),GNe=KG(),Q7=qe(),aB=De(),{InvalidArgumentError:oB}=Q7,gh=UY(),YNe=Pf(),qNe=i2(),VNe=mq(),JNe=A2(),WNe=Jx(),zNe=cI(),{getGlobalDispatcher:b7,setGlobalDispatcher:KNe}=CI(),XNe=II(),jNe=ZC(),ZNe=$C();Object.assign(y7.prototype,gh);de.exports.Dispatcher=y7;de.exports.Client=LNe;de.exports.Pool=vNe;de.exports.BalancedPool=PNe;de.exports.Agent=ONe;de.exports.ProxyAgent=_Ne;de.exports.EnvHttpProxyAgent=HNe;de.exports.RetryAgent=GNe;de.exports.RetryHandle Line truncated
%s`,R,R,C,s);var M=C.type==="*"?qD:C.type==="?"?YD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+M+"\\("+R}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var _=a.length-1;_>-1;_--){var H=a[_],Ye=s.slice(0,H.reStart),at=s.slice(H.reStart,H.reEnd-8),Be=s.slice(H.reEnd-8,H.reEnd),xe=s.slice(H.reEnd);Be+=xe;var Ue=Ye.split("(").length-1,_t=xe;for(p=0;p<Ue;p++)_t=_t.replace(/\)[+*?]?/,"");xe=_t;var Qn="";xe===""&&e!==TB&&(Qn="$");var nu=Ye+at+xe+Qn+Be;s=nu}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=d+s),e===TB)return[s,n];if(!n)return vxe(t);var iu=r.nocase?"i":"";try{var wS=new RegExp("^"+s+"$",iu)}catch{return new RegExp("$.")}return wS._glob=t,wS._src=s,wS}js.makeRe=function(t,e){return new er(t,e||{}).makeRe()};er.prototype.makeRe=Lxe;function Lxe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?qD:e.dot?Txe:xxe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Pu?r:typeof o=="string"?Pxe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}js.match=function(t,e,r){r=r||{};var s=new er(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};er.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Yp.sep!=="/"&&(e=e.split(Yp.sep).join("/")),e=e.split(dz),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};er.prototype.matchOne=function(t,e,r){return e.indexOf(Pu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};er.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Pu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Pu){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,b=[0],T=0;T<c.length;T++){var R=c[T];R===Pu?(b.push(C),m=[[],0],I.push(m)):(m[0].push(R),C++)}for(var M=I.length-1,F=t.length-d,_=0;_<I.length;_++)I[_][1]=F-(b[M--]+I[_][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};er.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};er.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Pu)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function vxe(t){return t.replace(/\\(.)/g,"$1")}function Pxe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Qh=E((Vct,Cz)=>{"use strict";var Jxe="2.0.0",Wxe=Number.MAX_SAFE_INTEGER||9007199254740991,zxe=16,Kxe=250,Xxe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Cz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:zxe,MAX_SAFE_BUILD_LENGTH:Kxe,MAX_SAFE_INTEGER:Wxe,RELEASE_TYPES:Xxe,SEMVER_SPEC_VERSION:Jxe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wp=E((Jct,Iz)=>{"use strict";var jxe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Iz.exports=jxe});var bh=E((go,Bz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:JD,MAX_SAFE_BUILD_LENGTH:Zxe,MAX_LENGTH:$xe}=Qh(),e2e=Wp();go=Bz.exports={};var t2e=go.re=[],r2e=go.safeRe=[],z=go.src=[],s2e=go.safeSrc=[],K=go.t={},n2e=0,WD="[a-zA-Z0-9-]",i2e=[["\\s",1],["\\d",$xe],[WD,Zxe]],o2e=t=>{for(let[e,r]of i2e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`.trim())}};lV.exports=k2});var LI=E((HAt,pV)=>{"use strict";var hV=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Bbe}=qe(),ybe=eh();fV()===void 0&&gV(new ybe);function gV(t){if(!t||typeof t.dispatch!="function")throw new Bbe("Argument agent must implement Agent");Object.defineProperty(globalThis,hV,{value:t,writable:!0,enumerable:!1,configurable:!1})}function fV(){return globalThis[hV]}pV.exports={setGlobalDispatcher:gV,getGlobalDispatcher:fV}});var vI=E((YAt,mV)=>{"use strict";mV.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var CV=E((qAt,EV)=>{"use strict";var Qbe=fI();EV.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new Qbe(r,o,n,i);return r(a,A)}}});var BV=E((VAt,IV)=>{"use strict";var bbe=NI();IV.exports=t=>e=>function(s,n){return e(s,new bbe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var QV=E((JAt,yV)=>{"use strict";var wbe=ke(),{InvalidArgumentError:Nbe,RequestAbortedError:Sbe}=qe(),Tbe=vI(),F2=class extends Tbe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Nbe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,n){let o=wbe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Sbe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function xbe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new F2({maxSize:i},n);return e(s,o)}}yV.exports=xbe});var NV=E((WAt,wV)=>{"use strict";var{isIP:Rbe}=w("node:net"),{lookup:Dbe}=w("node:dns"),kbe=vI(),{InvalidArgumentError:lh,InformationalError:Fbe}=qe(),bV=Math.pow(2,31)-1,M2=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Fbe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){Dbe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===bV?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===bV?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new U2(this,e,r)}},U2=class extends kbe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.onError(r);le Line truncated
${i}`;break;case"retry":nW(i)&&(r[n]=i);break;case"id":iW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&nW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iW(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oW.exports={EventSourceStream:bR}});var fW=E((bct,gW)=>{"use strict";var{pipeline:HSe}=w("node:stream"),{fetching:GSe}=Rp(),{makeRequest:YSe}=gh(),{webidl:Ra}=kr(),{EventSourceStream:qSe}=aW(),{parseMIMEType:VSe}=gs(),{createFastMessageEvent:JSe}=Ih(),{isNetworkError:AW}=Tp(),{delay:WSe}=yR(),{kEnumerableProperty:Fu}=ke(),{environmentSettingsObject:cW}=Js(),uW=!1,lW=3e3,qp=0,dW=1,Vp=2,zSe="anonymous",KSe="use-credentials",wh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=qp;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ra.util.markAsUncloneable(this);let s="EventSource constructor";Ra.argumentLengthCheck(arguments,1,s),uW||(uW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ra.converters.USVString(e,s,"url"),r=Ra.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lW};let n=cW,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=zSe;r.withCredentials&&(o=KSe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=cW.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=YSe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===Vp)return;this.#r=qp;let e={request:this.#i,dispatcher:this.#a},r=s=>{AW(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(AW(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?VSe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new qSe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(JSe(A.type,A.options))}});HSe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=GSe(e)}async#c(){this.#r!==Vp&&(this.#r=qp,this.dispatchEvent(new Event("error")),await WSe(this.#o.reconnectionTime),this.#r===qp&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ra.brandCheck(this,t),this.#r!==Vp&&(this.#r=Vp,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},hW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:qp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Vp,writable:!1}};Object.defineProperties(wh,hW);Object.defineProperties(wh.prototype,hW);Object.defineProperties(wh.prototype,{close:Fu,onerror:Fu,onmessage:Fu,onopen:Fu,readyState:Fu,url:Fu,withCredentials:Fu});Ra.converters.EventSourceInitDict=Ra.dictionaryConverter([{key:"withCredentials",converter:Ra.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ra.converters.any}]);gW.exports={EventSource:wh,defaultReconnectionTime:lW}});var wB=E((wct,fe)=>{"use strict";var jSe=Zd(),pW=Kf(),XSe=$d(),ZSe=hY(),$Se=eh(),eTe=Vx(),tTe=vY(),rTe=qY(),mW=qe(),bB=ke(),{InvalidArgumentError:QB}=mW,Nh=Rq(),sTe=Xf(),nTe=N2(),iTe=dV(),oTe=x2(),aTe=h2(),ATe=NI(),{getGlobalDispatcher:EW,setGlobalDispatcher:cTe}=LI(),uTe=vI(),lTe=fI(),dTe=pI();Object.assign(pW.prototype,Nh);fe.exports.Dispatcher=pW;fe.exports.Client=jSe;fe.exports.Pool=XSe;fe.exports.BalancedPool=ZSe;fe.exports.Agent=$Se;fe.exports.ProxyAgent=eTe;fe.exports.EnvHttpProxyAgent=tTe;fe.exports.RetryAgent=rTe;fe.exports.RetryHandle Line truncated
%s`,D,D,C,s);var F=C.type==="*"?pD:C.type==="?"?fD:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+F+"\\("+D}f(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var P=a.length-1;P>-1;P--){var H=a[P],Re=s.slice(0,H.reStart),Je=s.slice(H.reStart,H.reEnd-8),pe=s.slice(H.reEnd-8,H.reEnd),De=s.slice(H.reEnd);pe+=De;var Te=Re.split("(").length-1,$t=De;for(p=0;p<Te;p++)$t=$t.replace(/\)[+*?]?/,"");De=$t;var er="";De===""&&e!==VB&&(er="$");var ga=Re+Je+De+er+pe;s=ga}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=d+s),e===VB)return[s,n];if(!n)return tRe(t);var fa=r.nocase?"i":"";try{var VS=new RegExp("^"+s+"$",fa)}catch{return new RegExp("$.")}return VS._glob=t,VS._src=s,VS}sn.makeRe=function(t,e){return new nr(t,e||{}).makeRe()};nr.prototype.makeRe=eRe;function eRe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?pD:e.dot?J2e:W2e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===Gu?r:typeof o=="string"?rRe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}sn.match=function(t,e,r){r=r||{};var s=new nr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};nr.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;sm.sep!=="/"&&(e=e.split(sm.sep).join("/")),e=e.split(AK),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};nr.prototype.matchOne=function(t,e,r){return e.indexOf(Gu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};nr.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===Gu){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Gu){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var g=t.length-u.length;if(this._matchOne(t,u,r,g,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(g--,!this._matchOne(t,u,r,g,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,b=[0],S=0;S<c.length;S++){var D=c[S];D===Gu?(b.push(C),m=[[],0],I.push(m)):(m[0].push(D),C++)}for(var F=I.length-1,U=t.length-d,P=0;P<I.length;P++)I[P][1]=U-(b[F--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};nr.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var g=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(g!==!1)return g}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};nr.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Gu)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function tRe(t){return t.replace(/\\(.)/g,"$1")}function rRe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Mh=E((Slt,fK)=>{"use strict";var uRe="2.0.0",lRe=Number.MAX_SAFE_INTEGER||9007199254740991,dRe=16,hRe=250,gRe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dRe,MAX_SAFE_BUILD_LENGTH:hRe,MAX_SAFE_INTEGER:lRe,RELEASE_TYPES:gRe,SEMVER_SPEC_VERSION:uRe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var am=E((Tlt,pK)=>{"use strict";var fRe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pK.exports=fRe});var Uh=E((fo,mK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ED,MAX_SAFE_BUILD_LENGTH:pRe,MAX_LENGTH:mRe}=Mh(),ERe=am();fo=mK.exports={};var CRe=fo.re=[],IRe=fo.safeRe=[],z=fo.src=[],BRe=fo.safeSrc=[],K=fo.t={},yRe=0,CD="[a-zA-Z0-9-]",QRe=[["\\s",1],["\\d",mRe],[CD,pRe]],bRe=t=>{for(let[e,r]of QRe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+hy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Jke()+e+" "+t[0]}function Jke(){return fr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wke(...t){return process.stderr.write(dy.formatWithOptions(fr.inspectOpts,...t)+`
`)}function zke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Kke(){return process.env.DEBUG}function Xke(t){t.inspectOpts={};let e=Object.keys(fr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=fr.inspectOpts[e[r]]}hy.exports=LR()(fr);var{formatters:XX}=hy.exports;XX.o=function(t){return this.inspectOpts.colors=this.useColors,dy.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};XX.O=function(t){return this.inspectOpts.colors=this.useColors,dy.inspect(t,this.inspectOpts)}});var gy=E((ydt,OR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?OR.exports=qX():OR.exports=jX()});var ej=E(Es=>{"use strict";var jke=Es&&Es.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Zke=Es&&Es.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZX=Es&&Es.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&jke(e,t,r);return Zke(e,t),e};Object.defineProperty(Es,"__esModule",{value:!0});Es.req=Es.json=Es.toBuffer=void 0;var $ke=ZX(w("http")),eFe=ZX(w("https"));async function $X(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Es.toBuffer=$X;async function tFe(t){let r=(await $X(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Es.json=tFe;function rFe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?eFe:$ke).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Es.req=rFe});var HR=E(en=>{"use strict";var rj=en&&en.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),sFe=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sj=en&&en.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rj(e,t,r);return sFe(e,t),e},nFe=en&&en.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rj(e,t,r)};Object.defineProperty(en,"__esModule",{value:!0});en.Agent=void 0;var iFe=sj(w("net")),tj=sj(w("http")),oFe=w("https");nFe(ej(),en);var mo=Symbol("AgentBaseInternalState"),_R=class extends tj.Agent{constructor(e){super(e),this[mo]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new iFe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?oFe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof tj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[mo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[mo].currentSocket;if(this[mo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[mo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[mo]&&(this[mo].defaultPort=e)}get protocol(){return this[mo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[mo]&&(this[mo].protocol=e)}};en.Agent=_R});var nj=E(Fh=>{"use strict";var aFe=Fh&&Fh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fh,"__esModule",{value:!0});Fh.parseProxyResponse=void 0;var AFe=aFe(gy()),fy=(0,AFe.default)("https-proxy-agent:parse-proxy-response");function cFe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),fy("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),fy("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
`+i),t.push(n+"m+"+Dy.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=lMe()+e+" "+t[0]}function lMe(){return Cr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dMe(...t){return process.stderr.write(Ry.formatWithOptions(Cr.inspectOpts,...t)+`
`)}function hMe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function gMe(){return process.env.DEBUG}function fMe(t){t.inspectOpts={};let e=Object.keys(Cr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Cr.inspectOpts[e[r]]}Dy.exports=Ak()(Cr);var{formatters:JX}=Dy.exports;JX.o=function(t){return this.inspectOpts.colors=this.useColors,Ry.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};JX.O=function(t){return this.inspectOpts.colors=this.useColors,Ry.inspect(t,this.inspectOpts)}});var ky=E((ngt,lk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?lk.exports=_X():lk.exports=WX()});var jX=E(bs=>{"use strict";var pMe=bs&&bs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),mMe=bs&&bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zX=bs&&bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pMe(e,t,r);return mMe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.req=bs.json=bs.toBuffer=void 0;var EMe=zX(w("http")),CMe=zX(w("https"));async function KX(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}bs.toBuffer=KX;async function IMe(t){let r=(await KX(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}bs.json=IMe;function BMe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?CMe:EMe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}bs.req=BMe});var hk=E(an=>{"use strict";var ZX=an&&an.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),yMe=an&&an.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$X=an&&an.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ZX(e,t,r);return yMe(e,t),e},QMe=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZX(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});an.Agent=void 0;var bMe=$X(w("net")),XX=$X(w("http")),wMe=w("https");QMe(jX(),an);var Eo=Symbol("AgentBaseInternalState"),dk=class extends XX.Agent{constructor(e){super(e),this[Eo]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new bMe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?wMe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof XX.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[Eo].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Eo].currentSocket;if(this[Eo].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Eo].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Eo]&&(this[Eo].defaultPort=e)}get protocol(){return this[Eo].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Eo]&&(this[Eo].protocol=e)}};an.Agent=dk});var eZ=E(qh=>{"use strict";var NMe=qh&&qh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qh,"__esModule",{value:!0});qh.parseProxyResponse=void 0;var SMe=NMe(ky()),Fy=(0,SMe.default)("https-proxy-agent:parse-proxy-response");function TMe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),Fy("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),Fy("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
\r
`);if(d===-1){fy("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let b of h){if(!b)continue;let T=b.indexOf(":");if(T===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let R=b.slice(0,T).toLowerCase(),M=b.slice(T+1).trimStart(),F=C[R];typeof F=="string"?C[R]=[F,M]:Array.isArray(F)?F.push(M):C[R]=M}fy("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Fh.parseProxyResponse=cFe});var uj=E(Un=>{"use strict";var uFe=Un&&Un.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),lFe=Un&&Un.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Aj=Un&&Un.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uFe(e,t,r);return lFe(e,t),e},cj=Un&&Un.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Un,"__esModule",{value:!0});Un.HttpsProxyAgent=void 0;var py=Aj(w("net")),ij=Aj(w("tls")),dFe=cj(w("assert")),hFe=cj(gy()),gFe=HR(),fFe=w("url"),pFe=nj(),am=(0,hFe.default)("https-proxy-agent"),oj=t=>t.servername===void 0&&t.host&&!py.isIP(t.host)?{...t,servername:t.host}:t,my=class extends gFe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new fFe.URL(e):e,this.proxyHeaders=r?.headers??{},am("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?aj(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(am("Creating `tls.Socket`: %o",this.connectOpts),n=ij.connect(oj(this.connectOpts))):(am("Creating `net.Socket`: %o",this.connectOpts),n=py.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=py.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){Fy("have not received end of HTTP headers yet..."),i();return}let g=l.slice(0,d).toString("ascii").split(`\r
`),f=g.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let b of g){if(!b)continue;let S=b.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let D=b.slice(0,S).toLowerCase(),F=b.slice(S+1).trimStart(),U=C[D];typeof U=="string"?C[D]=[U,F]:Array.isArray(U)?U.push(F):C[D]=F}Fy("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}qh.parseProxyResponse=TMe});var oZ=E(Pn=>{"use strict";var xMe=Pn&&Pn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),RMe=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nZ=Pn&&Pn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xMe(e,t,r);return RMe(e,t),e},iZ=Pn&&Pn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.HttpsProxyAgent=void 0;var My=nZ(w("net")),tZ=nZ(w("tls")),DMe=iZ(w("assert")),kMe=iZ(ky()),FMe=hk(),MMe=w("url"),UMe=eZ(),Bm=(0,kMe.default)("https-proxy-agent"),rZ=t=>t.servername===void 0&&t.host&&!My.isIP(t.host)?{...t,servername:t.host}:t,Uy=class extends FMe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new MMe.URL(e):e,this.proxyHeaders=r?.headers??{},Bm("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?sZ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Bm("Creating `tls.Socket`: %o",this.connectOpts),n=tZ.connect(rZ(this.connectOpts))):(Bm("Creating `net.Socket`: %o",this.connectOpts),n=My.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=My.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,pFe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",mFe),r.secureEndpoint?(am("Upgrading socket connection to TLS"),ij.connect({...aj(oj(r),"host","path","port"),socket:n})):n;n.destroy();let l=new py.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{am("Replaying proxy buffer for failed request"),(0,dFe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};my.protocols=["http","https"];Un.HttpsProxyAgent=my;function mFe(t){t.resume()}function aj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var hj=E(Ln=>{"use strict";var EFe=Ln&&Ln.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),CFe=Ln&&Ln.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dj=Ln&&Ln.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&EFe(e,t,r);return CFe(e,t),e},IFe=Ln&&Ln.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.HttpProxyAgent=void 0;var BFe=dj(w("net")),yFe=dj(w("tls")),QFe=IFe(gy()),bFe=w("events"),wFe=HR(),lj=w("url"),Mh=(0,QFe.default)("http-proxy-agent"),Ey=class extends wFe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new lj.URL(e):e,this.proxyHeaders=r?.headers??{},Mh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?NFe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new lj.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Mh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Mh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,UMe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",LMe),r.secureEndpoint?(Bm("Upgrading socket connection to TLS"),tZ.connect({...sZ(rZ(r),"host","path","port"),socket:n})):n;n.destroy();let l=new My.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Bm("Replaying proxy buffer for failed request"),(0,DMe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Uy.protocols=["http","https"];Pn.HttpsProxyAgent=Uy;function LMe(t){t.resume()}function sZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var cZ=E(On=>{"use strict";var vMe=On&&On.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),PMe=On&&On.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AZ=On&&On.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vMe(e,t,r);return PMe(e,t),e},OMe=On&&On.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(On,"__esModule",{value:!0});On.HttpProxyAgent=void 0;var _Me=AZ(w("net")),HMe=AZ(w("tls")),GMe=OMe(ky()),YMe=w("events"),qMe=hk(),aZ=w("url"),Vh=(0,GMe.default)("http-proxy-agent"),Ly=class extends qMe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new aZ.URL(e):e,this.proxyHeaders=r?.headers??{},Vh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?VMe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new aZ.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Vh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Vh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Mh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Mh("Creating `tls.Socket`: %o",this.connectOpts),i=yFe.connect(this.connectOpts)):(Mh("Creating `net.Socket`: %o",this.connectOpts),i=BFe.connect(this.connectOpts)),await(0,bFe.once)(i,"connect"),i}};Ey.protocols=["http","https"];Ln.HttpProxyAgent=Ey;function NFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var vj=E(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.state=void 0;Dy.state={instrumenterImplementation:void 0}});var eZ=E(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.state=void 0;Uy.state={operationRequestMap:new WeakMap}});var Mee=E((BSt,M3e)=>{M3e.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Lee=E((ySt,Uee)=>{var U3e=Mee();Uee.exports={version:U3e.version}});var hb=E(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.isJsonObject=ng.typeofJsonValue=void 0;function q3e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}ng.typeofJsonValue=q3e;function V3e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ng.isJsonObject=V3e});var fb=E(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.base64encode=ig.base64decode=void 0;var za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),gb=[];for(let t=0;t<za.length;t++)gb[za[t].charCodeAt(0)]=t;gb[45]=za.indexOf("+");gb[95]=za.indexOf("/");function J3e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=gb[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}ig.base64decode=J3e;function W3e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=za[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=za[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=za[n|s>>6],e+=za[s&63],r=0;break}return r&&(e+=za[n],e+="=",r==1&&(e+="=")),e}ig.base64encode=W3e});var Hee=E(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});pb.utf8read=void 0;var kL=t=>String.fromCharCode.apply(String,t);function z3e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(kL(s)),n=0);return r.length?(n&&r.push(kL(s.slice(0,n))),r.join("")):kL(s.slice(0,n))}pb.utf8read=z3e});var s0=E(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.WireType=Go.mergeBinaryOptions=Go.UnknownFieldHandler=void 0;var K3e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(K3e=Go.UnknownFieldHandler||(Go.UnknownFieldHandler={}));function X3e(t,e){return Object.assign(Object.assign({},t),e)}Go.mergeBinaryOptions=X3e;var j3e;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(j3e=Go.WireType||(Go.WireType={}))});var Eb=E(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.varint32read=ws.varint32write=ws.int64toString=ws.int64fromString=ws.varint64write=ws.varint64read=void 0;function Z3e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ws.varint64read=Z3e;function $3e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}ws.varint64write=$3e;var mb=65536*65536;function e8e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=mb&&(n=n+(s/mb|0),s=s%mb)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}ws.int64fromString=e8e;function t8e(t,e){if(e>>>0<=2097151)return""+(mb*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}ws.int64toString=t8e;function r8e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ws.varint32write=r8e;function s8e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}ws.varint32read=s8e});var dc=E(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PbLong=lc.PbULong=lc.detectBi=void 0;var n0=Eb(),it;function Gee(){let t=new DataView(new ArrayBuffer(8));it=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}lc.detectBi=Gee;Gee();function Yee(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var qee=/^-?[0-9]+$/,Ib=4294967296,Cb=2147483648,Bb=c Line truncated
`)}};Vb.RpcError=iv});var av=E(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.mergeRpcOptions=void 0;var Ite=Kt();function w4e(t,e){if(!e)return t;let r={};Jb(t,r),Jb(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Ite.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Ite.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Jb(t.meta,r.meta),Jb(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}Wb.mergeRpcOptions=w4e;function Jb(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var cv=E(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.Deferred=pl.DeferredState=void 0;var Vo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vo=pl.DeferredState||(pl.DeferredState={}));var Av=class{constructor(e=!0){this._state=Vo.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Vo.PENDING)throw new Error(`cannot resolve ${Vo[this.state].toLowerCase()}`);this._resolve(e),this._state=Vo.RESOLVED}reject(e){if(this.state!==Vo.PENDING)throw new Error(`cannot reject ${Vo[this.state].toLowerCase()}`);this._reject(e),this._state=Vo.REJECTED}resolvePending(e){this._state===Vo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vo.PENDING&&this.reject(e)}};pl.Deferred=Av});var lv=E(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.RpcOutputStreamController=void 0;var Bte=cv(),ml=Kt(),uv=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){ml.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){ml.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){ml.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){ml.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;ml.assert(e,"bad state"),ml.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Bte.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;ml.assert(s.state==Bte.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};zb.RpcOutputStreamController=uv});var hv=E(dg=>{"use strict";var N4e=dg&&dg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(dg,"__esModule",{value:!0});dg.UnaryCall=void 0;var dv=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return N4e(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};dg.UnaryCall=dv});var fv=E(hg=>{"use strict";var S4e=hg&&hg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(hg,"__esModule",{value:!0});hg.ServerStreamingCall=void 0;var gv=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Vh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Vh("Creating `tls.Socket`: %o",this.connectOpts),i=HMe.connect(this.connectOpts)):(Vh("Creating `net.Socket`: %o",this.connectOpts),i=_Me.connect(this.connectOpts)),await(0,YMe.once)(i,"connect"),i}};Ly.protocols=["http","https"];On.HttpProxyAgent=Ly;function VMe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var FZ=E(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.state=void 0;zy.state={instrumenterImplementation:void 0}});var jZ=E($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.state=void 0;$y.state={operationRequestMap:new WeakMap}});var Fte=E((sxt,$8e)=>{$8e.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Ute=E((nxt,Mte)=>{var e4e=Fte();Mte.exports={version:e4e.version}});var Db=E(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.isJsonObject=fg.typeofJsonValue=void 0;function c4e(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}fg.typeofJsonValue=c4e;function u4e(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}fg.isJsonObject=u4e});var Fb=E(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.base64encode=pg.base64decode=void 0;var ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),kb=[];for(let t=0;t<ja.length;t++)kb[ja[t].charCodeAt(0)]=t;kb[45]=ja.indexOf("+");kb[95]=ja.indexOf("/");function l4e(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=kb[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}pg.base64decode=l4e;function d4e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ja[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ja[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ja[n|s>>6],e+=ja[s&63],r=0;break}return r&&(e+=ja[n],e+="=",r==1&&(e+="=")),e}pg.base64encode=d4e});var _te=E(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.utf8read=void 0;var iv=t=>String.fromCharCode.apply(String,t);function h4e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(iv(s)),n=0);return r.length?(n&&r.push(iv(s.slice(0,n))),r.join("")):iv(s.slice(0,n))}Mb.utf8read=h4e});var m0=E(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WireType=Yo.mergeBinaryOptions=Yo.UnknownFieldHandler=void 0;var g4e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(g4e=Yo.UnknownFieldHandler||(Yo.UnknownFieldHandler={}));function f4e(t,e){return Object.assign(Object.assign({},t),e)}Yo.mergeBinaryOptions=f4e;var p4e;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(p4e=Yo.WireType||(Yo.WireType={}))});var Lb=E(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.varint32read=Ds.varint32write=Ds.int64toString=Ds.int64fromString=Ds.varint64write=Ds.varint64read=void 0;function m4e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ds.varint64read=m4e;function E4e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ds.varint64write=E4e;var Ub=65536*65536;function C4e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=Ub&&(n=n+(s/Ub|0),s=s%Ub)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ds.int64fromString=C4e;function I4e(t,e){if(e>>>0<=2097151)return""+(Ub*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ds.int64toString=I4e;function B4e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Ds.varint32write=B4e;function y4e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Ds.varint32read=y4e});var pc=E(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PbLong=fc.PbULong=fc.detectBi=void 0;var E0=Lb(),at;function Hte(){let t=new DataView(new ArrayBuffer(8));at=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}fc.detectBi=Hte;Hte();function Gte(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Yte=/^-?[0-9]+$/,Pb=4294967296,vb=2147483648,Ob=c Line truncated
`)}};c1.RpcError=kv});var Mv=E(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.mergeRpcOptions=void 0;var Cre=jt();function qOe(t,e){if(!e)return t;let r={};u1(t,r),u1(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Cre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Cre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},u1(t.meta,r.meta),u1(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}l1.mergeRpcOptions=qOe;function u1(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var Lv=E(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.Deferred=Il.DeferredState=void 0;var Jo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Jo=Il.DeferredState||(Il.DeferredState={}));var Uv=class{constructor(e=!0){this._state=Jo.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Jo.PENDING)throw new Error(`cannot resolve ${Jo[this.state].toLowerCase()}`);this._resolve(e),this._state=Jo.RESOLVED}reject(e){if(this.state!==Jo.PENDING)throw new Error(`cannot reject ${Jo[this.state].toLowerCase()}`);this._reject(e),this._state=Jo.REJECTED}resolvePending(e){this._state===Jo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Jo.PENDING&&this.reject(e)}};Il.Deferred=Uv});var Pv=E(d1=>{"use strict";Object.defineProperty(d1,"__esModule",{value:!0});d1.RpcOutputStreamController=void 0;var Ire=Lv(),Bl=jt(),vv=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Bl.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Bl.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Bl.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Bl.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Bl.assert(e,"bad state"),Bl.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Ire.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Bl.assert(s.state==Ire.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};d1.RpcOutputStreamController=vv});var _v=E(Qg=>{"use strict";var VOe=Qg&&Qg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Qg,"__esModule",{value:!0});Qg.UnaryCall=void 0;var Ov=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return VOe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Qg.UnaryCall=Ov});var Gv=E(bg=>{"use strict";var JOe=bg&&bg.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(bg,"__esModule",{value:!0});bg.ServerStreamingCall=void 0;var Hv=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Mie=E(Fie=>{"use strict";var d8=oA().Buffer;Fie._dbcs=aA;var Rr=-1,kie=-2,ii=-10,is=-1e3,Vg=new Array(256),rE=-1;for(Iw=0;Iw<256;Iw++)Vg[Iw]=Rr;var Iw;function aA(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Vg.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(Vg.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Vg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[is-o[s]],A=48;A<=57;A++){if(a[A]===Rr)a[A]=is-n;else if(a[A]>is)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[is-a[A]],u=129;u<=254;u++){if(c[u]===Rr)c[u]=is-i;else{if(c[u]===is-i)continue;if(c[u]>is)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[is-c[u]],d=48;d<=57;d++)l[d]===Rr&&(l[d]=kie)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function HJe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(NJe.has(n)){r=n;break}}return r}function GJe(t,e){let r=HJe(e);r!==""&&(t.referrerPolicy=r)}function YJe(){return"allowed"}function qJe(){return"success"}function VJe(){return"success"}function JJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WJe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&D4(t.origin)&&!D4(Jl(t))&&(e=null);break;case"same-origin":lE(t,Jl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Xg(t,e){return t}function zJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Xg(t.domainLookupStartTime,r),domainLookupEndTime:Xg(t.domainLookupEndTime,r),connectionStartTime:Xg(t.connectionStartTime,r),connectionEndTime:Xg(t.connectionEndTime,r),secureConnectionStartTime:Xg(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function KJe(t){return Xg(DJe.now(),t)}function XJe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function uAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function jJe(t){return{referrerPolicy:t.referrerPolicy}}function ZJe(t){let e=t.referrerPolicy;dE(e);let r=null;if(t.referrer==="client"){let i=iAe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Uc.is.URL(t.referrer)&&(r=t.referrer);let s=x4(r),n=x4(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??x4(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Jl(t);return Vl(s)&&!Vl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Jl(t);return lE(s,i)?s:Vl(s)&&!Vl(i)?"no-referrer":n}case"same-origin":return lE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return lE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Jl(t);return Vl(s)&&!Vl(i)?"no-referrer":s}}}function x4(t,e=!1){return dE(Uc.is.URL(t)),t=new URL(t),gAe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var $Je=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),e7e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function lAe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),e7e(t)):$Je(t)}function t7e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||lAe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Vl(t){return Uc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:t7e(t.origin):!1}function r7e(t){}function lE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function s7e(t){return t.controller.state==="aborted"}function n7e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function i7e(t){return kJe[t.toLowerCase()]??t}var o7e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dAe(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,o7e),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function a7e(t,e,r,s=0,n=1){let i=dAe(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Uc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Uc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Ai(a=>O4(a)&&a!==59,t,e);i=v4.decode(o)}return{name:s,value:i}}function R7e(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Fs("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Ai(a=>a!==10&&a!==13&&a!==58,t,e);if(o=P4(o,!0,!0,a=>a===9||a===32),!Q7e.test(o.toString()))throw Fs("header name does not match the field-name token production");if(t[e.position]!==58)throw Fs("expected :");switch(e.position++,Ai(a=>a===32||a===9,t,e),y7e(o)){case"content-disposition":{if(r=s=null,Ai(A=>O4(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Fs("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=D7e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Fs("name attribute is required in content-disposition header");break}case"content-type":{let a=Ai(A=>A!==10&&A!==13,t,e);a=P4(a,!1,!0,A=>A===9||A===32),n=IAe(a);break}case"content-transfer-encoding":{let a=Ai(A=>A!==10&&A!==13,t,e);a=P4(a,!1,!0,A=>A===9||A===32),i=IAe(a);break}default:Ai(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Fs("expected CRLF");e.position+=2}}function Ai(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function P4(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function k7e(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Fs(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function F7e(t){return t<=31||t===127}function M7e(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function O4(t){return t<=127&&t!==32&&t!==9&&!F7e(t)&&!M7e(t)}BAe.exports={multipartFormDataParser:x7e,validateBoundary:T7e}});var hE=E((SMt,QAe)=>{"use strict";function U7e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}QAe.exports={createDeferredPromise:U7e}});var $g=E((TMt,TAe)=>{"use strict";var G4=Ie(),{ReadableStreamFrom:L7e,readableStreamClose:v7e,fullyReadBody:P7e,extractMimeType:O7e}=hn(),{FormData:bAe,setFormDataState:_7e}=Vw(),{webidl:Wi}=kr(),_4=w("node:assert"),{isErrored:H4,isDisturbed:H7e}=w("node:stream"),{isUint8Array:G7e}=w("node:util/types"),{serializeAMimeType:Y7e}=ai(),{multipartFormDataParser:q7e}=yAe(),{createDeferredPromise:V7e}=hE(),{parseJSONFromBytes:J7e}=uA(),{utf8DecodeBytes:W7e}=Ow(),{runtimeFeatures:z7e}=lA(),K7e=z7e.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Jw=new TextEncoder;function X7e(){}var j7e=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!H7e(e)&&!H4(e)&&e.cancel("Response object has been garbage collected").catch(X7e)});function NAe(t,e=!1){let r=null,s=null;Wi.is.ReadableStream(t)?r=t:Wi.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),_4(Wi.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Wi.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Wi.is.BufferSource(t))i=Wi.util.getCopyOfBytesHeldByBufferSource(t);else if(Wi.is.FormData(t)){let c=`----formdata-undici-0${`${K7e(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Moe=E(Foe=>{"use strict";var _8=AA().Buffer;Foe._dbcs=cA;var Ur=-1,koe=-2,Ai=-10,cs=-1e3,tf=new Array(256),EE=-1;for(Ow=0;Ow<256;Ow++)tf[Ow]=Ur;var Ow;function cA(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=tf.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(tf.slice(0));var i=this.decodeTables.length;this.decodeTables.push(tf.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[cs-o[s]],A=48;A<=57;A++){if(a[A]===Ur)a[A]=cs-n;else if(a[A]>cs)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[cs-a[A]],u=129;u<=254;u++){if(c[u]===Ur)c[u]=cs-i;else{if(c[u]===cs-i)continue;if(c[u]>cs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[cs-c[u]],d=48;d<=57;d++)l[d]===Ur&&(l[d]=koe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var g={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function cWe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(zJe.has(n)){r=n;break}}return r}function uWe(t,e){let r=cWe(e);r!==""&&(t.referrerPolicy=r)}function lWe(){return"allowed"}function dWe(){return"success"}function hWe(){return"success"}function gWe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function fWe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&iO(t.origin)&&!iO(Xl(t))&&(e=null);break;case"same-origin":TE(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function af(t,e){return t}function pWe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:af(t.domainLookupStartTime,r),domainLookupEndTime:af(t.domainLookupEndTime,r),connectionStartTime:af(t.connectionStartTime,r),connectionEndTime:af(t.connectionEndTime,r),secureConnectionStartTime:af(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function mWe(t){return af(ZJe.now(),t)}function EWe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function cce(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function CWe(t){return{referrerPolicy:t.referrerPolicy}}function IWe(t){let e=t.referrerPolicy;xE(e);let r=null;if(t.referrer==="client"){let i=nce();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Oc.is.URL(t.referrer)&&(r=t.referrer);let s=nO(r),n=nO(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??nO(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=Xl(t);return jl(s)&&!jl(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=Xl(t);return TE(s,i)?s:jl(s)&&!jl(i)?"no-referrer":n}case"same-origin":return TE(t,s)?s:"no-referrer";case"origin-when-cross-origin":return TE(t,s)?s:n;case"no-referrer-when-downgrade":{let i=Xl(t);return jl(s)&&!jl(i)?"no-referrer":s}}}function nO(t,e=!1){return xE(Oc.is.URL(t)),t=new URL(t),hce(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var BWe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),yWe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function uce(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),yWe(t)):BWe(t)}function QWe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||uce(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function jl(t){return Oc.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:QWe(t.origin):!1}function bWe(t){}function TE(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function wWe(t){return t.controller.state==="aborted"}function NWe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function SWe(t){return eWe[t.toLowerCase()]??t}var TWe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lce(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,TWe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function xWe(t,e,r,s=0,n=1){let i=lce(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Oc.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Oc.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=li(a=>gO(a)&&a!==59,t,e);i=dO.decode(o)}return{name:s,value:i,extended:n}}function $We(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Os("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=li(a=>a!==10&&a!==13&&a!==58,t,e);if(o=hO(o,!0,!0,a=>a===9||a===32),!VWe.test(o.toString()))throw Os("header name does not match the field-name token production");if(t[e.position]!==58)throw Os("expected :");switch(e.position++,li(a=>a===32||a===9,t,e),qWe(o)){case"content-disposition":{r=s=null;let a=!1;if(li(c=>gO(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Os("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=ZWe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Os("name attribute is required in content-disposition header");break}case"content-type":{let a=li(A=>A!==10&&A!==13,t,e);a=hO(a,!1,!0,A=>A===9||A===32),n=Cce(a);break}case"content-transfer-encoding":{let a=li(A=>A!==10&&A!==13,t,e);a=hO(a,!1,!0,A=>A===9||A===32),i=Cce(a);break}default:li(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Os("expected CRLF");e.position+=2}}function li(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function hO(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function eze(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Os(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function tze(t){return t<=31||t===127}function rze(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function gO(t){return t<=127&&t!==32&&t!==9&&!tze(t)&&!rze(t)}Ice.exports={multipartFormDataParser:XWe,validateBoundary:jWe}});var RE=E((cLt,yce)=>{"use strict";function sze(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}yce.exports={createDeferredPromise:sze}});var uf=E((uLt,Sce)=>{"use strict";var mO=Be(),{ReadableStreamFrom:nze,readableStreamClose:ize,fullyReadBody:oze,extractMimeType:aze}=Cn(),{FormData:Qce,setFormDataState:Aze}=uN(),{webidl:Ki}=Lr(),fO=w("node:assert"),{isErrored:pO,isDisturbed:cze}=w("node:stream"),{isUint8Array:uze}=w("node:util/types"),{serializeAMimeType:lze}=ui(),{multipartFormDataParser:dze}=Bce(),{createDeferredPromise:hze}=RE(),{parseJSONFromBytes:gze}=dA(),{utf8DecodeBytes:fze}=nN(),{runtimeFeatures:pze}=hA(),mze=pze.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),lN=new TextEncoder;function Eze(){}var Cze=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!cze(e)&&!pO(e)&&e.cancel("Response object has been garbage collected").catch(Eze)});function wce(t,e=!1){let r=null,s=null;Ki.is.ReadableStream(t)?r=t:Ki.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),fO(Ki.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Ki.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ki.is.BufferSource(t))i=Ki.util.getCopyOfBytesHeldByBufferSource(t);else if(Ki.is.FormData(t)){let c=`----formdata-undici-0${`${mze(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let b=Jw.encode(u+`; name="${l(d(m))}"\r
`),g=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let b=lN.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(b),o+=b.byteLength}else{let b=Jw.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);g.push(b),o+=b.byteLength}else{let b=lN.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=Jw.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Wi.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(G4.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Wi.is.ReadableStream(t)?t:L7e(t)}return(typeof i=="string"||G7e(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(H4(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!H4(r)&&s.enqueue(typeof c=="string"?Jw.encode(c):new Uint8Array(c));queueMicrotask(()=>v7e(s))})(),[{stream:r,source:i,length:o},a]}function Z7e(t,e=!1){return Wi.is.ReadableStream(t)&&(_4(!G4.isDisturbed(t),"The body has already been consumed."),_4(!t.locked,"The stream is locked.")),NAe(t,e)}function $7e(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function eWe(t,e){return{blob(){return Zg(this,s=>{let n=wAe(e(this));return n===null?n="":n&&(n=Y7e(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Zg(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Zg(this,W7e,t,e)},json(){return Zg(this,J7e,t,e)},formData(){return Zg(this,s=>{let n=wAe(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=q7e(s,n),o=new bAe;return _7e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new bAe;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Zg(this,s=>new Uint8Array(s),t,e)}}}function tWe(t,e){Object.assign(t.prototype,eWe(t,e))}function Zg(t,e,r,s){try{Wi.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),SAe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=V7e(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(P7e(t.body,o,i),n.promise)}function SAe(t){let e=t.body;return e!=null&&(e.stream.locked||G4.isDisturbed(e.stream))}function wAe(t){let e=t.headersList,r=O7e(e);return r==="failure"?null:r}TAe.exports={extractBody:NAe,safelyExtractBody:Z7e,cloneBody:$7e,mixinBody:tWe,streamRegistry:j7e,bodyUnusable:SAe}});var OAe=E((xMt,PAe)=>{"use strict";var he=w("node:assert"),ge=Ie(),{channels:xAe}=Fc(),Y4=b8(),{RequestContentLengthMismatchError:Wl,ResponseContentLengthMismatchError:rWe,RequestAbortedError:UAe,HeadersTimeoutError:sWe,HeadersOverflowError:nWe,SocketError:pE,InformationalError:ef,BodyTimeoutError:iWe,HTTPParserError:oWe,ResponseExceededMaxSizeError:aWe}=me(),{kUrl:LAe,kReset:Ms,kClient:X4,kParser:Pt,kBlocking:mE,kRunning:Yr,kPending:AWe,kSize:DAe,kWriting:vc,kQueue:zi,kNoRef:gE,kKeepAliveDefaultTimeout:cWe,kHostHeader:uWe,kPendingIdx:lWe,kRunningIdx:ci,kError:ui,kPipelining:Kw,kSocket:tf,kKeepAliveTimeoutValue:jw,kMaxHeadersSize:dWe,kKeepAliveMaxTimeout:hWe,kKeepAliveTimeoutThreshold:gWe,kHeadersTimeout:fWe,kBodyTimeout:pWe,kStrictContentLength:J4,kMaxRequests:RAe,kCounter:mWe,kMaxResponseSize:EWe,kOnError:CWe,kResume:Lc,kHTTPContext:vAe,kClosed:W4}=$e(),ea=Tae(),IWe=Buffer.alloc(0),Ww=Buffer[Symbol.species],BWe=ge.removeAllListeners,q4;function yWe(){let t=process.env.JEST_WORKER_ID?p4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(Rae())}catch{}return e||(e=new WebAssembly.Module(t||p4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onStatus(new Ww(ta.buffer,o,i))},wasm_on_message_begin:s=>(he(lr.ptr===s),lr.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderField(new Ww(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onHeaderValue(new Ww(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(he(lr.ptr===s),lr.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{he(lr.ptr===s);let o=n-ra+ta.byteOffset;return lr.onBody(new Ww(ta.buffer,o,i))},wasm_on_message_complete:s=>(he(lr.ptr===s),lr.onMessageComplete())}})}var V4=null,lr=null,ta=null,zw=0,ra=null,QWe=0,fE=1,rf=2|fE,Xw=4|fE,z4=8|QWe,K4=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(ea.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[dWe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[EWe]}setTi Line truncated
`);g.push(b,C,f),typeof C.size=="number"?o+=b.byteLength+C.size+f.byteLength:p=!0}let I=lN.encode(`--${c}--\r
`);g.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of g)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Ki.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mO.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ki.is.ReadableStream(t)?t:nze(t)}return(typeof i=="string"||uze(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(pO(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!pO(r)&&s.enqueue(typeof c=="string"?lN.encode(c):new Uint8Array(c));queueMicrotask(()=>ize(s))})(),[{stream:r,source:i,length:o},a]}function Ize(t,e=!1){return Ki.is.ReadableStream(t)&&(fO(!mO.isDisturbed(t),"The body has already been consumed."),fO(!t.locked,"The stream is locked.")),wce(t,e)}function Bze(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function yze(t,e){return{blob(){return cf(this,s=>{let n=bce(e(this));return n===null?n="":n&&(n=lze(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return cf(this,s=>new Uint8Array(s).buffer,t,e)},text(){return cf(this,fze,t,e)},json(){return cf(this,gze,t,e)},formData(){return cf(this,s=>{let n=bce(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=dze(s,n),o=new Qce;return Aze(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Qce;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return cf(this,s=>new Uint8Array(s),t,e)}}}function Qze(t,e){Object.assign(t.prototype,yze(t,e))}function cf(t,e,r,s){try{Ki.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Nce(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=hze(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(oze(t.body,o,i),n.promise)}function Nce(t){let e=t.body;return e!=null&&(e.stream.locked||mO.isDisturbed(e.stream))}function bce(t){let e=t.headersList,r=aze(e);return r==="failure"?null:r}Sce.exports={extractBody:wce,safelyExtractBody:Ize,cloneBody:Bze,mixinBody:Qze,streamRegistry:Cze,bodyUnusable:Nce}});var Gce=E((lLt,Hce)=>{"use strict";var le=w("node:assert"),se=Be(),{channels:Tce}=vc(),EO=Z8(),{RequestContentLengthMismatchError:Zl,ResponseContentLengthMismatchError:xce,RequestAbortedError:vce,InvalidArgumentError:bze,HeadersTimeoutError:wze,HeadersOverflowError:Nze,SocketError:$l,InformationalError:lf,BodyTimeoutError:Sze,HTTPParserError:Tze,ResponseExceededMaxSizeError:xze}=Ce(),{kUrl:Pce,kReset:_s,kClient:pN,kParser:Et,kBlocking:FE,kRunning:ar,kPending:wO,kSize:Rce,kWriting:_c,kQueue:ji,kNoRef:DE,kKeepAliveDefaultTimeout:Rze,kHostHeader:Dze,kPendingIdx:kze,kRunningIdx:di,kError:us,kPipelining:gN,kSocket:td,kKeepAliveTimeoutValue:mN,kMaxHeadersSize:Fze,kKeepAliveMaxTimeout:Mze,kKeepAliveTimeoutThreshold:Uze,kHeadersTimeout:Lze,kBodyTimeout:vze,kStrictContentLength:BO,kMaxRequests:Dce,kCounter:Pze,kMaxResponseSize:Oze,kOnError:kce,kResume:fA,kHTTPContext:Oce,kClosed:yO}=et(),In=SAe(),Fce=Buffer.alloc(0),dN=Buffer[Symbol.species],_ze=se.removeAllListeners,rd=Symbol("kIdleSocketValidation"),ed=Symbol("kIdleSocketValidationTimeout"),NO=Symbol("kSocketUsed"),CO;function Hze(){let t=process.env.JEST_WORKER_ID?V4():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(RAe())}catch{}return e||(e=new WebAssembly.Module(t||V4())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onStatus(new dN(ta.buffer,o,i))},wasm_on_message_begin:s=>(le(_t.ptr===s),_t.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onHeaderField(new dN(ta.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onHeaderValue(new dN(ta.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(le(_t.ptr===s),_t.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{le(_t.ptr===s);let o=n-ra+ta.byteOffset;return _t.onBody(new dN(ta.buffer,o,i))},wasm_on_message_complete:s=>(le(_t.ptr===s),_t.onMessageComplete())}})}var IO=null,_t=null,ta=null,hN=0,ra=null,Gze=0,kE=1,df=2|kE,fN=4|kE,QO=8|Gze,bO=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(In.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Fze],this.shouldKeepAliv Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[uWe],i?p+=`connection: upgrade\r
`:p+=t[Dze],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Kw]&&!h[Ms]?p+=`connection: keep-alive\r
`:t[gN]&&!g[_s]?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 xAe.sendHeaders.hasSubscribers&&xAe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?FAe(f,null,t,e,h,u,p,l):ge.isBuffer(A)?FAe(f,A,t,e,h,u,p,l):ge.isBlobLike(A)?typeof A.stream=="function"?MAe(f,A.stream(),t,e,h,u,p,l):MWe(f,A,t,e,h,u,p,l):ge.isStream(A)?FWe(f,A,t,e,h,u,p,l):ge.isIterable(A)?MAe(f,A,t,e,h,u,p,l):he(!1),!0}function FWe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"stream body cannot be pipelined");let A=!1,c=new Zw({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ge.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new UAe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,he(n.destroyed||n[vc]&&r[Yr]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ge.destroy(e,f):ge.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function FAe(t,e,r,s,n,i,o,a){try{e?ge.isBuffer(e)&&(he(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return Tce.sendHeaders.hasSubscribers&&Tce.sendHeaders.publish({request:e,headers:p,socket:g}),!A||d===0?Uce(f,null,t,e,g,u,p,l):se.isBuffer(A)?Uce(f,A,t,e,g,u,p,l):se.isBlobLike(A)?typeof A.stream=="function"?Lce(f,A.stream(),t,e,g,u,p,l):eKe(f,A,t,e,g,u,p,l):se.isStream(A)?$ze(f,A,t,e,g,u,p,l):se.isIterable(A)?Lce(f,A,t,e,g,u,p,l):le(!1),!0}function $ze(t,e,r,s,n,i,o,a){le(i!==0||r[ar]===0,"stream body cannot be pipelined");let A=!1,c=new EN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){se.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",g)}),!A){let f=new vce;queueMicrotask(()=>g(f))}},g=function(f){if(!A){if(A=!0,le(n.destroyed||n[_c]&&r[ar]<=1),n.off("drain",l).off("error",g),e.removeListener("data",u).removeListener("end",g).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?se.destroy(e,f):se.destroy(e)}};e.on("data",u).on("end",g).on("error",g).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",g),e.errorEmitted??e.errored?setImmediate(g,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(g,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Uce(t,e,r,s,n,i,o,a){try{e?se.isBuffer(e)&&(le(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Ms]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[_s]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(he(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Lc]()}catch(A){t(A)}}async function MWe(t,e,r,s,n,i,o,a){he(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(le(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[fA]()}catch(A){t(A)}}async function eKe(t,e,r,s,n,i,o,a){le(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Zl;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ms]=!0),r[Lc]()}catch(A){t(A)}}async function MAe(t,e,r,s,n,i,o,a){he(i!==0||r[Yr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{he(A===null),n[ui]?h(n[ui]):A=d});n.on("close",c).on("drain",c);let l=new Zw({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ui])throw n[ui];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var Zw=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[vc]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ui])throw r[ui];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[J4])throw new Wl;process.emitWarning(new Wl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ms]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[_s]=!0),r[fA]()}catch(A){t(A)}}async function Lce(t,e,r,s,n,i,o,a){le(i!==0||r[ar]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{le(A===null),n[us]?g(n[us]):A=d});n.on("close",c).on("drain",c);let l=new EN({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[us])throw n[us];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var EN=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[_c]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[us])throw r[us];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[BO])throw new Zl;process.emitWarning(new Zl)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[_s]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Pt].timeout&&r[Pt].timeoutType===rf&&r[Pt].timeout.refresh&&r[Pt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[vc]=!1,e[ui])throw e[ui];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Et].timeout&&r[Et].timeoutType===df&&r[Et].timeout.refresh&&r[Et].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_c]=!1,e[us])throw e[us];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[J4])throw new Wl;process.emitWarning(new Wl)}e[Pt].timeout&&e[Pt].timeoutType===rf&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),s[Lc]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[vc]=!1,e&&(he(s[Yr]<=1,"pipeline should only contain this request"),n(e))}};PAe.exports=bWe});var zAe=E((DMt,WAe)=>{"use strict";var di=w("node:assert"),{pipeline:UWe}=w("node:stream"),Te=Ie(),{RequestContentLengthMismatchError:eO,RequestAbortedError:LWe,SocketError:BE,InformationalError:Pc,InvalidArgumentError:vWe}=me(),{kUrl:IE,kReset:rN,kClient:gn,kRunning:yE,kPending:PWe,kQueue:Oc,kPendingIdx:rO,kRunningIdx:Ki,kError:fn,kSocket:St,kStrictContentLength:OWe,kOnError:sf,kMaxConcurrentStreams:eN,kPingInterval:_Ae,kHTTP2Session:hA,kHTTP2InitialWindowSize:_We,kHTTP2ConnectionWindowSize:HWe,kResume:sa,kSize:GWe,kHTTPContext:sO,kClosed:tO,kBodyTimeout:YWe,kEnableConnectProtocol:EE,kRemoteSettings:CE,kHTTP2Stream:$w,kHTTP2SessionState:nO}=$e(),{channels:HAe}=Fc(),li=Symbol("open streams"),GAe,tN;try{tN=w("node:http2")}catch{tN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:qWe,HTTP2_HEADER_METHOD:YAe,HTTP2_HEADER_PATH:qAe,HTTP2_HEADER_SCHEME:j4,HTTP2_HEADER_CONTENT_LENGTH:VWe,HTTP2_HEADER_EXPECT:JWe,HTTP2_HEADER_STATUS:Z4,HTTP2_HEADER_PROTOCOL:WWe,NGHTTP2_REFUSED_STREAM:zWe,NGHTTP2_CANCEL:KWe}}=tN;function $4(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function XWe(t,e){t[St]=e;let r=t[_We],s=t[HWe],n=tN.connect(t[IE],{createConnection:()=>e,peerMaxConcurrentStreams:t[eN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[St]=e,n[li]=0,n[gn]=t,n[St]=e,n[nO]={ping:{interval:t[_Ae]===0?null:setInterval(eze,t[_Ae],n).unref()}},n[EE]=!1,n[CE]=!1,s&&Te.addListener(n,"connect",ZWe.bind(n,s)),Te.addListener(n,"error",tze),Te.addListener(n,"frameError",rze),Te.addListener(n,"end",sze),Te.addListener(n,"goaway",nze),Te.addListener(n,"close",ize),Te.addListener(n,"remoteSettings",$We),n.unref(),t[hA]=n,e[hA]=n,Te.addListener(e,"error",aze),Te.addListener(e,"end",Aze),Te.addListener(e,"close",oze),e[tO]=!1,e.on("close",cze),{version:"h2",defaultPipelining:1/0,write(i){return lze(t,i)},resume(){jWe(t)},destroy(i,o){e[tO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[yE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[CE]===!1||Te.bodyLength(i.body)!==0&&(Te.isStream(i.body)||Te.isAsyncIterable(i.body)||Te.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[CE]===!1;return!1}}}function jWe(t){let e=t[St];e?.destroyed===!1&&(t[GWe]===0||t[eN]===0?(e.unref(),t[hA].unref()):(e.ref(),t[hA].ref()))}function ZWe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function $We(t){if(this[gn][eN]=t.maxConcurrentStreams??this[gn][eN],this[CE]===!0&&this[EE]===!0&&t.enableConnectProtocol===!1){let e=new Pc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[St][fn]=e,this[gn][sf](e);return}this[EE]=t.enableConnectProtocol??this[EE],this[CE]=!0,this[gn][sa]()}function eze(t){let e=t[nO];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[gn],o=this[gn];if(s!=null){let a=new Pc(`HTTP/2: "PING" errored - type ${s.message}`);o[fn]=a,i[sf](a)}else i.emit("ping",n)}}function tze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[St][fn]=t,this[gn][sf](t)}function rze(t,e,r){if(r===0){let s=new Pc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[St][fn]=s,this[gn][sf](s)}}function sze(){let t=new BE("other side closed",Te.getSocketInfo(this[St]));this.destroy(t),Te.destroy(this[St],t)}function nze(t){let e=this[fn]||new BE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Te.getSocketInfo(this[St])),r=this[gn];if(r[St]=null,r[sO]=null,this.close(),this[hA]=null,Te.destroy(this[St],e),r[Ki]<r[Oc].length){let s=r[Oc][r[Ki]];r[Oc][r[Ki]++]=null,Te.errorRequest(r,s,e),r[rO]=r[Ki]}di(r[yE]===0),r.emit("disconnect",r[IE],[r],e),r.emit("connectionError",r[IE],[r],e),r[sa]()}function ize(){let{[gn]:t,[nO]:e}=this,{[St]:r}=t,s=this[St][fn]||this[fn]||new BE("closed",Te.getSocketInfo(r));if(t[St]=null,t[sO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){di(t[PWe]===0);let n=t[Oc].splice(t[Ki]);for(let i=0;i<n.length;i++){let o=n[i];Te.errorRequest(t,o,s)}}}function oze(){let t=this[fn]||new BE("closed",Te.getSocketInfo(this)),e=this[hA][gn];e[St]=null,e[sO]=null,this[hA]!==null&&this[hA].destroy(t),e[rO]=e[Ki],di(e[yE]===0),e.emit("disconnect",e[IE],[e],t),e[sa]()}function aze(t){di(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fn]=t,this[gn][sf](t)}function Aze(){Te.destroy(this,new BE("other side closed",Te.getSocketInfo(this)))}func Line truncated
`;HAe.sendHeaders.publish({request:e,headers:F,socket:s[St]})}let T=n==="GET"||n==="HEAD"||d===null;A?(h[JWe]="100-continue",f=s.request(h,{endStream:T,signal:c}),f[$w]=!0,f.once("continue",M)):(f=s.request(h,{endStream:T,signal:c}),f[$w]=!0,M()),++s[li],f.setTimeout(r);let R=!1;return f.once("response",F=>{let{[Z4]:_,...H}=F;if(e.onResponseStarted(),R=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(_),$4(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ye=>{e.aborted||e.completed||e.onData(Ye)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),R?(!e.aborted&&!e.completed&&e.onComplete({}),t[Oc][t[Ki]++]=null,t[sa]()):(m(new Pc("HTTP/2: stream half-closed (remote)")),t[Oc][t[Ki]++]=null,t[rO]=t[Ki],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),m(F)}),f.once("frameError",(F,_)=>{f.removeAllListeners("data"),m(new Pc(`HTTP/2: "frameError" received - type ${F}, code ${_}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Pc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[li]-=1,s[li]===0&&s.unref(),m(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function M(){!d||b===0?VAe(m,f,null,t,e,t[St],b,C):Te.isBuffer(d)?VAe(m,f,d,t,e,t[St],b,C):Te.isBlobLike(d)?typeof d.stream=="function"?JAe(m,f,d.stream(),t,e,t[St],b,C):hze(m,f,d,t,e,t[St],b,C):Te.isStream(d)?dze(m,t[St],C,f,d,t,e,b):Te.isIterable(d)?JAe(m,f,d,t,e,t[St],b,C):di(!1)}}function VAe(t,e,r,s,n,i,o,a){try{r!=null&&Te.isBuffer(r)&&(di(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[rN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function dze(t,e,r,s,n,i,o,a){di(a!==0||i[yE]===0,"stream body cannot be pipelined");let A=UWe(n,s,u=>{u?(Te.destroy(A,u),t(u)):(Te.removeAllListeners(A),o.onRequestSent(),r||(e[rN]=!0),i[sa]())});Te.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function hze(t,e,r,s,n,i,o,a){di(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new eO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[rN]=!0),s[sa]()}catch(A){t(A)}}async function JAe(t,e,r,s,n,i,o,a){di(o!==0||s[yE]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{di(A===null),i[fn]?d(i[fn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[fn])throw i[fn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[rN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}WAe.exports=XWe});var qc=E((RMt,sce)=>{"use strict";var gA=w("node:assert"),$Ae=w("node:net"),QE=w("node:http"),zl=Ie(),{ClientStats:gze}=$8(),{channels:nf}=Fc(),fze=pae(),pze=Gl(),{InvalidArgumentError:mt,InformationalError:mze,ClientDestroyedError:Eze}=me(),Cze=Yl(),{kUrl:na,kServerName:Yc,kClient:Ize,kBusy:iO,kConnect:Bze,kResuming:Kl,kRunning:SE,kPending:TE,kSize:bE,kQueue:Xi,kConnected:yze,kConnecting:of,kNeedDrain:Hc,kKeepAliveDefaultTimeout:KAe,kHostHeader:Qze,kPendingIdx:ji,kRunningIdx:fA,kError:bze,kPipelining:sN,kKeepAliveTimeoutValue:wze,kMaxHeadersSize:Nze,kKeepAliveMaxTimeout:Sze,kKeepAliveTimeoutThreshold:Tze,kHeadersTimeout:xze,kBodyTimeout:Dze,kStrictContentLength:Rze,kConnector:wE,kMaxRequests:oO,kCounter:kze,kClose:Fze,kDestroy:Mze,kDispatch:Uze,kLocalAddress:NE,kMaxResponseSize:Lze,kOnError:vze,kHTTPContext:jt,kMaxConcurrentStreams:Pze,kHTTP2InitialWindowSize:Oze,kHTTP2ConnectionWindowSize:_ze,kResume:Gc,kPingInterval:Hze}=$e(),Gze=OAe(),Yze=zAe(),_c=Symbol("kClosedResolve"),qze=QE&&QE.maxHeaderSize&&Number.isInteger(QE.maxHeaderSize)&&QE.maxHeaderSize>0?()=>QE.maxHeaderSize:()=>{throw new mt("http module not available or http.maxHeaderSize invalid")},XAe=()=>{};function ece(t){return t[sN]??t[jt]?.defaultPipelining??1}var aO=class extends pze{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:T,localAddress:R,maxResponseSize:M,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:_,maxConcurrentStreams:H,allowH2:Ye,useH2c:at,initialWindowSize:Be,connectionWindowSize:xe,pingInterval:Ue}={}){if(c!==void 0)throw new mt("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new mt("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mt("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new mt("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new mt(" Line truncated
`,this[Dze]=a??3e5,this[xze]=s??3e5,this[Rze]=m??!0,this[oO]=T,this[_c]=null,this[Lze]=M>-1?M:-1,this[jt]=null,this[Pze]=H??100,this[Oze]=Be??262144,this[_ze]=xe??524288,this[Hze]=Ue??6e4,this[Xi]=[],this[fA]=0,this[ji]=0,this[Gc]=_t=>AO(this,_t),this[vze]=_t=>tce(this,_t)}get pipelining(){return this[sN]}set pipelining(e){this[sN]=e,this[Gc](!0)}get stats(){return new gze(this)}get[TE](){return this[Xi].length-this[ji]}get[SE](){return this[ji]-this[fA]}get[bE](){return this[Xi].length-this[fA]}get[yze](){return!!this[jt]&&!this[of]&&!this[jt].destroyed}get[iO](){return!!(this[jt]?.busy(null)||this[bE]>=(ece(this)||1)||this[TE]>0)}[Bze](e){rce(this),this.once("connect",e)}[Uze](e,r){let s=new fze(this[na].origin,e,r);return this[Xi].push(s),this[Kl]||(zl.bodyLength(s.body)==null&&zl.isIterable(s.body)?(this[Kl]=1,queueMicrotask(()=>AO(this))):this[Gc](!0)),this[Kl]&&this[Hc]!==2&&this[iO]&&(this[Hc]=2),this[Hc]<2}[Fze](){return new Promise(e=>{this[bE]?this[_c]=e:e(null)})}[Mze](e){return new Promise(r=>{let s=this[Xi].splice(this[ji]);for(let i=0;i<s.length;i++){let o=s[i];zl.errorRequest(this,o,e)}let n=()=>{this[_c]&&(this[_c](),this[_c]=null),r(null)};this[jt]?(this[jt].destroy(e,n),this[jt]=null):queueMicrotask(n),this[Gc]()})}};function tce(t,e){if(t[SE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gA(t[ji]===t[fA]);let r=t[Xi].splice(t[fA]);for(let s=0;s<r.length;s++){let n=r[s];zl.errorRequest(t,n,e)}gA(t[bE]===0)}}function rce(t){gA(!t[of]),gA(!t[jt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");gA(i!==-1);let o=r.substring(1,i);gA($Ae.isIPv6(o)),r=o}t[of]=!0,nf.beforeConnect.hasSubscribers&&nf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Yc],localAddress:t[NE]},connector:t[wE]}),t[wE]({host:e,hostname:r,protocol:s,port:n,servername:t[Yc],localAddress:t[NE]},(i,o)=>{if(i){jAe(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Gc]();return}if(t.destroyed){zl.destroy(o.on("error",XAe),new Eze),t[Gc]();return}gA(o);try{t[jt]=o.alpnProtocol==="h2"?Yze(t,o):Gze(t,o)}catch(a){o.destroy().on("error",XAe),jAe(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Gc]();return}t[of]=!1,o[kze]=0,o[oO]=t[oO],o[Ize]=t,o[bze]=null,nf.connected.hasSubscribers&&nf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[jt]?.version,servername:t[Yc],localAddress:t[NE]},connector:t[wE],socket:o}),t.emit("connect",t[na],[t]),t[Gc]()})}function jAe(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[of]=!1,nf.connectError.hasSubscribers&&nf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[jt]?.version,servername:t[Yc],localAddress:t[NE]},connector:t[wE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gA(t[SE]===0);t[TE]>0&&t[Xi][t[ji]].servername===t[Yc];){let o=t[Xi][t[ji]++];zl.errorRequest(t,o,e)}else tce(t,e);t.emit("connectionError",t[na],[t],e)}}function ZAe(t){t[Hc]=0,t.emit("drain",t[na],[t])}function AO(t,e){t[Kl]!==2&&(t[Kl]=2,Vze(t,e),t[Kl]=0,t[fA]>256&&(t[Xi].splice(0,t[fA]),t[ji]-=t[fA],t[fA]=0))}function Vze(t,e){for(;;){if(t.destroyed){gA(t[TE]===0);return}if(t[_c]&&!t[bE]){t[_c](),t[_c]=null;return}if(t[jt]&&t[jt].resume(),t[iO])t[Hc]=2;else if(t[Hc]===2){e?(t[Hc]=1,queueMicrotask(()=>ZAe(t))):ZAe(t);continue}if(t[TE]===0||t[SE]>=(ece(t)||1))return;let r=t[Xi][t[ji]];if(r===null)return;if(t[na].protocol==="https:"&&t[Yc]!==r.servername){if(t[SE]>0)return;t[Yc]=r.servername,t[jt]?.destroy(new mze("servername changed"),()=>{t[jt]=null,AO(t)})}if(t[of])return;if(!t[jt]){rce(t);return}if(t[jt].destroyed||t[jt].busy(r))return;!r.aborted&&t[jt].write(r)?t[ji]++:t[Xi].splice(t[ji],1)}}sce.exports=aO});var cO=E((FMt,nce)=>{"use strict";var nN=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};nce.exports=class{constructor(){this.head=this.tail=new nN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var iN=E((MMt,hce)=>{"use strict";var{PoolStats:Jze}=$8(),Wze=Gl(),zze=cO(),{kConnected:uO,kSize:ice,kRunning:oce,kPending:ace,kQueued:xE,kBusy:Kze,kFree:Xze,kUrl:jze,kClose:Zze,kDestroy:$ze,kDispatch:eKe}=$e(),Sr=Symbol("clients"),os=Symbol("needDrain"),DE=Symbol("queue"),lO=Symbol("closed resolve"),dO=Symbol("onDrain"),Ace=Symbol("onConnect"),cce=Symbol("onDisconnect"),uce=Symbol("onConnectionError"),hO=Symbol("get dispatcher"),lce=Symbol("add client"),dce=Symbol("remove client"),gO=class extends Wze{[DE]=new zze;[xE]=0;[Sr]=[];[os]=!1;[dO](e,r,s){let n=this[DE],i=!1;for(;!i;){let o=n.shi Line truncated
`,"latin1"),r!==null&&n!==r){if(s[BO])throw new Zl;process.emitWarning(new Zl)}e[Et].timeout&&e[Et].timeoutType===df&&e[Et].timeout.refresh&&e[Et].timeout.refresh(),s[fA]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[_c]=!1,e&&(le(s[ar]<=1,"pipeline should only contain this request"),n(e))}};Hce.exports=Yze});var Xce=E((dLt,jce)=>{"use strict";var gi=w("node:assert"),{pipeline:tKe}=w("node:stream"),xe=Be(),{RequestContentLengthMismatchError:RO,RequestAbortedError:rKe,SocketError:vE,InformationalError:Hc,InvalidArgumentError:sKe}=Ce(),{kUrl:LE,kReset:yN,kClient:Bn,kRunning:PE,kPending:nKe,kQueue:Gc,kPendingIdx:kO,kRunningIdx:Xi,kError:yn,kSocket:xt,kStrictContentLength:iKe,kOnError:hf,kMaxConcurrentStreams:IN,kPingInterval:Yce,kHTTP2Session:pA,kHTTP2InitialWindowSize:oKe,kHTTP2ConnectionWindowSize:aKe,kResume:sa,kSize:AKe,kHTTPContext:FO,kClosed:DO,kBodyTimeout:cKe,kEnableConnectProtocol:ME,kRemoteSettings:UE,kHTTP2Stream:CN,kHTTP2SessionState:MO}=et(),{channels:qce}=vc(),hi=Symbol("open streams"),Vce,BN;try{BN=w("node:http2")}catch{BN={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:uKe,HTTP2_HEADER_METHOD:Jce,HTTP2_HEADER_PATH:Wce,HTTP2_HEADER_SCHEME:SO,HTTP2_HEADER_CONTENT_LENGTH:lKe,HTTP2_HEADER_EXPECT:dKe,HTTP2_HEADER_STATUS:TO,HTTP2_HEADER_PROTOCOL:hKe,NGHTTP2_REFUSED_STREAM:gKe,NGHTTP2_CANCEL:fKe}}=BN;function xO(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function pKe(t,e){t[xt]=e;let r=t[oKe],s=t[aKe],n=BN.connect(t[LE],{createConnection:()=>e,peerMaxConcurrentStreams:t[IN],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[xt]=e,n[hi]=0,n[Bn]=t,n[xt]=e,n[MO]={ping:{interval:t[Yce]===0?null:setInterval(IKe,t[Yce],n).unref()}},n[ME]=!1,n[UE]=!1,s&&xe.addListener(n,"connect",EKe.bind(n,s)),xe.addListener(n,"error",BKe),xe.addListener(n,"frameError",yKe),xe.addListener(n,"end",QKe),xe.addListener(n,"goaway",bKe),xe.addListener(n,"close",wKe),xe.addListener(n,"remoteSettings",CKe),n.unref(),t[pA]=n,e[pA]=n,xe.addListener(e,"error",SKe),xe.addListener(e,"end",TKe),xe.addListener(e,"close",NKe),e[DO]=!1,e.on("close",xKe),{version:"h2",defaultPipelining:1/0,write(i){return DKe(t,i)},resume(){mKe(t)},destroy(i,o){e[DO]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[PE]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[UE]===!1||xe.bodyLength(i.body)!==0&&(xe.isStream(i.body)||xe.isAsyncIterable(i.body)||xe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[UE]===!1;return!1}}}function mKe(t){let e=t[xt];e?.destroyed===!1&&(t[AKe]===0||t[IN]===0?(e.unref(),t[pA].unref()):(e.ref(),t[pA].ref()))}function EKe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function CKe(t){if(this[Bn][IN]=t.maxConcurrentStreams??this[Bn][IN],this[UE]===!0&&this[ME]===!0&&t.enableConnectProtocol===!1){let e=new Hc("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[xt][yn]=e,this[Bn][hf](e);return}this[ME]=t.enableConnectProtocol??this[ME],this[UE]=!0,this[Bn][sa]()}function IKe(t){let e=t[MO];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[Bn],o=this[Bn];if(s!=null){let a=new Hc(`HTTP/2: "PING" errored - type ${s.message}`);o[yn]=a,i[hf](a)}else i.emit("ping",n)}}function BKe(t){gi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][yn]=t,this[Bn][hf](t)}function yKe(t,e,r){if(r===0){let s=new Hc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][yn]=s,this[Bn][hf](s)}}function QKe(){let t=new vE("other side closed",xe.getSocketInfo(this[xt]));this.destroy(t),xe.destroy(this[xt],t)}function bKe(t){let e=this[yn]||new vE(`HTTP/2: "GOAWAY" frame received with code ${t}`,xe.getSocketInfo(this[xt])),r=this[Bn];if(r[xt]=null,r[FO]=null,this.close(),this[pA]=null,xe.destroy(this[xt],e),r[Xi]<r[Gc].length){let s=r[Gc][r[Xi]];r[Gc][r[Xi]++]=null,xe.errorRequest(r,s,e),r[kO]=r[Xi]}gi(r[PE]===0),r.emit("disconnect",r[LE],[r],e),r.emit("connectionError",r[LE],[r],e),r[sa]()}function wKe(){let{[Bn]:t,[MO]:e}=this,{[xt]:r}=t,s=this[xt][yn]||this[yn]||new vE("closed",xe.getSocketInfo(r));if(t[xt]=null,t[FO]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){gi(t[nKe]===0);let n=t[Gc].splice(t[Xi]);for(let i=0;i<n.length;i++){let o=n[i];xe.errorRequest(t,o,s)}}}function NKe(){let t=this[yn]||new vE("closed",xe.getSocketInfo(this)),e=this[pA][Bn];e[xt]=null,e[FO]=null,this[pA]!==null&&this[pA].destroy(t),e[kO]=e[Xi],gi(e[PE]===0),e.emit("disconnect",e[LE],[e],t),e[sa]()}function SKe(t){gi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[yn]=t,this[Bn][hf](t)}function TKe(){xe.destroy(this,new vE("other side closed",xe.getSocketInfo(this)))}func Line truncated
`;qce.sendHeaders.publish({request:e,headers:U,socket:s[xt]})}let S=n==="GET"||n==="HEAD"||d===null;A?(g[dKe]="100-continue",f=s.request(g,{endStream:S,signal:c}),f[CN]=!0,f.once("continue",F)):(f=s.request(g,{endStream:S,signal:c}),f[CN]=!0,F()),++s[hi],f.setTimeout(r);let D=!1;return f.once("response",U=>{let{[TO]:P,...H}=U;if(e.onResponseStarted(),D=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),xO(H),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Re=>{e.aborted||e.completed||e.onData(Re)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),D?(!e.aborted&&!e.completed&&e.onComplete({}),t[Gc][t[Xi]++]=null,t[sa]()):(m(new Hc("HTTP/2: stream half-closed (remote)")),t[Gc][t[Xi]++]=null,t[kO]=t[Xi],t[sa]())}),f.once("close",()=>{f.removeAllListeners("data"),s[hi]-=1,s[hi]===0&&s.unref()}),f.once("error",function(U){f.removeAllListeners("data"),m(U)}),f.once("frameError",(U,P)=>{f.removeAllListeners("data"),m(new Hc(`HTTP/2: "frameError" received - type ${U}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let U=new Hc(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[hi]-=1,s[hi]===0&&s.unref(),m(U)}),f.once("trailers",U=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(U))}),!0;function F(){!d||b===0?zce(m,f,null,t,e,t[xt],b,C):xe.isBuffer(d)?zce(m,f,d,t,e,t[xt],b,C):xe.isBlobLike(d)?typeof d.stream=="function"?Kce(m,f,d.stream(),t,e,t[xt],b,C):FKe(m,f,d,t,e,t[xt],b,C):xe.isStream(d)?kKe(m,t[xt],C,f,d,t,e,b):xe.isIterable(d)?Kce(m,f,d,t,e,t[xt],b,C):gi(!1)}}function zce(t,e,r,s,n,i,o,a){try{r!=null&&xe.isBuffer(r)&&(gi(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[yN]=!0),n.onRequestSent(),s[sa]()}catch(A){t(A)}}function kKe(t,e,r,s,n,i,o,a){gi(a!==0||i[PE]===0,"stream body cannot be pipelined");let A=tKe(n,s,u=>{u?(xe.destroy(A,u),t(u)):(xe.removeAllListeners(A),o.onRequestSent(),r||(e[yN]=!0),i[sa]())});xe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function FKe(t,e,r,s,n,i,o,a){gi(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new RO;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[yN]=!0),s[sa]()}catch(A){t(A)}}async function Kce(t,e,r,s,n,i,o,a){gi(o!==0||s[PE]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{gi(A===null),i[yn]?d(i[yn]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[yn])throw i[yn];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[yN]=!0),s[sa]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}jce.exports=pKe});var Jc=E((hLt,iue)=>{"use strict";var mA=w("node:assert"),tue=w("node:net"),OE=w("node:http"),sd=Be(),{ClientStats:MKe}=S4(),{channels:gf}=vc(),UKe=fAe(),LKe=Wl(),{InvalidArgumentError:Ct,InformationalError:vKe,ClientDestroyedError:PKe}=Ce(),OKe=zl(),{kUrl:na,kServerName:Vc,kClient:_Ke,kBusy:LO,kConnect:HKe,kResuming:nd,kRunning:YE,kPending:qE,kSize:_E,kQueue:Zi,kConnected:GKe,kConnecting:ff,kNeedDrain:qc,kKeepAliveDefaultTimeout:Zce,kHostHeader:YKe,kPendingIdx:$i,kRunningIdx:CA,kError:qKe,kPipelining:QN,kKeepAliveTimeoutValue:VKe,kMaxHeadersSize:JKe,kKeepAliveMaxTimeout:WKe,kKeepAliveTimeoutThreshold:zKe,kHeadersTimeout:KKe,kBodyTimeout:jKe,kStrictContentLength:XKe,kConnector:HE,kMaxRequests:vO,kCounter:ZKe,kClose:$Ke,kDestroy:eje,kDispatch:tje,kLocalAddress:GE,kMaxResponseSize:rje,kOnError:sje,kHTTPContext:Zt,kMaxConcurrentStreams:nje,kHTTP2InitialWindowSize:ije,kHTTP2ConnectionWindowSize:oje,kResume:EA,kPingInterval:aje}=et(),Aje=Gce(),cje=Xce(),Yc=Symbol("kClosedResolve"),uje=OE&&OE.maxHeaderSize&&Number.isInteger(OE.maxHeaderSize)&&OE.maxHeaderSize>0?()=>OE.maxHeaderSize:()=>{throw new Ct("http module not available or http.maxHeaderSize invalid")},$ce=()=>{};function rue(t){return t[QN]??t[Zt]?.defaultPipelining??1}var PO=class extends LKe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:g,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:b,maxRequestsPerClient:S,localAddress:D,maxResponseSize:F,autoSelectFamily:U,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:H,allowH2:Re,useH2c:Je,initialWindowSize:pe,connectionWindowSize:De,pingInterval:Te,webSocket:$t}={}){if(c!==void 0)throw new Ct("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ct("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ct("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ct("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)t Line truncated
`,this[jKe]=a??3e5,this[KKe]=s??3e5,this[XKe]=m??!0,this[vO]=S,this[Yc]=null,this[rje]=F>-1?F:-1,this[Zt]=null,this[nje]=H??100,this[ije]=pe??262144,this[oje]=De??524288,this[aje]=Te??6e4,this[Zi]=[],this[CA]=0,this[$i]=0,this[EA]=er=>OO(this,er),this[sje]=er=>sue(this,er)}get pipelining(){return this[QN]}set pipelining(e){this[QN]=e,this[EA](!0)}get stats(){return new MKe(this)}get[qE](){return this[Zi].length-this[$i]}get[YE](){return this[$i]-this[CA]}get[_E](){return this[Zi].length-this[CA]}get[GKe](){return!!this[Zt]&&!this[ff]&&!this[Zt].destroyed}get[LO](){return!!(this[Zt]?.busy(null)||this[_E]>=(rue(this)||1)||this[qE]>0)}[HKe](e){nue(this),this.once("connect",e)}[tje](e,r){let s=new UKe(this[na].origin,e,r);return this[Zi].push(s),this[nd]||(sd.bodyLength(s.body)==null&&sd.isIterable(s.body)?(this[nd]=1,queueMicrotask(()=>OO(this))):this[EA](!0)),this[nd]&&this[qc]!==2&&this[LO]&&(this[qc]=2),this[qc]<2}[$Ke](){return new Promise(e=>{this[_E]?this[Yc]=e:e(null)})}[eje](e){return new Promise(r=>{let s=this[Zi].splice(this[$i]);for(let i=0;i<s.length;i++){let o=s[i];sd.errorRequest(this,o,e)}let n=()=>{this[Yc]&&(this[Yc](),this[Yc]=null),r(null)};this[Zt]?(this[Zt].destroy(e,n),this[Zt]=null):queueMicrotask(n),this[EA]()})}};function sue(t,e){if(t[YE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mA(t[$i]===t[CA]);let r=t[Zi].splice(t[CA]);for(let s=0;s<r.length;s++){let n=r[s];sd.errorRequest(t,n,e)}mA(t[_E]===0)}}function nue(t){mA(!t[ff]),mA(!t[Zt]);let{host:e,hostname:r,protocol:s,port:n}=t[na];if(r[0]==="["){let i=r.indexOf("]");mA(i!==-1);let o=r.substring(1,i);mA(tue.isIPv6(o)),r=o}t[ff]=!0,gf.beforeConnect.hasSubscribers&&gf.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE]});try{t[HE]({host:e,hostname:r,protocol:s,port:n,servername:t[Vc],localAddress:t[GE]},(i,o)=>{if(i){UO(t,i,{host:e,hostname:r,protocol:s,port:n}),t[EA]();return}if(t.destroyed){sd.destroy(o.on("error",$ce),new PKe),t[EA]();return}mA(o);try{t[Zt]=o.alpnProtocol==="h2"?cje(t,o):Aje(t,o)}catch(a){o.destroy().on("error",$ce),UO(t,a,{host:e,hostname:r,protocol:s,port:n}),t[EA]();return}t[ff]=!1,o[ZKe]=0,o[vO]=t[vO],o[_Ke]=t,o[qKe]=null,gf.connected.hasSubscribers&&gf.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE],socket:o}),t.emit("connect",t[na],[t]),t[EA]()})}catch(i){UO(t,i,{host:e,hostname:r,protocol:s,port:n}),t[EA]()}}function UO(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[ff]=!1,gf.connectError.hasSubscribers&&gf.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[Zt]?.version,servername:t[Vc],localAddress:t[GE]},connector:t[HE],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mA(t[YE]===0);t[qE]>0&&t[Zi][t[$i]].servername===t[Vc];){let o=t[Zi][t[$i]++];sd.errorRequest(t,o,e)}else sue(t,e);t.emit("connectionError",t[na],[t],e)}}function eue(t){t[qc]=0,t.emit("drain",t[na],[t])}function OO(t,e){t[nd]!==2&&(t[nd]=2,lje(t,e),t[nd]=0,t[CA]>256&&(t[Zi].splice(0,t[CA]),t[$i]-=t[CA],t[CA]=0))}function lje(t,e){for(;;){if(t.destroyed){mA(t[qE]===0);return}if(t[Yc]&&!t[_E]){t[Yc](),t[Yc]=null;return}if(t[Zt]&&t[Zt].resume(),t[LO])t[qc]=2;else if(t[qc]===2){e?(t[qc]=1,queueMicrotask(()=>eue(t))):eue(t);continue}if(t[qE]===0||t[YE]>=(rue(t)||1))return;let r=t[Zi][t[$i]];if(r===null)return;if(t[na].protocol==="https:"&&t[Vc]!==r.servername){if(t[YE]>0)return;t[Vc]=r.servername,t[Zt]?.destroy(new vKe("servername changed"),()=>{t[Zt]=null,OO(t)})}if(t[ff])return;if(!t[Zt]){nue(t);return}if(t[Zt].destroyed||t[Zt].busy(r))return;!r.aborted&&t[Zt].write(r)?t[$i]++:t[Zi].splice(t[$i],1)}}iue.exports=PO});var _O=E((fLt,oue)=>{"use strict";var bN=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};oue.exports=class{constructor(){this.head=this.tail=new bN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var wN=E((pLt,fue)=>{"use strict";var{PoolStats:dje}=S4(),hje=Wl(),gje=_O(),{kConnected:HO,kSize:aue,kRunning:Aue,kPending:cue,kQueued:VE,kBusy:fje,kFree:pje,kUrl:mje,kClose:Eje,kDestroy:Cje,kDispatch:Ije}=et(),Dr=Symbol("clients"),ls=Symbol("needDrain"),JE=Symbol("queue"),GO=Symbol("closed resolve"),YO=Symbol("onDrain"),uue=Symbol("onConnect"),lue=Symbol("onDisconnect"),due=Symbol("onConnectionError"),qO=Symbol("get dispatcher"),hue=Symbol("add client"),gue=Symbol("remove client"),VO=class extends hje{[JE]=new gje;[VE]=0;[Dr] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var{InvalidArgumentError:jje}=me(),{runtimeFeatures:Zje}=lA();function $je(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Lle=Zje.has("crypto")?w("node:crypto"):null,eZe=Lle?.hash?t=>Lle.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Ple(t){return Array.isArray(t)&&(t.length&1)===0}function tZe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function rZe(t){let e={};if(!t)return e;if(Ple(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var vle=["record","playback","update"];function sZe(t){if(!vle.includes(t))throw new jje(`Invalid snapshot mode: ${t}. Must be one of: ${vle.join(", ")}`)}Ole.exports={createHeaderFilters:$je,hashId:eZe,isUndiciHeaders:Ple,normalizeHeaders:rZe,isUrlExcludedFactory:tZe,validateSnapshotMode:sZe}});var zle=E((dUt,Wle)=>{"use strict";var{writeFile:nZe,readFile:iZe,mkdir:oZe}=w("node:fs/promises"),{dirname:aZe,resolve:_le}=w("node:path"),{setTimeout:AZe,clearTimeout:Hle}=w("node:timers"),{InvalidArgumentError:Gle,UndiciError:cZe}=me(),{hashId:uZe,isUrlExcludedFactory:lZe,normalizeHeaders:Yle,createHeaderFilters:qle}=R_();function qE(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Yle(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:Vle(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Vle(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Jle(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function VE(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return uZe(r)}var k_=class{#e;#t;#s=new Map;#r;#n=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#n=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=qle(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=lZe(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=qE(e,this.#a,this.matchOptions),n=VE(s),i=Yle(r.headers),o={statusCode:r.statusCode,headers:Jle(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#n&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=qE(e,this.#a,this.matchOptions),s=VE(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Gle("Snapshot path is required");try{let s=await iZe(_le(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new cZe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Gle("Snapshot path is required");let s=_le(r);await oZe(aZe(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await nZe(s,JSON.s Line truncated
${e.format(r)}`.trim())}};_de.exports=c6});var l6=E((WLt,qde)=>{"use strict";var{InvalidArgumentError:p$e}=Ce(),{runtimeFeatures:m$e}=hA();function E$e(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Hde=m$e.has("crypto")?w("node:crypto"):null,C$e=Hde?.hash?t=>Hde.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Yde(t){return Array.isArray(t)&&(t.length&1)===0}function I$e(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function B$e(t){let e={};if(!t)return e;if(Yde(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var Gde=["record","playback","update"];function y$e(t){if(!Gde.includes(t))throw new p$e(`Invalid snapshot mode: ${t}. Must be one of: ${Gde.join(", ")}`)}qde.exports={createHeaderFilters:E$e,hashId:C$e,isUndiciHeaders:Yde,normalizeHeaders:B$e,isUrlExcludedFactory:I$e,validateSnapshotMode:y$e}});var $de=E((zLt,Zde)=>{"use strict";var{writeFile:Q$e,readFile:b$e,mkdir:w$e}=w("node:fs/promises"),{dirname:N$e,resolve:Vde}=w("node:path"),{setTimeout:S$e,clearTimeout:Jde}=w("node:timers"),{InvalidArgumentError:Wde,UndiciError:T$e}=Ce(),{hashId:x$e,isUrlExcludedFactory:R$e,normalizeHeaders:zde,createHeaderFilters:Kde}=l6();function nC(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||zde(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:jde(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function jde(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Xde(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function iC(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return x$e(r)}var d6=class{#e;#t;#s=new Map;#r;#i=1/0;#n=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Kde(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=R$e(e.excludeUrls),this.#n&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=nC(e,this.#a,this.matchOptions),n=iC(s),i=zde(r.headers),o={statusCode:r.statusCode,headers:Xde(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#i&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nC(e,this.#a,this.matchOptions),s=iC(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Wde("Snapshot path is required");try{let s=await b$e(Vde(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new T$e(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Wde("Snapshot path is required");let s=Vde(r);await w$e(N$e(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Q$e(s,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${En} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${bn} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_getValuesQuery ON cacheInterceptorV${En}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${En}_deleteByUrlQuery ON cacheInterceptorV${En}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${bn}_getValuesQuery ON cacheInterceptorV${bn}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${bn}_deleteByUrlQuery ON cacheInterceptorV${bn}(deleteAt);
`),this.#r=this.#s.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${En}
FROM cacheInterceptorV${bn}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#n=this.#s.prepare(`
UPDATE cacheInterceptorV${En} SET
`),this.#i=this.#s.prepare(`
UPDATE cacheInterceptorV${bn} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#s.prepare(`
INSERT INTO cacheInterceptorV${En} (
`),this.#n=this.#s.prepare(`
INSERT INTO cacheInterceptorV${bn} (
url,
method,
body,
@@ -182,116 +182,116 @@ ${e.format(r)}`.trim())}};Ule.exports=x_});var R_=E((lUt,Ole)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${En}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${En} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${En}
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${bn} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${bn}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${bn} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
DELETE FROM cacheInterceptorV${bn}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${En}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${bn}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#s.close()}get(e){e6(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){e6(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#n.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#i.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){e6(e),j$e(r);let s=0,n=[],i=this;return new X$e({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Z$e(n[l],u[l])){c=!1;break}}if(c)return A}}};function Z$e(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var cd=E((MUt,the)=>{"use strict";var{kConstruct:$$e}=$e(),{kEnumerableProperty:Bf}=Ie(),{iteratorMixin:eet,isValidHeaderName:KE,isValidHeaderValue:Xde}=hn(),{webidl:Pe}=kr(),r6=w("node:assert"),LN=w("node:util");function Kde(t){return t===10||t===13||t===9||t===32}function jde(t){let e=0,r=t.length;for(;r>e&&Kde(t.charCodeAt(r-1));)--r;for(;r>e&&Kde(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Zde(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Pe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});s6(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)s6(t,r[s],e[r[s]])}else throw Pe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function s6(t,e,r){if(r=jde(r),KE(e)){if(!Xde(r))throw Pe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Pe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(ehe(t)==="immutable")throw new TypeError("immutable");return PN(t).append(e,r,!1)}function tet(t){let e=PN(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function $de(t,e){return t[0]<e[0]?-1:1}var vN=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":Afe(i)&&(r[n]=i);break;case"id":cfe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Afe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&cfe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};ufe.exports={EventSourceStream:_6}});var Cfe=E((iLt,Efe)=>{"use strict";var{pipeline:Int}=w("node:stream"),{fetching:Bnt}=eC(),{makeRequest:ynt}=Qf(),{webidl:As}=kr(),{EventSourceStream:Qnt}=lfe(),{parseMIMEType:bnt}=ai(),{createFastMessageEvent:wnt}=cS(),{isNetworkError:dfe}=jE(),{kEnumerableProperty:md}=Ie(),{environmentSettingsObject:hfe}=hn(),gfe=!1,ffe=3e3,aC=0,pfe=1,AC=2,Nnt="anonymous",Snt="use-credentials",Ff=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=aC;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),As.util.markAsUncloneable(this);let s="EventSource constructor";As.argumentLengthCheck(arguments,1,s),gfe||(gfe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=As.converters.USVString(e),r=As.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=hfe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=Nnt;r.withCredentials===!0&&(o=Snt,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hfe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=ynt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===AC)return;this.#r=aC;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!dfe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(dfe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?bnt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=pfe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new Qnt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(wnt(A.type,A.options))}});Int(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Bnt(e)}#c(){this.#r!==AC&&(this.#r=aC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===aC&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){As.brandCheck(this,t),this.#r!==AC&&(this.#r=AC,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=As.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},mfe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:pfe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:AC,writable:!1}};Object.defineProperties(Ff,mfe);Object.defineProperties(Ff.prototype,mfe);Object.defineProperties(Ff.prototype,{close:md,onerror:md,onmessage:md,onopen:md,readyState:md,url:md,withCredentials:md});As.converters.EventSourceInitDict=As.dictionaryConverter([{key:"withCredentials",converter:As.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:As.converters.any},{key:"node",converter:As.dictionaryConverter([{key:"reconnectionTime",converter:As.converters["unsigned long"],defaultValue:()=>ffe},{key:"dispatcher",converter:As.converters.any}]),defaultValue:()=>({})}]);Efe.exports={EventSource:Ff,defaultReconnectionTime:ffe}});var wfe=E((oLt,W)=>{"use strict";var Tnt=qc(),Bfe=oE(),xnt=Xl(),Dnt=Bce(),Rnt=wce(),knt=$l(),Fnt=MO(),Mnt=DO(),Unt=Aue(),Lnt=gue(),vnt=mue(),yfe=me(),yS=Ie(),{InvalidArgumentError:BS}=yfe,Mf=Zue(),Pnt=Yl(),Ont=E_(),{MockCallHistory:_nt Line truncated
`)}close(){this.#s.close()}get(e){_6(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){_6(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){_6(e),Utt(r);let s=0,n=[],i=this;return new Mtt({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Ltt(n[l],u[l])){c=!1;break}}if(c)return A}}};function Ltt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Bd=E((pvt,Bge)=>{"use strict";var{kConstruct:vtt}=et(),{kEnumerableProperty:Ff}=Be(),{iteratorMixin:Ptt,isValidHeaderName:dC,isValidHeaderValue:pge}=Cn(),{webidl:Oe}=Lr(),G6=w("node:assert"),rS=w("node:util");function fge(t){return t===10||t===13||t===9||t===32}function mge(t){let e=0,r=t.length;for(;r>e&&fge(t.charCodeAt(r-1));)--r;for(;r>e&&fge(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Ege(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw Oe.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y6(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)Y6(t,r[s],e[r[s]])}else throw Oe.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y6(t,e,r){if(r=mge(r),dC(e)){if(!pge(r))throw Oe.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Oe.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Ige(t)==="immutable")throw new TypeError("immutable");return nS(t).append(e,r,!1)}function Ott(t){let e=nS(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function Cge(t,e){return t[0]<e[0]?-1:1}var sS=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Npe(i)&&(r[n]=i);break;case"id":Spe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Npe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Spe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Tpe.exports={EventSourceStream:x5}});var vpe=E((Hvt,Lpe)=>{"use strict";var{pipeline:tot}=w("node:stream"),{fetching:rot}=mC(),{makeRequest:sot}=Uf(),{webidl:hs}=Lr(),{EventSourceStream:not}=xpe(),{parseMIMEType:iot}=ui(),{createFastMessageEvent:oot}=xS(),{isNetworkError:Rpe}=gC(),{kEnumerableProperty:xd}=Be(),{environmentSettingsObject:Dpe}=Cn(),kpe=!1,Fpe=3e3,bC=0,Mpe=1,wC=2,aot="anonymous",Aot="use-credentials",Vf=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=bC;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hs.util.markAsUncloneable(this);let s="EventSource constructor";hs.argumentLengthCheck(arguments,1,s),kpe||(kpe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hs.converters.USVString(e),r=hs.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Dpe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=aot;r.withCredentials===!0&&(o=Aot,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Dpe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=sot(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===wC)return;this.#r=bC;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Rpe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Rpe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?iot(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Mpe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new not({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(oot(A.type,A.options))}});tot(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=rot(e)}#c(){this.#r!==wC&&(this.#r=bC,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===bC&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hs.brandCheck(this,t),this.#r!==wC&&(this.#r=wC,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Upe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:bC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Mpe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:wC,writable:!1}};Object.defineProperties(Vf,Upe);Object.defineProperties(Vf.prototype,Upe);Object.defineProperties(Vf.prototype,{close:xd,onerror:xd,onmessage:xd,onopen:xd,readyState:xd,url:xd,withCredentials:xd});hs.converters.EventSourceInitDict=hs.dictionaryConverter([{key:"withCredentials",converter:hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hs.converters.any},{key:"node",converter:hs.dictionaryConverter([{key:"reconnectionTime",converter:hs.converters["unsigned long"],defaultValue:()=>Fpe},{key:"dispatcher",converter:hs.converters.any}]),defaultValue:()=>({})}]);Lpe.exports={EventSource:Vf,defaultReconnectionTime:Fpe}});var Ype=E((Gvt,W)=>{"use strict";var cot=Jc(),Ope=QE(),uot=id(),lot=Que(),dot=Sue(),hot=Ad(),got=h_(),fot=c_(),pot=dle(),mot=Cle(),Eot=yle(),_pe=Ce(),GS=Be(),{InvalidArgumentError:HS}=_pe,Jf=sde(),Cot=zl(),Iot=Z_(),{MockCallHistory:Bot Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return jnt(e,r).catch(s=>{throw Ife?bfe(s,Ife):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=cd().Headers;W.exports.Response=jE().Response;W.exports.Request=Qf().Request;W.exports.FormData=Vw().FormData;var{setGlobalOrigin:Znt,getGlobalOrigin:$nt}=C4();W.exports.setGlobalOrigin=Znt;W.exports.getGlobalOrigin=$nt;var{CacheStorage:eit}=nge(),{kConstruct:tit}=$e();W.exports.caches=new eit(tit);var{deleteCookie:rit,getCookies:sit,getSetCookies:nit,setCookie:iit,parseCookie:oit}=mge();W.exports.deleteCookie=rit;W.exports.getCookies=sit;W.exports.getSetCookies=nit;W.exports.setCookie=iit;W.exports.parseCookie=oit;var{parseMIMEType:ait,serializeAMimeType:Ait}=ai();W.exports.parseMIMEType=ait;W.exports.serializeAMimeType=Ait;var{CloseEvent:cit,ErrorEvent:uit,MessageEvent:lit}=cS(),{WebSocket:dit,ping:hit}=jge();W.exports.WebSocket=dit;W.exports.CloseEvent=cit;W.exports.ErrorEvent=uit;W.exports.MessageEvent=lit;W.exports.ping=hit;W.exports.WebSocketStream=ife().WebSocketStream;W.exports.WebSocketError=U6().WebSocketError;W.exports.request=cC(Mf.request);W.exports.stream=cC(Mf.stream);W.exports.pipeline=cC(Mf.pipeline);W.exports.connect=cC(Mf.connect);W.exports.upgrade=cC(Mf.upgrade);W.exports.MockClient=Ont;W.exports.MockCallHistory=_nt;W.exports.MockCallHistoryLog=Hnt;W.exports.MockPool=Ynt;W.exports.MockAgent=Gnt;W.exports.SnapshotAgent=qnt;W.exports.mockErrors=Vnt;var{EventSource:git}=Cfe();W.exports.EventSource=git;function fit(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=fit});var uC=E(su=>{"use strict";su.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");su.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");su.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";su.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);su.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);su.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());su.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Sfe=E((cLt,Nfe)=>{"use strict";var{asciiLowercase:QS,solelyContainsHTTPTokenCodePoints:pit,soleyContainsHTTPQuotedStringTokenCodePoints:mit}=uC();Nfe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=QS(String(e)),this._map.get(e)}has(e){return e=QS(String(e)),this._map.has(e)}set(e,r){if(e=QS(String(e)),r=String(r),!pit(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!mit(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=QS(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var Dfe=E((uLt,xfe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Eit,removeTrailingHTTPWhitespace:Tfe,isHTTPWhitespaceChar:Cit,solelyContainsHTTPTokenCodePoints:H6,soleyContainsHTTPQuotedStringTokenCodePoints:Iit,asciiLowercase:G6,collectAnHTTPQuotedString:Bit}=uC();xfe.exports=t=>{t=Eit(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!H6(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Tfe(s),s.length===0||!H6(s))return null;let n={type:G6(r),subtype:G6(s),parameters:new Map};for(;e<t.length;){for(++e;Cit(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=G6(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Bit(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Tfe(o),o==="")continue}i.length>0&&H6(i)&&Iit(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var kfe=E((lLt,Rfe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:yit}=uC();Rfe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!yit(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var Lfe=E((hLt,Ufe)=>{"use strict";var Qit=Sfe(),bit=Dfe(),wit=kfe(),{asciiLowercase:Ffe,solelyContainsHTTPTokenCodePoints:Mfe}=uC();Ufe.exports=class{constructor(e){e=String(e);let r=bit(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Qit(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Ffe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Mfe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Ffe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Mfe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return wit(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as K6 from"os";function yA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function TS(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Ed(t,e,r){let s=new xS(t,e,r);process.stdout.write(s.toString()+K6.EOL)}var z6="::",xS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=z6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnPropertyLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function hD(t){process.exitCode=lD.Failure,Fu(t)}function qA(){return process.env.RUNNER_DEBUG==="1"}function U(t){Ed("debug",{},t)}function Fu(t,e={}){Ed("error",TS(e),t instanceof Error?t.toString():t)}function ht(t,e={}){Ed("warning",TS(e),t instanceof Error?t.toString():t)}function ae(t){process.stdout.write(t+O7.EOL)}function vp(t,e){if(process.env.GITHUB_STATE||"")return j6("STATE",Z6(t,e));Ed("save-state",{name:t},yA(e))}function Mu(t){return process.env[`STATE_${t}`]||""}import{readFileSync as HSe,existsSync as GSe}from"fs";import{EOL as YSe}from"os";var fh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(GSe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(HSe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${YSe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var mD=Ee(q7(),1),V7=Ee(AB(),1),rTe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function J7(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function W7(t){return new mD.HttpClient().getAgent(t)}function sTe(t){return new mD.HttpClient().getAgentDispatcher(t)}function z7(t){let e=sTe(t);return(s,n)=>rTe(this,void 0,void 0,function*(){return(0,V7.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function K7(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ED(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function VA(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function yB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>yB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function X7(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function j7(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var Z7=Function.bind,$7=Z7.bind(Z7);function eW(t,e,r){let s=$7(j7,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=$7(X7,null).apply(null,i)})}function iTe(){let t=Symbol("Singular"),e={registry:{}},r=yB.bind(null,e,t);return eW(r,e,t),r}function oTe(){let t={registry:{}},e=yB.bind(null,t);return eW(e,t),e}var tW={Singular:iTe,Collection:oTe};var aTe="0.0.0-development",ATe=`octokit-endpoint.js/${aTe} ${VA()}`,cTe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ATe},mediaType:{format:""}};function uTe(t){return t?Object.keys(t).redu Line truncated
${i}`:n.stack}W.exports.fetch=function(e,r=void 0){return kot(e,r).catch(s=>{throw Ppe?Gpe(s,Ppe):s&&typeof s=="object"&&Error.captureStackTrace(s,W.exports.fetch),s})};W.exports.Headers=Bd().Headers;W.exports.Response=gC().Response;W.exports.Request=Uf().Request;W.exports.FormData=uN().FormData;var{setGlobalOrigin:Fot,getGlobalOrigin:Mot}=z4();W.exports.setGlobalOrigin=Fot;W.exports.getGlobalOrigin=Mot;var{CacheStorage:Uot}=bfe(),{kConstruct:Lot}=et();W.exports.caches=new Uot(Lot);var{deleteCookie:vot,getCookies:Pot,getSetCookies:Oot,setCookie:_ot,parseCookie:Hot}=Lfe();W.exports.deleteCookie=vot;W.exports.getCookies=Pot;W.exports.getSetCookies=Oot;W.exports.setCookie=_ot;W.exports.parseCookie=Hot;var{parseMIMEType:Got,serializeAMimeType:Yot}=ui();W.exports.parseMIMEType=Got;W.exports.serializeAMimeType=Yot;var{CloseEvent:qot,ErrorEvent:Vot,MessageEvent:Jot}=xS(),{WebSocket:Wot,ping:zot}=fpe();W.exports.WebSocket=Wot;W.exports.CloseEvent=qot;W.exports.ErrorEvent=Vot;W.exports.MessageEvent=Jot;W.exports.ping=zot;W.exports.WebSocketStream=Qpe().WebSocketStream;W.exports.WebSocketError=b5().WebSocketError;W.exports.request=NC(Jf.request);W.exports.stream=NC(Jf.stream);W.exports.pipeline=NC(Jf.pipeline);W.exports.connect=NC(Jf.connect);W.exports.upgrade=NC(Jf.upgrade);W.exports.MockClient=Iot;W.exports.MockCallHistory=Bot;W.exports.MockCallHistoryLog=yot;W.exports.MockPool=bot;W.exports.MockAgent=Qot;W.exports.SnapshotAgent=wot;W.exports.mockErrors=Not;var{EventSource:Kot}=vpe();W.exports.EventSource=Kot;function jot(){globalThis.fetch=W.exports.fetch,globalThis.Headers=W.exports.Headers,globalThis.Response=W.exports.Response,globalThis.Request=W.exports.Request,globalThis.FormData=W.exports.FormData,globalThis.WebSocket=W.exports.WebSocket,globalThis.CloseEvent=W.exports.CloseEvent,globalThis.ErrorEvent=W.exports.ErrorEvent,globalThis.MessageEvent=W.exports.MessageEvent,globalThis.EventSource=W.exports.EventSource}W.exports.install=jot});var SC=E(ou=>{"use strict";ou.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ou.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ou.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ou.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ou.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ou.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ou.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Vpe=E((Vvt,qpe)=>{"use strict";var{asciiLowercase:YS,solelyContainsHTTPTokenCodePoints:Xot,soleyContainsHTTPQuotedStringTokenCodePoints:Zot}=SC();qpe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=YS(String(e)),this._map.get(e)}has(e){return e=YS(String(e)),this._map.has(e)}set(e,r){if(e=YS(String(e)),r=String(r),!Xot(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Zot(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=YS(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var zpe=E((Jvt,Wpe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:$ot,removeTrailingHTTPWhitespace:Jpe,isHTTPWhitespaceChar:eat,solelyContainsHTTPTokenCodePoints:R5,soleyContainsHTTPQuotedStringTokenCodePoints:tat,asciiLowercase:D5,collectAnHTTPQuotedString:rat}=SC();Wpe.exports=t=>{t=$ot(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!R5(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Jpe(s),s.length===0||!R5(s))return null;let n={type:D5(r),subtype:D5(s),parameters:new Map};for(;e<t.length;){for(++e;eat(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=D5(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=rat(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Jpe(o),o==="")continue}i.length>0&&R5(i)&&tat(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var jpe=E((Wvt,Kpe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:sat}=SC();Kpe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!sat(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var eme=E((Kvt,$pe)=>{"use strict";var nat=Vpe(),iat=zpe(),oat=jpe(),{asciiLowercase:Xpe,solelyContainsHTTPTokenCodePoints:Zpe}=SC();$pe.exports=class{constructor(e){e=String(e);let r=iat(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new nat(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Xpe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zpe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Xpe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zpe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return oat(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as P5 from"os";function NA(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function zS(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function au(t,e,r){let s=new KS(t,e,r);process.stdout.write(s.toString()+P5.EOL)}function jS(t,e=""){au(t,{},e)}var v5="::",KS=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=v5+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)ifLine truncated
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function PR(t){process.exitCode=LR.Failure,Pu(t)}function WA(){return process.env.RUNNER_DEBUG==="1"}function M(t){au("debug",{},t)}function Pu(t,e={}){au("error",zS(e),t instanceof Error?t.toString():t)}function ut(t,e={}){au("warning",zS(e),t instanceof Error?t.toString():t)}function he(t){process.stdout.write(t+FW.EOL)}function MW(t){jS("group",t)}function UW(){jS("endgroup")}function jp(t,e){if(process.env.GITHUB_STATE||"")return _5("STATE",H5(t,e));au("save-state",{name:t},NA(e))}function zA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as txe,existsSync as rxe}from"fs";import{EOL as sxe}from"os";var Sh=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(rxe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(txe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${sxe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var GR=Ie(_W(),1),HW=Ie(wB(),1),pxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function GW(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function YW(t){return new GR.HttpClient().getAgent(t)}function mxe(t){return new GR.HttpClient().getAgentDispatcher(t)}function qW(t){let e=mxe(t);return(s,n)=>pxe(this,void 0,void 0,function*(){return(0,HW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function VW(){return process.env.GITHUB_API_URL||"https://api.github.com"}function YR(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function KA(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function OB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>OB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function JW(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function WW(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var zW=Function.bind,KW=zW.bind(zW);function jW(t,e,r){let s=KW(WW,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=KW(JW,null).apply(null,i)})}function Cxe(){let t=Symbol("Singular"),e={registry:{}},r=OB.bind(null,e,t);return jW(r,e,t),r}function Ixe(){let t={registry:{}},e=OB.bind(null,t);return jW(e,t),e}var XW={Singular:Cxe,Collection:Ixe};var Bxe="0.0.0-development",yxe=`octokit-endpoint.js/${Bxe} ${KA()}`,Qxe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":yxe},mediaType Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var VTe=class extends Error{constructor(t,e,r){super(qTe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},JTe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],WTe=["query","method","url"],wW=/\/api\/v3\/?$/;function zTe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(WTe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>JTe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return wW.test(i)&&(n.url=i.replace(wW,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new VTe(n,a,o.data)}return o.data.data})}function SD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>zTe(r,n,i),{defaults:SD.bind(null,r),endpoint:r.endpoint})}var JAt=SD(_p,{headers:{"user-agent":`octokit-graphql.js/${YTe} ${VA()}`},method:"POST",url:"/graphql"});function NW(t){return SD(t,{method:"POST",url:"/graphql"})}var TD="(?:[a-zA-Z0-9_-]+)",SW="\\.",TW=new RegExp(`^${TD}${SW}${TD}${SW}${TD}$`),KTe=TW.test.bind(TW);async function XTe(t){let e=KTe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function jTe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function ZTe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=jTe(t),e(n)}var xW=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(XTe.bind(null,e),{hook:ZTe.bind(null,e)})};var xD="7.0.6";var DW=()=>{},$Te=console.warn.bind(console),exe=console.error.bind(console);function txe(t={}){return typeof t.debug!="function"&&(t.debug=DW),typeof t.info!="function"&&(t.info=DW),typeof t.warn!="function"&&(t.warn=$Te),typeof t.error!="function"&&(t.error=exe),t}var RW=`octokit-core.js/${xD} ${VA()}`,wB=class{static VERSION=xD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new tW.Collection,s={baseUrl:_p.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${RW}`:RW,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=_p.defaults(s),this.graphql=NW(this.request).defaults(s),this.log=txe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=xW(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var DD="17.0.0";var rxe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
`)}var i2e=class extends Error{constructor(t,e,r){super(n2e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},o2e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],a2e=["query","method","url"],Bz=/\/api\/v3\/?$/;function A2e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(a2e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>o2e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Bz.test(i)&&(n.url=i.replace(Bz,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new i2e(n,a,o.data)}return o.data.data})}function ZR(t,e){let r=t.defaults(e);return Object.assign((n,i)=>A2e(r,n,i),{defaults:ZR.bind(null,r),endpoint:r.endpoint})}var Sut=ZR($p,{headers:{"user-agent":`octokit-graphql.js/${s2e} ${KA()}`},method:"POST",url:"/graphql"});function yz(t){return ZR(t,{method:"POST",url:"/graphql"})}var $R="(?:[a-zA-Z0-9_-]+)",Qz="\\.",bz=new RegExp(`^${$R}${Qz}${$R}${Qz}${$R}$`),c2e=bz.test.bind(bz);async function u2e(t){let e=c2e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function l2e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function d2e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=l2e(t),e(n)}var wz=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(u2e.bind(null,e),{hook:d2e.bind(null,e)})};var eD="7.0.6";var Nz=()=>{},h2e=console.warn.bind(console),g2e=console.error.bind(console);function f2e(t={}){return typeof t.debug!="function"&&(t.debug=Nz),typeof t.info!="function"&&(t.info=Nz),typeof t.warn!="function"&&(t.warn=h2e),typeof t.error!="function"&&(t.error=g2e),t}var Sz=`octokit-core.js/${eD} ${KA()}`,GB=class{static VERSION=eD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new XW.Collection,s={baseUrl:$p.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Sz}`:Sz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=$p.defaults(s),this.graphql=yz(this.request).defaults(s),this.log=f2e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=wz(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var tD="17.0.0";var p2e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
`)}
`:`${PW(t.status,e)}
`:`${Mz(t.status,e)}
${vD[t.status]}
`}function qW(t){return t==="enabled"||t==="read-only"||t==="write-only"}function PW(t,e){if(!qW(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",s=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${s}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function lxe(t){return t?uxe[t]:void 0}function dxe(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Xs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${cxe}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Xs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Xs}#enhanced-caching)** provider.`}function hxe(t){let e=t.entries,r=e.filter(c=>c.restoredKey).length,s=e.filter(c=>c.savedKey).length,n=VW(e)?`Entries: ${r} restored (${NB(e,c=>c.restoredSize)}Mb), ${s} saved (${NB(e,c=>c.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?lxe(t.cleanup):void 0,o=gxe(t.entries),a=`<pre>
${fxe(t.entries)}</pre>`,A=[vD[t.status],i,o,a].filter(Boolean).join(`
${AD[t.status]}
`}function _z(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Mz(t,e){if(!_z(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",s=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${s}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function N2e(t){return t?b2e[t]:void 0}function S2e(t){return t?w2e[t]:void 0}function T2e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Is}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Q2e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Is}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Is}#enhanced-caching)** provider.`}function x2e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,s=e.filter(u=>u.savedKey).length,n=Hz(e)?`Entries: ${r} restored (${YB(e,u=>u.restoredSize)}Mb), ${s} saved (${YB(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${s} saved - Expand for more details`,i=t.status==="enabled"?N2e(t.cleanup):void 0,o=S2e(t.projectCache),a=R2e(t.entries),A=`<pre>
${D2e(t.entries)}</pre>`,c=[AD[t.status],i,o,a,A].filter(Boolean).join(`
`);return`<details>
<summary>${n}</summary>
${A}
</details>`}function VW(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function gxe(t){return VW(t)?`<table>
${c}
</details>`}function Hz(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function R2e(t){return Hz(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${OW(t,e=>e.restoredSize)}</td>
<td>${NB(t,e=>e.restoredSize)}</td>
<td>${_W(t,e=>e.restoredTime)}</td>
<td>${Uz(t,e=>e.restoredSize)}</td>
<td>${YB(t,e=>e.restoredSize)}</td>
<td>${Lz(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${OW(t,e=>e.savedSize)}</td>
<td>${NB(t,e=>e.savedSize)}</td>
<td>${_W(t,e=>e.savedTime)}</td>
<td>${Uz(t,e=>e.savedSize)}</td>
<td>${YB(t,e=>e.savedSize)}</td>
<td>${Lz(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function fxe(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function D2e(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${HW(e.restoredSize)}
Time: ${GW(e.restoredTime)}
Size: ${vz(e.restoredSize)}
Time: ${Pz(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${HW(e.savedSize)}
Time: ${GW(e.savedTime)}
Size: ${vz(e.savedSize)}
Time: ${Pz(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function OW(t,e){return t.filter(r=>e(r)).length}function NB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function _W(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function HW(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function GW(t){return t===void 0||t===0?"":`${t} ms`}import*as E0 from"path";import*as yh from"fs";function PD(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as RB from"path";import*as Ch from"path";import vu from"assert";var JA=process.platform==="win32";function Fa(t){if(t=ka(t),JA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Ch.dirname(t);return JA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ka(e)),e}function SB(t,e){if(vu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),vu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Hp(e))return e;if(JA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return vu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ti(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return vu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return vu(Hp(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||JA&&t.endsWith("\\")||(t+=Ch.sep),t+e}function Hp(t){return vu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ti(t),JA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Gp(t){return vu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ti(t),JA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ti(t){return t=t||"",JA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ka(t){return t?(t=Ti(t),!t.endsWith(Ch.sep)||t===Ch.sep||JA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var xi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(xi||(xi={}));var JW=process.platform==="win32";function _D(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=JW?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=JW?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Fa(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Fa(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function WW(t,e){let r=xi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function zW(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as pz from"os";import*as Bh from"path";var mz=Ee(fz(),1);import Hu from"assert";import*as Ou from"path";import qp from"assert";var Oxe=process.platform==="win32",_u=class{constructor(e){if(this.segments=[],typeof e=="string")if(qp(e,"Parameter 'itemPath' must not be empty"),e=ka(e),!Gp(e))this.segments=e.split(Ou.sep);else{let r=e,s=Fa(r);for(;s!==r;){let n=Ou.basename(r);this.segments.unshift(n),r=s,s=Fa(r)}this.segments.unshift(r)}else{qp(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];qp(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ti(e[r]),r===0&&Gp(s)?(s=ka(s),qp(s===Fa(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(qp(!s.includes(Ou.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(Ou.sep)||Oxe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=Ou.sep,e+=this.segments[s];return e}};var{Minimatch:_xe}=mz.default,Ma=process.platform==="win32",Vp=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Hu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Hu(c&&Hp(c),"Parameter 'segments' first element must be a root path"),i=new _u(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" Line truncated
`)}function Uz(t,e){return t.filter(r=>e(r)).length}function YB(t,e){let r=t.map(s=>e(s)??0).reduce((s,n)=>s+n,0);return Math.round(r/(1024*1024))}function Lz(t,e){return t.map(r=>e(r)??0).reduce((r,s)=>r+s,0)}function vz(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Pz(t){return t===void 0||t===0?"":`${t} ms`}import*as k0 from"path";import*as Fh from"fs";function cD(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,M(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,M(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,M(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,M(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,M(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as zB from"path";import*as Dh from"path";import Hu from"assert";var jA=process.platform==="win32";function Ua(t){if(t=Ma(t),jA&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dh.dirname(t);return jA&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Ma(e)),e}function qB(t,e){if(Hu(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Hu(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),em(e))return e;if(jA){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Hu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ri(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Hu(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Hu(em(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||jA&&t.endsWith("\\")||(t+=Dh.sep),t+e}function em(t){return Hu(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ri(t),jA?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function tm(t){return Hu(t,"isRooted parameter 'itemPath' must not be empty"),t=Ri(t),jA?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ri(t){return t=t||"",jA?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Ma(t){return t?(t=Ri(t),!t.endsWith(Dh.sep)||t===Dh.sep||jA&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Di;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Di||(Di={}));var Gz=process.platform==="win32";function lD(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Gz?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=Gz?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Ua(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Ua(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function Yz(t,e){let r=Di.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function qz(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as dK from"os";import*as kh from"path";var hK=Ie(lK(),1);import Vu from"assert";import*as Yu from"path";import nm from"assert";var sRe=process.platform==="win32",qu=class{constructor(e){if(this.segments=[],typeof e=="string")if(nm(e,"Parameter 'itemPath' must not be empty"),e=Ma(e),!tm(e))this.segments=e.split(Yu.sep);else{let r=e,s=Ua(r);for(;s!==r;){let n=Yu.basename(r);this.segments.unshift(n),r=s,s=Ua(r)}this.segments.unshift(r)}else{nm(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let s=e[r];nm(s,"Parameter 'itemPath' must not contain any empty segments"),s=Ri(e[r]),r===0&&tm(s)?(s=Ma(s),nm(s===Ua(s),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(s)):(nm(!s.includes(Yu.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(s))}}}toString(){let e=this.segments[0],r=e.endsWith(Yu.sep)||sRe&&/^[A-Z]:$/i.test(e);for(let s=1;s<this.segments.length;s++)r?r=!1:e+=Yu.sep,e+=this.segments[s];return e}};var{Minimatch:nRe}=hK.default,La=process.platform==="win32",im=class t{constructor(e,r=!1,s,n){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{s=s||[],Vu(s.length,"Parameter 'segments' must not empty");let c=t.getLiteral(s[0]);Vu(c&&em(c),"Parameter 'segments' first element must be a root path"),i=new qu(s).toString().trim(),e&&(i=`!${i}`)}for(;i.startsWith("!" Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Vp(i));return s.searchPaths.push(..._D(s.patterns)),s})}static stat(e,r,s){return VD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield yh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield yh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield yh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var qxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Ez(t,e){return qxe(this,void 0,void 0,function*(){return yield DB.create(t,e)})}var lX=Ee(cX(),1);import*as JB from"crypto";import*as Nh from"fs";import*as Gu from"path";import*as dX from"util";var Zp;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zp||(Zp={}));var jr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(jr||(jr={}));var Zs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zs||(Zs={}));var qB=2,VB=5e3,dR=5e3,hR=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,$p="cache.tar",gR="manifest.txt",Lut=10*Math.pow(1024,3);var wh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},ZRe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},$Re="1.0";function em(){return wh(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Gu.join(s,"actions","temp")}let r=Gu.join(e,JB.randomUUID());return yield dB(r),r})}function fo(t){return Nh.statSync(t).size}function fR(t){return wh(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield Ez(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=ZRe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=Gu.relative(a,n).replace(new RegExp(`\\${Gu.sep}`,"g"),"/");U(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function tm(t){return wh(this,void 0,void 0,function*(){return dX.promisify(Nh.unlink)(t)})}function hX(t){return wh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),U(`Checking ${e} ${r.join(" ")}`);try{yield fB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){U(n.message)}return s=s.trim(),U(s),s})}function rm(){return wh(this,void 0,void 0,function*(){let t=yield hX("zstd",["--quiet"]),e=lX.clean(t);return U(`zstd version: ${e}`),t===""?jr.Gzip:jr.ZstdWithoutLong})}function XA(t){return t===jr.Gzip?Zp.Gzip:Zp.Zstd}function gX(){return wh(this,void 0,void 0,function*(){return Nh.existsSync(hR)?hR:(yield hX("tar")).toLowerCase().includes("gnu tar")?Da("tar"):""})}function pR(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Sh(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push($Re),JB.createHash("sha256").update(s.join("|")).digest("hex")}function fX(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as sg from"fs";import{URL as L3e}from"url";var po=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as eke}from"node:os";import tke from"node:util";import rke from"node:process";function pX(t,...e){rke.stderr.write(`${tke.format(t,...e)}${eke}`)}import sm from"node:process";function zB(t){return sm.env[t]}var mX=typeof sm.versions.deno=="string"&&sm.versions.deno.length>0,EX=typeof sm.versions.bun=="string"&&sm.versions.bun.length>0,KB=!0;var CX=zB("DEBUG"),BX,mR=[],ER=[],XB=[];CX&&CR(CX);var yX=Object.assign(t=>QX(t),{enable:CR,enabled:IR,disable:ske,log:pX});function CR(t){BX=t,mR=[],ER=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?ER.push(r.substring(1)):mR.push(r);for(let r of XB)r.enabled=IR(r.namespace)}function IR(t){if(t.endsWith("*"))return!0;for(let e of ER)if(IX(t,e))return!1;for(let e of mR)if(IX(t,e))return!0;return!1}function IX(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function ske(){let t=BX||"";return CR(""),t}function QX(t){let e=Object.assign(r,{enabled:IR(t),destroy:nke,log:yX.log,namespace:t,extend:ike});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return XB.push(e),e}function nke(){let t=XB.indexOf(this);return t>=0?(XB.splice(t,1),!0):!1}function ike(t){let e=QX(`${this.namespace}:${t}`);return e.log=this.log,e}var Th=yX;var BR=["verbose","info","warning","error"],bX={verbose:400,info:300,warning:200,error:100};function wX(t,e){e.log=(...r)=>{t.log(...r)}}function NX(t){return BR.includes(t)}function jB(t){let e=new Set,r=zB(t.logLevelEnvVarName),s,n=Th(t.namespace);n.log=(...u)=>{Th.log(...u)};function i(u){if(u&&!NX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${BR.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Th.enable(l.join(","))}r&&(NX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${BR.join(", ")}.`));function o(u){return!!(s&&bX[u.level]<=bX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(wX(u,d),o(d)){let h=Th.disable();Th.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return wX(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var SX=jB({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),oke=SX.logger;function nm(t){return SX.createClientLogger(t)}function ZB(t){return t.toLowerCase()}function ake(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Ake(t){for(let e of t.values())yield[e.name,e.value]}var yR=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(ZB(e),{name:e,value:ake(r)})}get(e){return this._headersMap.get(ZB(e))?.value}has(e){return this._headersMap.has(ZB(e))}delete(e){this._ Line truncated
${dke.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xh(t){return t instanceof Zr?!0:qu(t)&&t.name==="RestError"}function fs(t,e){return Buffer.from(t,e)}import NR from"node:http";import SR from"node:https";import DX from"node:zlib";import{Transform as hke}from"node:stream";var ps=nm("ts-http-runtime");var gke={};function im(t){return t&&typeof t.pipe=="function"}function RX(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function kX(t){return t&&typeof t.byteLength=="number"}var ty=class extends hke{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},TR=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new po("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new Di;ps.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=Eke(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new ty(f);p.on("error",I=>{ps.error("Error in upload progress",I)}),im(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=fke(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?pke(c,u):c;let h=e.onDownloadProgress;if(h){let f=new ty(h);f.on("error",p=>{ps.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await mke(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();im(a)&&(c=RX(a));let u=Promise.resolve();im(A)&&(u=RX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ps.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?NR.request(a,A):SR.request(a,A);u.once("error",l=>{c(new Zr(l.message,{code:l.code??Zr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new po("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&im(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):kX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ps.error("Unrecognized body type",s),c(new Zr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?NR.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new NR.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return SR.globalAgent;let n=e.tlsSettings??gke,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ps.info("No cached TLS Agent exist, creating a new Agent"),i=new SR.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function fke(t){let e=$s();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function pke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=DX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=DX.createInflate();return t.pipe(s),s}return t}function mke(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Zr(`Error reading response as text: ${n.message}`,{code:Zr.PARSE_ERROR}))})})}function Eke(t){return t?Buffer.isBuffer(t)?t.length:im(t)?null:kX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function FX(){return new TR}function ry(){return FX()}var xR="logPolicy";function sy(t={}){let e=t.logger??ps.info,r=new Di({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:xR,async sendRequ Line truncated
`;return e}function OFe(t){return t instanceof Uint8Array?t.byteLength:Am(t)?t.size===-1?void 0:t.size:void 0}function _Fe(t){let e=0;for(let r of t){let s=OFe(r);if(s===void 0)return;e+=s}return e}async function HFe(t,e,r){let s=[fs(`--${r}`,"utf-8"),...e.flatMap(i=>[fs(`\r
`,"utf-8"),fs(PFe(i.headers),"utf-8"),fs(`\r
`,"utf-8"),i.body,fs(`\r
--${r}`,"utf-8")]),fs(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new im(i));return s.searchPaths.push(...lD(s.patterns)),s})}static stat(e,r,s){return mD(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Fh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){M(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Fh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Fh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){M(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var ARe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function gK(t,e){return ARe(this,void 0,void 0,function*(){return yield WB.create(t,e)})}var aX=Ie(iX(),1);import*as uy from"crypto";import*as vh from"fs";import*as Ju from"path";import*as AX from"util";var dm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dm||(dm={}));var ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ts||(ts={}));var nn;(function(t){t.GNU="gnu",t.BSD="bsd"})(nn||(nn={}));var ay=2,Ay=5e3,PD=5e3,OD=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,oX=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,hm="cache.tar",_D="manifest.txt",Edt=10*Math.pow(1024,3),cy="cache read denied:";var Lh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},mFe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},EFe="1.0";function gm(){return Lh(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Ju.join(s,"actions","temp")}let r=Ju.join(e,uy.randomUUID());return yield xB(r),r})}function po(t){return vh.statSync(t).size}function HD(t){return Lh(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield gK(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=mFe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let g=Ju.relative(a,n).replace(new RegExp(`\\${Ju.sep}`,"g"),"/");M(`Matched: ${g}`),g===""?o.push("."):o.push(`${g}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function fm(t){return Lh(this,void 0,void 0,function*(){return AX.promisify(vh.unlink)(t)})}function cX(t){return Lh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),M(`Checking ${e} ${r.join(" ")}`);try{yield kB(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){M(n.message)}return s=s.trim(),M(s),s})}function pm(){return Lh(this,void 0,void 0,function*(){let t=yield cX("zstd",["--quiet"]),e=aX.clean(t);return M(`zstd version: ${e}`),t===""?ts.Gzip:ts.ZstdWithoutLong})}function ec(t){return t===ts.Gzip?dm.Gzip:dm.Zstd}function uX(){return Lh(this,void 0,void 0,function*(){return vh.existsSync(OD)?OD:(yield cX("tar")).toLowerCase().includes("gnu tar")?ka("tar"):""})}function GD(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ph(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(EFe),uy.createHash("sha256").update(s.join("|")).digest("hex")}function lX(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as gg from"fs";import{URL as t4e}from"url";var mo=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as CFe}from"node:os";import IFe from"node:util";import BFe from"node:process";function dX(t,...e){BFe.stderr.write(`${IFe.format(t,...e)}${CFe}`)}import mm from"node:process";function dy(t){return mm.env[t]}var hX=typeof mm.versions.deno=="string"&&mm.versions.deno.length>0,gX=typeof mm.versions.bun=="string"&&mm.versions.bun.length>0,hy=!0;var fX=dy("DEBUG"),mX,YD=[],qD=[],gy=[];fX&&VD(fX);var EX=Object.assign(t=>CX(t),{enable:VD,enabled:JD,disable:yFe,log:dX});function VD(t){mX=t,YD=[],qD=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?qD.push(r.substring(1)):YD.push(r);for(let r of gy)r.enabled=JD(r.namespace)}function JD(t){if(t.endsWith("*"))return!0;for(let e of qD)if(pX(t,e))return!1;for(let e of YD)if(pX(t,e))return!0;return!1}function pX(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],g="";for(let f of e)f==="*"&&g==="*"||(g=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function yFe(){let t=mX||"";return VD(""),t}function CX(t){let e=Object.assign(r,{enabled:JD(t),destroy:QFe,log:EX.log,namespace:t,extend:bFe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return gy.push(e),e}function QFe(){let t=gy.indexOf(this);return t>=0?(gy.splice(t,1),!0):!1}function bFe(t){let e=CX(`${this.namespace}:${t}`);return e.log=this.log,e}var Oh=EX;var WD=["verbose","info","warning","error"],IX={verbose:400,info:300,warning:200,error:100};function BX(t,e){e.log=(...r)=>{t.log(...r)}}function yX(t){return WD.includes(t)}function fy(t){let e=new Set,r=dy(t.logLevelEnvVarName),s,n=Oh(t.namespace);n.log=(...u)=>{Oh.log(...u)};function i(u){if(u&&!yX(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${WD.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Oh.enable(l.join(","))}r&&(yX(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${WD.join(", ")}.`));function o(u){return!!(s&&IX[u.level]<=IX[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(BX(u,d),o(d)){let g=Oh.disable();Oh.enable(g+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return BX(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var QX=fy({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),wFe=QX.logger;function Em(t){return QX.createClientLogger(t)}function py(t){return t.toLowerCase()}function NFe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*SFe(t){for(let e of t.values())yield[e.name,e.value]}var zD=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(py(e),{name:e,value:NFe(r)})}get(e){return this._headersMap.get(py(e))?.value}has(e){return this._headersMap.has(py(e))}delete(e){this._ Line truncated
${DFe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function _h(t){return t instanceof rs?!0:zu(t)&&t.name==="RestError"}function Bs(t,e){return Buffer.from(t,e)}import ZD from"node:http";import $D from"node:https";import NX from"node:zlib";import{Transform as kFe}from"node:stream";var ys=Em("ts-http-runtime");var FFe={};function Cm(t){return t&&typeof t.pipe=="function"}function SX(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function TX(t){return t&&typeof t.byteLength=="number"}var Cy=class extends kFe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},ek=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new mo("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new ki;ys.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=vFe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new Cy(f);p.on("error",I=>{ys.error("Error in upload progress",I)}),Cm(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=MFe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?UFe(c,u):c;let g=e.onDownloadProgress;if(g){let f=new Cy(g);f.on("error",p=>{ys.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await LFe(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();Cm(a)&&(c=SX(a));let u=Promise.resolve();Cm(A)&&(u=SX(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ys.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?ZD.request(a,A):$D.request(a,A);u.once("error",l=>{c(new rs(l.message,{code:l.code??rs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new mo("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&Cm(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):TX(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ys.error("Unrecognized body type",s),c(new rs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?ZD.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new ZD.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return $D.globalAgent;let n=e.tlsSettings??FFe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ys.info("No cached TLS Agent exist, creating a new Agent"),i=new $D.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function MFe(t){let e=on();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function UFe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=NX.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=NX.createInflate();return t.pipe(s),s}return t}function LFe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new rs(`Error reading response as text: ${n.message}`,{code:rs.PARSE_ERROR}))})})}function vFe(t){return t?Buffer.isBuffer(t)?t.length:Cm(t)?null:TX(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xX(){return new ek}function Iy(){return xX()}var tk="logPolicy";function By(t={}){let e=t.logger??ys.info,r=new ki({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:tk,async sendRequ Line truncated
`;return e}function nUe(t){return t instanceof Uint8Array?t.byteLength:ym(t)?t.size===-1?void 0:t.size:void 0}function iUe(t){let e=0;for(let r of t){let s=nUe(r);if(s===void 0)return;e+=s}return e}async function oUe(t,e,r){let s=[Bs(`--${r}`,"utf-8"),...e.flatMap(i=>[Bs(`\r
`,"utf-8"),Bs(sUe(i.headers),"utf-8"),Bs(`\r
`,"utf-8"),i.body,Bs(`\r
--${r}`,"utf-8")]),Bs(`--\r
\r
`,"utf-8")],n=_Fe(s);n&&t.headers.set("Content-Length",n),t.body=await wj(s)}var cm="multipartPolicy",GFe=70,YFe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function qFe(t){if(t.length>GFe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!YFe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function wy(){return{name:cm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?qFe(r):r=vFe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await HFe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Ny(){return ey()}var Nj=jB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Pgt=Nj.logger;function vn(t){return Nj.createClientLogger(t)}var Eo=vn("core-rest-pipeline");function WR(t={}){return sy({logger:Eo.info,...t})}var zR=Qy;function KR(t={}){return by(t)}import XR from"node:os";import $A from"node:process";function Sj(){return"User-Agent"}async function Tj(t){if($A&&$A.versions){let e=`${XR.type()} ${XR.release()}; ${XR.arch()}`;$A.versions.bun?t.set("Bun",`${$A.versions.bun} (${e})`):$A.versions.deno?t.set("Deno",`${$A.versions.deno} (${e})`):$A.versions.node&&t.set("Node",`${$A.versions.node} (${e})`)}}var Sy="1.24.0";function ZFe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function xj(){return Sj()}async function Ty(t){let e=new Map;e.set("core-rest-pipeline",Sy),await Tj(e);let r=ZFe(e);return t?`${t} ${r}`:r}var Dj=xj(),Rj="userAgentPolicy";function jR(t={}){let e=Ty(t.userAgentPrefix);return{name:Rj,async sendRequest(r,s){return r.headers.has(Dj)||r.headers.set(Dj,await e),s(r)}}}var kj=Symbol("rawContent");function ZR(t){return typeof t[kj]=="function"}function Fj(t){return ZR(t)?t[kj]():t}var xy=cm;function $R(){let t=wy();return{name:xy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)ZR(s.body)&&(s.body=Fj(s.body));return t.sendRequest(e,r)}}}var ek=By;function tk(){return yy()}function rk(t={}){return oy(t)}function sk(){return ay()}var um=class extends Error{constructor(e){super(e),this.name="AbortError"}};function nk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new um(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var aMe="The delay was aborted.";function Uh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return nk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??aMe})}function ec(t){if(qu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Mj(t){return qu(t)}function Lh(){return Yu()}var Xe=KB;function tc(t){return YR(t)}function ok(t,e){return Iy(t,e)}var Uj="setClientRequestIdPolicy";function ak(t="x-ms-client-request-id"){return{name:Uj,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Ak(t){return Ay(t)}function ck(t){return cy(t)}var vh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Lj(t={}){let e=new uk(t.parentContext);return t.span&&(e=e.setValue(vh.span,t.span)),t.namespace&&(e=e.setValue(vh.namespace,t.namespace)),e}var uk=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Pj=Ee(vj(),1),Ry=Pj.state;function AMe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cMe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:AMe(),tracingContext:Lj({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function lm(){return Ry.instrumenterImplementation||(Ry.instrumenterImplementation=cMe()),Ry.instrumenterImplementation}function dm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=lm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(vh.namespace)||( Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!RUe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Jt("InvalidTag",l,$r(t,i))}let c=NUe(t,i);if(c===!1)return Jt("InvalidAttr","Attributes for '"+A+"' have open quote.",$r(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=CZ(u,e);if(d===!0)s=!0;else return Jt(d.err.code,d.err.msg,$r(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Jt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",$r(t,o));if(r.length===0)return Jt("InvalidTag","Closing tag '"+A+"' has not been opened.",$r(t,o));{let l=r.pop();if(A!==l.tagName){let d=$r(t,l.tagStartPos);return Jt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",$r(t,o))}r.length==0&&(n=!0)}}else return Jt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",$r(t,i));else{let l=CZ(u,e);if(l!==!0)return Jt(l.err.code,l.err.msg,$r(t,i-u.length+l.err.line));if(n===!0)return Jt("InvalidXml","Multiple possible root nodes found.",$r(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=EZ(t,i);continue}else if(t[i+1]==="?"){if(i=mZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=xUe(t,i);if(l==-1)return Jt("InvalidChar","char '&' is not expected.",$r(t,i));i=l}else if(n===!0&&!pZ(t[i]))return Jt("InvalidXml","Extra text at the end",$r(t,i));t[i]==="<"&&i--}}else{if(pZ(t[i]))continue;return Jt("InvalidChar","char '"+t[i]+"' is not expected.",$r(t,i))}if(s){if(r.length==1)return Jt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",$r(t,r[0].tagStartPos));if(r.length>0)return Jt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Jt("InvalidXml","Start tag expected.",1);return!0}function pZ(t){return t===" "||t===" "||t===`
`||t==="\r"}function mZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Jt("InvalidXml","XML declaration allowed only at the start of the document.",$r(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function EZ(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var bUe='"',wUe="'";function NUe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===bUe||t[e]===wUe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var SUe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function CZ(t,e){let r=_y(t,SUe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",ym(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Jt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",ym(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Jt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",ym(r[n]));let i=r[n][2];if(!DUe(i))return Jt("InvalidAttr","Attribute '"+i+"' is an invalid name.",ym(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Jt("InvalidAttr","Attribute '"+i+"' is repeated.",ym(r[n]))}return!0}function TUe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function xUe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,TUe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Jt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function DUe(t){return Tk(t)}function RUe(t){return Tk(t)}function $r(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function ym(t){return t.startIndex+t[1].length}var IZ={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},BZ={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},yZ={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaLine truncated
`);let e=new Is("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new wm(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=Yh(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=Lk(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(c===63){let u=vk(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Is(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Yh(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=Yh(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,d),a=u+2}else{let u=vk(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=Lk(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let I=r;I&&n.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,b={},T;T=sLe(d),l!==e.tagname&&this.matcher.push(l,{},T),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(b=rLe(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=a;if(this.isCurrentNodeStopNode){let M="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let _=this.readStopNodeData(t,d,p+1);if(!_)throw new Error(`Unexpected end of ${d}`);a=_.i,M=_.tagContent}let F=new Is(l);C&&(F[":@"]=C),F.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,R)}else{if(m){({tagName:l,tagExp:h}=Lk(n.transformTagName,l,h,n));let M=new Is(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let M=new Is(l);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Is(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,R),r=M}s="",a=p}}}else s+=t[a];return e.child};function cLe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function uLe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function lLe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function dLe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function hLe(t,e,r=">"){Line truncated
`;function BLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Yk(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function zZ(t,e,r,s,n){return!r.sanitizeName||ju(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function Gk(t,e){let r="";e.format&&(r=ILe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new sn(a)):a instanceof sn&&s.push(a)}let n=BLe(t,e),i=new Bo;return KZ(t,e,r,i,s,n)}function KZ(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let A=t.toString();return A=Hk(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=Yk(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:zZ(u,!1,e,s,i),h=yLe(c[":@"],e);s.push(d,h);let f=bLe(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=Hk(b,e)),a&&(o+=r),o+=b,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let b=c[u][0][e.textNodeName],T=jy(b);o+=`<![CDATA[${T}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],T=Xy(b);o+=r+`<!--${T}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=WZ(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${b}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=WZ(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=XZ(c[u],e):C=KZ(c[u],e,p,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function yLe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=nc(t[n]),s=!0}return s?r:null}function XZ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=Yk(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=QLe(n[":@"],e),a=XZ(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function QLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${nc(n)}"`}return r}function Yk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function WZ(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:zZ(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=Hk(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${nc(c)}"`}return i}function bLe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function Hk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function qk(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var wLe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ys(t){if(this.options=Object.assign({},wLe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new sn(r)):r instanceof sn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,"utf-8")],n=iUe(s);n&&t.headers.set("Content-Length",n),t.body=await BZ(s)}var Qm="multipartPolicy",aUe=70,AUe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function cUe(t){if(t.length>aUe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!AUe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Yy(){return{name:Qm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?cUe(r):r=rUe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await oUe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function qy(){return Ey()}var yZ=fy({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ipt=yZ.logger;function _n(t){return yZ.createClientLogger(t)}var Co=_n("core-rest-pipeline");function Ck(t={}){return By({logger:Co.info,...t})}var Ik=Hy;function Bk(t={}){return Gy(t)}import yk from"node:os";import sc from"node:process";function QZ(){return"User-Agent"}async function bZ(t){if(sc&&sc.versions){let e=`${yk.type()} ${yk.release()}; ${yk.arch()}`;sc.versions.bun?t.set("Bun",`${sc.versions.bun} (${e})`):sc.versions.deno?t.set("Deno",`${sc.versions.deno} (${e})`):sc.versions.node&&t.set("Node",`${sc.versions.node} (${e})`)}}var Vy="1.24.0";function mUe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function wZ(){return QZ()}async function Jy(t){let e=new Map;e.set("core-rest-pipeline",Vy),await bZ(e);let r=mUe(e);return t?`${t} ${r}`:r}var NZ=wZ(),SZ="userAgentPolicy";function Qk(t={}){let e=Jy(t.userAgentPrefix);return{name:SZ,async sendRequest(r,s){return r.headers.has(NZ)||r.headers.set(NZ,await e),s(r)}}}var TZ=Symbol("rawContent");function bk(t){return typeof t[TZ]=="function"}function xZ(t){return bk(t)?t[TZ]():t}var Wy=Qm;function wk(){let t=Yy();return{name:Wy,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)bk(s.body)&&(s.body=xZ(s.body));return t.sendRequest(e,r)}}}var Nk=Oy;function Sk(){return _y()}function Tk(t={}){return by(t)}function xk(){return wy()}var bm=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Rk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new bm(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var NUe="The delay was aborted.";function Jh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Rk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??NUe})}function nc(t){if(zu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function RZ(t){return zu(t)}function Wh(){return Wu()}var Ze=hy;function ic(t){return fk(t)}function kk(t,e){return Py(t,e)}var DZ="setClientRequestIdPolicy";function Fk(t="x-ms-client-request-id"){return{name:DZ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Mk(t){return Ny(t)}function Uk(t){return Sy(t)}var zh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function kZ(t={}){let e=new Lk(t.parentContext);return t.span&&(e=e.setValue(zh.span,t.span)),t.namespace&&(e=e.setValue(zh.namespace,t.namespace)),e}var Lk=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var MZ=Ie(FZ(),1),Ky=MZ.state;function SUe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function TUe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:SUe(),tracingContext:kZ({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function wm(){return Ky.instrumenterImplementation||(Ky.instrumenterImplementation=TUe()),Ky.instrumenterImplementation}function Nm(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(c,u,l){let d=wm().startSpan(c,{...l,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),g=d.tracingContext,f=d.span;g.getValue(zh.namespace)||( Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!jLe(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Wt("InvalidTag",l,ss(t,i))}let c=VLe(t,i);if(c===!1)return Wt("InvalidAttr","Attributes for '"+A+"' have open quote.",ss(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=f$(u,e);if(d===!0)s=!0;else return Wt(d.err.code,d.err.msg,ss(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Wt("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",ss(t,o));if(r.length===0)return Wt("InvalidTag","Closing tag '"+A+"' has not been opened.",ss(t,o));{let l=r.pop();if(A!==l.tagName){let d=ss(t,l.tagStartPos);return Wt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",ss(t,o))}r.length==0&&(n=!0)}}else return Wt("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",ss(t,i));else{let l=f$(u,e);if(l!==!0)return Wt(l.err.code,l.err.msg,ss(t,i-u.length+l.err.line));if(n===!0)return Wt("InvalidXml","Multiple possible root nodes found.",ss(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=g$(t,i);continue}else if(t[i+1]==="?"){if(i=h$(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=zLe(t,i);if(l==-1)return Wt("InvalidChar","char '&' is not expected.",ss(t,i));i=l}else if(n===!0&&!d$(t[i]))return Wt("InvalidXml","Extra text at the end",ss(t,i));t[i]==="<"&&i--}}else{if(d$(t[i]))continue;return Wt("InvalidChar","char '"+t[i]+"' is not expected.",ss(t,i))}if(s){if(r.length==1)return Wt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ss(t,r[0].tagStartPos));if(r.length>0)return Wt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Wt("InvalidXml","Start tag expected.",1);return!0}function d$(t){return t===" "||t===" "||t===`
`||t==="\r"}function h$(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Wt("InvalidXml","XML declaration allowed only at the start of the document.",ss(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function g$(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var YLe='"',qLe="'";function VLe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===YLe||t[e]===qLe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var JLe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f$(t,e){let r=nQ(t,JLe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Wt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Lm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Wt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Lm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Wt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Lm(r[n]));let i=r[n][2];if(!KLe(i))return Wt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Lm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Wt("InvalidAttr","Attribute '"+i+"' is repeated.",Lm(r[n]))}return!0}function WLe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function zLe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,WLe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Wt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function KLe(t){return eF(t)}function jLe(t){return eF(t)}function ss(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Lm(t){return t.startIndex+t[1].length}var p$={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},m$={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},E$={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaLine truncated
`);let e=new Ns("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Om(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let c=t.charCodeAt(a+1);if(c===47){let u=eg(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(n.removeNSPrefix){let g=l.indexOf(":");g!==-1&&(l=l.substr(g+1))}l=AF(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(c===63){let u=cF(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let d=new Ns(u.tagName);d.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(c===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=eg(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=u}else if(c===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&t.charCodeAt(a+2)===91){let u=eg(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,d),a=u+2}else{let u=cF(t,a,n.removeNSPrefix);if(!u){let F=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${F}"`)}let l=u.tagName,d=u.rawTagName,g=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:g}=AF(n.transformTagName,l,g,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let I=r;I&&n.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;g.length>0&&g.lastIndexOf("/")===g.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),g=l):g=g.substr(0,g.length-1),f=l!==g);let C=null,b={},S;S=yve(d),l!==e.tagname&&this.matcher.push(l,{},S),l!==g&&f&&(C=this.buildAttributesMap(g,this.matcher,l),C&&(b=Bve(C,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let D=a;if(this.isCurrentNodeStopNode){let F="";if(m)a=u.closeIndex;else if(n.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,F=P.tagContent}let U=new Ns(l);C&&(U[":@"]=C),U.add(n.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,D)}else{if(m){({tagName:l,tagExp:g}=AF(n.transformTagName,l,g,n));let F=new Ns(l);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let F=new Ns(l);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let F=new Ns(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,D),r=F}s="",a=p}}}else s+=t[a];return e.child};function Tve(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function xve(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function Rve(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function Dve(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function kve(t,e,r=">"){Line truncated
`;function _ve(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(fF(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function q$(t,e,r,s,n){return!r.sanitizeName||tl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function gF(t,e){let r="";e.format&&(r=Ove);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new un(a)):a instanceof un&&s.push(a)}let n=_ve(t,e),i=new yo;return V$(t,e,r,i,s,n)}function V$(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let A=t.toString();return A=hF(A,e),A}return""}for(let A=0;A<t.length;A++){let c=t[A],u=fF(c);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:q$(u,!1,e,s,i),g=Hve(c[":@"],e);s.push(d,g);let f=Yve(s,n);if(d===e.textNodeName){let b=c[u];f||(b=e.tagValueProcessor(d,b),b=hF(b,e)),a&&(o+=r),o+=b,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let b=c[u][0][e.textNodeName],S=fQ(b);o+=`<![CDATA[${S}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let b=c[u][0][e.textNodeName],S=gQ(b);o+=r+`<!--${S}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let b=Y$(c[":@"],e,f,s,i);o+=(d==="?xml"?"":r)+`<${d}${b}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Y$(c[":@"],e,f,s,i),m=r+`<${d}${I}`,C;f?C=J$(c[u],e):C=V$(c[u],e,p,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function Hve(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=Ac(t[n]),s=!0}return s?r:null}function J$(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=fF(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Gve(n[":@"],e),a=J$(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Gve(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Ac(n)}"`}return r}function fF(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function Y$(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),A=r?a:q$(a,!0,e,s,n),c;r?c=t[o]:(c=e.attributeValueProcessor(o,t[o]),c=hF(c,e)),c===!0&&e.suppressBooleanAttributes?i+=` ${A}`:i+=` ${A}="${Ac(c)}"`}return i}function Yve(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function hF(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function pF(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var qve={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ts(t){if(this.options=Object.assign({},qve,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new un(r)):r instanceof un&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function NLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function Vk(t,e,r,s,n){return!r.sanitizeName||ju(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}ys.prototype.build=function(t){if(this.options.preserveOrder)return Gk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Bo,r=NLe(t,this.options);return this.j2x(t,0,e,r).val}};ys.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:Vk(A,!1,this.options,r,s);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=Vk(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[A],a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+t[A]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[A];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",h="";for(let f=0;f<l;f++){let p=t[A][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,s);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let h=0;h<d;h++){let f=Vk(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+t[A][l[h]],a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};ys.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+nc(e)+'"'};function SLe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}ys.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=nc(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=nc(t[s]),r=!0)}return r?e:null};ys.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Vve(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function mF(t,e,r,s,n){return!r.sanitizeName||tl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Ts.prototype.build=function(t){if(this.options.preserveOrder)return gF(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new yo,r=Vve(t,this.options);return this.j2x(t,0,e,r).val}};Ts.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let A in t){if(!Object.prototype.hasOwnProperty.call(t,A))continue;let u=A===this.options.textNodeName||A===this.options.cdataPropName||A===this.options.commentPropName||this.options.attributesGroupName&&A===this.options.attributesGroupName||this.isAttribute(A)||A[0]==="?"?A:mF(A,!1,this.options,r,s);if(typeof t[A]>"u")this.isAttribute(A)&&(i+="");else if(t[A]===null)this.isAttribute(A)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[A]instanceof Date)i+=this.buildTextValNode(t[A],u,"",e,r);else if(typeof t[A]!="object"){let l=this.isAttribute(A);if(l&&!this.ignoreAttributesFn(l,o)){let d=mF(l,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[A],a)}else if(!l)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+t[A]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let g=""+t[A];g===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+g+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[A],u,"",e,r)}}else if(Array.isArray(t[A])){let l=t[A].length,d="",g="";for(let f=0;f<l;f++){let p=t[A][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,s);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(g+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,g,e)),i+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let l=Object.keys(t[A]),d=l.length;for(let g=0;g<d;g++){let f=mF(l[g],!0,this.options,r,s);n+=this.buildAttrPairStr(f,""+t[A][l[g]],a)}}else i+=this.processTextOrObjNode(t[A],u,e,r,s)}return{attrStr:n,val:i}};Ts.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Ac(e)+'"'};function Jve(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let A=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(A,e,c,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}Ts.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=Ac(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=Ac(t[s]),r=!0)}return r?e:null};Ts.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===pe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE));r.sort((n,i)=>AQ(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=iQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=oQ(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Dt=class extends el{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Dm(e,r,this)}computeHMACSHA256(e){return OLe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var tl=class extends Error{constructor(e){super(e),this.name="AbortError"}};var or=vn("storage-common");var Pn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Pn||(Pn={}));var oc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_Le=new tl("The operation was aborted."),Rm=class extends yo{retryOptions;constructor(e,r,s=oc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:oc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):oc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:oc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:oc.maxRetryDelayInMs):oc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:oc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:oc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=nQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ic(n.url,Pa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(or.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(or.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return or.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return or.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return or.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return or.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(pe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(or.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Pn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Pn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return or.info(`RetryPolicy: Delay for ${n}ms`),aQ(n,s,_Le)}};var km=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Rm(e,r,this.retryOptions)}};var HLe="storageBrowserPolicy";function t$(){return{name:HLe,async sendRequest(t,e){return Xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=ic(t.url,Pa.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(pe.COOKIE),t.headers.delete(pe.CONTENT_LENGTH)),e(t)}}}var GLe="StorageCorrectContentLengthPolicy";function r$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:GLe,async sendRequest(e,r){return t(e),r(e)}}}var YLe="storageRetryPolicy",Vh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],VLe=new tl("The operation was aborted.");function s$(t={}){let e=t.retryPolicyType??Vh.retryPolicyType,r=t.maxTries??Vh.maxTries,s=t.retryDelayInMs??Vh.retryDelayInMs,n=t.maxRetryDelayInMs??Vh.maxRetryDelayInMs,i=t.secondaryHost??Vh.secondaryHost,o=t.tryTimeoutInMs??Vh.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return or.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qLe)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().inclu Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Ee.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Ee.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Ee.PREFIX_FOR_STORAGE));r.sort((n,i)=>NQ(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=QQ(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=bQ(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var kt=class extends nl{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new qm(e,r,this)}computeHMACSHA256(e){return nPe("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var il=class extends Error{constructor(e){super(e),this.name="AbortError"}};var lr=_n("storage-common");var Hn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Hn||(Hn={}));var uc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iPe=new il("The operation was aborted."),Vm=class extends Qo{retryOptions;constructor(e,r,s=uc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:uc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):uc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:uc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:uc.maxRetryDelayInMs):uc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:uc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:uc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=yQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=cc(n.url,_a.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(lr.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(lr.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return lr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return lr.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return lr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return lr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Ee.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(lr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Hn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Hn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return lr.info(`RetryPolicy: Delay for ${n}ms`),wQ(n,s,iPe)}};var Jm=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Vm(e,r,this.retryOptions)}};var oPe="storageBrowserPolicy";function X$(){return{name:oPe,async sendRequest(t,e){return Ze||((t.method==="GET"||t.method==="HEAD")&&(t.url=cc(t.url,_a.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ee.COOKIE),t.headers.delete(Ee.CONTENT_LENGTH)),e(t)}}}var aPe="StorageCorrectContentLengthPolicy";function Z$(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ee.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:aPe,async sendRequest(e,r){return t(e),r(e)}}}var APe="storageRetryPolicy",rg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Hn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},cPe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],uPe=new il("The operation was aborted.");function $$(t={}){let e=t.retryPolicyType??rg.retryPolicyType,r=t.maxTries??rg.maxTries,s=t.retryDelayInMs??rg.retryDelayInMs,n=t.maxRetryDelayInMs??rg.maxRetryDelayInMs,i=t.secondaryHost??rg.secondaryHost,o=t.tryTimeoutInMs??rg.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return lr.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let g of cPe)if(d.name.toUpperCase().includes(g)||d.message.toUpperCase().inclu Line truncated
`)+`
`+s(i)+n(i),a=JLe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(pe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===pe.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(pe.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>AQ(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=iQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=oQ(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:WLe,async sendRequest(i,o){return e(i),o(i)}}}var zLe="storageRequestFailureDetailsParserPolicy";function n$(){return{name:zLe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as KLe}from"node:crypto";var cQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return KLe("sha256",this.key).update(e,"utf8").digest("base64")}};var uQ="12.31.0",lQ="2026-02-06";var dQ="https://storage.azure.com/.default",Oa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ri="",jk="*",XLe=1*1024*1024;var jLe=4*XLe;var i$="AES256",o$="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",a$=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],A$=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],c$="BlobUsesCustomerSpecifiedEncryption",u$="BlobDoesNotUseCustomerSpecifiedEncryption",l$=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Fm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Wt(t,e={}){t||(t=new yt);let r=new Fm([],e);return r._credential=t,r}function ZLe(t){let e=[$Le,d$,eve,tve,rve,sve,ive];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>nve(n));return{wrappedPolicies:Nk(r),afterRetry:s}}}}function Zk(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?Sk(e):Kk(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${uQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=fm({...r,loggingOptions:{additionalAllowedHeaderNames:a$,additionalAllowedQueryParameters:A$,logger:$y.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Zy,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Wk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:ek}),n.addPolicy(r$()),n.addPolicy(s$(r.retryOptions),{phase:"Retry"}),n.addPolicy(n$()),n.addPolicy(t$());let a=ZLe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=$k(t);tn(A)?n.addPolicy(Ph({credential:A,scopes:r.audience??dQ,challengeCa Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Li(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function $Pe(t,e){if(t=ul(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function e3e(t,e){if(t=ul(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function t3e(t,e){if(t=ul(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function r3e(t,e){if(t=ul(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function s3e(t,e){if(t=ul(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function n3e(t,e){if(t=ul(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Oo.parse(t.permissions.toString()).toString():n=_o.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Je(t.startsOn,!1):"",t.expiresOn?Je(t.expiresOn,!1):"",cl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Je(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Je(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Li(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function cl(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ul(t){let e=t.version?t.version:lQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Vm=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Lh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-acquireLease",r,async s=>ne(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ri||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ri||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-releaseLease",e,async r=>ne(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ri||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ri||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return j.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};tg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var hl=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};hl.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var $m=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var S3e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},NL=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);ae(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function wee(t,e,r){return S3e(this,void 0,void 0,function*(){var s;let n=new Wa(t),i=n.getBlockBlobClient(),o=new NL((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),U(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new ob(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ht(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as See from"buffer";import*as Ho from"fs";import*as Tee from"stream";import*as xee from"util";var ab=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Ab(t){return t?t>=200&&t<300:!1}function T3e(t){return t?t>=500:!0}function x3e(t){return t?[xt.BadGateway,xt.ServiceUnavailable,xt.GatewayTimeout].includes(t):!1}function D3e(t){return ab(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Nee(t,e,r){return ab(this,arguments,void 0,function*(s,n,i,o=qB,a=VB,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!T3e(d)))return l;if(d&&(h=x3e(d),c=`Cache service responded with ${d}`),U(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){U(`${s} - Error is not retryable`);break}yield D3e(a),u++}throw Error(`${s} failed: ${c}`)})}function e0(t,e){return ab(this,arguments,void 0,function*(r,s,n=qB,i=VB){return yield Nee(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof lo)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function rg(t,e){return ab(this,arguments,void 0,function*(r,s,n=qB,i=VB){return yield Nee(r,s,o=>o.message.statusCode,n,i)})}var Yn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function R3e(t,e){return Yn(this,void 0,void 0,function*(){yield xee.promisify(Tee.pipeline)(t.message,e)})}var cb=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,U(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);ae(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])U(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function DL(t,e,r){return bs(this,void 0,void 0,function*(){let s=new L3e(t),n=Fee(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Ree(t,e,n):n.concurrentBlobDownloads?yield Dee(t,e,n):yield ub(t,e):yield ub(t,e)})}function _ee(t,e,r){return bs(this,void 0,void 0,function*(){let s=xL(),n=Sh(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield e0("reserveCache",()=>bs(this,void 0,void 0,function*(){return s.postJson(r0("caches"),i)}))})}function Pee(t,e){return`bytes ${t}-${e}/*`}function _3e(t,e,r,s,n){return bs(this,void 0,void 0,function*(){U(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${Pee(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Pee(s,n)},o=yield rg(`uploadChunk (start: ${s}, end: ${n})`,()=>bs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Ab(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function H3e(t,e,r,s){return bs(this,void 0,void 0,function*(){let n=fo(r),i=r0(`caches/${e.toString()}`),o=sg.openSync(r,"r"),a=SL(s),A=pR("uploadConcurrency",a.uploadConcurrency),c=pR("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];U("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>bs(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield _3e(t,i,()=>sg.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{sg.closeSync(o)}})}function G3e(t,e,r){return bs(this,void 0,void 0,function*(){let s={size:r};return yield e0("commitCache",()=>bs(this,void 0,void 0,function*(){return t.postJson(r0(`caches/${e.toString()}`),s)}))})}function RL(t,e,r,s){return bs(this,void 0,void 0,function*(){if(SL(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield wee(r,e,s)}else{let i=xL();U("Upload cache"),yield H3e(i,t,e,s),U("Commiting cache");let o=fo(e);ae(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield G3e(i,t,o);if(!Ab(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ae("Cache saved successfully")}})}var Mte=Ee(Ste(),1),Xt=Ee(Kt(),1),an=Ee(Kt(),1),El=Ee(Kt(),1),Cl=Ee(Kt(),1),Il=Ee(Kt(),1);var wv=Ee(Kt(),1),Nv=Ee(Kt(),1),Rte=Ee(Kt(),1),kte=Ee(Kt(),1),Fte=Ee(Kt(),1);var yv=Ee(Kt(),1),Qv=Ee(Kt(),1),Tte=Ee(Kt(),1),xte=Ee(Kt(),1),Dte=Ee(Kt(),1),bv=class extends Dte.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,xte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Tte.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Qv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,yv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,yv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Qv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},jb=new bv;var Sv=class extends Fte.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>jb}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,kte.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Rte.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(jb.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Nv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,wv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)jb.internalBinaryWrite(e.scope[i],r.tag(2,wv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Nv.UnknownFieldHandler.onWrit Line truncated
`));let s=yield Gv(r,"create");yield Yv(s,t)})}var Ig=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Oi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Cg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},e1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pte(t){if(!t||t.length===0)throw new Oi("Path Validation Error: At least one directory or file path is required")}function Jv(t){if(t.length>512)throw new Oi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Oi(`Key Validation Error: ${t} cannot contain commas.`)}function Ote(){return t0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _te(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=t0();return U(`Cache service version: ${c}`),Pte(n),c==="v2"?yield iOe(n,i,o,a,A):yield nOe(n,i,o,a,A)})}function nOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)Jv(d);let u=yield rm(),l="";try{let d=yield Oee(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ae("Lookup only - skipping download"),d.cacheKey;l=E0.join(yield em(),XA(u)),U(`Archive Path: ${l}`),yield DL(d.archiveLocation,l,a),qA()&&(yield m0(l,u));let h=fo(l);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield qv(l,u),ae("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Oi.name)throw d;h instanceof lo&&typeof h.statusCode=="number"&&h.statusCode>=500?Fu(`Failed to restore: ${d.message}`):ht(`Failed to restore: ${d.message}`)}finally{try{yield tm(l)}catch(d){U(`Failed to delete archive: ${d}`)}}})}function iOe(t,e,r,s){return Ig(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(U("Resolved Keys:"),U(JSON.stringify(c)),c.length>10)throw new Oi("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)Jv(l);let u="";try{let l=Hv(),d=yield rm(),h={key:i,restoreKeys:o,version:Sh(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){U(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?ae(`Cache hit for restore-key: ${f.matchedKey}`):ae(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ae("Lookup only - skipping download"),f.matchedKey;u=E0.join(yield em(),XA(d)),U(`Archive path: ${u}`),U(`Starting download of archive to: ${u}`),yield DL(f.signedDownloadUrl,u,a);let I=fo(u);return ae(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),qA()&&(yield m0(u,d)),yield qv(u,d),ae("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Oi.name)throw l;d instanceof lo&&typeof d.statusCode=="number"&&d.statusCode>=500?Fu(`Failed to restore: ${l.message}`):ht(`Failed to restore: ${l.message}`)}finally{try{u&&(yield tm(u))}catch(l){U(`Failed to delete archive: ${l}`)}}})}function Hte(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){let a=t0();return U(`Cache service version: ${a}`),Pte(s),Jv(n),a==="v2"?yield aOe(s,n,i,o):yield oOe(s,n,i,o)})}function oOe(t,e,r){return Ig(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield rm(),h=-1,f=yield fR(s);if(U("Cache Paths:"),U(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield em(),I=E0.join(p,XA(d));U(`Archive Path: ${I}`);try{yield Vv(p,f,d),qA()&&(yield m0(I,d));let m=10*1024*1024*1024,C=fo(I);if(U(`File Size: ${C}`),C>m&&!TL())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);U("Reserving Cache");let b=yield _ee(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=b?.result)===null||a===void 0)&&a.cacheId)h=(A=b?.result)===null||A===void 0?void 0:A.cacheId;else throw b?.statusCode===400?new Error((u=(c=b?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Cg(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=b?.error)===null||l===void 0?void 0:l.message}`);U(`Saving Cache (ID: ${h})`),yield RL(h,I,"",i)}catch(m){let C=m;if(C.name===Oi.name)throw m;C.name Line truncated
`+s(i)+n(i),a=lPe("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Ee.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Ee.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(Ee.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>NQ(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function n(i){let o=QQ(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=bQ(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:dPe,async sendRequest(i,o){return e(i),o(i)}}}var hPe="storageRequestFailureDetailsParserPolicy";function eee(){return{name:hPe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as gPe}from"node:crypto";var SQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return gPe("sha256",this.key).update(e,"utf8").digest("base64")}};var TQ="12.31.0",xQ="2026-02-06";var RQ="https://storage.azure.com/.default",Ha={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fi="",QF="*",fPe=1*1024*1024;var pPe=4*fPe;var tee="AES256",ree="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",see=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],nee=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],iee="BlobUsesCustomerSpecifiedEncryption",oee="BlobDoesNotUseCustomerSpecifiedEncryption",aee=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ga(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Wm=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function zt(t,e={}){t||(t=new bt);let r=new Wm([],e);return r._credential=t,r}function mPe(t){let e=[EPe,Aee,CPe,IPe,BPe,yPe,bPe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>QPe(n));return{wrappedPolicies:Zk(r),afterRetry:s}}}}function bF(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?$k(e):BF(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${TQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=xm({...r,loggingOptions:{additionalAllowedHeaderNames:see,additionalAllowedQueryParameters:nee,logger:mQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:pQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:CF,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Nk}),n.addPolicy(Z$()),n.addPolicy($$(r.retryOptions),{phase:"Retry"}),n.addPolicy(eee()),n.addPolicy(X$());let a=mPe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=wF(t);An(A)?n.addPolicy(Kh({credential:A,scopes:r.audience??RQ, Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Pi(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function E8e(t,e){if(t=gl(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function C8e(t,e){if(t=gl(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function I8e(t,e){if(t=gl(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function B8e(t,e){if(t=gl(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function y8e(t,e){if(t=gl(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Q8e(t,e){if(t=gl(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=_o.parse(t.permissions.toString()).toString():n=Ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ze(t.startsOn,!1):"",t.expiresOn?ze(t.expiresOn,!1):"",hl(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ze(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ze(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function hl(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function gl(t){let e=t.version?t.version:xQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var i0=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Wh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-acquireLease",r,async s=>ie(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ie(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-releaseLease",e,async r=>ie(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return X.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortS Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};dg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ml=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};ml.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var h0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var J8e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},ZL=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Bte(t,e,r){return J8e(this,void 0,void 0,function*(){var s;let n=new Ka(t),i=n.getBlockBlobClient(),o=new ZL((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),M(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new bb(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw ut(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Qte from"buffer";import*as Go from"fs";import*as bte from"stream";import*as wte from"util";var wb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Nb(t){return t?t>=200&&t<300:!1}function W8e(t){return t?t>=500:!0}function z8e(t){return t?[Dt.BadGateway,Dt.ServiceUnavailable,Dt.GatewayTimeout].includes(t):!1}function K8e(t){return wb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function yte(t,e,r){return wb(this,arguments,void 0,function*(s,n,i,o=ay,a=Ay,A=void 0){let c="",u=1;for(;u<=o;){let l,d,g=!1;try{l=yield n()}catch(f){A&&(l=A(f)),g=!0,c=f.message}if(l&&(d=i(l),!W8e(d)))return l;if(d&&(g=z8e(d),c=`Cache service responded with ${d}`),M(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!g){M(`${s} - Error is not retryable`);break}yield K8e(a),u++}throw Error(`${s} failed: ${c}`)})}function g0(t,e){return wb(this,arguments,void 0,function*(r,s,n=ay,i=Ay){return yield yte(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof ho)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function hg(t,e){return wb(this,arguments,void 0,function*(r,s,n=ay,i=Ay){return yield yte(r,s,o=>o.message.statusCode,n,i)})}var Jn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function j8e(t,e){return Jn(this,void 0,void 0,function*(){yield wte.promisify(bte.pipeline)(t.message,e)})}var Sb=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,M(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);he(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])M(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sv(t,e,r){return Rs(this,void 0,void 0,function*(){let s=new t4e(t),n=xte(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Ste(t,e,n):n.concurrentBlobDownloads?yield Nte(t,e,n):yield Tb(t,e):yield Tb(t,e)})}function Ote(t,e,r){return Rs(this,void 0,void 0,function*(){let s=rv(),n=Ph(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield g0("reserveCache",()=>Rs(this,void 0,void 0,function*(){return s.postJson(p0("caches"),i)}))})}function vte(t,e){return`bytes ${t}-${e}/*`}function i4e(t,e,r,s,n){return Rs(this,void 0,void 0,function*(){M(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${vte(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":vte(s,n)},o=yield hg(`uploadChunk (start: ${s}, end: ${n})`,()=>Rs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Nb(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function o4e(t,e,r,s){return Rs(this,void 0,void 0,function*(){let n=po(r),i=p0(`caches/${e.toString()}`),o=gg.openSync(r,"r"),a=$L(s),A=GD("uploadConcurrency",a.uploadConcurrency),c=GD("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];M("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Rs(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),g=l,f=l+d-1;l+=c,yield i4e(t,i,()=>gg.createReadStream(r,{fd:o,start:g,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),g,f)}})))}finally{gg.closeSync(o)}})}function a4e(t,e,r){return Rs(this,void 0,void 0,function*(){let s={size:r};return yield g0("commitCache",()=>Rs(this,void 0,void 0,function*(){return t.postJson(p0(`caches/${e.toString()}`),s)}))})}function nv(t,e,r,s){return Rs(this,void 0,void 0,function*(){if($L(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bte(r,e,s)}else{let i=rv();M("Upload cache"),yield o4e(i,t,e,s),M("Commiting cache");let o=po(e);he(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield a4e(i,t,o);if(!Nb(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);he("Cache saved successfully")}})}var Fre=Ie(Nre(),1),Xt=Ie(jt(),1),hn=Ie(jt(),1),yl=Ie(jt(),1),Ql=Ie(jt(),1),bl=Ie(jt(),1);var Zv=Ie(jt(),1),$v=Ie(jt(),1),Rre=Ie(jt(),1),Dre=Ie(jt(),1),kre=Ie(jt(),1);var Kv=Ie(jt(),1),jv=Ie(jt(),1),Sre=Ie(jt(),1),Tre=Ie(jt(),1),xre=Ie(jt(),1),Xv=class extends xre.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Tre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Sre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?jv.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Kv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Kv.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?jv.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},f1=new Xv;var eP=class extends kre.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>f1}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Dre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Rre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(f1.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?$v.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Zv.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)f1.internalBinaryWrite(e.scope[i],r.tag(2,Zv.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?$v.UnknownFieldHandler.onWrit Line truncated
`));let s=yield fP(r,"create");yield pP(s,t)})}var Rg=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Hi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},wl=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},CP="cache write denied:",E1=class t extends wl{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},vre=cy,C1=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},I1=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pre(t){if(!t||t.length===0)throw new Hi("Path Validation Error: At least one directory or file path is required")}function IP(t){if(t.length>512)throw new Hi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Hi(`Key Validation Error: ${t} cannot contain commas.`)}function Ore(){return f0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function _re(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=f0();M(`Cache service version: ${c}`),Pre(n);let u=tv();if(!Dte(u)){he(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),M(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return c==="v2"?yield b_e(n,i,o,a,A):yield Q_e(n,i,o,a,A)})}function Q_e(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;o=o||[];let u=[i,...o];if(M("Resolved Keys:"),M(JSON.stringify(u)),u.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let g of u)IP(g);let l=yield pm(),d="";try{let g;try{g=yield Pte(u,n,{compressionMethod:l,enableCrossOsArchive:A})}catch(p){let I=(c=p?.message)!==null&&c!==void 0?c:"";throw I.includes(vre)?new C1(I):p}if(!g?.archiveLocation)return;if(a?.lookupOnly)return he("Lookup only - skipping download"),g.cacheKey;d=k0.join(yield gm(),ec(l)),M(`Archive Path: ${d}`),yield sv(g.archiveLocation,d,a),WA()&&(yield D0(d,l));let f=po(d);return he(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield mP(d,l),he("Cache restored successfully"),g.cacheKey}catch(g){let f=g;if(f.name===Hi.name)throw g;f instanceof ho&&typeof f.statusCode=="number"&&f.statusCode>=500?Pu(`Failed to restore: ${g.message}`):ut(`Failed to restore: ${g.message}`)}finally{try{yield fm(d)}catch(g){M(`Failed to delete archive: ${g}`)}}})}function b_e(t,e,r,s){return Rg(this,arguments,void 0,function*(n,i,o,a,A=!1){var c;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(M("Resolved Keys:"),M(JSON.stringify(u)),u.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)IP(d);let l="";try{let d=gP(),g=yield pm(),f={key:i,restoreKeys:o,version:Ph(n,g,A)},p;try{p=yield d.GetCacheEntryDownloadURL(f)}catch(C){let b=(c=C?.message)!==null&&c!==void 0?c:"";throw b.includes(vre)?new C1(b):C}if(!p.ok){M(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==p.matchedKey?he(`Cache hit for restore-key: ${p.matchedKey}`):he(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return he("Lookup only - skipping download"),p.matchedKey;l=k0.join(yield gm(),ec(g)),M(`Archive path: ${l}`),M(`Starting download of archive to: ${l}`),yield sv(p.signedDownloadUrl,l,a);let m=po(l);return he(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),WA()&&(yield D0(l,g)),yield mP(l,g),he("Cache restored successfully"),p.matchedKey}catch(d){let g=d;if(g.name===Hi.name)throw d;g instanceof ho&&typeof g.statusCode=="number"&&g.statusCode>=500?Pu(`Failed to restore: ${d.message}`):ut(`Failed to restore: ${d.message}`)}finally{try{l&&(yield fm(l))}catch(d){M(`Failed to delete archive: ${d}`)}}})}function Hre(t,e,r){return Rg(this,arguments,void 0,function*(s,n,i,o=!1){let a=f0();M(`Cache service version: ${a}`),Pre(s),IP(n);let A=tv();return kte(A)?a==="v2"?yield N_e(s,n,i,o):yield w_e(s,n,i,o):(he(`Cache save skipped: the effective cache-mode '${A}' does not permit writes.`),M(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}function w_e(t,e,r){return Rg(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l,d;let g=yield pm(),f=-1,p=yield HD(s);if(M("Cache Paths:"),M(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let I=yield gm(),m=k0.join(I,ec(g));M(`Archive Path: ${m}`);try{yield EP(I,p,g),WA()&&(yield D0(m,g));let C=10*1024*1024*1024 Line truncated
<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,n=$v(),i=LD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ht(fOe(o));else throw o}}function fOe(t){let e=`Failed to generate PR comment.
${t}`,n=NP(),i=aD(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")ut(M_e(o));else throw o}}function M_e(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function pOe(t){return`${EOe()}
${IOe(t)}`}function mOe(){let t=qte();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function EOe(){let t=Yte();return t.length===0?"":`
`:e}function U_e(t){return`${v_e()}
${O_e(t)}`}function L_e(){let t=qre();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function v_e(){let t=Yre();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${Xv()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${bP()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${COe(e)}</li>`).join("")}
${t.map(e=>`<li>${P_e(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function COe(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function IOe(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function P_e(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function O_e(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -299,16 +299,16 @@ This job uses deprecated functionality from the <code>${Xv()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>yOe(e)).join("")}
</tr>${t.map(e=>H_e(e)).join("")}
</table>
`}function BOe(t){return t.some(e=>e.buildFailed)}function yOe(t){return`
`}function __e(t){return t.some(e=>e.buildFailed)}function H_e(t){return`
<tr>
<td>${Wte(t.rootProjectName,30)}</td>
<td>${Wte(t.requestedTasks,60)}</td>
<td>${Wre(t.rootProjectName,30)}</td>
<td>${Wre(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${QOe(t)}</td>
<td>${bOe(t)}</td>
</tr>`}function QOe(t){return t.buildFailed?":x:":":white_check_mark:"}function bOe(t){return t.buildScanFailed?eP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?eP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):eP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function eP({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function Wte(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function wOe(){let t=Eh;if(t.payload.pull_request==null){ae("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;ae(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Kte(t),s=LD($v()),{owner:n,repo:i}=t.repo,o=`
<td align='center'>${G_e(t)}</td>
<td>${Y_e(t)}</td>
</tr>`}function G_e(t){return t.buildFailed?":x:":":white_check_mark:"}function Y_e(t){return t.buildScanFailed?SP({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?SP({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):SP({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function SP({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function Wre(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function q_e(){let t=Rh;if(t.payload.pull_request==null){he("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;he(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Kre(t),s=aD(NP()),{owner:n,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -318,24 +318,24 @@ This job uses deprecated functionality from the <code>${Xv()}</code> action. Fol
}
}
}
`,a;try{let{repository:u}=await s.graphql(o,{owner:n,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return ht(`Failed to fetch comments: ${u}`)}let A=`
`,a;try{let{repository:u}=await s.graphql(o,{owner:n,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return ut(`Failed to fetch comments: ${u}`)}let A=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>ae(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ht(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function Kte(t){return`<!-- gradle-job-summary: ${t1.constructJobCorrelator(t.workflow,t.job,Zv())} -->`}var Xte=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Wn from"fs";import*as Xa from"path";function jte(){return $te().map(e=>{let r=Wn.readFileSync(e,"utf8"),s=JSON.parse(r);return TOe(e,s),s})}function Zte(){$te().forEach(DOe)}function $te(){let t=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Wn.existsSync(t)?Wn.readdirSync(t).map(e=>Xa.resolve(t,e)).filter(e=>Xa.extname(e)===".json"&&!xOe(e)):[]}function TOe(t,e){let r=Xa.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Wn.existsSync(r))return;let s=Xa.resolve(r,Xa.basename(t));if(Wn.existsSync(s)){let n=Wn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function xOe(t){let e=`${t}.processed`;return Wn.existsSync(e)}function DOe(t){let e=`${t}.processed`;Wn.writeFileSync(e,"")}import*as Fre from"fs";import*as Mre from"path";import{pathToFileURL as z_e}from"url";import*as Qg from"fs";function tP(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,U(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,U(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,U(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,U(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as c1 from"path";import*as Bg from"path";import yl from"assert";var pc=process.platform==="win32";function Za(t){if(t=ja(t),pc&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Bg.dirname(t);return pc&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ja(e)),e}function o1(t,e){if(yl(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),yl(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),I0(e))return e;if(pc){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return yl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(_i(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return yl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return yl(I0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||pc&&t.endsWith("\\")||(t+=Bg.sep),t+e}function I0(t){return yl(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=_i(t),pc?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function B0(t){return yl(t,"isRooted parameter 'itemPath' must not be empty"),t=_i(t),pc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function _i(t){return t=t||"",pc?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ja(t){return t?(t=_i(t),!t.endsWith(Bg.sep)||t===Bg.sep||pc&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Hi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Hi||(Hi={}));var ere=process.platform==="win32";function sP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=ere?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=ere?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=Za(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Za(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function tre(t,e){let r=Hi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function rre(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as yre from"os";import*as Line truncated
`,c=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>s.graphql(A,{id:u.id}).then(()=>he(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>ut(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(c)}function Kre(t){return`<!-- gradle-job-summary: ${B1.constructJobCorrelator(t.workflow,t.job,wP())} -->`}var jre=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as jn from"fs";import*as Za from"path";function Xre(){return $re().map(e=>{let r=jn.readFileSync(e,"utf8"),s=JSON.parse(r);return W_e(e,s),s})}function Zre(){$re().forEach(K_e)}function $re(){let t=Za.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return jn.existsSync(t)?jn.readdirSync(t).map(e=>Za.resolve(t,e)).filter(e=>Za.extname(e)===".json"&&!z_e(e)):[]}function W_e(t,e){let r=Za.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!jn.existsSync(r))return;let s=Za.resolve(r,Za.basename(t));if(jn.existsSync(s)){let n=jn.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function z_e(t){let e=`${t}.processed`;return jn.existsSync(e)}function K_e(t){let e=`${t}.processed`;jn.writeFileSync(e,"")}import*as Fse from"fs";import*as Mse from"path";import{pathToFileURL as f5e}from"url";import*as Fg from"fs";function TP(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,M(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,M(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,M(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,M(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,M(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as x1 from"path";import*as Dg from"path";import Sl from"assert";var Ic=process.platform==="win32";function eA(t){if(t=$a(t),Ic&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Dg.dirname(t);return Ic&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=$a(e)),e}function N1(t,e){if(Sl(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Sl(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),U0(e))return e;if(Ic){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Gi(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Sl(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Sl(U0(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Ic&&t.endsWith("\\")||(t+=Dg.sep),t+e}function U0(t){return Sl(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Gi(t),Ic?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function L0(t){return Sl(t,"isRooted parameter 'itemPath' must not be empty"),t=Gi(t),Ic?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Gi(t){return t=t||"",Ic?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function $a(t){return t?(t=Gi(t),!t.endsWith(Dg.sep)||t===Dg.sep||Ic&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Yi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Yi||(Yi={}));var ese=process.platform==="win32";function RP(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=ese?s.searchPath.toUpperCase():s.searchPath;e[n]="candidate"}let r=[];for(let s of t){let n=ese?s.searchPath.toUpperCase():s.searchPath;if(e[n]==="included")continue;let i=!1,o=n,a=eA(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=eA(o)}i||(r.push(s.searchPath),e[n]="included")}return r}function tse(t,e){let r=Yi.None;for(let s of t)s.negate?r&=~s.match(e):r|=s.match(e);return r}function rse(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as yse from"os";import*as Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new N0(i));return s.searchPaths.push(...sP(s.patterns)),s})}static stat(e,r,s){return uP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Qg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){U(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Qg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Qg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){U(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as lP from"crypto";import*as u1 from"fs";import*as Qre from"stream";import*as bre from"util";import*as wre from"path";var H_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},G_e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Nre(t,e){return H_e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?ae:U,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=lP.createHash("sha256"),f=0;try{for(var p=!0,I=G_e(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${wre.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(u1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=lP.createHash("sha256");yield bre.promisify(Qre.pipeline)(u1.createReadStream(C),b),h.write(b.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Sre=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Y_e(t,e){return Sre(this,void 0,void 0,function*(){return yield A1.create(t,e)})}function Tre(t){return Sre(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield Y_e(e,{followSymbolicLinks:i});return Nre(o,r,n)})}import*as dP from"path";var V_e="Gradle User Home",xre="BASIC_CACHE_PRIMARY_KEY",Dre="BASIC_CACHE_RESTORED_KEY",J_e="setup-java",Rre=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],d1=class{async restore(e,r){let s=kre(e),n=await W_e();vp(xre,n);try{let i=await _te(s,n);i?(vp(Dre,i),ae(`Basic caching restored from cache key: ${i}`)):ae("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ht(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=Mu(xre),i=Mu(Dre);if(s.readOnly)return{status:"read-only",entries:[l1({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===n)return ae(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[l1({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kre(e);try{return await Hte(o,n),ae(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[l1({primaryKey:n,restoredKey:i,savedKey:n,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return ht(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[l1({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function l1(t){return{entryName:V_e,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Rre}], make sure you have checked out the target repository`);return`${J_e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var K_e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",X_e="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",gP=class{async restore(e,r){}async save(e,r,s){return{status:"disabled",entries:[]}}};async function Ure(t){return t.isCacheDisabled()?(hP("Cache is disabled: will not restore state from previous builds."),new gP):t.getCacheProvider()==="basic"?(hP(X_e),new d1):(hP(K_e),j_e())}function Lre(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function j_e(){let t=Z_e();return await import(z_e(t).href)}function Z_e(){let t=import.meta.dirname,e=Mre.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fre.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function hP(t){console.info(t)}import*as Hre from"util";var i6e=Ee(_re(),1);import*as fP from"fs";var n2t=Hre.promisify(fP.readdir);var a6e={_useHtmlParser2:!1};function bg(t,e){if(!t)return e??a6e;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var OP={};mi(OP,{contains:()=>S1,extract:()=>t5e,html:()=>j6e,merge:()=>use,parseHTML:()=>$6e,root:()=>e5e,text:()=>kl,xml:()=>Z6e});var Qc={};mi(Qc,{DocumentPosition:()=>jn,append:()=>F6e,appendChild:()=>k6e,compareDocumentPosition:()=>ose,existsOne:()=>nse,filter:()=>xg,find:()=>Q1,findAll:()=>v6e,findOne:()=>b1,findOneChild:()=>L6e,getAttributeValue:()=>T6e,getChildren:()=>Tg,getElementById:()=>H6e,getElements:()=>_6e,getElementsByClassName:()=>G6e,getElementsByTagName:()=>Rl,getElementsByTagType:()=>Y6e,getFeed:()=>PP,getInnerHTML:()=>S6e,getName:()=>D6e,getOuterHTML:()=>rse,getParent:()=>sse,getSiblings:()=>LP,getText:()=>I1,hasAttrib:()=>x6e,hasChildren:()=>st,innerText:()=>k0,isCDATA:()=>wg,isComment:()=>Dl,isDocument:()=>Xn,isTag:()=>Z,isText:()=>Ts,nextElementSibling:()=>B1,prepend:()=>U6e,prependChild:()=>M6e,prevElementSibling:()=>y1,removeElement:()=>rA,removeSubsets:()=>q6e,replaceElement:()=>R6e,testElement:()=>O6e,textContent:()=>tA,uniqueSort:()=>Bc});var Kn={};mi(Kn,{CDATA:()=>bP,Comment:()=>IP,Directive:()=>CP,Doctype:()=>wP,ElementType:()=>Le,Root:()=>mP,Script:()=>BP,Style:()=>yP,Tag:()=>QP,Text:()=>EP,isTag:()=>pP});var Le;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Le||(Le={}));function pP(t){return t.type===Le.Tag||t.type===Le.Script||t.type===Le.Style}var mP=Le.Root,EP=Le.Text,CP=Le.Directive,IP=Le.Comment,BP=Le.Script,yP=Le.Style,QP=Le.Tag,bP=Le.CDATA,wP=Le.Doctype;var h1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Ng(this,e)}},T0=class extends h1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Wo=class extends T0{constructor(){super(...arguments),this.type=Le.Text}get nodeType(){return 3}},Sl=class extends T0{constructor(){super(...arguments),this.type=Le.Comment}get nodeType(){return 8}},Tl=class extends T0{constructor(e,r){super(r),this.name=e,this.type=Le.Directive}get nodeType(){return 1}},x0=class extends h1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},D0=class extends x0{constructor(){super(...arguments),this.type=Le.CDATA}get nodeType(){return 4}},cn=class extends x0{constructor(){super(...arguments),this.type=Le.Root}get nodeType(){return 9}},xl=class extends x0{constructor(e,r,s=[],n=e==="script"?Le.Script:e==="style"?Le.Style:Le.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}}) Line truncated
`:I1(t.children):wg(t)?I1(t.children):Ts(t)?t.data:""}function tA(t){return Array.isArray(t)?t.map(tA).join(""):st(t)&&!Dl(t)?tA(t.children):Ts(t)?t.data:""}function k0(t){return Array.isArray(t)?t.map(k0).join(""):st(t)&&(t.type===Le.Tag||wg(t))?k0(t.children):Ts(t)?t.data:""}function Tg(t){return st(t)?t.children:[]}function sse(t){return t.parent||null}function LP(t){let e=sse(t);if(e!=null)return Tg(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function T6e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function x6e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function D6e(t){return t.name}function B1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function y1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function rA(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function R6e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function k6e(t,e){if(rA(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function F6e(t,e){rA(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function M6e(t,e){if(rA(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function U6e(t,e){rA(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function xg(t,e,r=!0,s=1/0){return Q1(t,Array.isArray(e)?e:[e],r,s)}function Q1(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&st(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function L6e(t,e){return e.find(t)}function b1(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&st(i)&&i.children.length>0){let o=b1(t,i.children,!0);if(o)return o}}return null}function nse(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||st(r)&&nse(t,r.children))}function v6e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Z(i)&&t(i)&&r.push(i),st(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var w1={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ts(e)&&t(e.data):e=>Ts(e)&&e.data===t}};function vP(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function P6e(t,e){return r=>t(r)||e(r)}function ise(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(w1,r)?w1[r](s):vP(r,s)});return e.length===0?null:e.reduce(P6e)}function O6e(t,e){let r=ise(t);return r?r(e):!0}function _6e(t,e,r,s=1/0){let n=ise(t);return n?xg(n,e,r,s):[]}function H6e(t,e,r=!0){return Array.isArray(e)||(e=[e]),b1(vP("id",t),e,r)}function Rl(t,e,r=!0,s=1/0){return xg(w1.tag_name(t),e,r,s)}function G6e(t,e,r=!0,s=1/0){return xg(vP("class",t),e,r,s)}function Y6e(t,e,r=!0,s=1/0){return xg(w1.tag_type(t),e,r,s)}function q6e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var jn;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(jn||(jn={}));function ose(t,e){let r=[],s=[];if(t===e)return 0;let n=st(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=st(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return jn.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?jn.FOLLOWING|jn.CONTAINED_BY:jn.FOLLOWING:a===t?jn.PRECEDING|jn.CONTAINS:jn.PRECEDING}function Bc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=ose(e,r);return s&jn.PRECEDING?-1:s&jn.FOLLOWING?1:0}),t}function PP(t){let e=N1(K6e,t);return e?e.name==="feed"?V6e(e):J6e(e):null}function V6e(t){var e;let r=t.children,s={type:"atom",items:Rl("entry",r).map(o=>{var a;let{children:A}=o,c={media:ase(A)};xs(c,"id","id",A),xs(c,"title","title",A);let u=(a=N1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=yc("summary",A)||yc("content",A);l&&( Line truncated
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new H0(i));return s.searchPaths.push(...RP(s.patterns)),s})}static stat(e,r,s){return PP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Fg.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){M(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Fg.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Fg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){M(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as OP from"crypto";import*as R1 from"fs";import*as Qse from"stream";import*as bse from"util";import*as wse from"path";var A5e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},c5e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Nse(t,e){return A5e(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?he:M,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),g=OP.createHash("sha256"),f=0;try{for(var p=!0,I=c5e(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${wse.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(R1.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let b=OP.createHash("sha256");yield bse.promisify(Qse.pipeline)(R1.createReadStream(C),b),g.write(b.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return g.end(),l?(u(`Found ${f} files to hash.`),g.digest("hex")):(u("No matches found for glob"),"")})}var Sse=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function u5e(t,e){return Sse(this,void 0,void 0,function*(){return yield T1.create(t,e)})}function Tse(t){return Sse(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield u5e(e,{followSymbolicLinks:i});return Nse(o,r,n)})}import*as _P from"path";var d5e="Gradle User Home",xse="BASIC_CACHE_PRIMARY_KEY",Rse="BASIC_CACHE_RESTORED_KEY",h5e="setup-java",Dse=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],D1=class{async restore(e,r){let s=kse(e),n=await g5e();jp(xse,n);try{let i=await _re(s,n);i?(jp(Rse,i),he(`Basic caching restored from cache key: ${i}`)):he("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ut(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){let n=zA(xse),i=zA(Rse);if(s.readOnly)return{status:"read-only",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===n)return he(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=kse(e);try{return await Hre(o,n)===-1?(ut(`Basic caching failed to save entry with key \`${n}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(he(`Basic caching saved entry with key: ${n}`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,savedKey:n,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return ut(`Basic caching failed to save entry with key \`${n}\`: ${a}`),{status:"enabled",entries:[Y0({primaryKey:n,restoredKey:i,restoredOutcome:i?"Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Dse}], make sure you have checked out the target repository`);return`${h5e}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var p5e="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",m5e="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",GP=class{async restore(e,r){}async save(e,r,s){return{status:"disabled",entries:[]}}};async function Use(t){return t.isCacheDisabled()?(HP("Cache is disabled: will not restore state from previous builds."),new GP):t.getCacheProvider()==="basic"?(HP(m5e),new D1):(HP(p5e),E5e())}function Lse(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function E5e(){let t=C5e();return await import(f5e(t).href)}function C5e(){let t=import.meta.dirname,e=Mse.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Fse.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function HP(t){console.info(t)}import*as Hse from"util";var N5e=Ie(_se(),1);import*as YP from"fs";var _Rt=Hse.promisify(YP.readdir);var T5e={_useHtmlParser2:!1};function Mg(t,e){if(!t)return e??T5e;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var h3={};Ci(h3,{contains:()=>J1,extract:()=>yHe,html:()=>EHe,merge:()=>une,parseHTML:()=>IHe,root:()=>BHe,text:()=>vl,xml:()=>CHe});var Sc={};Ci(Sc,{DocumentPosition:()=>ei,append:()=>eHe,appendChild:()=>$5e,compareDocumentPosition:()=>one,existsOne:()=>nne,filter:()=>Og,find:()=>G1,findAll:()=>nHe,findOne:()=>Y1,findOneChild:()=>sHe,getAttributeValue:()=>K5e,getChildren:()=>Pg,getElementById:()=>AHe,getElements:()=>aHe,getElementsByClassName:()=>cHe,getElementsByTagName:()=>Ll,getElementsByTagType:()=>uHe,getFeed:()=>d3,getInnerHTML:()=>z5e,getName:()=>X5e,getOuterHTML:()=>rne,getParent:()=>sne,getSiblings:()=>u3,getText:()=>O1,hasAttrib:()=>j5e,hasChildren:()=>it,innerText:()=>z0,isCDATA:()=>Ug,isComment:()=>Ul,isDocument:()=>$n,isTag:()=>Z,isText:()=>Ms,nextElementSibling:()=>_1,prepend:()=>rHe,prependChild:()=>tHe,prevElementSibling:()=>H1,removeElement:()=>nA,removeSubsets:()=>lHe,replaceElement:()=>Z5e,testElement:()=>oHe,textContent:()=>sA,uniqueSort:()=>wc});var Zn={};Ci(Zn,{CDATA:()=>ZP,Comment:()=>zP,Directive:()=>WP,Doctype:()=>$P,ElementType:()=>ve,Root:()=>VP,Script:()=>KP,Style:()=>jP,Tag:()=>XP,Text:()=>JP,isTag:()=>qP});var ve;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(ve||(ve={}));function qP(t){return t.type===ve.Tag||t.type===ve.Script||t.type===ve.Style}var VP=ve.Root,JP=ve.Text,WP=ve.Directive,zP=ve.Comment,KP=ve.Script,jP=ve.Style,XP=ve.Tag,ZP=ve.CDATA,$P=ve.Doctype;var k1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Lg(this,e)}},q0=class extends k1{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zo=class extends q0{constructor(){super(...arguments),this.type=ve.Text}get nodeType(){return 3}},kl=class extends q0{constructor(){super(...arguments),this.type=ve.Comment}get nodeType(){return 8}},Fl=class extends q0{constructor(e,r){super(r),this.name=e,this.type=ve.Directive}get nodeType(){return 1}},V0=class extends k1{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},J0=class extends V0{constructor(){super(...arguments),this.type=ve.CDATA}get nodeType(){return 4}},fn=class extends V0{constructor(){super(...arguments),this.type=ve.Root}get nodeType(){return 9}},Ml=class extends V0{constructor(e,r,s=[],n=e==="script"?ve.Script:e==="style"?ve.Style:ve.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}}) Line truncated
`:O1(t.children):Ug(t)?O1(t.children):Ms(t)?t.data:""}function sA(t){return Array.isArray(t)?t.map(sA).join(""):it(t)&&!Ul(t)?sA(t.children):Ms(t)?t.data:""}function z0(t){return Array.isArray(t)?t.map(z0).join(""):it(t)&&(t.type===ve.Tag||Ug(t))?z0(t.children):Ms(t)?t.data:""}function Pg(t){return it(t)?t.children:[]}function sne(t){return t.parent||null}function u3(t){let e=sne(t);if(e!=null)return Pg(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function K5e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function j5e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function X5e(t){return t.name}function _1(t){let{next:e}=t;for(;e!==null&&!Z(e);)({next:e}=e);return e}function H1(t){let{prev:e}=t;for(;e!==null&&!Z(e);)({prev:e}=e);return e}function nA(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Z5e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function $5e(t,e){if(nA(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function eHe(t,e){nA(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function tHe(t,e){if(nA(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function rHe(t,e){nA(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function Og(t,e,r=!0,s=1/0){return G1(t,Array.isArray(e)?e:[e],r,s)}function G1(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&it(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function sHe(t,e){return e.find(t)}function Y1(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Z(i)&&t(i))return i;if(r&&it(i)&&i.children.length>0){let o=Y1(t,i.children,!0);if(o)return o}}return null}function nne(t,e){return(Array.isArray(e)?e:[e]).some(r=>Z(r)&&t(r)||it(r)&&nne(t,r.children))}function nHe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Z(i)&&t(i)&&r.push(i),it(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var q1={tag_name(t){return typeof t=="function"?e=>Z(e)&&t(e.name):t==="*"?Z:e=>Z(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ms(e)&&t(e.data):e=>Ms(e)&&e.data===t}};function l3(t,e){return typeof e=="function"?r=>Z(r)&&e(r.attribs[t]):r=>Z(r)&&r.attribs[t]===e}function iHe(t,e){return r=>t(r)||e(r)}function ine(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(q1,r)?q1[r](s):l3(r,s)});return e.length===0?null:e.reduce(iHe)}function oHe(t,e){let r=ine(t);return r?r(e):!0}function aHe(t,e,r,s=1/0){let n=ine(t);return n?Og(n,e,r,s):[]}function AHe(t,e,r=!0){return Array.isArray(e)||(e=[e]),Y1(l3("id",t),e,r)}function Ll(t,e,r=!0,s=1/0){return Og(q1.tag_name(t),e,r,s)}function cHe(t,e,r=!0,s=1/0){return Og(l3("class",t),e,r,s)}function uHe(t,e,r=!0,s=1/0){return Og(q1.tag_type(t),e,r,s)}function lHe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var ei;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ei||(ei={}));function one(t,e){let r=[],s=[];if(t===e)return 0;let n=it(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=it(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return ei.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?ei.FOLLOWING|ei.CONTAINED_BY:ei.FOLLOWING:a===t?ei.PRECEDING|ei.CONTAINS:ei.PRECEDING}function wc(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=one(e,r);return s&ei.PRECEDING?-1:s&ei.FOLLOWING?1:0}),t}function d3(t){let e=V1(pHe,t);return e?e.name==="feed"?dHe(e):hHe(e):null}function dHe(t){var e;let r=t.children,s={type:"atom",items:Ll("entry",r).map(o=>{var a;let{children:A}=o,c={media:ane(A)};Us(c,"id","id",A),Us(c,"title","title",A);let u=(a=V1("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=Nc("summary",A)||Nc("content",A);l&&( Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ei=Ee(bc(),1);var t3={};function r3(t,e){return t===ei.default.falseFunc?ei.default.falseFunc:r=>e.isTag(r)&&t(r)}function s3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function e3(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var $P=(t,e,r,s,n)=>{let i=n(e,e3(r),s);return i===ei.default.trueFunc?t:i===ei.default.falseFunc?ei.default.falseFunc:o=>i(o)&&t(o)},O1={is:$P,matches:$P,where:$P,not(t,e,r,s,n){let i=n(e,e3(r),s);return i===ei.default.falseFunc?t:i===ei.default.trueFunc?ei.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=e3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(O0))?[t3]:void 0,A=n(e,o,a);if(A===ei.default.falseFunc)return ei.default.falseFunc;let c=r3(A,i);if(a&&A!==ei.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...s3(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Kse(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in O1))throw new Error(`Unknown pseudo-class :${o}(${a})`);return O1[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:P1[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zse.parse)(c);return O1.is(t,u,r,s,n)}if(typeof A=="function")return ZP(A,o,a,1),u=>A(u,a)&&t(u);if(o in Pg)return Pg[o](t,a,r,s);if(o in H0){let u=H0[o];return ZP(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ti=Ee(Lg(),1);function n3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function Xse(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ti.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ti.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ti.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),qse[e.action](t,e,r)}case ti.SelectorType.Pseudo:return Kse(t,e,r,s,n);case ti.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ti.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=n3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=n3(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=n3(c,i));return!1};case ti.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ti.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ti.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case ti.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case ti.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function jse(t,e,r){let s=_1(t,e,r);return r3(s,e.adapter)}function _1(t,e,r){let s=typeof t=="string"?(0,Yi.parse)(t):t;return H1(s,e,r)}function Zse(t){return t.type===Yi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Zse)))}var _5e={type:Yi.SelectorType.Descendant},H5e={type:"_flexibleDescendant"},G5e={type:Yi.SelectorType.Pseudo,name:"scope",data:null};function Y5e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===t3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(gne,`\r
`)}}).toArray()}var I3={};mi(I3,{extract:()=>n9e});function s9e(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function n9e(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=s9e(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Sc=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Sc.prototype.cheerio="[cheerio object]";Sc.prototype.splice=Array.prototype.splice;Sc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Sc.prototype,WP,p3,m3,E3,C3,I3);function fne(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=bg(n),a=t(s,o,i,null);class A extends Sc{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Zn(u))return u;let f=bg(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Zn(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&F0(u)?t(u,f,!1,null).children:i9e(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let b=u,T=l?typeof l=="string"?F0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):Zn(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return T?T.find(b):C}return Object.assign(c,OP,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function i9e(t){return!!t.name||t.type===Kn.Root||t.type===Kn.Text||t.type===Kn.Comment}var o9e=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lt="\uFFFD",B;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(B||(B={}));var ns={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function W1(t){return t>=55296&&t<=57343}function pne(t){return t>=56320&&t<=57343}function mne(t,e){return(t-55296)*1024+9216+e}function z1(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function K1(t){return t>=64976&&t<=65007||o9e.has(t)}var D;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var si=Ie(Tc(),1);var x3={};function R3(t,e){return t===si.default.falseFunc?si.default.falseFunc:r=>e.isTag(r)&&t(r)}function D3(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function T3(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var S3=(t,e,r,s,n)=>{let i=n(e,T3(r),s);return i===si.default.trueFunc?t:i===si.default.falseFunc?si.default.falseFunc:o=>i(o)&&t(o)},nw={is:S3,matches:S3,where:S3,not(t,e,r,s,n){let i=n(e,T3(r),s);return i===si.default.falseFunc?t:i===si.default.trueFunc?si.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=T3(r);o.relativeSelector=!0;let a=e.some(u=>u.some(tE))?[x3]:void 0,A=n(e,o,a);if(A===si.default.falseFunc)return si.default.falseFunc;let c=R3(A,i);if(a&&A!==si.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),g=u?[...d,...D3(l,i)]:d;return i.existsOne(c,g)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Kne(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in nw))throw new Error(`Unknown pseudo-class :${o}(${a})`);return nw[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:sw[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zne.parse)(c);return nw.is(t,u,r,s,n)}if(typeof A=="function")return N3(A,o,a,1),u=>A(u,a)&&t(u);if(o in zg)return zg[o](t,a,r,s);if(o in sE){let u=sE[o];return N3(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ni=Ie(Jg(),1);function k3(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function jne(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ni.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ni.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ni.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),qne[e.action](t,e,r)}case ni.SelectorType.Pseudo:return Kne(t,e,r,s,n);case ni.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ni.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=k3(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=k3(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=k3(c,i));return!1};case ni.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ni.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ni.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case ni.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case ni.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Xne(t,e,r){let s=iw(t,e,r);return R3(s,e.adapter)}function iw(t,e,r){let s=typeof t=="string"?(0,Vi.parse)(t):t;return ow(s,e,r)}function Zne(t){return t.type===Vi.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Zne)))}var a9e={type:Vi.SelectorType.Descendant},A9e={type:"_flexibleDescendant"},c9e={type:Vi.SelectorType.Pseudo,name:"scope",data:null};function u9e(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===x3||i&&e.isTag(i)});fo Line truncated
`)})):{name:n,value:i.replace(gie,`\r
`)}}).toArray()}var z3={};Ci(z3,{extract:()=>wGe});function bGe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function wGe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=bGe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Dc=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Dc.prototype.cheerio="[cheerio object]";Dc.prototype.splice=Array.prototype.splice;Dc.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Dc.prototype,B3,q3,V3,J3,W3,z3);function fie(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=Mg(n),a=t(s,o,i,null);class A extends Dc{_make(l,d){let g=c(l,d);return g.prevObject=this,g}_parse(l,d,g,f){return t(l,d,g,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,g){if(u&&ti(u))return u;let f=Mg(g,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=ti(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&K0(u)?t(u,f,!1,null).children:NGe(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let b=u,S=l?typeof l=="string"?K0(l)?new A([t(l,f,!1,null)],I,f):(b=`${l} ${b}`,I):ti(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return S?S.find(b):C}return Object.assign(c,h3,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function NGe(t){return!!t.name||t.type===Zn.Root||t.type===Zn.Text||t.type===Zn.Comment}var SGe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),dt="\uFFFD",B;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(B||(B={}));var As={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function dw(t){return t>=55296&&t<=57343}function pie(t){return t>=56320&&t<=57343}function mie(t,e){return(t-55296)*1024+9216+e}function hw(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function gw(t){return t>=64976&&t<=65007||SGe.has(t)}var R;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+149 -149
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var F8e=Object.create;var $M=Object.defineProperty;var M8e=Object.getOwnPropertyDescriptor;var L8e=Object.getOwnPropertyNames;var U8e=Object.getPrototypeOf,P8e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sa=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},O8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of L8e(e))!P8e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=M8e(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?F8e(U8e(t)):{},O8e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var MZ=E(Op=>{"use strict";var d7t=b("net"),W8e=b("tls"),tL=b("http"),vZ=b("https"),J8e=b("events"),h7t=b("assert"),z8e=b("util");Op.httpOverHttp=j8e;Op.httpsOverHttp=K8e;Op.httpOverHttps=$8e;Op.httpsOverHttps=X8e;function j8e(t){var e=new Au(t);return e.request=tL.request,e}function K8e(t){var e=new Au(t);return e.request=tL.request,e.createSocket=_Z,e.defaultPort=443,e}function $8e(t){var e=new Au(t);return e.request=vZ.request,e}function X8e(t){var e=new Au(t);return e.request=vZ.request,e.createSocket=_Z,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=FZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}z8e.inherits(Au,J8e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,FZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),xl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){xl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){xl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return xl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),xl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Au.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function _Z(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=W8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function FZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var xl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?xl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:xl=function(){};Op.debug=xl});var nL=E((g7t,LZ)=>{LZ.exports=MZ()});var yr=E((p7t,UZ)=>{UZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((m7t,Aee)=>{"use strict";var PZ=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[PZ]===!0}[PZ]=!0},OZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=class extends Br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[OZ]===!0}[OZ]=!0},HZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=class extends Br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[HZ]===!0}[HZ]=!0},GZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=class extends Br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[GZ]===!0}[GZ]=!0},qZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[qZ]===!0}[qZ]=!0},YZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function f5e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(X6e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function g5e(){return"allowed"}function p5e(){return"success"}function m5e(){return"success"}function E5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function C5e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&ZL(t.origin)&&!ZL(NI(t))&&(e=null);break;case"same-origin":mS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Kp(t,e){return t}function I5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Kp(t.domainLookupStartTime,r),domainLookupEndTime:Kp(t.domainLookupEndTime,r),connectionStartTime:Kp(t.connectionStartTime,r),connectionEndTime:Kp(t.connectionEndTime,r),secureConnectionStartTime:Kp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function y5e(t){return Kp(n5e.now(),t)}function B5e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function bte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function b5e(t){return{referrerPolicy:t.referrerPolicy}}function Q5e(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=mte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=mS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??XL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=NI(t);return mS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return Yh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function SI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function w5e(t,e){if(pS===void 0)return!0;let r=Qte(e);if(r==="no metadata"||r.length===0)return!0;let n=N5e(r),s=T5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=pS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),x5e(c,a))return!0}return!1}var S5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Qte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=S5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Cte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function N5e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function T5e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function x5e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function R5e(t){}function mS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function D5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function k5e(t){return t.controller.state==="aborted"}function v5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _5e(t){return o5e[t.toLowerCase()]??t}function F5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var M5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function wte(t,e,r=0,n=1){class s{ Line truncated
`);function dHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function hHe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function fHe(t,e){CS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&IS(t,uHe,i)||i.position===t.length-4&&IS(t,lHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=gHe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",dHe(u)||(u=""),h=new cHe([d],A,{type:u})):h=nHe(Buffer.from(d)),CS(Lte(c)),CS(typeof h=="string"&&Lte(h)||iHe(h)),s.push(oHe(c,h,A))}}function gHe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Xp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=oU(o,!0,!0,a=>a===9||a===32),!sHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Xp(a=>a===32||a===9,t,e),rHe(o)){case"content-disposition":{if(r=n=null,!IS(t,AHe,e)||(e.position+=17,r=Ote(t,e),r===null))return"failure";if(IS(t,Pte,e)){let a=e.position+Pte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Ote(t,e),n===null))return"failure"}break}case"content-type":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=Ute(a);break}case"content-transfer-encoding":{let a=Xp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=Ute(a);break}default:Xp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Ote(t,e){CS(t[e.position-1]===34);let r=Xp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Xp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function oU(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function IS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Hte.exports={multipartFormDataParser:fHe,validateBoundary:hHe}});var tm=E((G7t,Xte)=>{"use strict";var RI=dt(),{ReadableStreamFrom:pHe,isBlobLike:qte,isReadableStreamLike:mHe,readableStreamClose:EHe,createDeferredPromise:CHe,fullyReadBody:IHe,extractMimeType:yHe,utf8DecodeBytes:Wte}=xi(),{FormData:Yte}=xI(),{kState:em}=Rl(),{webidl:BHe}=jn(),{Blob:bHe}=b("node:buffer"),aU=b("node:assert"),{isErrored:Jte,isDisturbed:QHe}=b("node:stream"),{isArrayBuffer:wHe}=b("node:util/types"),{serializeAMimeType:SHe}=Ks(),{multipartFormDataParser:NHe}=Gte(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var yS=new TextEncoder;function THe(){}var zte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,jte;zte&&(jte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!QHe(e)&&!Jte(e)&&e.cancel("Response object has been garbage collected").catch(THe)}));function Kte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:qte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?yS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>EHe(c))},start(){},type:"bytes"}),aU(mHe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(wHe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=yS.encode(A+`; name="${u(l(I))}"\r
var e6e=Object.create;var pL=Object.defineProperty;var t6e=Object.getOwnPropertyDescriptor;var r6e=Object.getOwnPropertyNames;var n6e=Object.getPrototypeOf,s6e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},i6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of r6e(e))!s6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var See=C(Kp=>{"use strict";var XWt=Q("net"),l6e=Q("tls"),IL=Q("http"),bee=Q("https"),d6e=Q("events"),ZWt=Q("assert"),h6e=Q("util");Kp.httpOverHttp=f6e;Kp.httpsOverHttp=g6e;Kp.httpOverHttps=p6e;Kp.httpsOverHttps=m6e;function f6e(t){var e=new Au(t);return e.request=IL.request,e}function g6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=Qee,e.defaultPort=443,e}function p6e(t){var e=new Au(t);return e.request=bee.request,e}function m6e(t){var e=new Au(t);return e.request=bee.request,e.createSocket=Qee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=wee(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}h6e.inherits(Au,d6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,wee(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),kl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){kl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){kl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return kl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};Au.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function Qee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=l6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function wee(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var kl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:kl=function(){};Kp.debug=kl});var BL=C((tJt,Nee)=>{Nee.exports=See()});var br=C((rJt,Tee)=>{Tee.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var _t=C((nJt,Zee)=>{"use strict";var xee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[xee]===!0}[xee]=!0},Ree=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Ree]===!0}[Ree]=!0},Dee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Dee]===!0}[Dee]=!0},kee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[kee]===!0}[kee]=!0},vee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[vee]===!0}[vee]=!0},_ee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vHe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(mHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function _He(){return"allowed"}function FHe(){return"success"}function MHe(){return"success"}function LHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function UHe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":vS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function om(t,e){return t}function PHe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:om(t.domainLookupStartTime,r),domainLookupEndTime:om(t.domainLookupEndTime,r),connectionStartTime:om(t.connectionStartTime,r),connectionEndTime:om(t.connectionEndTime,r),secureConnectionStartTime:om(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function OHe(t){return om(BHe.now(),t)}function HHe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function hre(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function GHe(t){return{referrerPolicy:t.referrerPolicy}}function qHe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=are();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=vS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=OI(t);return vS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(t,e){return Yh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function PI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function YHe(t,e){if(kS===void 0)return!0;let r=fre(e);if(r==="no metadata"||r.length===0)return!0;let n=WHe(r),s=JHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=kS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),zHe(c,a))return!0}return!1}var VHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function fre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=VHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Are.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function WHe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function JHe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function zHe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function jHe(t){}function vS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $He(t){return t.controller.state==="aborted"}function XHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ZHe(t){return wHe[t.toLowerCase()]??t}function e9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var t9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gre(t,e,r=0,n=1){class s{ Line truncated
`);function D9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k9e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function v9e(t,e){FS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&MS(t,x9e,i)||i.position===t.length-4&&MS(t,R9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",D9e(u)||(u=""),h=new N9e([d],A,{type:u})):h=B9e(Buffer.from(d)),FS(Nre(c)),FS(typeof h=="string"&&Nre(h)||Q9e(h)),s.push(w9e(c,h,A))}}function _9e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=cm(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!b9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,cm(a=>a===32||a===9,t,e),y9e(o)){case"content-disposition":{if(r=n=null,!MS(t,T9e,e)||(e.position+=17,r=Rre(t,e),r===null))return"failure";if(MS(t,xre,e)){let a=e.position+xre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Rre(t,e),n===null))return"failure"}break}case"content-type":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=Tre(a);break}case"content-transfer-encoding":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=Tre(a);break}default:cm(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Rre(t,e){FS(t[e.position-1]===34);let r=cm(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function MS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Dre.exports={multipartFormDataParser:v9e,validateBoundary:k9e}});var lm=C((TJt,Gre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:F9e,isBlobLike:vre,isReadableStreamLike:M9e,readableStreamClose:L9e,createDeferredPromise:U9e,fullyReadBody:P9e,extractMimeType:O9e,utf8DecodeBytes:Mre}=vi(),{FormData:_re}=GI(),{kState:um}=vl(),{webidl:H9e}=Xn(),{Blob:G9e}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Lre,isDisturbed:q9e}=Q("node:stream"),{isArrayBuffer:Y9e}=Q("node:util/types"),{serializeAMimeType:V9e}=ei(),{multipartFormDataParser:W9e}=kre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var LS=new TextEncoder;function J9e(){}var Ure=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pre;Ure&&(Pre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!q9e(e)&&!Lre(e)&&e.cancel("Response object has been garbage collected").catch(J9e)}));function Ore(t,e=!1){let r=null;t instanceof ReadableStream?r=t:vre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?LS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>L9e(c))},start(){},type:"bytes"}),SU(M9e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Y9e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=LS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=yS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=LS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=yS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(qte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:pHe(t)}if((typeof s=="string"||RI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Jte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function xHe(t,e=!1){return t instanceof ReadableStream&&(aU(!RI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),Kte(t,e)}function RHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function DHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function kHe(t){return{blob(){return Zp(this,r=>{let n=Vte(this);return n===null?n="":n&&(n=SHe(n)),new bHe([r],{type:n})},t)},arrayBuffer(){return Zp(this,r=>new Uint8Array(r).buffer,t)},text(){return Zp(this,Wte,t)},json(){return Zp(this,_He,t)},formData(){return Zp(this,r=>{let n=Vte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=NHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Yte;return i[em]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Yte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Zp(this,r=>new Uint8Array(r),t)}}}function vHe(t){Object.assign(t.prototype,kHe(t))}async function Zp(t,e,r){if(BHe.brandCheck(t,r),$te(t))throw new TypeError("Body is unusable: Body has already been read");DHe(t[em]);let n=CHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[em].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await IHe(t[em].body,i,s),n.promise)}function $te(t){let e=t[em].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function _He(t){return JSON.parse(Wte(t))}function Vte(t){let e=t[em].headersList,r=yHe(e);return r==="failure"?null:r}Xte.exports={extractBody:Kte,safelyExtractBody:xHe,cloneBody:RHe,mixinBody:vHe,streamRegistry:jte,hasFinalizationRegistry:zte,bodyUnusable:$te}});var Are=E((q7t,cre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:Zte}=Gp(),AU=YL(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:FHe,RequestAbortedError:ire,HeadersTimeoutError:MHe,HeadersOverflowError:LHe,SocketError:NS,InformationalError:rm,BodyTimeoutError:UHe,HTTPParserError:PHe,ResponseExceededMaxSizeError:OHe}=Lt(),{kUrl:ore,kReset:$s,kClient:hU,kParser:Mr,kBlocking:vI,kRunning:cs,kPending:HHe,kSize:ere,kWriting:kl,kQueue:Ta,kNoRef:DI,kKeepAliveDefaultTimeout:GHe,kHostHeader:qHe,kPendingIdx:YHe,kRunningIdx:Qo,kError:wo,kPipelining:wS,kSocket:nm,kKeepAliveTimeoutValue:TS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:VHe,kKeepAliveTimeoutThreshold:WHe,kHeadersTimeout:JHe,kBodyTimeout:zHe,kStrictContentLength:fU,kMaxRequests:tre,kCounter:jHe,kMaxResponseSize:KHe,kOnError:$He,kResume:Dl,kHTTPContext:are}=yr(),wc=jee(),XHe=Buffer.alloc(0),BS=Buffer[Symbol.species],bS=Xe.addListener,ZHe=Xe.removeAllListeners,lU;async function e9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(Xee())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onStatus(new BS(Sc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onHeaderField(new BS(Sc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onHeaderValue(new BS(Sc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onBody(new BS(Sc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=e9e();gU.catch();var gn=null,Sc=null,QS=0,Nc=null,t9e=0,kI=1,sm=2|kI,SS=4|kI,pU=8|t9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[qHe],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=LS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(vre(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F9e(t)}if((typeof s=="string"||qI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Lre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function z9e(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Ore(t,e)}function j9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function K9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $9e(t){return{blob(){return Am(this,r=>{let n=Fre(this);return n===null?n="":n&&(n=V9e(n)),new G9e([r],{type:n})},t)},arrayBuffer(){return Am(this,r=>new Uint8Array(r).buffer,t)},text(){return Am(this,Mre,t)},json(){return Am(this,Z9e,t)},formData(){return Am(this,r=>{let n=Fre(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=W9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new _re;return i[um]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new _re;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Am(this,r=>new Uint8Array(r),t)}}}function X9e(t){Object.assign(t.prototype,$9e(t))}async function Am(t,e,r){if(H9e.brandCheck(t,r),Hre(t))throw new TypeError("Body is unusable: Body has already been read");K9e(t[um]);let n=U9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[um].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await P9e(t[um].body,i,s),n.promise)}function Hre(t){let e=t[um].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function Z9e(t){return JSON.parse(Mre(t))}function Fre(t){let e=t[um].headersList,r=O9e(e);return r==="failure"?null:r}Gre.exports={extractBody:Ore,safelyExtractBody:z9e,cloneBody:j9e,mixinBody:X9e,streamRegistry:Pre,hasFinalizationRegistry:Ure,bodyUnusable:Hre}});var sne=C((xJt,nne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:qre}=Xp(),TU=AU(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:Yre,RequestAbortedError:Xre,InvalidArgumentError:eGe,HeadersTimeoutError:tGe,HeadersOverflowError:rGe,SocketError:dm,InformationalError:hm,BodyTimeoutError:nGe,HTTPParserError:sGe,ResponseExceededMaxSizeError:iGe}=_t(),{kUrl:Zre,kReset:ti,kClient:HS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ene,kSize:Vre,kWriting:_l,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:oGe,kHostHeader:aGe,kPendingIdx:cGe,kRunningIdx:To,kError:Ts,kPipelining:GS,kSocket:Jh,kKeepAliveTimeoutValue:YS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:AGe,kKeepAliveTimeoutThreshold:uGe,kHeadersTimeout:lGe,kBodyTimeout:dGe,kStrictContentLength:kU,kMaxRequests:Wre,kCounter:hGe,kMaxResponseSize:fGe,kOnError:Jre,kResume:gu,kHTTPContext:tne}=br(),_i=Pte(),zre=Buffer.alloc(0),US=Buffer[Symbol.species],PS=Pe.addListener,gGe=Pe.removeAllListeners,zh=Symbol("kIdleSocketValidation"),Wh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function pGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Gte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onStatus(new US(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderField(new US(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderValue(new US(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onBody(new US(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=pGe();vU.catch();var Ur=null,Tc=null,OS=0,xc=null,mGe=0,VI=1,fm=2|VI,qS=4|VI,_U=8|mGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[aGe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[wS]&&!h[$s]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return Zte.sendHeaders.hasSubscribers&&Zte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?nre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?nre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?sre(f,c.stream(),t,e,h,u,p,l):a9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?o9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?sre(f,c,t,e,h,u,p,l):Ge(!1),!0}function o9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new ire;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[kl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function nre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[GS]&&!h[ti]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return qre.sendHeaders.hasSubscribers&&qre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Kre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?Kre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?$re(f,c.stream(),t,e,h,u,g,l):QGe(f,c,t,e,h,u,g,l):Pe.isStream(c)?bGe(f,c,t,e,h,u,g,l):Pe.isIterable(c)?$re(f,c,t,e,h,u,g,l):Me(!1),!0}function bGe(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"stream body cannot be pipelined");let c=!1,A=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Xre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[_l]&&r[cn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function Kre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[ti]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Dl]()}catch(c){t(c)}}async function a9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function QGe(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[$s]=!0),r[Dl]()}catch(c){t(c)}}async function sre(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var xS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[kl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function $re(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var VS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[_l]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===sm&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[kl]=!1,e[wo])throw e[wo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===fm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[_l]=!1,e[Ts])throw e[Ts];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Vh;process.emitWarning(new Vh)}e[Mr].timeout&&e[Mr].timeoutType===sm&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Dl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[kl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};cre.exports=r9e});var mre=E((Y7t,pre)=>{"use strict";var So=b("node:assert"),{pipeline:c9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:ure,SocketError:_I,InformationalError:CU}=Lt(),{kUrl:RS,kReset:kS,kClient:im,kRunning:vS,kPending:A9e,kQueue:vl,kPendingIdx:IU,kRunningIdx:xa,kError:Da,kSocket:Rn,kStrictContentLength:u9e,kOnError:yU,kMaxConcurrentStreams:gre,kHTTP2Session:Ra,kResume:_l,kSize:l9e,kHTTPContext:d9e}=yr(),gu=Symbol("open streams"),lre,dre=!1,DS;try{DS=b("node:http2")}catch{DS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:h9e,HTTP2_HEADER_METHOD:f9e,HTTP2_HEADER_PATH:g9e,HTTP2_HEADER_SCHEME:p9e,HTTP2_HEADER_CONTENT_LENGTH:m9e,HTTP2_HEADER_EXPECT:E9e,HTTP2_HEADER_STATUS:C9e}}=DS;function I9e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function y9e(t,e){t[Rn]=e,dre||(dre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=DS.connect(t[RS],{createConnection:()=>e,peerMaxConcurrentStreams:t[gre]});r[gu]=0,r[im]=t,r[Rn]=e,Et.addListener(r,"error",b9e),Et.addListener(r,"frameError",Q9e),Et.addListener(r,"end",w9e),Et.addListener(r,"goaway",S9e),Et.addListener(r,"close",function(){let{[im]:s}=this,{[Rn]:i}=s,o=this[Rn][Da]||this[Da]||new _I("closed",Et.getSocketInfo(i));if(s[Ra]=null,s.destroyed){So(s[A9e]===0);let a=s[vl].splice(s[xa]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Da]=s,this[im][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new _I("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Da]||new _I("closed",Et.getSocketInfo(this));t[Rn]=null,this[Ra]!=null&&this[Ra].destroy(s),t[IU]=t[xa],So(t[vS]===0),t.emit("disconnect",t[RS],[t],s),t[_l]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return T9e(t,...s)},resume(){B9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function B9e(t){let e=t[Rn];e?.destroyed===!1&&(t[l9e]===0&&t[gre]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function b9e(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rn][Da]=t,this[im][yU](t)}function Q9e(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rn][Da]=n,this[im][yU](n)}}function w9e(){let t=new _I("other side closed",Et.getSocketInfo(this[Rn]));this.destroy(t),Et.destroy(this[Rn],t)}function S9e(t){let e=this[Da]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[im];if(r[Rn]=null,r[d9e]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),Et.destroy(this[Rn],e),r[xa]<r[vl].length){let n=r[vl][r[xa]];r[vl][r[xa]++]=null,Et.errorRequest(r,n,e),r[IU]=r[xa]}So(r[vS]===0),r.emit("disconnect",r[RS],[r],e),r[_l]()}function N9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function T9e(t,e){let r=t[Ra],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[RS];l[h9e]=i||`${h}${f?`:${f}`:""}`,l[f9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new ure,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[vl][t[xa]++]=null,t[_l]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[gu],t[vl][t[xa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[gu],t[vl][t[xa]++]=null}),d.once("close",()=>{r[gu]-=1,r[gu]===0&&r.unref()}),!0;l[g9e]=s,l[p9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){lre??=tm().extractBody;let[N,M]=lre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),N9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[u9e])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[m9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[E9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[eGe]=c??3e5,this[Z9e]=s??3e5,this[tGe]=C??!0,this[rGe]=N,this[wU]=O,this[Ml]=null,this[aGe]=P>-1?P:-1,this[AGe]=ee??100,this[Kr]=null,this[ka]=[],this[mu]=0,this[va]=0,this[UI]=ce=>NU(this,ce),this[cGe]=ce=>xre(this,ce)}get pipelining(){return this[LS]}set pipelining(e){this[LS]=e,this[UI](!0)}get[HI](){return this[ka].length-this[va]}get[OI](){return this[va]-this[mu]}get[PI](){return this[ka].length-this[mu]}get[W9e](){return!!this[Kr]&&!this[am]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Tre(this)||1)||this[HI]>0)}[V9e](e){Rre(this),this.once("connect",e)}[oGe](e,r){let n=e.origin||this[xc].origin,s=new P9e(n,e,r);return this[ka].push(s),this[Jh]||(Wh.bodyLength(s.body)==null&&Wh.isIterable(s.body)?(this[Jh]=1,queueMicrotask(()=>NU(this))):this[UI](!0)),this[Jh]&&this[Ll]!==2&&this[QU]&&(this[Ll]=2),this[Ll]<2}async[sGe](){return new Promise(e=>{this[PI]?this[Ml]=e:e(null)})}async[iGe](e){return new Promise(r=>{let n=this[ka].splice(this[va]);for(let i=0;i<n.length;i++){let o=n[i];Wh.errorRequest(this,o,e)}let s=()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},dGe=MS();function xre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){pu(t[va]===t[mu]);let r=t[ka].splice(t[mu]);for(let n=0;n<r.length;n++){let s=r[n];Wh.errorRequest(t,s,e)}pu(t[PI]===0)}}async function Rre(t){pu(!t[am]),pu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[xc];if(r[0]==="["){let i=r.indexOf("]");pu(i!==-1);let o=r.substring(1,i);pu(Nre.isIP(o)),r=o}t[am]=!0,om.beforeConnect.hasSubscribers&&om.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Fl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Wh.destroy(i.on("error",wre),new G9e);return}pu(i);try{t[Kr]=i.alpnProtocol==="h2"?await lGe(t,i):await uGe(t,i)}catch(o){throw i.destroy().on("error",wre),o}t[am]=!1,i[nGe]=0,i[wU]=t[wU],i[Y9e]=t,i[z9e]=null,om.connected.hasSubscribers&&om.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[xc],[t])}catch(i){if(t.destroyed)return;if(t[am]=!1,om.connectError.hasSubscribers&&om.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(pu(t[OI]===0);t[HI]>0&&t[ka][t[va]].servername===t[Fl];){let o=t[ka][t[va]++];Wh.errorRequest(t,o,i)}else xre(t,i);t.emit("connectionError",t[xc],[t],i)}t[UI]()}function Sre(t){t[Ll]=0,t.emit("drain",t[xc],[t])}function NU(t,e){t[Jh]!==2&&(t[Jh]=2,hGe(t,e),t[Jh]=0,t[mu]>256&&(t[ka].splice(0,t[mu]),t[va]-=t[mu],t[mu]=0))}function hGe(t,e){for(;;){if(t.destroyed){pu(t[HI]===0);return}if(t[Ml]&&!t[PI]){t[Ml](),t[Ml]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ll]=2;else if(t[Ll]===2){e?(t[Ll]=1,queueMicrotask(()=>Sre(t))):Sre(t);continue}if(t[HI]===0||t[OI]>=(Tre(t)||1))return;let r=t[ka][t[va]];if(t[xc].protocol==="https:"&&t[Fl]!==r.servername){if(t[OI]>0)return;t[Fl]=r.servername,t[Kr]?.destroy(new H9e("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[am])return;if(!t[Kr]){Rre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[va]++:t[ka].splice(t[va],1)}}Dre.exports=SU});var TU=E((j7t,kre)=>{"use strict";var US=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};kre.exports=class{constructor(){this.head=this.tail=new US}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new US),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var _re=E((K7t,vre)=>{var{kFree:fGe,kConnected:gGe,kPending:pGe,kQueued:mGe,kRunning:EGe,kSize:CGe}=yr(),zh=Symbol("pool"),xU=class{constructor(e){this[zh]=e}get connected(){return this[zh][gGe]}get free(){return this[zh][fGe]}get pending(){return this[zh][pGe]}get queued(){return this[zh][mGe]}get running(){return this[zh][EGe]}get size(){return this[zh][CGe]}};vre.exports=xU});var FU=E(($7t,Yre)=>{"use strict";var IGe=Wp(),yGe=TU(),{kConnected:RU,kSize:Fre,kRunning:Mre,kPending:Lre,kQueued:GI,kBusy:BGe,kFree:bGe,kUrl:QGe,kClose:wGe,kDestroy:SGe,kDispatch:NGe}=yr(),TGe=_re(),Xs=Symbol("clients"),ws=Symbol("needDrain"),qI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),Ure=Symbol("onConnect"),Pre=Symbol("onDisconnect"),Ore=Symbol("onC Line truncated
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Vh;process.emitWarning(new Vh)}e[lr].timeout&&e[lr].timeoutType===fm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_l]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};nne.exports=EGe});var dne=C((RJt,lne)=>{"use strict";var xo=Q("node:assert"),{pipeline:wGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:ine,SocketError:JI,InformationalError:UU}=_t(),{kUrl:WS,kReset:zS,kClient:gm,kRunning:jS,kPending:SGe,kQueue:Fl,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:vn,kStrictContentLength:NGe,kOnError:OU,kMaxConcurrentStreams:une,kHTTP2Session:va,kResume:Ml,kSize:TGe,kHTTPContext:xGe}=br(),pu=Symbol("open streams"),one,ane=!1,JS;try{JS=Q("node:http2")}catch{JS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RGe,HTTP2_HEADER_METHOD:DGe,HTTP2_HEADER_PATH:kGe,HTTP2_HEADER_SCHEME:vGe,HTTP2_HEADER_CONTENT_LENGTH:_Ge,HTTP2_HEADER_EXPECT:FGe,HTTP2_HEADER_STATUS:MGe}}=JS;function LGe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function UGe(t,e){t[vn]=e,ane||(ane=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=JS.connect(t[WS],{createConnection:()=>e,peerMaxConcurrentStreams:t[une]});r[pu]=0,r[gm]=t,r[vn]=e,Et.addListener(r,"error",OGe),Et.addListener(r,"frameError",HGe),Et.addListener(r,"end",GGe),Et.addListener(r,"goaway",qGe),Et.addListener(r,"close",function(){let{[gm]:s}=this,{[vn]:i}=s,o=this[vn][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[SGe]===0);let a=s[Fl].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[gm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[vn]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[jS]===0),t.emit("disconnect",t[WS],[t],s),t[Ml]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VGe(t,...s)},resume(){PGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function PGe(t){let e=t[vn];e?.destroyed===!1&&(t[TGe]===0&&t[une]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function OGe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn][_a]=t,this[gm][OU](t)}function HGe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vn][_a]=n,this[gm][OU](n)}}function GGe(){let t=new JI("other side closed",Et.getSocketInfo(this[vn]));this.destroy(t),Et.destroy(this[vn],t)}function qGe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[gm];if(r[vn]=null,r[xGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[vn],e),r[ka]<r[Fl].length){let n=r[Fl][r[ka]];r[Fl][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[jS]===0),r.emit("disconnect",r[WS],[r],e),r[Ml]()}function YGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VGe(t,e){let r=t[va],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[WS];l[RGe]=i||`${h}${f?`:${f}`:""}`,l[DGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new ine,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Fl][t[ka]++]=null,t[Ml]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[kGe]=s,l[vGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){one??=lm().extractBody;let[B,M]=one(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),YGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[NGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[_Ge]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[FGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[mqe]=c??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[YU]=V,this[Ul]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=X??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[wqe]=ue=>Qne(this,ue)}get pipelining(){return this[ZS]}set pipelining(e){this[ZS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Aqe](){return!!this[Xr]&&!this[mm]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(bne(this)||1)||this[ey]>0)}[cqe](e){wne(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[Dc].origin,s=new rqe(n,e,r);return this[Fa].push(s),this[Kh]||(jh.bodyLength(s.body)==null&&jh.isIterable(s.body)?(this[Kh]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[Kh]&&this[Pl]!==2&&this[qU]&&(this[Pl]=2),this[Pl]<2}async[yqe](){return new Promise(e=>{this[XI]?this[Ul]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];jh.errorRequest(this,o,e)}let s=()=>{this[Ul]&&(this[Ul](),this[Ul]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},xqe=XS();function Qne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];jh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function wne(t){mu(!t[mm]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[Dc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Bne.isIP(o)),r=o}t[mm]=!0,pm.beforeConnect.hasSubscribers&&pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ll],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){jh.destroy(i.on("error",Ine),new iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",Ine),o}t[mm]=!1,i[Iqe]=0,i[YU]=t[YU],i[aqe]=t,i[lqe]=null,pm.connected.hasSubscribers&&pm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[mm]=!1,pm.connectError.hasSubscribers&&pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ll];){let o=t[Fa][t[Ma]++];jh.errorRequest(t,o,i)}else Qne(t,i);t.emit("connectionError",t[Dc],[t],i)}t[$I]()}function yne(t){t[Pl]=0,t.emit("drain",t[Dc],[t])}function WU(t,e){t[Kh]!==2&&(t[Kh]=2,Rqe(t,e),t[Kh]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Ul]&&!t[XI]){t[Ul](),t[Ul]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Pl]=2;else if(t[Pl]===2){e?(t[Pl]=1,queueMicrotask(()=>yne(t))):yne(t);continue}if(t[ey]===0||t[ZI]>=(bne(t)||1))return;let r=t[Fa][t[Ma]];if(t[Dc].protocol==="https:"&&t[Ll]!==r.servername){if(t[ZI]>0)return;t[Ll]=r.servername,t[Xr]?.destroy(new sqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[mm])return;if(!t[Xr]){wne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Sne.exports=VU});var JU=C((FJt,Nne)=>{"use strict";var eN=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Nne.exports=class{constructor(){this.head=this.tail=new eN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xne=C((MJt,Tne)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:_qe,kRunning:Fqe,kSize:Mqe}=br(),$h=Symbol("pool"),zU=class{constructor(e){this[$h]=e}get connected(){return this[$h][kqe]}get free(){return this[$h][Dqe]}get pending(){return this[$h][vqe]}get queued(){return this[$h][_qe]}get running(){return this[$h][Fqe]}get size(){return this[$h][Mqe]}};Tne.exports=zU});var eP=C((LJt,Pne)=>{"use strict";var Lqe=rm(),Uqe=JU(),{kConnected:jU,kSize:Rne,kRunning:Dne,kPending:kne,kQueued:ty,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=br(),Vqe=xne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),vne=Symbol("onConnect"),_ne=Symbol("onDisconnect"),Fne=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Kse.exports=FP});var rN=E((wWt,tie)=>{"use strict";var Xse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eVe}=Lt(),tVe=um();eie()===void 0&&Zse(new tVe);function Zse(t){if(!t||typeof t.dispatch!="function")throw new eVe("Argument agent must implement Agent");Object.defineProperty(globalThis,Xse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function eie(){return globalThis[Xse]}tie.exports={setGlobalDispatcher:Zse,getGlobalDispatcher:eie}});var nN=E((NWt,rie)=>{"use strict";rie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var sie=E((TWt,nie)=>{"use strict";var rVe=FS();nie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new rVe(r,o,s,i);return r(a,c)}}});var oie=E((xWt,iie)=>{"use strict";var nVe=WS();iie.exports=t=>e=>function(n,s){return e(n,new nVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var cie=E((RWt,aie)=>{"use strict";var sVe=dt(),{InvalidArgumentError:iVe,RequestAbortedError:oVe}=Lt(),aVe=nN(),MP=class extends aVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=sVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new oVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function cVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}aie.exports=cVe});var lie=E((DWt,uie)=>{"use strict";var{isIP:AVe}=b("node:net"),{lookup:uVe}=b("node:dns"),lVe=nN(),{InvalidArgumentError:Im,InformationalError:dVe}=Lt(),Aie=Math.pow(2,31)-1,LP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new dVe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){uVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Aie?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Aie?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new UP(this,e,r)}},UP=class extends lVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Yae(i)&&(r[s]=i);break;case"id":Vae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vae(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Wae.exports={EventSourceStream:bO}});var tce=E((cJt,ece)=>{"use strict";var{pipeline:Bze}=b("node:stream"),{fetching:bze}=ry(),{makeRequest:Qze}=bm(),{webidl:Bu}=jn(),{EventSourceStream:wze}=Jae(),{parseMIMEType:Sze}=Ks(),{createFastMessageEvent:Nze}=xm(),{isNetworkError:zae}=ey(),{delay:Tze}=yO(),{kEnumerableProperty:uf}=dt(),{environmentSettingsObject:jae}=xi(),Kae=!1,$ae=3e3,gy=0,Xae=1,py=2,xze="anonymous",Rze="use-credentials",_m=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Bu.util.markAsUncloneable(this);let n="EventSource constructor";Bu.argumentLengthCheck(arguments,1,n),Kae||(Kae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Bu.converters.USVString(e,n,"url"),r=Bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ae};let s=jae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=xze;r.withCredentials&&(o=Rze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Qze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===py)return;this.#r=gy;let e={request:this.#s,dispatcher:this.#a},r=n=>{zae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Sze(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Xae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new wze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Nze(c.type,c.options))}});Bze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=bze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Tze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Bu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Zae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(_m,Zae);Object.defineProperties(_m.prototype,Zae);Object.defineProperties(_m.prototype,{close:uf,onerror:uf,onmessage:uf,onopen:uf,readyState:uf,url:uf,withCredentials:uf});Bu.converters.EventSourceInitDict=Bu.dictionaryConverter([{key:"withCredentials",converter:Bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Bu.converters.any}]);ece.exports={EventSource:_m,defaultReconnectionTime:$ae}});var VN=E((AJt,Ye)=>{"use strict";var Dze=cm(),rce=II(),kze=Am(),vze=Zre(),_ze=um(),Fze=zU(),Mze=bne(),Lze=xne(),nce=Lt(),YN=dt(),{InvalidArgumentError:qN}=nce,Fm=gse(),Uze=BI(),Pze=xP(),Oze=$se(),Hze=kP(),Gze=pP(),qze=WS(),{getGlobalDispatcher:sce,setGlobalDispatcher:Yze}=rN(),Vze=nN(),Wze=FS(),Jze=MS();Object.assign(rce.prototype,Fm);Ye.exports.Dispatcher=rce;Ye.exports.Client=Dze;Ye.exports.Pool=kze;Ye.exports.BalancedPool=vze;Ye.exports.Agent=_ze;Ye.exports.ProxyAgent=Fze;Ye.exports.EnvHttpProxyAgent=Mze;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?A3:C.type==="?"?c3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==fT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===fT)return[n,s];if(!s)return Q$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=b$e;function b$e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?A3:e.dot?g$e:p$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===mf?r:typeof o=="string"?w$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(GAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};cn.prototype.matchOne=function(t,e,r){return e.indexOf(mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===mf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===mf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===mf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};cn.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===mf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function Q$e(t){return t.replace(/\\(.)/g,"$1")}function w$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var qm=E((fjt,jAe)=>{"use strict";var v$e="2.0.0",_$e=Number.MAX_SAFE_INTEGER||9007199254740991,F$e=16,M$e=250,L$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];jAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:F$e,MAX_SAFE_BUILD_LENGTH:M$e,MAX_SAFE_INTEGER:_$e,RELEASE_TYPES:L$e,SEMVER_SPEC_VERSION:v$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=E((gjt,KAe)=>{"use strict";var U$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};KAe.exports=U$e});var Ym=E((Lc,$Ae)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l3,MAX_SAFE_BUILD_LENGTH:P$e,MAX_LENGTH:O$e}=qm(),H$e=vy();Lc=$Ae.exports={};var G$e=Lc.re=[],q$e=Lc.safeRe=[],me=Lc.src=[],Y$e=Lc.safeSrc=[],Ee=Lc.t={},V$e=0,d3="[a-zA-Z0-9-]",W$e=[["\\s",1],["\\d",O$e],[d3,P$e]],J$e=t=>{for(let[e,r]of W$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`.trim())}};Wie.exports=eO});var EN=C((lzt,$ie)=>{"use strict";var zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m7e}=_t(),E7e=Im();Kie()===void 0&&jie(new E7e);function jie(t){if(!t||typeof t.dispatch!="function")throw new m7e("Argument agent must implement Agent");Object.defineProperty(globalThis,zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kie(){return globalThis[zie]}$ie.exports={setGlobalDispatcher:jie,getGlobalDispatcher:Kie}});var CN=C((hzt,Xie)=>{"use strict";Xie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var eoe=C((fzt,Zie)=>{"use strict";var C7e=$S();Zie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new C7e(r,o,s,i);return r(a,c)}}});var roe=C((gzt,toe)=>{"use strict";var I7e=cN();toe.exports=t=>e=>function(n,s){return e(n,new I7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var soe=C((pzt,noe)=>{"use strict";var y7e=dt(),{InvalidArgumentError:B7e,RequestAbortedError:b7e}=_t(),Q7e=CN(),tO=class extends Q7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new B7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=y7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new b7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}noe.exports=w7e});var aoe=C((mzt,ooe)=>{"use strict";var{isIP:S7e}=Q("node:net"),{lookup:N7e}=Q("node:dns"),T7e=CN(),{InvalidArgumentError:Dm,InformationalError:x7e}=_t(),ioe=Math.pow(2,31)-1,rO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new x7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){N7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ioe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===ioe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new nO(this,e,r)}},nO=class extends T7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Hce.exports={EventSourceStream:WO}});var Kce=C((zzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=YO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hje(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((jzt,ze)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=hP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=zP(),tKe=Jie(),rKe=$P(),nKe=FP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);ze.exports.Dispatcher=$ce;ze.exports.Client=Wje;ze.exports.Pool=Jje;ze.exports.BalancedPool=zje;ze.exports.Agent=jje;ze.exports.ProxyAgent=Kje;ze.exports.EnvHttpProxyAgent=$je;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==RT&&(ke="$");var et=z+X+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===RT)return[n,s];if(!s)return PXe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=UXe;function UXe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?v3:e.dot?RXe:DXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?OXe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Pue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function PXe(t){return t.replace(/\\(.)/g,"$1")}function OXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Zm=C((r$t,Wue)=>{"use strict";var zXe="2.0.0",jXe=Number.MAX_SAFE_INTEGER||9007199254740991,KXe=16,$Xe=250,XXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KXe,MAX_SAFE_BUILD_LENGTH:$Xe,MAX_SAFE_INTEGER:jXe,RELEASE_TYPES:XXe,SEMVER_SPEC_VERSION:zXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((n$t,Jue)=>{"use strict";var ZXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Jue.exports=ZXe});var e0=C((Pc,zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:eZe,MAX_LENGTH:tZe}=Zm(),rZe=Jy();Pc=zue.exports={};var nZe=Pc.re=[],sZe=Pc.safeRe=[],me=Pc.src=[],iZe=Pc.safeSrc=[],Ee=Pc.t={},oZe=0,M3="[a-zA-Z0-9-]",aZe=[["\\s",1],["\\d",tZe],[M3,eZe]],cZe=t=>{for(let[e,r]of aZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+ZT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ftt()+e+" "+t[0]}function Ftt(){return kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mtt(...t){return process.stderr.write(XT.formatWithOptions(kn.inspectOpts,...t)+`
`)}function Ltt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Utt(){return process.env.DEBUG}function Ptt(t){t.inspectOpts={};let e=Object.keys(kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kn.inspectOpts[e[r]]}ZT.exports=t8()(kn);var{formatters:wde}=ZT.exports;wde.o=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};wde.O=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts)}});var ex=E((V$t,s8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?s8.exports=Cde():s8.exports=Sde()});var xde=E(oi=>{"use strict";var Ott=oi&&oi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Htt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nde=oi&&oi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ott(e,t,r);return Htt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Gtt=Nde(b("http")),qtt=Nde(b("https"));async function Tde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=Tde;async function Ytt(t){let r=(await Tde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=Ytt;function Vtt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qtt:Gtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=Vtt});var o8=E(qi=>{"use strict";var Dde=qi&&qi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wtt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kde=qi&&qi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Dde(e,t,r);return Wtt(e,t),e},Jtt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Dde(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var ztt=kde(b("net")),Rde=kde(b("http")),jtt=b("https");Jtt(xde(),qi);var Oc=Symbol("AgentBaseInternalState"),i8=class extends Rde.Agent{constructor(e){super(e),this[Oc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new ztt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?jtt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Rde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Oc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Oc].currentSocket;if(this[Oc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Oc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Oc]&&(this[Oc].defaultPort=e)}get protocol(){return this[Oc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Oc]&&(this[Oc].protocol=e)}};qi.Agent=i8});var vde=E(Zm=>{"use strict";var Ktt=Zm&&Zm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zm,"__esModule",{value:!0});Zm.parseProxyResponse=void 0;var $tt=Ktt(ex()),tx=(0,$tt.default)("https-proxy-agent:parse-proxy-response");function Xtt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),tx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),tx("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+px.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$rt()+e+" "+t[0]}function $rt(){return Fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xrt(...t){return process.stderr.write(gx.formatWithOptions(Fn.inspectOpts,...t)+`
`)}function Zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ent(){return process.env.DEBUG}function tnt(t){t.inspectOpts={};let e=Object.keys(Fn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fn.inspectOpts[e[r]]}px.exports=w8()(Fn);var{formatters:Bhe}=px.exports;Bhe.o=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Bhe.O=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts)}});var mx=C((vZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=phe():T8.exports=bhe()});var She=C(ui=>{"use strict";var rnt=ui&&ui.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nnt=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qhe=ui&&ui.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rnt(e,t,r);return nnt(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var snt=Qhe(Q("http")),int=Qhe(Q("https"));async function whe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=whe;async function ont(t){let r=(await whe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ont;function ant(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?int:snt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=ant});var R8=C(zi=>{"use strict";var The=zi&&zi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=zi&&zi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&The(e,t,r);return cnt(e,t),e},Ant=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&The(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var unt=xhe(Q("net")),Nhe=xhe(Q("http")),lnt=Q("https");Ant(She(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends Nhe.Agent{constructor(e){super(e),this[Gc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new unt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?lnt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Rhe=C(A0=>{"use strict";var dnt=A0&&A0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A0,"__esModule",{value:!0});A0.parseProxyResponse=void 0;var hnt=dnt(mx()),Ex=(0,hnt.default)("https-proxy-agent:parse-proxy-response");function fnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){tx("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}tx("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Zm.parseProxyResponse=Xtt});var Pde=E(_o=>{"use strict";var Ztt=_o&&_o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ert=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=_o&&_o.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ztt(e,t,r);return ert(e,t),e},Ude=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var rx=Lde(b("net")),_de=Lde(b("tls")),trt=Ude(b("assert")),rrt=Ude(ex()),nrt=o8(),srt=b("url"),irt=vde(),zy=(0,rrt.default)("https-proxy-agent"),Fde=t=>t.servername===void 0&&t.host&&!rx.isIP(t.host)?{...t,servername:t.host}:t,nx=class extends nrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new srt.URL(e):e,this.proxyHeaders=r?.headers??{},zy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Mde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(zy("Creating `tls.Socket`: %o",this.connectOpts),s=_de.connect(Fde(this.connectOpts))):(zy("Creating `net.Socket`: %o",this.connectOpts),s=rx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=rx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){Ex("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}Ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}A0.parseProxyResponse=fnt});var Mhe=C(Uo=>{"use strict";var gnt=Uo&&Uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=Uo&&Uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gnt(e,t,r);return pnt(e,t),e},Fhe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Cx=_he(Q("net")),Dhe=_he(Q("tls")),mnt=Fhe(Q("assert")),Ent=Fhe(mx()),Cnt=R8(),Int=Q("url"),ynt=Rhe(),cB=(0,Ent.default)("https-proxy-agent"),khe=t=>t.servername===void 0&&t.host&&!Cx.isIP(t.host)?{...t,servername:t.host}:t,Ix=class extends Cnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Int.URL(e):e,this.proxyHeaders=r?.headers??{},cB("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?vhe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Dhe.connect(khe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Cx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Cx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,irt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",ort),r.secureEndpoint?(zy("Upgrading socket connection to TLS"),_de.connect({...Mde(Fde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new rx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{zy("Replaying proxy buffer for failed request"),(0,trt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};nx.protocols=["http","https"];_o.HttpsProxyAgent=nx;function ort(t){t.resume()}function Mde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Gde=E(Fo=>{"use strict";var art=Fo&&Fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),crt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hde=Fo&&Fo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&art(e,t,r);return crt(e,t),e},Art=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var urt=Hde(b("net")),lrt=Hde(b("tls")),drt=Art(ex()),hrt=b("events"),frt=o8(),Ode=b("url"),e0=(0,drt.default)("http-proxy-agent"),sx=class extends frt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ode.URL(e):e,this.proxyHeaders=r?.headers??{},e0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?grt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Ode.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;e0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(e0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,ynt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Bnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Dhe.connect({...vhe(khe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Cx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,mnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Ix.protocols=["http","https"];Uo.HttpsProxyAgent=Ix;function Bnt(t){t.resume()}function vhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Phe=C(Po=>{"use strict";var bnt=Po&&Po.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uhe=Po&&Po.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&bnt(e,t,r);return Qnt(e,t),e},wnt=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Snt=Uhe(Q("net")),Nnt=Uhe(Q("tls")),Tnt=wnt(mx()),xnt=Q("events"),Rnt=R8(),Lhe=Q("url"),u0=(0,Tnt.default)("http-proxy-agent"),yx=class extends Rnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Lhe.URL(e):e,this.proxyHeaders=r?.headers??{},u0("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Dnt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Lhe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;u0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(u0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),e0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(e0("Creating `tls.Socket`: %o",this.connectOpts),i=lrt.connect(this.connectOpts)):(e0("Creating `net.Socket`: %o",this.connectOpts),i=urt.connect(this.connectOpts)),await(0,hrt.once)(i,"connect"),i}};sx.protocols=["http","https"];Fo.HttpProxyAgent=sx;function grt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var dhe=E(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.state=void 0;px.state={instrumenterImplementation:void 0}});var xhe=E(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var Ape=E((Wfr,bct)=>{bct.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var lpe=E((Jfr,upe)=>{var Qct=Ape();upe.exports={version:Qct.version}});var ZR=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.isJsonObject=Q0.typeofJsonValue=void 0;function vct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Q0.typeofJsonValue=vct;function _ct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Q0.isJsonObject=_ct});var tD=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.base64encode=w0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),eD=[];for(let t=0;t<Gu.length;t++)eD[Gu[t].charCodeAt(0)]=t;eD[45]=Gu.indexOf("+");eD[95]=Gu.indexOf("/");function Fct(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=eD[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}w0.base64decode=Fct;function Mct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}w0.base64encode=Mct});var ppe=E(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function Lct(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}rD.utf8read=Lct});var YB=E(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.WireType=lA.mergeBinaryOptions=lA.UnknownFieldHandler=void 0;var Uct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Uct=lA.UnknownFieldHandler||(lA.UnknownFieldHandler={}));function Pct(t,e){return Object.assign(Object.assign({},t),e)}lA.mergeBinaryOptions=Pct;var Oct;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Oct=lA.WireType||(lA.WireType={}))});var sD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Hct(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=Hct;function Gct(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}hi.varint64write=Gct;var nD=65536*65536;function qct(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=nD&&(s=s+(n/nD|0),n=n%nD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=qct;function Yct(t,e){if(e>>>0<=2097151)return""+(nD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}hi.int64toString=Yct;function Vct(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=Vct;function Wct(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=Wct});var Ed=E(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var VB=sD(),ir;function mpe(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}md.detectBi=mpe;mpe();function Epe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cpe=/^-?[0-9]+$/,oD=4294967296,iD=2147483648,aD=c Line truncated
`)}};DD.RpcError=Q9});var S9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.mergeRpcOptions=void 0;var jpe=At();function fut(t,e){if(!e)return t;let r={};kD(t,r),kD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},kD(t.meta,r.meta),kD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}vD.mergeRpcOptions=fut;function kD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var T9=E(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Deferred=jf.DeferredState=void 0;var fA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fA=jf.DeferredState||(jf.DeferredState={}));var N9=class{constructor(e=!0){this._state=fA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==fA.PENDING)throw new Error(`cannot resolve ${fA[this.state].toLowerCase()}`);this._resolve(e),this._state=fA.RESOLVED}reject(e){if(this.state!==fA.PENDING)throw new Error(`cannot reject ${fA[this.state].toLowerCase()}`);this._reject(e),this._state=fA.REJECTED}resolvePending(e){this._state===fA.PENDING&&this.resolve(e)}rejectPending(e){this._state===fA.PENDING&&this.reject(e)}};jf.Deferred=N9});var R9=E(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.RpcOutputStreamController=void 0;var Kpe=T9(),Kf=At(),x9=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Kf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Kf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Kf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Kf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Kf.assert(e,"bad state"),Kf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Kpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Kf.assert(n.state==Kpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_D.RpcOutputStreamController=x9});var k9=E(k0=>{"use strict";var gut=k0&&k0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(k0,"__esModule",{value:!0});k0.UnaryCall=void 0;var D9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return gut(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};k0.UnaryCall=D9});var _9=E(v0=>{"use strict";var put=v0&&v0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(v0,"__esModule",{value:!0});v0.ServerStreamingCall=void 0;var v9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),u0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(u0("Creating `tls.Socket`: %o",this.connectOpts),i=Nnt.connect(this.connectOpts)):(u0("Creating `net.Socket`: %o",this.connectOpts),i=Snt.connect(this.connectOpts)),await(0,xnt.once)(i,"connect"),i}};yx.protocols=["http","https"];Po.HttpProxyAgent=yx;function Dnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Afe=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.state=void 0;vx.state={instrumenterImplementation:void 0}});var Sfe=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.state=void 0;Ux.state={operationRequestMap:new WeakMap}});var Ame=C((_pr,PAt)=>{PAt.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var lme=C((Fpr,ume)=>{var OAt=Ame();ume.exports={version:OAt.version}});var pD=C(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.isJsonObject=_0.typeofJsonValue=void 0;function jAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}_0.typeofJsonValue=jAt;function KAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}_0.isJsonObject=KAt});var ED=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.base64encode=F0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),mD=[];for(let t=0;t<Gu.length;t++)mD[Gu[t].charCodeAt(0)]=t;mD[45]=Gu.indexOf("+");mD[95]=Gu.indexOf("/");function $At(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=mD[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}F0.base64decode=$At;function XAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}F0.base64encode=XAt});var pme=C(CD=>{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function ZAt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}CD.utf8read=ZAt});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var eut;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(eut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function tut(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=tut;var rut;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(rut=hA.WireType||(hA.WireType={}))});var yD=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function nut(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}mi.varint64read=nut;function sut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}mi.varint64write=sut;var ID=65536*65536;function iut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=ID&&(s=s+(n/ID|0),n=n%ID)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=iut;function out(t,e){if(e>>>0<=2097151)return""+(ID*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}mi.int64toString=out;function aut(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}mi.varint32write=aut;function cut(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}mi.varint32read=cut});var Id=C(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var ib=yD(),or;function mme(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Cd.detectBi=mme;mme();function Eme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cme=/^-?[0-9]+$/,bD=4294967296,BD=2147483648,QD=c Line truncated
`)}};zD.RpcError=j9});var $9=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.mergeRpcOptions=void 0;var jme=At();function Rlt(t,e){if(!e)return t;let r={};jD(t,r),jD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},jD(t.meta,r.meta),jD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}KD.mergeRpcOptions=Rlt;function jD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.RpcOutputStreamController=void 0;var Kme=Z9(),Zf=At(),eG=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Zf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Zf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Zf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Zf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Zf.assert(e,"bad state"),Zf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Kme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==Kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};$D.RpcOutputStreamController=eG});var nG=C(G0=>{"use strict";var Dlt=G0&&G0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(G0,"__esModule",{value:!0});G0.UnaryCall=void 0;var rG=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Dlt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};G0.UnaryCall=rG});var iG=C(q0=>{"use strict";var klt=q0&&q0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(q0,"__esModule",{value:!0});q0.ServerStreamingCall=void 0;var sG=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var iIe=E(sIe=>{"use strict";var TY=Zu().Buffer;sIe._dbcs=el;var Zn=-1,nIe=-2,na=-10,Us=-1e3,lE=new Array(256),Vb=-1;for(mk=0;mk<256;mk++)lE[mk]=Zn;var mk;function el(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=lE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(lE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(lE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=nIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function lIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(KCt.has(s)){r=s;break}}return r}function dIt(t,e){let r=lIt(e);r!==""&&(t.referrerPolicy=r)}function hIt(){return"allowed"}function fIt(){return"success"}function gIt(){return"success"}function pIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function mIt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&WV(t.origin)&&!WV(wg(t))&&(e=null);break;case"same-origin":eQ(t,wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pE(t,e){return t}function EIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pE(t.domainLookupStartTime,r),domainLookupEndTime:pE(t.domainLookupEndTime,r),connectionStartTime:pE(t.connectionStartTime,r),connectionEndTime:pE(t.connectionEndTime,r),secureConnectionStartTime:pE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function CIt(t){return pE(eIt.now(),t)}function IIt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function FBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function yIt(t){return{referrerPolicy:t.referrerPolicy}}function BIt(t){let e=t.referrerPolicy;tQ(e);let r=null;if(t.referrer==="client"){let i=RBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else qd.is.URL(t.referrer)&&(r=t.referrer);let n=VV(r),s=VV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??VV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=wg(t);return eQ(n,i)?n:Qg(n)&&!Qg(i)?"no-referrer":s}case"same-origin":return eQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return eQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=wg(t);return Qg(n)&&!Qg(i)?"no-referrer":n}}}function VV(t,e=!1){return tQ(qd.is.URL(t)),t=new URL(t),PBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var bIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),QIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function MBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),QIt(t)):bIt(t)}function wIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||MBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Qg(t){return qd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:wIt(t.origin):!1}function SIt(t){}function eQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function NIt(t){return t.controller.state==="aborted"}function TIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function xIt(t){return rIt[t.toLowerCase()]??t}var RIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function LBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,RIt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function DIt(t,e,r,n=0,s=1){let i=LBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return qd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=oa(a=>t7(a)&&a!==59,t,e);i=ZV.decode(o)}return{name:n,value:i}}function tyt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=e7(o,!0,!0,a=>a===9||a===32),!JIt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,oa(a=>a===32||a===9,t,e),WIt(o)){case"content-disposition":{if(r=n=null,oa(c=>t7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=eyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=oa(c=>c!==10&&c!==13,t,e);a=e7(a,!1,!0,c=>c===9||c===32),s=VBe(a);break}case"content-transfer-encoding":{let a=oa(c=>c!==10&&c!==13,t,e);a=e7(a,!1,!0,c=>c===9||c===32),i=VBe(a);break}default:oa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function oa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function e7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function ryt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function nyt(t){return t<=31||t===127}function syt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function t7(t){return t<=127&&t!==32&&t!==9&&!nyt(t)&&!syt(t)}WBe.exports={multipartFormDataParser:ZIt,validateBoundary:XIt}});var rQ=E((eBr,zBe)=>{"use strict";function iyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zBe.exports={createDeferredPromise:iyt}});var CE=E((tBr,ZBe)=>{"use strict";var s7=Ze(),{ReadableStreamFrom:oyt,readableStreamClose:ayt,fullyReadBody:cyt,extractMimeType:Ayt}=ro(),{FormData:jBe,setFormDataState:uyt}=Gk(),{webidl:ac}=es(),r7=b("node:assert"),{isErrored:n7,isDisturbed:lyt}=b("node:stream"),{isUint8Array:dyt}=b("node:util/types"),{serializeAMimeType:hyt}=ia(),{multipartFormDataParser:fyt}=JBe(),{createDeferredPromise:gyt}=rQ(),{parseJSONFromBytes:pyt}=nl(),{utf8DecodeBytes:myt}=Mk(),{runtimeFeatures:Eyt}=sl(),Cyt=Eyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),qk=new TextEncoder;function Iyt(){}var yyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!lyt(e)&&!n7(e)&&e.cancel("Response object has been garbage collected").catch(Iyt)});function $Be(t,e=!1){let r=null,n=null;ac.is.ReadableStream(t)?r=t:ac.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),r7(ac.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(ac.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(ac.is.BufferSource(t))i=ac.util.getCopyOfBytesHeldByBufferSource(t);else if(ac.is.FormData(t)){let A=`----formdata-undici-0${`${Cyt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var oye=C(iye=>{"use strict";var tV=el().Buffer;iye._dbcs=tl;var rs=-1,sye=-2,aa=-10,Hs=-1e3,yE=new Array(256),oQ=-1;for(Fk=0;Fk<256;Fk++)yE[Fk]=rs;var Fk;function tl(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=yE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(yE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(yE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=sye)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Dyt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(pyt.has(s)){r=s;break}}return r}function kyt(t,e){let r=Dyt(e);r!==""&&(t.referrerPolicy=r)}function vyt(){return"allowed"}function _yt(){return"success"}function Fyt(){return"success"}function Myt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lyt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&I7(t.origin)&&!I7(Tg(t))&&(e=null);break;case"same-origin":pQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function SE(t,e){return t}function Uyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:SE(t.domainLookupStartTime,r),domainLookupEndTime:SE(t.domainLookupEndTime,r),connectionStartTime:SE(t.connectionStartTime,r),connectionEndTime:SE(t.connectionEndTime,r),secureConnectionStartTime:SE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Pyt(t){return SE(Iyt.now(),t)}function Oyt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Fbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Hyt(t){return{referrerPolicy:t.referrerPolicy}}function Gyt(t){let e=t.referrerPolicy;mQ(e);let r=null;if(t.referrer==="client"){let i=Rbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=C7(r),s=C7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??C7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return pQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return pQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return pQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function C7(t,e=!1){return mQ(Yd.is.URL(t)),t=new URL(t),Pbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var qyt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Yyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Mbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Yyt(t)):qyt(t)}function Vyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Mbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Vyt(t.origin):!1}function Wyt(t){}function pQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jyt(t){return t.controller.state==="aborted"}function zyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jyt(t){return Byt[t.toLowerCase()]??t}var Kyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Kyt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function $yt(t,e,r,n=0,s=1){let i=Lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ua(a=>x7(a)&&a!==59,t,e);i=N7.decode(o)}return{name:n,value:i,extended:s}}function yBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=T7(o,!0,!0,a=>a===9||a===32),!hBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),dBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>x7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=IBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),s=Vbe(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),i=Vbe(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function T7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function BBt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function bBt(t){return t<=31||t===127}function QBt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function x7(t){return t<=127&&t!==32&&t!==9&&!bBt(t)&&!QBt(t)}Wbe.exports={multipartFormDataParser:CBt,validateBoundary:EBt}});var EQ=C((qbr,zbe)=>{"use strict";function wBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zbe.exports={createDeferredPromise:wBt}});var xE=C((Ybr,Zbe)=>{"use strict";var k7=Ze(),{ReadableStreamFrom:SBt,readableStreamClose:NBt,fullyReadBody:TBt,extractMimeType:xBt}=ao(),{FormData:jbe,setFormDataState:RBt}=ov(),{webidl:uc}=ns(),R7=Q("node:assert"),{isErrored:D7,isDisturbed:DBt}=Q("node:stream"),{isUint8Array:kBt}=Q("node:util/types"),{serializeAMimeType:vBt}=Aa(),{multipartFormDataParser:_Bt}=Jbe(),{createDeferredPromise:FBt}=EQ(),{parseJSONFromBytes:MBt}=sl(),{utf8DecodeBytes:LBt}=ev(),{runtimeFeatures:UBt}=il(),PBt=UBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),av=new TextEncoder;function OBt(){}var HBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DBt(e)&&!D7(e)&&e.cancel("Response object has been garbage collected").catch(OBt)});function $be(t,e=!1){let r=null,n=null;uc.is.ReadableStream(t)?r=t:uc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),R7(uc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(uc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(uc.is.BufferSource(t))i=uc.util.getCopyOfBytesHeldByBufferSource(t);else if(uc.is.FormData(t)){let A=`----formdata-undici-0${`${PBt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=qk.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=av.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=qk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=av.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=qk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(ac.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(s7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=ac.is.ReadableStream(t)?t:oyt(t)}return(typeof i=="string"||dyt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(n7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!n7(r)&&n.enqueue(typeof A=="string"?qk.encode(A):new Uint8Array(A));queueMicrotask(()=>ayt(n))})(),[{stream:r,source:i,length:o},a]}function Byt(t,e=!1){return ac.is.ReadableStream(t)&&(r7(!s7.isDisturbed(t),"The body has already been consumed."),r7(!t.locked,"The stream is locked.")),$Be(t,e)}function byt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Qyt(t,e){return{blob(){return EE(this,n=>{let s=KBe(e(this));return s===null?s="":s&&(s=hyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return EE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return EE(this,myt,t,e)},json(){return EE(this,pyt,t,e)},formData(){return EE(this,n=>{let s=KBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=fyt(n,s),o=new jBe;return uyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new jBe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return EE(this,n=>new Uint8Array(n),t,e)}}}function wyt(t,e){Object.assign(t.prototype,Qyt(t,e))}function EE(t,e,r,n){try{ac.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),XBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=gyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(cyt(t.body,o,i),s.promise)}function XBe(t){let e=t.body;return e!=null&&(e.stream.locked||s7.isDisturbed(e.stream))}function KBe(t){let e=t.headersList,r=Ayt(e);return r==="failure"?null:r}ZBe.exports={extractBody:$Be,safelyExtractBody:Byt,cloneBody:byt,mixinBody:wyt,streamRegistry:yyt,bodyUnusable:XBe}});var ube=E((rBr,Abe)=>{"use strict";var Ve=b("node:assert"),Je=Ze(),{channels:ebe}=Hd(),i7=OY(),{RequestContentLengthMismatchError:Sg,ResponseContentLengthMismatchError:Syt,RequestAbortedError:obe,HeadersTimeoutError:Nyt,HeadersOverflowError:Tyt,SocketError:iQ,InformationalError:IE,BodyTimeoutError:xyt,HTTPParserError:Ryt,ResponseExceededMaxSizeError:Dyt}=Ke(),{kUrl:abe,kReset:Bi,kClient:d7,kParser:Wr,kBlocking:oQ,kRunning:ms,kPending:kyt,kSize:tbe,kWriting:Vd,kQueue:cc,kNoRef:nQ,kKeepAliveDefaultTimeout:vyt,kHostHeader:_yt,kPendingIdx:Fyt,kRunningIdx:aa,kError:ca,kPipelining:Wk,kSocket:yE,kKeepAliveTimeoutValue:zk,kMaxHeadersSize:Myt,kKeepAliveMaxTimeout:Lyt,kKeepAliveTimeoutThreshold:Uyt,kHeadersTimeout:Pyt,kBodyTimeout:Oyt,kStrictContentLength:c7,kMaxRequests:rbe,kCounter:Hyt,kMaxResponseSize:Gyt,kOnError:qyt,kResume:Yd,kHTTPContext:cbe,kClosed:A7}=Kt(),wA=Zye(),Yyt=Buffer.alloc(0),Yk=Buffer[Symbol.species],Vyt=Je.removeAllListeners,o7;function Wyt(){let t=process.env.JEST_WORKER_ID?kV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(rBe())}catch{}return e||(e=new WebAssembly.Module(t||kV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onStatus(new Yk(SA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(Bn.ptr===n),Bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onHeaderField(new Yk(SA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onHeaderValue(new Yk(SA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(Bn.ptr===n),Bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(Bn.ptr===n);let o=s-NA+SA.byteOffset;return Bn.onBody(new Yk(SA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(Bn.ptr===n),Bn.onMessageComplete())}})}var a7=null,Bn=null,SA=null,Vk=0,NA=null,Jyt=0,sQ=1,BE=2|sQ,Jk=4|sQ,u7=8|Jyt,l7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Myt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Gyt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[_yt],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=av.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(uc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(k7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=uc.is.ReadableStream(t)?t:SBt(t)}return(typeof i=="string"||kBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(D7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!D7(r)&&n.enqueue(typeof A=="string"?av.encode(A):new Uint8Array(A));queueMicrotask(()=>NBt(n))})(),[{stream:r,source:i,length:o},a]}function GBt(t,e=!1){return uc.is.ReadableStream(t)&&(R7(!k7.isDisturbed(t),"The body has already been consumed."),R7(!t.locked,"The stream is locked.")),$be(t,e)}function qBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function YBt(t,e){return{blob(){return TE(this,n=>{let s=Kbe(e(this));return s===null?s="":s&&(s=vBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return TE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return TE(this,LBt,t,e)},json(){return TE(this,MBt,t,e)},formData(){return TE(this,n=>{let s=Kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=_Bt(n,s),o=new jbe;return RBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new jbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return TE(this,n=>new Uint8Array(n),t,e)}}}function VBt(t,e){Object.assign(t.prototype,YBt(t,e))}function TE(t,e,r,n){try{uc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Xbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(TBt(t.body,o,i),s.promise)}function Xbe(t){let e=t.body;return e!=null&&(e.stream.locked||k7.isDisturbed(e.stream))}function Kbe(t){let e=t.headersList,r=xBt(e);return r==="failure"?null:r}Zbe.exports={extractBody:$be,safelyExtractBody:GBt,cloneBody:qBt,mixinBody:VBt,streamRegistry:HBt,bodyUnusable:Xbe}});var fQe=C((Vbr,hQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:eQe}=Gd(),v7=hV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:tQe,RequestAbortedError:AQe,InvalidArgumentError:WBt,HeadersTimeoutError:JBt,HeadersOverflowError:zBt,SocketError:Rg,InformationalError:RE,BodyTimeoutError:jBt,HTTPParserError:KBt,ResponseExceededMaxSizeError:$Bt}=Xe(),{kUrl:uQe,kReset:Si,kClient:dv,kParser:pr,kBlocking:yQ,kRunning:fn,kPending:O7,kSize:rQe,kWriting:Vd,kQueue:lc,kNoRef:CQ,kKeepAliveDefaultTimeout:XBt,kHostHeader:ZBt,kPendingIdx:ebt,kRunningIdx:la,kError:Gs,kPipelining:uv,kSocket:kg,kKeepAliveTimeoutValue:hv,kMaxHeadersSize:tbt,kKeepAliveMaxTimeout:rbt,kKeepAliveTimeoutThreshold:nbt,kHeadersTimeout:sbt,kBodyTimeout:ibt,kStrictContentLength:M7,kMaxRequests:nQe,kCounter:obt,kMaxResponseSize:abt,kOnError:sQe,kResume:al,kHTTPContext:lQe,kClosed:L7}=Kt(),co=ZBe(),iQe=Buffer.alloc(0),cv=Buffer[Symbol.species],cbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),H7=Symbol("kSocketUsed"),_7;function Abt(){let t=process.env.JEST_WORKER_ID?o7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(rbe())}catch{}return e||(e=new WebAssembly.Module(t||o7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new cv(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new cv(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new cv(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new cv(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var F7=null,zr=null,NA=null,Av=0,TA=null,ubt=0,IQ=1,DE=2|IQ,lv=4|IQ,U7=8|ubt,P7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[tbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[ZBt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Wk]&&!h[Bi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return ebe.sendHeaders.hasSubscribers&&ebe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?sbe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?sbe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?ibe(f,c.stream(),t,e,h,u,p,l):sBt(f,c,t,e,h,u,p,l):Je.isStream(c)?nBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?ibe(f,c,t,e,h,u,p,l):Ve(!1),!0}function nBt(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new obe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Vd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function sbe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[uv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return eQe.sendHeaders.hasSubscribers&&eQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?aQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?aQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?cQe(f,c.stream(),t,e,h,u,g,l):Bbt(f,c,t,e,h,u,g,l):De.isStream(c)?ybt(f,c,t,e,h,u,g,l):De.isIterable(c)?cQe(f,c,t,e,h,u,g,l):He(!1),!0}function ybt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new AQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Vd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function aQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Bi]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Si]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Yd]()}catch(c){t(c)}}async function sBt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Sg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[al]()}catch(c){t(c)}}async function Bbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Bi]=!0),r[Yd]()}catch(c){t(c)}}async function ibe(t,e,r,n,s,i,o,a){Ve(i!==0||r[ms]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ve(c===null),s[ca]?h(s[ca]):c=d});s.on("close",A).on("drain",A);let l=new jk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ca])throw s[ca];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var jk=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ca])throw r[ca];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[c7])throw new Sg;process.emitWarning(new Sg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Bi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Si]=!0),r[al]()}catch(c){t(c)}}async function cQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var fv=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[M7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===BE&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vd]=!1,e[ca])throw e[ca];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[pr].timeout&&r[pr].timeoutType===DE&&r[pr].timeout.refresh&&r[pr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Vd]=!1,e[Gs])throw e[Gs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[c7])throw new Sg;process.emitWarning(new Sg)}e[Wr].timeout&&e[Wr].timeoutType===BE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Yd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(Ve(n[ms]<=1,"pipeline should only contain this request"),s(e))}};Abe.exports=zyt});var Cbe=E((nBr,Ebe)=>{"use strict";var ua=b("node:assert"),{pipeline:iBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:p7,RequestAbortedError:oBt,SocketError:uQ,InformationalError:Wd,InvalidArgumentError:aBt}=Ke(),{kUrl:AQ,kReset:Zk,kClient:no,kRunning:lQ,kPending:cBt,kQueue:Jd,kPendingIdx:E7,kRunningIdx:Ac,kError:so,kSocket:Dr,kStrictContentLength:ABt,kOnError:bE,kMaxConcurrentStreams:$k,kPingInterval:lbe,kHTTP2Session:ol,kHTTP2InitialWindowSize:uBt,kHTTP2ConnectionWindowSize:lBt,kResume:TA,kSize:dBt,kHTTPContext:C7,kClosed:m7,kBodyTimeout:hBt,kEnableConnectProtocol:aQ,kRemoteSettings:cQ,kHTTP2Stream:Kk,kHTTP2SessionState:I7}=Kt(),{channels:dbe}=Hd(),Aa=Symbol("open streams"),hbe,Xk;try{Xk=b("node:http2")}catch{Xk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fBt,HTTP2_HEADER_METHOD:fbe,HTTP2_HEADER_PATH:gbe,HTTP2_HEADER_SCHEME:h7,HTTP2_HEADER_CONTENT_LENGTH:gBt,HTTP2_HEADER_EXPECT:pBt,HTTP2_HEADER_STATUS:f7,HTTP2_HEADER_PROTOCOL:mBt,NGHTTP2_REFUSED_STREAM:EBt,NGHTTP2_CANCEL:CBt}}=Xk;function g7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function IBt(t,e){t[Dr]=e;let r=t[uBt],n=t[lBt],s=Xk.connect(t[AQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[$k],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[Aa]=0,s[no]=t,s[Dr]=e,s[I7]={ping:{interval:t[lbe]===0?null:setInterval(QBt,t[lbe],s).unref()}},s[aQ]=!1,s[cQ]=!1,n&&ut.addListener(s,"connect",BBt.bind(s,n)),ut.addListener(s,"error",wBt),ut.addListener(s,"frameError",SBt),ut.addListener(s,"end",NBt),ut.addListener(s,"goaway",TBt),ut.addListener(s,"close",xBt),ut.addListener(s,"remoteSettings",bBt),s.unref(),t[ol]=s,e[ol]=s,ut.addListener(e,"error",DBt),ut.addListener(e,"end",kBt),ut.addListener(e,"close",RBt),e[m7]=!1,e.on("close",vBt),{version:"h2",defaultPipelining:1/0,write(i){return FBt(t,i)},resume(){yBt(t)},destroy(i,o){e[m7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[lQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[cQ]===!1;return!1}}}function yBt(t){let e=t[Dr];e?.destroyed===!1&&(t[dBt]===0||t[$k]===0?(e.unref(),t[ol].unref()):(e.ref(),t[ol].ref()))}function BBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function bBt(t){if(this[no][$k]=t.maxConcurrentStreams??this[no][$k],this[cQ]===!0&&this[aQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][bE](e);return}this[aQ]=t.enableConnectProtocol??this[aQ],this[cQ]=!0,this[no][TA]()}function QBt(t){let e=t[I7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[no],o=this[no];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[bE](a)}else i.emit("ping",s)}}function wBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][bE](t)}function SBt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][bE](n)}}function NBt(){let t=new uQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function TBt(t){let e=this[so]||new uQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[C7]=null,this.close(),this[ol]=null,ut.destroy(this[Dr],e),r[Ac]<r[Jd].length){let n=r[Jd][r[Ac]];r[Jd][r[Ac]++]=null,ut.errorRequest(r,n,e),r[E7]=r[Ac]}ua(r[lQ]===0),r.emit("disconnect",r[AQ],[r],e),r.emit("connectionError",r[AQ],[r],e),r[TA]()}function xBt(){let{[no]:t,[I7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new uQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[C7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ua(t[cBt]===0);let s=t[Jd].splice(t[Ac]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function RBt(){let t=this[so]||new uQ("closed",ut.getSocketInfo(this)),e=this[ol][no];e[Dr]=null,e[C7]=null,this[ol]!==null&&this[ol].destroy(t),e[E7]=e[Ac],ua(e[lQ]===0),e.emit("disconnect",e[AQ],[e],t),e[TA]()}function DBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][bE](t)}function kBt(){ut.destroy(this,new uQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;dbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[pBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Kk]=!0,O()),++n[Aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[f7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),g7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jd][t[Ac]++]=null,t[TA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[Ac]++]=null,t[E7]=t[Ac],t[TA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[Aa]-=1,n[Aa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[Aa]-=1,n[Aa]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?pbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?pbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?mbe(m,f,d.stream(),t,e,t[Dr],y,C):LBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?MBt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?mbe(m,f,d,t,e,t[Dr],y,C):ua(!1)}}function pbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ua(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Zk]=!0),s.onRequestSent(),n[TA]()}catch(c){t(c)}}function MBt(t,e,r,n,s,i,o,a){ua(a!==0||i[lQ]===0,"stream body cannot be pipelined");let c=iBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Zk]=!0),i[TA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function LBt(t,e,r,n,s,i,o,a){ua(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new p7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Zk]=!0),n[TA]()}catch(c){t(c)}}async function mbe(t,e,r,n,s,i,o,a){ua(o!==0||n[lQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ua(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Zk]=!0),n[TA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Ebe.exports=IBt});var Xd=E((sBr,Tbe)=>{"use strict";var al=b("node:assert"),Qbe=b("node:net"),dQ=b("node:http"),Ng=Ze(),{ClientStats:UBt}=gV(),{channels:QE}=Hd(),PBt=Hye(),OBt=yg(),{InvalidArgumentError:gr,InformationalError:HBt,ClientDestroyedError:GBt}=Ke(),qBt=Bg(),{kUrl:xA,kServerName:$d,kClient:YBt,kBusy:y7,kConnect:VBt,kResuming:Tg,kRunning:pQ,kPending:mQ,kSize:hQ,kQueue:uc,kConnected:WBt,kConnecting:wE,kNeedDrain:jd,kKeepAliveDefaultTimeout:Ibe,kHostHeader:JBt,kPendingIdx:lc,kRunningIdx:cl,kError:zBt,kPipelining:ev,kKeepAliveTimeoutValue:jBt,kMaxHeadersSize:KBt,kKeepAliveMaxTimeout:$Bt,kKeepAliveTimeoutThreshold:XBt,kHeadersTimeout:ZBt,kBodyTimeout:ebt,kStrictContentLength:tbt,kConnector:fQ,kMaxRequests:B7,kCounter:rbt,kClose:nbt,kDestroy:sbt,kDispatch:ibt,kLocalAddress:gQ,kMaxResponseSize:obt,kOnError:abt,kHTTPContext:nn,kMaxConcurrentStreams:cbt,kHTTP2InitialWindowSize:Abt,kHTTP2ConnectionWindowSize:ubt,kResume:Kd,kPingInterval:lbt}=Kt(),dbt=ube(),hbt=Cbe(),zd=Symbol("kClosedResolve"),fbt=dQ&&dQ.maxHeaderSize&&Number.isInteger(dQ.maxHeaderSize)&&dQ.maxHeaderSize>0?()=>dQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},ybe=()=>{};function wbe(t){return t[ev]??t[nn]?.defaultPipelining??1}var b7=class extends OBt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns Line truncated
`,this[ebt]=a??3e5,this[ZBt]=n??3e5,this[tbt]=m??!0,this[B7]=N,this[zd]=null,this[obt]=O>-1?O:-1,this[nn]=null,this[cbt]=D??100,this[Abt]=te??262144,this[ubt]=ce??524288,this[lbt]=ge??6e4,this[uc]=[],this[cl]=0,this[lc]=0,this[Kd]=De=>Q7(this,De),this[abt]=De=>Sbe(this,De)}get pipelining(){return this[ev]}set pipelining(e){this[ev]=e,this[Kd](!0)}get stats(){return new UBt(this)}get[mQ](){return this[uc].length-this[lc]}get[pQ](){return this[lc]-this[cl]}get[hQ](){return this[uc].length-this[cl]}get[WBt](){return!!this[nn]&&!this[wE]&&!this[nn].destroyed}get[y7](){return!!(this[nn]?.busy(null)||this[hQ]>=(wbe(this)||1)||this[mQ]>0)}[VBt](e){Nbe(this),this.once("connect",e)}[ibt](e,r){let n=new PBt(this[xA].origin,e,r);return this[uc].push(n),this[Tg]||(Ng.bodyLength(n.body)==null&&Ng.isIterable(n.body)?(this[Tg]=1,queueMicrotask(()=>Q7(this))):this[Kd](!0)),this[Tg]&&this[jd]!==2&&this[y7]&&(this[jd]=2),this[jd]<2}[nbt](){return new Promise(e=>{this[hQ]?this[zd]=e:e(null)})}[sbt](e){return new Promise(r=>{let n=this[uc].splice(this[lc]);for(let i=0;i<n.length;i++){let o=n[i];Ng.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Kd]()})}};function Sbe(t,e){if(t[pQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){al(t[lc]===t[cl]);let r=t[uc].splice(t[cl]);for(let n=0;n<r.length;n++){let s=r[n];Ng.errorRequest(t,s,e)}al(t[hQ]===0)}}function Nbe(t){al(!t[wE]),al(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[xA];if(r[0]==="["){let i=r.indexOf("]");al(i!==-1);let o=r.substring(1,i);al(Qbe.isIPv6(o)),r=o}t[wE]=!0,QE.beforeConnect.hasSubscribers&&QE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ]}),t[fQ]({host:e,hostname:r,protocol:n,port:s,servername:t[$d],localAddress:t[gQ]},(i,o)=>{if(i){Bbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}if(t.destroyed){Ng.destroy(o.on("error",ybe),new GBt),t[Kd]();return}al(o);try{t[nn]=o.alpnProtocol==="h2"?hbt(t,o):dbt(t,o)}catch(a){o.destroy().on("error",ybe),Bbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Kd]();return}t[wE]=!1,o[rbt]=0,o[B7]=t[B7],o[YBt]=t,o[zBt]=null,QE.connected.hasSubscribers&&QE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],socket:o}),t.emit("connect",t[xA],[t]),t[Kd]()})}function Bbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[wE]=!1,QE.connectError.hasSubscribers&&QE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[$d],localAddress:t[gQ]},connector:t[fQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(al(t[pQ]===0);t[mQ]>0&&t[uc][t[lc]].servername===t[$d];){let o=t[uc][t[lc]++];Ng.errorRequest(t,o,e)}else Sbe(t,e);t.emit("connectionError",t[xA],[t],e)}}function bbe(t){t[jd]=0,t.emit("drain",t[xA],[t])}function Q7(t,e){t[Tg]!==2&&(t[Tg]=2,gbt(t,e),t[Tg]=0,t[cl]>256&&(t[uc].splice(0,t[cl]),t[lc]-=t[cl],t[cl]=0))}function gbt(t,e){for(;;){if(t.destroyed){al(t[mQ]===0);return}if(t[zd]&&!t[hQ]){t[zd](),t[zd]=null;return}if(t[nn]&&t[nn].resume(),t[y7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>bbe(t))):bbe(t);continue}if(t[mQ]===0||t[pQ]>=(wbe(t)||1))return;let r=t[uc][t[lc]];if(r===null)return;if(t[xA].protocol==="https:"&&t[$d]!==r.servername){if(t[pQ]>0)return;t[$d]=r.servername,t[nn]?.destroy(new HBt("servername changed"),()=>{t[nn]=null,Q7(t)})}if(t[wE])return;if(!t[nn]){Nbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[lc]++:t[uc].splice(t[lc],1)}}Tbe.exports=b7});var w7=E((oBr,xbe)=>{"use strict";var tv=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};xbe.exports=class{constructor(){this.head=this.tail=new tv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var rv=E((aBr,Ube)=>{"use strict";var{PoolStats:pbt}=gV(),mbt=yg(),Ebt=w7(),{kConnected:S7,kSize:Rbe,kRunning:Dbe,kPending:kbe,kQueued:EQ,kBusy:Cbt,kFree:Ibt,kUrl:ybt,kClose:Bbt,kDestroy:bbt,kDispatch:Qbt}=Kt(),Yn=Symbol("clients"),Ps=Symbol("needDrain"),CQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),vbe=Symbol("onConnect"),_be=Symbol("onDisconnect"),Fbe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),Mbe=Symbol("add client"),Lbe=Symbol("remove client"),R7=class extends mbt{[CQ]=new Ebt;[EQ]=0;[Yn]=[];[Ps]=!1;[T7](e,r,n){let s=this[CQ],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[M7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===DE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};hQe.exports=lbt});var bQe=C((Wbr,BQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:bbt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:V7,RequestAbortedError:Qbt,SocketError:wQ,InformationalError:Wd,InvalidArgumentError:wbt}=Xe(),{kUrl:QQ,kReset:Ev,kClient:Ao,kRunning:SQ,kPending:Sbt,kQueue:Jd,kPendingIdx:J7,kRunningIdx:dc,kError:uo,kSocket:vr,kStrictContentLength:Nbt,kOnError:kE,kMaxConcurrentStreams:pv,kPingInterval:gQe,kHTTP2Session:cl,kHTTP2InitialWindowSize:Tbt,kHTTP2ConnectionWindowSize:xbt,kResume:xA,kSize:Rbt,kHTTPContext:z7,kClosed:W7,kBodyTimeout:Dbt,kEnableConnectProtocol:BQ,kRemoteSettings:bQ,kHTTP2Stream:gv,kHTTP2SessionState:j7}=Kt(),{channels:pQe}=Gd(),da=Symbol("open streams"),mQe,mv;try{mv=Q("node:http2")}catch{mv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kbt,HTTP2_HEADER_METHOD:EQe,HTTP2_HEADER_PATH:CQe,HTTP2_HEADER_SCHEME:G7,HTTP2_HEADER_CONTENT_LENGTH:vbt,HTTP2_HEADER_EXPECT:_bt,HTTP2_HEADER_STATUS:q7,HTTP2_HEADER_PROTOCOL:Fbt,NGHTTP2_REFUSED_STREAM:Mbt,NGHTTP2_CANCEL:Lbt}}=mv;function Y7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function Ubt(t,e){t[vr]=e;let r=t[Tbt],n=t[xbt],s=mv.connect(t[QQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[pv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[j7]={ping:{interval:t[gQe]===0?null:setInterval(Gbt,t[gQe],s).unref()}},s[BQ]=!1,s[bQ]=!1,n&&ut.addListener(s,"connect",Obt.bind(s,n)),ut.addListener(s,"error",qbt),ut.addListener(s,"frameError",Ybt),ut.addListener(s,"end",Vbt),ut.addListener(s,"goaway",Wbt),ut.addListener(s,"close",Jbt),ut.addListener(s,"remoteSettings",Hbt),s.unref(),t[cl]=s,e[cl]=s,ut.addListener(e,"error",jbt),ut.addListener(e,"end",Kbt),ut.addListener(e,"close",zbt),e[W7]=!1,e.on("close",$bt),{version:"h2",defaultPipelining:1/0,write(i){return Zbt(t,i)},resume(){Pbt(t)},destroy(i,o){e[W7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[SQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!1;return!1}}}function Pbt(t){let e=t[vr];e?.destroyed===!1&&(t[Rbt]===0||t[pv]===0?(e.unref(),t[cl].unref()):(e.ref(),t[cl].ref()))}function Obt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Hbt(t){if(this[Ao][pv]=t.maxConcurrentStreams??this[Ao][pv],this[bQ]===!0&&this[BQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][kE](e);return}this[BQ]=t.enableConnectProtocol??this[BQ],this[bQ]=!0,this[Ao][xA]()}function Gbt(t){let e=t[j7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Ao],o=this[Ao];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[kE](a)}else i.emit("ping",s)}}function qbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][kE](t)}function Ybt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][kE](n)}}function Vbt(){let t=new wQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function Wbt(t){let e=this[uo]||new wQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[z7]=null,this.close(),this[cl]=null,ut.destroy(this[vr],e),r[dc]<r[Jd].length){let n=r[Jd][r[dc]];r[Jd][r[dc]++]=null,ut.errorRequest(r,n,e),r[J7]=r[dc]}ha(r[SQ]===0),r.emit("disconnect",r[QQ],[r],e),r.emit("connectionError",r[QQ],[r],e),r[xA]()}function Jbt(){let{[Ao]:t,[j7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new wQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[z7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Sbt]===0);let s=t[Jd].splice(t[dc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function zbt(){let t=this[uo]||new wQ("closed",ut.getSocketInfo(this)),e=this[cl][Ao];e[vr]=null,e[z7]=null,this[cl]!==null&&this[cl].destroy(t),e[J7]=e[dc],ha(e[SQ]===0),e.emit("disconnect",e[QQ],[e],t),e[xA]()}function jbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][kE](t)}function Kbt(){ut.destroy(this,new wQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;pQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[_bt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[q7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),Y7(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jd][t[dc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[dc]++]=null,t[J7]=t[dc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?IQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?IQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?yQe(m,f,d.stream(),t,e,t[vr],y,I):tQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?eQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?yQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function IQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Ev]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function eQt(t,e,r,n,s,i,o,a){ha(a!==0||i[SQ]===0,"stream body cannot be pipelined");let c=bbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Ev]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function tQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new V7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(c){t(c)}}async function yQe(t,e,r,n,s,i,o,a){ha(o!==0||n[SQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}BQe.exports=Ubt});var $d=C((Jbr,DQe)=>{"use strict";var Al=Q("node:assert"),NQe=Q("node:net"),NQ=Q("node:http"),_g=Ze(),{ClientStats:rQt}=GV(),{channels:vE}=Gd(),nQt=HBe(),sQt=Qg(),{InvalidArgumentError:mr,InformationalError:iQt,ClientDestroyedError:oQt}=Xe(),aQt=wg(),{kUrl:RA,kServerName:Kd,kClient:cQt,kBusy:$7,kConnect:AQt,kResuming:Fg,kRunning:DQ,kPending:kQ,kSize:TQ,kQueue:hc,kConnected:uQt,kConnecting:_E,kNeedDrain:jd,kKeepAliveDefaultTimeout:QQe,kHostHeader:lQt,kPendingIdx:fc,kRunningIdx:ll,kError:dQt,kPipelining:Cv,kKeepAliveTimeoutValue:hQt,kMaxHeadersSize:fQt,kKeepAliveMaxTimeout:gQt,kKeepAliveTimeoutThreshold:pQt,kHeadersTimeout:mQt,kBodyTimeout:EQt,kStrictContentLength:CQt,kConnector:xQ,kMaxRequests:X7,kCounter:IQt,kClose:yQt,kDestroy:BQt,kDispatch:bQt,kLocalAddress:RQ,kMaxResponseSize:QQt,kOnError:wQt,kHTTPContext:on,kMaxConcurrentStreams:SQt,kHTTP2InitialWindowSize:NQt,kHTTP2ConnectionWindowSize:TQt,kResume:ul,kPingInterval:xQt}=Kt(),RQt=fQe(),DQt=bQe(),zd=Symbol("kClosedResolve"),kQt=NQ&&NQ.maxHeaderSize&&Number.isInteger(NQ.maxHeaderSize)&&NQ.maxHeaderSize>0?()=>NQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},wQe=()=>{};function TQe(t){return t[Cv]??t[on]?.defaultPipelining??1}var Z7=class extends sQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[EQt]=a??3e5,this[mQt]=n??3e5,this[CQt]=m??!0,this[X7]=B,this[zd]=null,this[QQt]=V>-1?V:-1,this[on]=null,this[SQt]=v??100,this[NQt]=te??262144,this[TQt]=ce??524288,this[xQt]=ue??6e4,this[hc]=[],this[ll]=0,this[fc]=0,this[ul]=ke=>eW(this,ke),this[wQt]=ke=>xQe(this,ke)}get pipelining(){return this[Cv]}set pipelining(e){this[Cv]=e,this[ul](!0)}get stats(){return new rQt(this)}get[kQ](){return this[hc].length-this[fc]}get[DQ](){return this[fc]-this[ll]}get[TQ](){return this[hc].length-this[ll]}get[uQt](){return!!this[on]&&!this[_E]&&!this[on].destroyed}get[$7](){return!!(this[on]?.busy(null)||this[TQ]>=(TQe(this)||1)||this[kQ]>0)}[AQt](e){RQe(this),this.once("connect",e)}[bQt](e,r){let n=new nQt(this[RA].origin,e,r);return this[hc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>eW(this))):this[ul](!0)),this[Fg]&&this[jd]!==2&&this[$7]&&(this[jd]=2),this[jd]<2}[yQt](){return new Promise(e=>{this[TQ]?this[zd]=e:e(null)})}[BQt](e){return new Promise(r=>{let n=this[hc].splice(this[fc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ul]()})}};function xQe(t,e){if(t[DQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Al(t[fc]===t[ll]);let r=t[hc].splice(t[ll]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}Al(t[TQ]===0)}}function RQe(t){Al(!t[_E]),Al(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");Al(i!==-1);let o=r.substring(1,i);Al(NQe.isIPv6(o)),r=o}t[_E]=!0,vE.beforeConnect.hasSubscribers&&vE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ]});try{t[xQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[RQ]},(i,o)=>{if(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}if(t.destroyed){_g.destroy(o.on("error",wQe),new oQt),t[ul]();return}Al(o);try{t[on]=o.alpnProtocol==="h2"?DQt(t,o):RQt(t,o)}catch(a){o.destroy().on("error",wQe),K7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}t[_E]=!1,o[IQt]=0,o[X7]=t[X7],o[cQt]=t,o[dQt]=null,vE.connected.hasSubscribers&&vE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],socket:o}),t.emit("connect",t[RA],[t]),t[ul]()})}catch(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]()}}function K7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_E]=!1,vE.connectError.hasSubscribers&&vE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Al(t[DQ]===0);t[kQ]>0&&t[hc][t[fc]].servername===t[Kd];){let o=t[hc][t[fc]++];_g.errorRequest(t,o,e)}else xQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function SQe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function eW(t,e){t[Fg]!==2&&(t[Fg]=2,vQt(t,e),t[Fg]=0,t[ll]>256&&(t[hc].splice(0,t[ll]),t[fc]-=t[ll],t[ll]=0))}function vQt(t,e){for(;;){if(t.destroyed){Al(t[kQ]===0);return}if(t[zd]&&!t[TQ]){t[zd](),t[zd]=null;return}if(t[on]&&t[on].resume(),t[$7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>SQe(t))):SQe(t);continue}if(t[kQ]===0||t[DQ]>=(TQe(t)||1))return;let r=t[hc][t[fc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Kd]!==r.servername){if(t[DQ]>0)return;t[Kd]=r.servername,t[on]?.destroy(new iQt("servername changed"),()=>{t[on]=null,eW(t)})}if(t[_E])return;if(!t[on]){RQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[fc]++:t[hc].splice(t[fc],1)}}DQe.exports=Z7});var tW=C((jbr,kQe)=>{"use strict";var Iv=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};kQe.exports=class{constructor(){this.head=this.tail=new Iv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Iv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var yv=C((Kbr,HQe)=>{"use strict";var{PoolStats:_Qt}=GV(),FQt=Qg(),MQt=tW(),{kConnected:rW,kSize:vQe,kRunning:_Qe,kPending:FQe,kQueued:vQ,kBusy:LQt,kFree:UQt,kUrl:PQt,kClose:OQt,kDestroy:HQt,kDispatch:GQt}=Kt(),Jn=Symbol("clients"),qs=Symbol("needDrain"),_Q=Symbol("queue"),nW=Symbol("closed resolve"),sW=Symbol("onDrain"),MQe=Symbol("onConnect"),LQe=Symbol("onDisconnect"),UQe=Symbol("onConnectionError"),iW=Symbol("get dispatcher"),PQe=Symbol("add client"),OQe=Symbol("remove client"),oW=class extends FQt{[_Q]=new MQt;[vQ]=0;[Jn] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var{InvalidArgumentError:y1t}=Ke(),{runtimeFeatures:B1t}=sl();function b1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var a1e=B1t.has("crypto")?b("node:crypto"):null,Q1t=a1e?.hash?t=>a1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function A1e(t){return Array.isArray(t)&&(t.length&1)===0}function w1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function S1t(t){let e={};if(!t)return e;if(A1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var c1e=["record","playback","update"];function N1t(t){if(!c1e.includes(t))throw new y1t(`Invalid snapshot mode: ${t}. Must be one of: ${c1e.join(", ")}`)}u1e.exports={createHeaderFilters:b1t,hashId:Q1t,isUndiciHeaders:A1e,normalizeHeaders:S1t,isUrlExcludedFactory:w1t,validateSnapshotMode:N1t}});var C1e=E((PBr,E1e)=>{"use strict";var{writeFile:T1t,readFile:x1t,mkdir:R1t}=b("node:fs/promises"),{dirname:D1t,resolve:l1e}=b("node:path"),{setTimeout:k1t,clearTimeout:d1e}=b("node:timers"),{InvalidArgumentError:h1e,UndiciError:v1t}=Ke(),{hashId:_1t,isUrlExcludedFactory:F1t,normalizeHeaders:f1e,createHeaderFilters:g1e}=JW();function vQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||f1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:p1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function p1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function m1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function _Q(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return _1t(r)}var zW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=g1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=F1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=vQ(e,this.#a,this.matchOptions),s=_Q(n),i=f1e(r.headers),o={statusCode:r.statusCode,headers:m1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=vQ(e,this.#a,this.matchOptions),n=_Q(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new h1e("Snapshot path is required");try{let n=await x1t(l1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new v1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new h1e("Snapshot path is required");let n=l1e(r);await R1t(D1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await T1t(n,JSON.s Line truncated
${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var{InvalidArgumentError:USt}=Xe(),{runtimeFeatures:PSt}=il();function OSt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var hSe=PSt.has("crypto")?Q("node:crypto"):null,HSt=hSe?.hash?t=>hSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function gSe(t){return Array.isArray(t)&&(t.length&1)===0}function GSt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function qSt(t){let e={};if(!t)return e;if(gSe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var fSe=["record","playback","update"];function YSt(t){if(!fSe.includes(t))throw new USt(`Invalid snapshot mode: ${t}. Must be one of: ${fSe.join(", ")}`)}pSe.exports={createHeaderFilters:OSt,hashId:HSt,isUndiciHeaders:gSe,normalizeHeaders:qSt,isUrlExcludedFactory:GSt,validateSnapshotMode:YSt}});var wSe=C((TQr,QSe)=>{"use strict";var{writeFile:VSt,readFile:WSt,mkdir:JSt}=Q("node:fs/promises"),{dirname:zSt,resolve:mSe}=Q("node:path"),{setTimeout:jSt,clearTimeout:ESe}=Q("node:timers"),{InvalidArgumentError:CSe,UndiciError:KSt}=Xe(),{hashId:$St,isUrlExcludedFactory:XSt,normalizeHeaders:ISe,createHeaderFilters:ySe}=SJ();function WQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||ISe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:BSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function BSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function bSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function JQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return $St(r)}var NJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=ySe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=XSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=WQ(e,this.#c,this.matchOptions),s=JQ(n),i=ISe(r.headers),o={statusCode:r.statusCode,headers:bSe(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=WQ(e,this.#c,this.matchOptions),n=JQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");try{let n=await WSt(mSe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new KSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");let n=mSe(r);await JSt(zSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await VSt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ho} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_getValuesQuery ON cacheInterceptorV${ho}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ho}_deleteByUrlQuery ON cacheInterceptorV${ho}(deleteAt);
`),this.#r=this.#n.prepare(`
SELECT
id,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ao}
FROM cacheInterceptorV${ho}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ho} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ho} (
url,
method,
body,
@@ -182,91 +182,91 @@ ${e.format(r)}`.trim())}};o1e.exports=VW});var JW=E((UBr,u1e)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ho}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ho} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ho}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ao}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${ho}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){pJ(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){pJ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){pJ(e),yNt(r);let n=0,s=[],i=this;return new INt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!BNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function BNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Gg=E((abr,SSe)=>{"use strict";var{kConstruct:bNt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:QNt,isValidHeaderName:UQ,isValidHeaderValue:ySe}=ro(),{webidl:wt}=es(),EJ=b("node:assert"),vv=b("node:util");function ISe(t){return t===10||t===13||t===9||t===32}function BSe(t){let e=0,r=t.length;for(;r>e&&ISe(t.charCodeAt(r-1));)--r;for(;r>e&&ISe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function bSe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});CJ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)CJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function CJ(t,e,r){if(r=BSe(r),UQ(e)){if(!ySe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(wSe(t)==="immutable")throw new TypeError("immutable");return Fv(t).append(e,r,!1)}function wNt(t){let e=Fv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function QSe(t,e){return t[0]<e[0]?-1:1}var _v=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":vTe(i)&&(r[s]=i);break;case"id":_Te(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&vTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&_Te(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};FTe.exports={EventSourceStream:rz}});var YTe=E((kbr,qTe)=>{"use strict";var{pipeline:GDt}=b("node:stream"),{fetching:qDt}=qQ(),{makeRequest:YDt}=GE(),{webidl:Hs}=es(),{EventSourceStream:VDt}=MTe(),{parseMIMEType:WDt}=ia(),{createFastMessageEvent:JDt}=o_(),{isNetworkError:LTe}=OQ(),{kEnumerableProperty:Kg}=Ze(),{environmentSettingsObject:UTe}=ro(),PTe=!1,OTe=3e3,KQ=0,HTe=1,$Q=2,zDt="anonymous",jDt="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=KQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),PTe||(PTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=UTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=zDt;r.withCredentials===!0&&(o=jDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=UTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=YDt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===$Q)return;this.#r=KQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!LTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(LTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?WDt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=HTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new VDt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(JDt(c.type,c.options))}});GDt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=qDt(e)}#A(){this.#r!==$Q&&(this.#r=KQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===KQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==$Q&&(this.#r=$Q,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},GTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:KQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:HTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$Q,writable:!1}};Object.defineProperties(XE,GTe);Object.defineProperties(XE.prototype,GTe);Object.defineProperties(XE.prototype,{close:Kg,onerror:Kg,onmessage:Kg,onopen:Kg,readyState:Kg,url:Kg,withCredentials:Kg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>OTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);qTe.exports={EventSource:XE,defaultReconnectionTime:OTe}});var KTe=E((vbr,pe)=>{"use strict";var KDt=Xd(),WTe=jb(),$Dt=xg(),XDt=Wbe(),ZDt=Kbe(),e2t=kg(),t2t=K7(),r2t=W7(),n2t=vQe(),s2t=PQe(),i2t=GQe(),JTe=Ke(),C_=Ze(),{InvalidArgumentError:E_}=JTe,ZE=bwe(),o2t=Bg(),a2t=_W(),{MockCallHistory:c2 Line truncated
`)}close(){this.#n.close()}get(e){tz(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){tz(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){tz(e),txt(r);let n=0,s=[],i=this;return new ext({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!rxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function rxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((KQr,JNe)=>{"use strict";var{kConstruct:nxt}=Kt(),{kEnumerableProperty:XE}=Ze(),{iteratorMixin:sxt,isValidHeaderName:ew,isValidHeaderValue:GNe}=ao(),{webidl:wt}=ns(),nz=Q("node:assert"),Xv=Q("node:util");function HNe(t){return t===10||t===13||t===9||t===32}function qNe(t){let e=0,r=t.length;for(;r>e&&HNe(t.charCodeAt(r-1));)--r;for(;r>e&&HNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function YNe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});sz(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)sz(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function sz(t,e,r){if(r=qNe(r),ew(e)){if(!GNe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(WNe(t)==="immutable")throw new TypeError("immutable");return e_(t).append(e,r,!1)}function ixt(t){let e=e_(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function VNe(t,e){return t[0]<e[0]?-1:1}var Zv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Xxe(i)&&(r[s]=i);break;case"id":Zxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Zxe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};eRe.exports={EventSourceStream:Yz}});var ARe=C((ywr,cRe)=>{"use strict";var{pipeline:ykt}=Q("node:stream"),{fetching:Bkt}=iw(),{makeRequest:bkt}=eC(),{webidl:Vs}=ns(),{EventSourceStream:Qkt}=tRe(),{parseMIMEType:wkt}=Aa(),{createFastMessageEvent:Skt}=w_(),{isNetworkError:rRe}=rw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:nRe}=ao(),sRe=!1,iRe=3e3,dw=0,oRe=1,hw=2,Nkt="anonymous",Tkt="use-credentials",uC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=dw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),sRe||(sRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=nRe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Nkt;r.withCredentials===!0&&(o=Tkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nRe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=bkt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===hw)return;this.#r=dw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!rRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?wkt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=oRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Qkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Skt(c.type,c.options))}});ykt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Bkt(e)}#A(){this.#r!==hw&&(this.#r=dw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===dw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==hw&&(this.#r=hw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},aRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hw,writable:!1}};Object.defineProperties(uC,aRe);Object.defineProperties(uC.prototype,aRe);Object.defineProperties(uC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>iRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);cRe.exports={EventSource:uC,defaultReconnectionTime:iRe}});var gRe=C((Bwr,pe)=>{"use strict";var xkt=$d(),lRe=lQ(),Rkt=Mg(),Dkt=jQe(),kkt=ZQe(),vkt=Pg(),_kt=TW(),Fkt=QW(),Mkt=Uwe(),Lkt=Vwe(),Ukt=zwe(),dRe=Xe(),U_=Ze(),{InvalidArgumentError:L_}=dRe,lC=x1e(),Pkt=wg(),Okt=hJ(),{MockCallHistory:Hk Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return C2t(e,r).catch(n=>{throw VTe?jTe(n,VTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Gg().Headers;pe.exports.Response=OQ().Response;pe.exports.Request=GE().Request;pe.exports.FormData=Gk().FormData;var{setGlobalOrigin:I2t,getGlobalOrigin:y2t}=FV();pe.exports.setGlobalOrigin=I2t;pe.exports.getGlobalOrigin=y2t;var{CacheStorage:B2t}=xNe(),{kConstruct:b2t}=Kt();pe.exports.caches=new B2t(b2t);var{deleteCookie:Q2t,getCookies:w2t,getSetCookies:S2t,setCookie:N2t,parseCookie:T2t}=GNe();pe.exports.deleteCookie=Q2t;pe.exports.getCookies=w2t;pe.exports.getSetCookies=S2t;pe.exports.setCookie=N2t;pe.exports.parseCookie=T2t;var{parseMIMEType:x2t,serializeAMimeType:R2t}=ia();pe.exports.parseMIMEType=x2t;pe.exports.serializeAMimeType=R2t;var{CloseEvent:D2t,ErrorEvent:k2t,MessageEvent:v2t}=o_(),{WebSocket:_2t,ping:F2t}=BTe();pe.exports.WebSocket=_2t;pe.exports.CloseEvent=D2t;pe.exports.ErrorEvent=k2t;pe.exports.MessageEvent=v2t;pe.exports.ping=F2t;pe.exports.WebSocketStream=RTe().WebSocketStream;pe.exports.WebSocketError=$J().WebSocketError;pe.exports.request=XQ(ZE.request);pe.exports.stream=XQ(ZE.stream);pe.exports.pipeline=XQ(ZE.pipeline);pe.exports.connect=XQ(ZE.connect);pe.exports.upgrade=XQ(ZE.upgrade);pe.exports.MockClient=a2t;pe.exports.MockCallHistory=c2t;pe.exports.MockCallHistoryLog=A2t;pe.exports.MockPool=l2t;pe.exports.MockAgent=u2t;pe.exports.SnapshotAgent=d2t;pe.exports.mockErrors=h2t;var{EventSource:M2t}=YTe();pe.exports.EventSource=M2t;function L2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=L2t});var ZQ=E(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var XTe=E((Mbr,$Te)=>{"use strict";var{asciiLowercase:I_,solelyContainsHTTPTokenCodePoints:U2t,soleyContainsHTTPQuotedStringTokenCodePoints:P2t}=ZQ();$Te.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=I_(String(e)),this._map.get(e)}has(e){return e=I_(String(e)),this._map.has(e)}set(e,r){if(e=I_(String(e)),r=String(r),!U2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!P2t(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=I_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var txe=E((Lbr,exe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:O2t,removeTrailingHTTPWhitespace:ZTe,isHTTPWhitespaceChar:H2t,solelyContainsHTTPTokenCodePoints:nz,soleyContainsHTTPQuotedStringTokenCodePoints:G2t,asciiLowercase:sz,collectAnHTTPQuotedString:q2t}=ZQ();exe.exports=t=>{t=O2t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!nz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ZTe(n),n.length===0||!nz(n))return null;let s={type:sz(r),subtype:sz(n),parameters:new Map};for(;e<t.length;){for(++e;H2t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=sz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=q2t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ZTe(o),o==="")continue}i.length>0&&nz(i)&&G2t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var nxe=E((Ubr,rxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Y2t}=ZQ();rxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!Y2t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var axe=E((Obr,oxe)=>{"use strict";var V2t=XTe(),W2t=txe(),J2t=nxe(),{asciiLowercase:sxe,solelyContainsHTTPTokenCodePoints:ixe}=ZQ();oxe.exports=class{constructor(e){e=String(e);let r=W2t(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new V2t(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=sxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!ixe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=sxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!ixe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return J2t(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var Dxe=E(bn=>{"use strict";var hz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Skt=hz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?rj:f.type==="?"?ij:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=gvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==nj?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===nj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return mvt(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?rj:r.dot?hvt:fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Cvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Gs))}),o.filter(a=>a!==Gs).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;sj.sep!=="/"&&(e=e.split(sj.sep).join("/")),e=e.split(qRe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return go.defaults(e).Minimatch}};go.Minimatch=oC});var $Re=E((Owr,KRe)=>{KRe.exports=jRe;var cj=b("fs"),{EventEmitter:yvt}=b("events"),{Minimatch:aj}=WRe(),{resolve:Bvt}=b("path");function bvt(t,e){return new Promise((r,n)=>{cj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function JRe(t,e){return new Promise((r,n)=>{(e?cj.stat:cj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?JRe(t,!1):null):r(null):r(o)})})}async function*zRe(t,e,r,n,s,i){let o=await bvt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await JRe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*zRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Qvt(t,e,r,n){yield*zRe("",t,e,r,n,!0)}function wvt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var v_=class extends yvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=wvt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new aj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new aj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new aj(i,{dot:!0}))}this.iterator=Qvt(Bvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function aI(Q){let B=oI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Xkt(e,r).catch(n=>{throw uRe?fRe(n,uRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=rw().Response;pe.exports.Request=eC().Request;pe.exports.FormData=ov().FormData;var{setGlobalOrigin:Zkt,getGlobalOrigin:evt}=A7();pe.exports.setGlobalOrigin=Zkt;pe.exports.getGlobalOrigin=evt;var{CacheStorage:tvt}=KTe(),{kConstruct:rvt}=Kt();pe.exports.caches=new tvt(rvt);var{deleteCookie:nvt,getCookies:svt,getSetCookies:ivt,setCookie:ovt,parseCookie:avt}=cxe();pe.exports.deleteCookie=nvt;pe.exports.getCookies=svt;pe.exports.getSetCookies=ivt;pe.exports.setCookie=ovt;pe.exports.parseCookie=avt;var{parseMIMEType:cvt,serializeAMimeType:Avt}=Aa();pe.exports.parseMIMEType=cvt;pe.exports.serializeAMimeType=Avt;var{CloseEvent:uvt,ErrorEvent:lvt,MessageEvent:dvt}=w_(),{WebSocket:hvt,ping:fvt}=Hxe();pe.exports.WebSocket=hvt;pe.exports.CloseEvent=uvt;pe.exports.ErrorEvent=lvt;pe.exports.MessageEvent=dvt;pe.exports.ping=fvt;pe.exports.WebSocketStream=jxe().WebSocketStream;pe.exports.WebSocketError=Pz().WebSocketError;pe.exports.request=fw(lC.request);pe.exports.stream=fw(lC.stream);pe.exports.pipeline=fw(lC.pipeline);pe.exports.connect=fw(lC.connect);pe.exports.upgrade=fw(lC.upgrade);pe.exports.MockClient=Okt;pe.exports.MockCallHistory=Hkt;pe.exports.MockCallHistoryLog=Gkt;pe.exports.MockPool=Ykt;pe.exports.MockAgent=qkt;pe.exports.SnapshotAgent=Vkt;pe.exports.mockErrors=Wkt;var{EventSource:gvt}=ARe();pe.exports.EventSource=gvt;function pvt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=pvt});var gw=C(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var mRe=C((wwr,pRe)=>{"use strict";var{asciiLowercase:P_,solelyContainsHTTPTokenCodePoints:mvt,soleyContainsHTTPQuotedStringTokenCodePoints:Evt}=gw();pRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=P_(String(e)),this._map.get(e)}has(e){return e=P_(String(e)),this._map.has(e)}set(e,r){if(e=P_(String(e)),r=String(r),!mvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Evt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=P_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var IRe=C((Swr,CRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Cvt,removeTrailingHTTPWhitespace:ERe,isHTTPWhitespaceChar:Ivt,solelyContainsHTTPTokenCodePoints:Vz,soleyContainsHTTPQuotedStringTokenCodePoints:yvt,asciiLowercase:Wz,collectAnHTTPQuotedString:Bvt}=gw();CRe.exports=t=>{t=Cvt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Vz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ERe(n),n.length===0||!Vz(n))return null;let s={type:Wz(r),subtype:Wz(n),parameters:new Map};for(;e<t.length;){for(++e;Ivt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Wz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Bvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ERe(o),o==="")continue}i.length>0&&Vz(i)&&yvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var BRe=C((Nwr,yRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:bvt}=gw();yRe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!bvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var SRe=C((xwr,wRe)=>{"use strict";var Qvt=mRe(),wvt=IRe(),Svt=BRe(),{asciiLowercase:bRe,solelyContainsHTTPTokenCodePoints:QRe}=gw();wRe.exports=class{constructor(e){e=String(e);let r=wvt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Qvt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=bRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=bRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Svt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KRe=C(Sn=>{"use strict";var tj=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o_t=tj(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Vj:f.type==="?"?zj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=X_t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==Wj?"(?:$|\\/)":"";s=v+z+X+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Wj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return eFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Vj:r.dot?K_t:$_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?rFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ws))}),o.filter(a=>a!==Ws).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Jj.sep!=="/"&&(e=e.split(Jj.sep).join("/")),e=e.split(c2e),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Co.defaults(e).Minimatch}};Co.Minimatch=EC});var p2e=C((RSr,g2e)=>{g2e.exports=f2e;var $j=Q("fs"),{EventEmitter:sFt}=Q("events"),{Minimatch:Kj}=l2e(),{resolve:iFt}=Q("path");function oFt(t,e){return new Promise((r,n)=>{$j.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function d2e(t,e){return new Promise((r,n)=>{(e?$j.stat:$j.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?d2e(t,!1):null):r(null):r(o)})})}async function*h2e(t,e,r,n,s,i){let o=await oFt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await d2e(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*h2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*aFt(t,e,r,n){yield*h2e("",t,e,r,n,!0)}function cFt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var X_=class extends sFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=cFt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new Kj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new Kj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new Kj(i,{dot:!0}))}this.iterator=aFt(iFt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Q1).map(q=>q.replace(w1,"").trim())}function cI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=aI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),iI(w,B)}class AI{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):uI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):uI(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function uI(Q,B){Q.length=1,Q.head=Q.tail=B}function Fp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,Tn;function Bo(Oh,...mI){if(Oh)return Pe?Tn(Oh):Ir();if(mI.length<=1)return Ir(mI[0]);Ir(mI)}var Pp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Pp):Mt._tasks.push(Pp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Oh,mI)=>{Ir=Oh,Tn=mI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var Tn=Ue[Nt],Bo=V.indexOf(Tn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),Tn.callback(be,...Pe),be!=null&&Bt("error",be,Tn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Up(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,Tn)=>{if(Ir)return Nt(Ir);Pe(Tn)})});Se(Ue),j(Ue,be)};var pI=!1,Mt={_tasks:new AI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Up(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!pI){for(pI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var Tn=te(yo(Ue));F(be,Tn)}pI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Mt}function lI(Q,B){return Fp(Q,1,B)}function Mp(Q,B,w){return Fp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var wa=m(Io,4);function Lp(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=cu(),wa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[au]}}function S1(...Q){return Lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[rs]||(aDe=global[rs]||[],ADe(vr,aDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||cDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),cDe()}return Object.defineProperty(e,U_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){sp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var aDe;global[rs]||ADe(global,vr[rs]);dj.exports=uj(_vt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(dj.exports=uj(vr),vr.__patched=!0);function uj(t){kvt(t),t.gracefulify=uj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?aC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?aC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=vvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function aC(t){sp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),lj()}var L_;function cDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);lj()}function lj(){if(clearTimeout(L_),L_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)sp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){sp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(sp("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}L_===void 0&&(L_=setTimeout(lj,0))}}});var P_=E((Vwr,uDe)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Gke.exports={AggregateError:zj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var jj=E((tSr,qke)=>{"use strict";qke.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Is=E((rSr,Wke)=>{"use strict";var{format:nUt,inspect:sF}=jj(),{AggregateError:sUt}=Tr(),iUt=globalThis.AggregateError||sUt,oUt=Symbol("kIsNodeError"),aUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],cUt=/^([A-Z][a-z0-9]*)+$/,AUt="__node_internal_",iF={};function ap(t,e){if(!t)throw new iF.ERR_INTERNAL_ASSERTION(e)}function Yke(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function uUt(t,e,r){if(typeof e=="function")return ap(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return ap(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:nUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(uUt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[oUt]=!0,iF[t]=n}function Vke(t){let e=AUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function lUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new iUt([e,t],e.message);return r.code=e.code,r}return t||e}var Kj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ap(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)ap(typeof c=="string","All expected entries have to be of type string"),aUt.includes(c)?s.push(c.toLowerCase()):cUt.test(c)?i.push(c):(ap(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=TX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=TX(" "+s+"="+n[s]+`
`);return kt.from(r)};zC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};zC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Dh(e.mode&BYt,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),xYt(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=vM+NYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(fOe,r,g1),kt.copy(CYt,r,xX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(pOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-vM,i=JC(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=SYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),p=Rh(e,329,8),I=Rh(e,337,8),m=pOe(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(bYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!QYt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function bYt(t){return kt.equals(fOe,t.subarray(g1,g1+6))}function QYt(t){return kt.equals(IYt,t.subarray(g1,g1+6))&&kt.equals(yYt,t.subarray(xX,xX+2))}function wYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function SYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function NYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function gOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function pOe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Dh(t,e){return t=t.toString(8),t.length>e?EYt.slice(0,e)+" ":mYt.slice(0,e-t.length)+t+" "}function TYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function xYt(t,e,r){t.toString(8).length>11?TYt(t,e,r):kt.write(e,Dh(t,11),r)}function RYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return RYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=wYt(gOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function JC(t,e,r,n){return kt.toString(t.subarray(e,gOe(t,0,e,e+r)),n)}function TX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var yOe=E((TTr,IOe)=>{var{Writable:DYt,Readable:kYt,getStreamError:mOe}=NX(),vYt=dX(),EOe=GC(),jC=RX(),_Yt=EOe.alloc(0),kX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new vYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return _Yt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return EOe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},vX=class extends kYt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(mOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=COe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},_X=class extends DYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Qce(t,e){if(process.env.GITHUB_OUTPUT||"")return EI("OUTPUT",j1(t,e));process.stdout.write(vO.EOL),Na("set-output",{name:t},yc(e))}function df(t){process.exitCode=kO.Failure,Pi(t)}function Pa(){return process.env.RUNNER_DEBUG==="1"}function H(t){Na("debug",{},t)}function Pi(t,e={}){Na("error",W1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Na("warning",W1(e),t instanceof Error?t.toString():t)}function wce(t,e={}){Na("notice",W1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+vO.EOL)}function _je(t){ZM("group",t)}function Fje(){ZM("endgroup")}function eT(t,e){return vje(this,void 0,void 0,function*(){_je(t);let r;try{r=yield e()}finally{Fje()}return r})}function wu(t,e){if(process.env.GITHUB_STATE||"")return EI("STATE",j1(t,e));Na("save-state",{name:t},yc(e))}function by(t){return process.env[`STATE_${t}`]||""}import*as Az from"fs";import*as uz from"path";import*as b_ from"os";import{readFileSync as Mje,existsSync as Lje}from"fs";import{EOL as Uje}from"os";var Mm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Lje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Mje(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Uje}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var UO=fe(Rce(),1),Dce=fe(VN(),1),$je=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function kce(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function vce(t){return new UO.HttpClient().getAgent(t)}function Xje(t){return new UO.HttpClient().getAgentDispatcher(t)}function _ce(t){let e=Xje(t);return(n,s)=>$je(this,void 0,void 0,function*(){return(0,Dce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Fce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function $l(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function aT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>aT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Mce(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Lce(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Uce=Function.bind,Pce=Uce.bind(Uce);function Oce(t,e,r){let n=Pce(Lce,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Pce(Mce,null). Line truncated
`+b);let[,F]=S;return F.replace(/\s/g,"").split(O1).map(G=>G.replace(H1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Vp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,Dn;function So(Oh,...xI){if(Oh)return Ye?Dn(Oh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var jp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(jp):Ut._tasks.push(jp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Oh,xI)=>{Br=Oh,Dn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var Dn=qe[Nt],So=Y.indexOf(Dn);So===0?Y.shift():So>0&&Y.splice(So,1),Dn.callback(be,...Ye),be!=null&&Bt("error",be,Dn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function zp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,Dn)=>{if(Br)return Nt(Br);Ye(Dn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var Dn=te(wo(qe));F(be,Dn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Ut}function bI(w,b){return Vp(w,1,b)}function Wp(w,b,S){return Vp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function Jp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function G1(...w){return Jp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(S2e=global[is]||[],T2e(Fr,S2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||N2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,nF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),N2e()}return Object.defineProperty(e,nF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var S2e;global[is]||T2e(global,Fr[is]);tK.exports=Zj(mFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(tK.exports=Zj(Fr),Fr.__patched=!0);function Zj(t){gFt(t),t.gracefulify=Zj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),te(v,z,X);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?CC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,te){return typeof X=="function"&&(te=X,X=0),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?CC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=pFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function CC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),eK()}var rF;function N2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);eK()}function eK(){if(clearTimeout(rF),rF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}rF===void 0&&(rF=setTimeout(eK,0))}}});var sF=C((FSr,x2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};a_e.exports={AggregateError:LK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var UK=C((VNr,c_e)=>{"use strict";c_e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=C((WNr,l_e)=>{"use strict";var{format:OPt,inspect:bF}=UK(),{AggregateError:HPt}=Rr(),GPt=globalThis.AggregateError||HPt,qPt=Symbol("kIsNodeError"),YPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],VPt=/^([A-Z][a-z0-9]*)+$/,WPt="__node_internal_",QF={};function mp(t,e){if(!t)throw new QF.ERR_INTERNAL_ASSERTION(e)}function A_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function JPt(t,e,r){if(typeof e=="function")return mp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:OPt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(JPt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[qPt]=!0,QF[t]=n}function u_e(t){let e=WPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function zPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new GPt([e,t],e.message);return r.code=e.code,r}return t||e}var PK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new QF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)mp(typeof c=="string","All expected entries have to be of type string"),YPt.includes(c)?s.push(c.toLowerCase()):VPt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=EZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=EZ(" "+s+"="+n[s]+`
`);return kt.from(r)};oI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};oI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Dh(e.mode&c7t,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),g7t(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=XM+h7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(v3e,r,D1),kt.copy(i7t,r,CZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(F3e(r),6),148),r)};oI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-XM,i=iI(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=d7t(s),d=e[157]===0?null:iI(e,157,100,r),h=iI(e,265,32),f=iI(e,297,32),g=Rh(e,329,8),E=Rh(e,337,8),m=F3e(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(A7t(e))e[345]&&(i=iI(e,345,155,r)+"/"+i);else if(!u7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function A7t(t){return kt.equals(v3e,t.subarray(D1,D1+6))}function u7t(t){return kt.equals(o7t,t.subarray(D1,D1+6))&&kt.equals(a7t,t.subarray(CZ,CZ+2))}function l7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function d7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function h7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function F3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Dh(t,e){return t=t.toString(8),t.length>e?s7t.slice(0,e)+" ":n7t.slice(0,e-t.length)+t+" "}function f7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function g7t(t,e,r){t.toString(8).length>11?f7t(t,e,r):kt.write(e,Dh(t,11),r)}function p7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return p7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=l7t(_3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function iI(t,e,r,n){return kt.toString(t.subarray(e,_3e(t,0,e,e+r)),n)}function EZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var O3e=C((ERr,P3e)=>{var{Writable:m7t,Readable:E7t,getStreamError:M3e}=mZ(),C7t=rZ(),L3e=eI(),aI=IZ(),I7t=L3e.alloc(0),BZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new C7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return I7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return L3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},bZ=class extends E7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(M3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=U3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},QZ=class extends m7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=t3.Failure,Yi(t)}function Ha(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",cS(e),t instanceof Error?t.toString():t)}function je(t,e={}){Ra("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Ra("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+r3.EOL)}function yAe(t){EL("group",t)}function BAe(){EL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Ra("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as G_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${$Ke}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var a3=ge(NAe(),1),TAe=ge(aT(),1),u$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xAe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function RAe(t){return new a3.HttpClient().getAgent(t)}function l$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function bT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>bT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function vAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function _Ae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=MAe(vAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var OKe=class extends Error{constructor(t,e,r){super(PKe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},HKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],GKe=["query","method","url"],lAe=/\/api\/v3\/?$/;function qKe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(GKe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>HKe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return lAe.test(i)&&(s.url=i.replace(lAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new OKe(s,a,o.data)}return o.data.data})}function zO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>qKe(r,s,i),{defaults:zO.bind(null,r),endpoint:r.endpoint})}var hzt=zO(Sy,{headers:{"user-agent":`octokit-graphql.js/${UKe} ${$l()}`},method:"POST",url:"/graphql"});function dAe(t){return zO(t,{method:"POST",url:"/graphql"})}var jO="(?:[a-zA-Z0-9_-]+)",hAe="\\.",fAe=new RegExp(`^${jO}${hAe}${jO}${hAe}${jO}$`),YKe=fAe.test.bind(fAe);async function VKe(t){let e=YKe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function WKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function JKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=WKe(t),e(s)}var gAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(VKe.bind(null,e),{hook:JKe.bind(null,e)})};var KO="7.0.6";var pAe=()=>{},zKe=console.warn.bind(console),jKe=console.error.bind(console);function KKe(t={}){return typeof t.debug!="function"&&(t.debug=pAe),typeof t.info!="function"&&(t.info=pAe),typeof t.warn!="function"&&(t.warn=zKe),typeof t.error!="function"&&(t.error=jKe),t}var mAe=`octokit-core.js/${KO} ${$l()}`,uT=class{static VERSION=KO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Hce.Collection,n={baseUrl:Sy.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${mAe}`:mAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Sy.defaults(n),this.graphql=dAe(this.request).defaults(n),this.log=KKe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=gAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var $O="17.0.0";var $Ke={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`)}var Z$e=class extends Error{constructor(t,e,r){super(X$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},eXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],tXe=["query","method","url"],cue=/\/api\/v3\/?$/;function rXe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(tXe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>eXe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cue.test(i)&&(s.url=i.replace(cue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Z$e(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>rXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var Zjt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${$$e} ${Zl()}`},method:"POST",url:"/graphql"});function Aue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",uue="\\.",lue=new RegExp(`^${E3}${uue}${E3}${uue}${E3}$`),nXe=lue.test.bind(lue);async function sXe(t){let e=nXe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function iXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function oXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=iXe(t),e(s)}var due=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(sXe.bind(null,e),{hook:oXe.bind(null,e)})};var C3="7.0.6";var hue=()=>{},aXe=console.warn.bind(console),cXe=console.error.bind(console);function AXe(t={}){return typeof t.debug!="function"&&(t.debug=hue),typeof t.info!="function"&&(t.info=hue),typeof t.warn!="function"&&(t.warn=aXe),typeof t.error!="function"&&(t.error=cXe),t}var fue=`octokit-core.js/${C3} ${Zl()}`,ST=class{static VERSION=C3;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new UAe.Collection,n={baseUrl:Py.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${fue}`:fue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=Aue(this.request).defaults(n),this.log=AXe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=due(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var I3="17.0.0";var uXe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Dy(i));return n.searchPaths.push(...i3(n.patterns)),n})}static stat(e,r,n){return u3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Gm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Gm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Gm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var D$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function zAe(t,e){return D$e(this,void 0,void 0,function*(){return yield pT.create(t,e)})}var Ole=fe(Uy(),1);import*as kT from"crypto";import*as Wm from"fs";import*as yf from"path";import*as Hle from"util";var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var RT=2,DT=5e3,D3=5e3,k3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Ple=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Oy="cache.tar",v3="manifest.txt",iKt=10*Math.pow(1024,3);var Vm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Het=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Get="1.0";function Hy(){return Vm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=yf.join(n,"actions","temp")}let r=yf.join(e,kT.randomUUID());return yield lf(r),r})}function Uc(t){return Wm.statSync(t).size}function _3(t){return Vm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield zAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Het(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=yf.relative(a,s).replace(new RegExp(`\\${yf.sep}`,"g"),"/");H(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Gy(t){return Vm(this,void 0,void 0,function*(){return Hle.promisify(Wm.unlink)(t)})}function Gle(t){return Vm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Fc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function qy(){return Vm(this,void 0,void 0,function*(){let t=yield Gle("zstd",["--quiet"]),e=Ole.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function rd(t){return t===Rs.Gzip?Py.Gzip:Py.Zstd}function qle(){return Vm(this,void 0,void 0,function*(){return Wm.existsSync(k3)?k3:(yield Gle("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function F3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Jm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Get),kT.createHash("sha256").update(n.join("|")).digest("hex")}function Yle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as b0 from"fs";import{URL as wct}from"url";var Pc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as qet}from"node:os";import Yet from"node:util";import Vet from"node:process";function Vle(t,...e){Vet.stderr.write(`${Yet.format(t,...e)}${qet}`)}import Yy from"node:process";function _T(t){return Yy.env[t]}var Wle=typeof Yy.versions.deno=="string"&&Yy.versions.deno.length>0,Jle=typeof Yy.versions.bun=="string"&&Yy.versions.bun.length>0,FT=!0;var zle=_T("DEBUG"),Kle,M3=[],L3=[],MT=[];zle&&U3(zle);var $le=Object.assign(t=>Xle(t),{enable:U3,enabled:P3,disable:Wet,log:Vle});function U3(t){Kle=t,M3=[],L3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?L3.push(r.substring(1)):M3.push(r);for(let r of MT)r.enabled=P3(r.namespace)}function P3(t){if(t.endsWith("*"))return!0;for(let e of L3)if(jle(t,e))return!1;for(let e of M3)if(jle(t,e))return!0;return!1}function jle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function Wet(){let t=Kle||"";return U3(""),t}function Xle(t){let e=Object.assign(r,{enabled:P3(t),destroy:Jet,log:$le.log,namespace:t,extend:zet});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return MT.push(e),e}function Jet(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function zet(t){let e=Xle(`${this.namespace}:${t}`);return e.log=this.log,e}var zm=$le;var O3=["verbose","info","warning","error"],Zle={verbose:400,info:300,warning:200,error:100};function ede(t,e){e.log=(...r)=>{t.log(...r)}}function tde(t){return O3.includes(t)}function LT(t){let e=new Set,r=_T(t.logLevelEnvVarName),n,s=zm(t.namespace);s.log=(...u)=>{zm.log(...u)};function i(u){if(u&&!tde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${O3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);zm.enable(l.join(","))}r&&(tde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${O3.join(", ")}.`));function o(u){return!!(n&&Zle[u.level]<=Zle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(ede(u,d),o(d)){let h=zm.disable();zm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return ede(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var rde=LT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),jet=rde.logger;function Vy(t){return rde.createClientLogger(t)}function UT(t){return t.toLowerCase()}function Ket(t){return String(t).trim().replace(/[\r\n]/g,"")}function*$et(t){for(let e of t.values())yield[e.name,e.value]}var H3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(UT(e),{name:e,value:Ket(r)})}get(e){return this._headersMap.get(UT(e))?.value}has(e){return this._ Line truncated
${ttt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function jm(t){return t instanceof Ds?!0:bf(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import V3 from"node:http";import W3 from"node:https";import ide from"node:zlib";import{Transform as rtt}from"node:stream";var si=Vy("ts-http-runtime");var ntt={};function Wy(t){return t&&typeof t.pipe=="function"}function ode(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function ade(t){return t&&typeof t.byteLength=="number"}var HT=class extends rtt{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},J3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Pc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new qa;si.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=att(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new HT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Wy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=stt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?itt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new HT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ott(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Wy(a)&&(A=ode(a));let u=Promise.resolve();Wy(c)&&(u=ode(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?V3.request(a,c):W3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Pc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Wy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):ade(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return W3.globalAgent;let s=e.tlsSettings??ntt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new W3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function stt(t){let e=Gi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=ide.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=ide.createInflate();return t.pipe(n),n}return t}function ott(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function att(t){return t?Buffer.isBuffer(t)?t.length:Wy(t)?null:ade(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function cde(){return new J3}function GT(){return cde()}var z3="logPolicy";function qT(t={}){let e=t.logger??si.info,r=new qa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:z3,asy Line truncated
`;return e}function Trt(t){return t instanceof Uint8Array?t.byteLength:jy(t)?t.size===-1?void 0:t.size:void 0}function xrt(t){let e=0;for(let r of t){let n=Trt(r);if(n===void 0)return;e+=n}return e}async function Rrt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
`,"utf-8"),ni(Nrt(i.headers),"utf-8"),ni(`\r
`,"utf-8"),i.body,ni(`\r
--${r}`,"utf-8")]),ni(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Xm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Xm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Xm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var WXe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Vue(t,e){return WXe(this,void 0,void 0,function*(){return yield kT.create(t,e)})}var Lde=ge(Xy(),1);import*as jT from"crypto";import*as r0 from"fs";import*as Qf from"path";import*as Ude from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var WT=2,JT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Mde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",J$t=10*Math.pow(1024,3),zT="cache read denied:";var t0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nrt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},srt="1.0";function tB(){return t0(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Qf.join(n,"actions","temp")}let r=Qf.join(e,jT.randomUUID());return yield ff(r),r})}function Oc(t){return r0.statSync(t).size}function s8(t){return t0(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Vue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=nrt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function rB(t){return t0(this,void 0,void 0,function*(){return Ude.promisify(r0.unlink)(t)})}function Pde(t){return t0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Lc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return t0(this,void 0,void 0,function*(){let t=yield Pde("zstd",["--quiet"]),e=Lde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function sd(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Ode(){return t0(this,void 0,void 0,function*(){return r0.existsSync(r8)?r8:(yield Pde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function n0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(srt),jT.createHash("sha256").update(n.join("|")).digest("hex")}function Hde(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as v0 from"fs";import{URL as HAt}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as irt}from"node:os";import ort from"node:util";import art from"node:process";function Gde(t,...e){art.stderr.write(`${ort.format(t,...e)}${irt}`)}import sB from"node:process";function $T(t){return sB.env[t]}var qde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,Yde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,XT=!0;var Vde=$T("DEBUG"),Jde,o8=[],a8=[],ZT=[];Vde&&c8(Vde);var zde=Object.assign(t=>jde(t),{enable:c8,enabled:A8,disable:crt,log:Gde});function c8(t){Jde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of ZT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if(Wde(t,e))return!1;for(let e of o8)if(Wde(t,e))return!0;return!1}function Wde(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function crt(){let t=Jde||"";return c8(""),t}function jde(t){let e=Object.assign(r,{enabled:A8(t),destroy:Art,log:zde.log,namespace:t,extend:urt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ZT.push(e),e}function Art(){let t=ZT.indexOf(this);return t>=0?(ZT.splice(t,1),!0):!1}function urt(t){let e=jde(`${this.namespace}:${t}`);return e.log=this.log,e}var s0=zde;var u8=["verbose","info","warning","error"],Kde={verbose:400,info:300,warning:200,error:100};function $de(t,e){e.log=(...r)=>{t.log(...r)}}function Xde(t){return u8.includes(t)}function ex(t){let e=new Set,r=$T(t.logLevelEnvVarName),n,s=s0(t.namespace);s.log=(...u)=>{s0.log(...u)};function i(u){if(u&&!Xde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);s0.enable(l.join(","))}r&&(Xde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&Kde[u.level]<=Kde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if($de(u,d),o(d)){let h=s0.disable();s0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return $de(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Zde=ex({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lrt=Zde.logger;function iB(t){return Zde.createClientLogger(t)}function tx(t){return t.toLowerCase()}function drt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hrt(t){for(let e of t.values())yield[e.name,e.value]}var l8=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(tx(e),{name:e,value:drt(r)})}get(e){return this._headersMap.get(tx(e))?.value}has(e){return this._ Line truncated
${mrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function i0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import rhe from"node:zlib";import{Transform as Ert}from"node:stream";var ci=iB("ts-http-runtime");var Crt={};function oB(t){return t&&typeof t.pipe=="function"}function nhe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function she(t){return t&&typeof t.byteLength=="number"}var sx=class extends Ert{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Wa;ci.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=brt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new sx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?yrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new sx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Brt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=nhe(a));let u=Promise.resolve();oB(c)&&(u=nhe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):she(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??Crt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irt(t){let e=Ji();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function yrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=rhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=rhe.createInflate();return t.pipe(n),n}return t}function Brt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function brt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:she(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ihe(){return new m8}function ix(){return ihe()}var E8="logPolicy";function ox(t={}){let e=t.logger??ci.info,r=new Wa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`;return e}function Ynt(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function Vnt(t){let e=0;for(let r of t){let n=Ynt(r);if(n===void 0)return;e+=n}return e}async function Wnt(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(qnt(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
\r
`,"utf-8")],s=xrt(n);s&&t.headers.set("Content-Length",s),t.body=await ehe(n)}var Ky="multipartPolicy",Drt=70,krt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function vrt(t){if(t.length>Drt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!krt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function lx(){return{name:Ky,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?vrt(r):r=Srt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Rrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function dx(){return OT()}var the=LT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),aer=the.logger;function Mo(t){return the.createClientLogger(t)}var Hc=Mo("core-rest-pipeline");function d8(t={}){return qT({logger:Hc.info,...t})}var h8=Ax;function f8(t={}){return ux(t)}import g8 from"node:os";import id from"node:process";function rhe(){return"User-Agent"}async function nhe(t){if(id&&id.versions){let e=`${g8.type()} ${g8.release()}; ${g8.arch()}`;id.versions.bun?t.set("Bun",`${id.versions.bun} (${e})`):id.versions.deno?t.set("Deno",`${id.versions.deno} (${e})`):id.versions.node&&t.set("Node",`${id.versions.node} (${e})`)}}var hx="1.24.0";function Hrt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function she(){return rhe()}async function fx(t){let e=new Map;e.set("core-rest-pipeline",hx),await nhe(e);let r=Hrt(e);return t?`${t} ${r}`:r}var ihe=she(),ohe="userAgentPolicy";function p8(t={}){let e=fx(t.userAgentPrefix);return{name:ohe,async sendRequest(r,n){return r.headers.has(ihe)||r.headers.set(ihe,await e),n(r)}}}var ahe=Symbol("rawContent");function m8(t){return typeof t[ahe]=="function"}function che(t){return m8(t)?t[ahe]():t}var gx=Ky;function E8(){let t=lx();return{name:gx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)m8(n.body)&&(n.body=che(n.body));return t.sendRequest(e,r)}}}var C8=ax;function I8(){return cx()}function y8(t={}){return WT(t)}function B8(){return JT()}var $y=class extends Error{constructor(e){super(e),this.name="AbortError"}};function b8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new $y(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Krt="The delay was aborted.";function t0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return b8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Krt})}function od(t){if(bf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Ahe(t){return bf(t)}function r0(){return Bf()}var Wt=FT;function ad(t){return c8(t)}function w8(t,e){return ox(t,e)}var uhe="setClientRequestIdPolicy";function S8(t="x-ms-client-request-id"){return{name:uhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function N8(t){return zT(t)}function T8(t){return jT(t)}var n0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function lhe(t={}){let e=new x8(t.parentContext);return t.span&&(e=e.setValue(n0.span,t.span)),t.namespace&&(e=e.setValue(n0.namespace,t.namespace)),e}var x8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var hhe=fe(dhe(),1),mx=hhe.state;function $rt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Xrt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$rt(),tracingContext:lhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Xy(){return mx.instrumenterImplementation||(mx.instrumenterImplementation=Xrt()),mx.instrumenterImplementation}function Zy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Xy().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Ist(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=gst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=zhe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=zhe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Jhe(t,i);continue}else if(t[i+1]==="?"){if(i=Whe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Est(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Vhe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Vhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Vhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Whe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Jhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var hst='"',fst="'";function gst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===hst||t[e]===fst)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var pst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function zhe(t,e){let r=Sx(t,pst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",AB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",AB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",AB(r[s]));let i=r[s][2];if(!Cst(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",AB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",AB(r[s]))}return!0}function mst(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,mst(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Cst(t){return J8(t)}function Ist(t){return J8(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function AB(t){return t.startIndex+t[1].length}var jhe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Khe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},$he={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new ci("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new dB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=A0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=t4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=r4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new ci(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=A0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=A0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=r4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=Wst(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=Vst(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=t4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Xst(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Zst(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function eit(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function tit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function rit(t,e,r=">"){Line truncated
`;function uit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function bfe(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function a4(t,e){let r="";e.format&&(r=Ait);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Wi(a)):a instanceof Wi&&n.push(a)}let s=uit(t,e),i=new Yc;return Qfe(t,e,r,i,n,s)}function Qfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=o4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=c4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:bfe(u,!1,e,n,i),h=lit(A[":@"],e);n.push(d,h);let f=hit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=o4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=Lx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Mx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Bfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=Bfe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=wfe(A[u],e):C=Qfe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function lit(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=ud(t[s]),n=!0}return n?r:null}function wfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=c4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=dit(s[":@"],e),a=wfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function dit(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${ud(s)}"`}return r}function c4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Bfe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:bfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=o4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ud(A)}"`}return i}function hit(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function o4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function A4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var fit={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ui(t){if(this.options=Object.assign({},fit,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Wi(r)):r instanceof Wi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=Vnt(n);s&&t.headers.set("Content-Length",s),t.body=await $he(n)}var uB="multipartPolicy",Jnt=70,znt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jnt(t){if(t.length>Jnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!znt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Tx(){return{name:uB,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?jnt(r):r=Gnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function xx(){return nx()}var Xhe=ex({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jtr=Xhe.logger;function Oo(t){return Xhe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ox({logger:qc.info,...t})}var L8=Sx;function U8(t={}){return Nx(t)}import P8 from"node:os";import ad from"node:process";function Zhe(){return"User-Agent"}async function efe(t){if(ad&&ad.versions){let e=`${P8.type()} ${P8.release()}; ${P8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var Rx="1.24.0";function nst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function tfe(){return Zhe()}async function Dx(t){let e=new Map;e.set("core-rest-pipeline",Rx),await efe(e);let r=nst(e);return t?`${t} ${r}`:r}var rfe=tfe(),nfe="userAgentPolicy";function O8(t={}){let e=Dx(t.userAgentPrefix);return{name:nfe,async sendRequest(r,n){return r.headers.has(rfe)||r.headers.set(rfe,await e),n(r)}}}var sfe=Symbol("rawContent");function H8(t){return typeof t[sfe]=="function"}function ife(t){return H8(t)?t[sfe]():t}var kx=uB;function G8(){let t=Tx();return{name:kx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ife(n.body));return t.sendRequest(e,r)}}}var q8=Qx;function Y8(){return wx()}function V8(t={}){return Ax(t)}function W8(){return ux()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var dst="The delay was aborted.";function l0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??dst})}function cd(t){if(Sf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function ofe(t){return Sf(t)}function d0(){return wf()}var Jt=XT;function Ad(t){return k8(t)}function j8(t,e){return bx(t,e)}var afe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:afe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return lx(t)}function X8(t){return dx(t)}var h0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function cfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(h0.span,t.span)),t.namespace&&(e=e.setValue(h0.namespace,t.namespace)),e}var Z8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var ufe=ge(Afe(),1),_x=ufe.state;function hst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function fst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:hst(),tracingContext:cfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return _x.instrumenterImplementation||(_x.instrumenterImplementation=fst()),_x.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Mit(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Dit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Vfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Vfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Yfe(t,i);continue}else if(t[i+1]==="?"){if(i=qfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=_it(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Gfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Gfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Gfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function qfe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return tn("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Yfe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var xit='"',Rit="'";function Dit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===xit||t[e]===Rit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var kit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vfe(t,e){let r=qx(t,kit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Fit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function vit(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function _it(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vit(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Fit(t){return m4(t)}function Mit(t){return m4(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bB(t){return t.startIndex+t[1].length}var Wfe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Jfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},zfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=C0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=w4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=S4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new di(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=C0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=C0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=cot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=aot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function fot(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function got(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function pot(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function mot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Eot(t,e,r=">"){Line truncated
`;function Sot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Ige(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=wot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new $i(a)):a instanceof $i&&n.push(a)}let s=Sot(t,e),i=new Wc;return yge(t,e,r,i,n,s)}function yge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Ige(u,!1,e,n,i),h=Not(A[":@"],e);n.push(d,h);let f=xot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=eR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Zx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Cge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Cge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Bge(A[u],e):I=yge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Not(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=dd(t[s]),n=!0}return n?r:null}function Bge(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=k4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Tot(s[":@"],e),a=Bge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Tot(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${dd(s)}"`}return r}function k4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Cge(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Ige(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function xot(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function R4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function v4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Rot={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function fi(t){if(this.options=Object.assign({},Rot,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new $i(r)):r instanceof $i&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function git(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function u4(t,e,r,n,s){return!r.sanitizeName||Rf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return a4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yc,r=git(t,this.options);return this.j2x(t,0,e,r).val}};ui.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:u4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=u4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=u4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ud(e)+'"'};function pit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=ud(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=ud(t[n]),r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Dot(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Dot(t,this.options);return this.j2x(t,0,e,r).val}};fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:_4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=_4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};fi.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+dd(e)+'"'};function kot(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}fi.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=dd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=dd(t[n]),r=!0)}return r?e:null};fi.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>zx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Vx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Wx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends vf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new mB(e,r,this)}computeHMACSHA256(e){return Tit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var _f=class extends Error{constructor(e){super(e),this.name="AbortError"}};var mn=Mo("storage-common");var Lo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Lo||(Lo={}));var dd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xit=new _f("The operation was aborted."),EB=class extends Vc{retryOptions;constructor(e,r,n=dd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:dd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):dd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:dd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:dd.maxRetryDelayInMs):dd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:dd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:dd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Yx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ld(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(mn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(mn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return mn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return mn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return mn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return mn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(mn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Lo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return mn.info(`RetryPolicy: Delay for ${s}ms`),Jx(s,n,xit)}};var CB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new EB(e,r,this.retryOptions)}};var Rit="storageBrowserPolicy";function Rfe(){return{name:Rit,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ld(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var Dit="StorageCorrectContentLengthPolicy";function Dfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Dit,async sendRequest(e,r){return t(e),r(e)}}}var kit="storageRetryPolicy",l0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},vit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],_it=new _f("The operation was aborted.");function kfe(t={}){let e=t.retryPolicyType??l0.retryPolicyType,r=t.maxTries??l0.maxTries,n=t.retryDelayInMs??l0.retryDelayInMs,s=t.maxRetryDelayInMs??l0.maxRetryDelayInMs,i=t.secondaryHost??l0.secondaryHost,o=t.tryTimeoutInMs??l0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return mn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of vit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>lR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=cR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=AR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return Yot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var yn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vot=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=aR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(yn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(yn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return yn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return yn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return yn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(yn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return yn.info(`RetryPolicy: Delay for ${s}ms`),uR(s,n,Vot)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var Wot="storageBrowserPolicy";function Nge(){return{name:Wot,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var Jot="StorageCorrectContentLengthPolicy";function Tge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jot,async sendRequest(e,r){return t(e),r(e)}}}var zot="storageRetryPolicy",y0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},jot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Kot=new Lf("The operation was aborted.");function xge(t={}){let e=t.retryPolicyType??y0.retryPolicyType,r=t.maxTries??y0.maxTries,n=t.retryDelayInMs??y0.retryDelayInMs,s=t.maxRetryDelayInMs??y0.maxRetryDelayInMs,i=t.secondaryHost??y0.secondaryHost,o=t.tryTimeoutInMs??y0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return yn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of jot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Fit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>zx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Vx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Wx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Mit,async sendRequest(i,o){return e(i),o(i)}}}var Lit="storageRequestFailureDetailsParserPolicy";function vfe(){return{name:Lit,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as Uit}from"node:crypto";var jx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Uit("sha256",this.key).update(e,"utf8").digest("base64")}};var Kx="12.31.0",$x="2026-02-06";var Xx="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ya="",p4="*",Pit=1*1024*1024;var Oit=4*Pit;var _fe="AES256",Ffe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Mfe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Lfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Ufe="BlobUsesCustomerSpecifiedEncryption",Pfe="BlobDoesNotUseCustomerSpecifiedEncryption",Ofe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var IB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new IB([],e);return r._credential=t,r}function Hit(t){let e=[Git,Hfe,qit,Yit,Vit,Wit,zit];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Jit(s));return{wrappedPolicies:V8(r),afterRetry:n}}}}function m4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?W8(e):f4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Kx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=rB({...r,loggingOptions:{additionalAllowedHeaderNames:Mfe,additionalAllowedQueryParameters:Lfe,logger:Px.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ux,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:d4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:C8}),s.addPolicy(Dfe()),s.addPolicy(kfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(vfe()),s.addPolicy(Rfe());let a=Hit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E4(t);Yi(c)?s.addPolicy(s0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new ja(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Gat(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?za(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function qat(t,e){if(t=qf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?za(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Yat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?za(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Vat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?za(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Wat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?za(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Jat(t,e){if(t=qf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=cA.parse(t.permissions.toString()).toString():s=AA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Gf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?za(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Gf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function qf(t){let e=t.version?t.version:$x;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var kB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=r0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ya||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ya||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ya||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ya||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ya||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ya||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ya||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ya||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};y0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var pct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},VH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function epe(t,e,r){return pct(this,void 0,void 0,function*(){var n;let s=new Ka(t),i=s.getBlockBlobClient(),o=new VH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as rpe from"buffer";import*as uA from"fs";import*as npe from"stream";import*as spe from"util";var JR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function zR(t){return t?t>=200&&t<300:!1}function mct(t){return t?t>=500:!0}function Ect(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Cct(t){return JR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function tpe(t,e,r){return JR(this,arguments,void 0,function*(n,s,i,o=RT,a=DT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!mct(d)))return l;if(d&&(h=Ect(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield Cct(a),u++}throw Error(`${n} failed: ${A}`)})}function HB(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield tpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof vc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function B0(t,e){return JR(this,arguments,void 0,function*(r,n,s=RT,i=DT){return yield tpe(r,n,o=>o.message.statusCode,s,i)})}var Go=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Ict(t,e){return Go(this,void 0,void 0,function*(){yield spe.promisify(npe.pipeline)(t.message,e)})}var jR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return di(this,void 0,void 0,function*(){let n=new wct(t),s=cpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ope(t,e,s):s.concurrentBlobDownloads?yield ipe(t,e,s):yield KR(t,e):yield KR(t,e)})}function gpe(t,e,r){return di(this,void 0,void 0,function*(){let n=zH(),s=Jm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield HB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(qB("caches"),i)}))})}function hpe(t,e){return`bytes ${t}-${e}/*`}function xct(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hpe(n,s)},o=yield B0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!zR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Rct(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Uc(r),i=qB(`caches/${e.toString()}`),o=b0.openSync(r,"r"),a=WH(n),c=F3("uploadConcurrency",a.uploadConcurrency),A=F3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield xct(t,i,()=>b0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{b0.closeSync(o)}})}function Dct(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield HB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(qB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return di(this,void 0,void 0,function*(){if(WH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield epe(r,e,n)}else{let i=zH();H("Upload cache"),yield Rct(i,t,e,n),H("Commiting cache");let o=Uc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Dct(i,t,o);if(!zR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var cme=fe(H9(),1),rn=fe(At(),1),ji=fe(At(),1),$f=fe(At(),1),Xf=fe(At(),1),Zf=fe(At(),1);var V9=fe(At(),1),W9=fe(At(),1),ime=fe(At(),1),ome=fe(At(),1),ame=fe(At(),1);var G9=fe(At(),1),q9=fe(At(),1),rme=fe(At(),1),nme=fe(At(),1),sme=fe(At(),1),Y9=class extends sme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,nme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},LD=new Y9;var J9=class extends ame.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>LD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,ome.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ime.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(LD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)LD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var P0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},yd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},OD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function dme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function dG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function hme(){return GB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function HD(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=GB();return H(`Cache service version: ${A}`),dme(s),A==="v2"?yield zut(s,i,o,a,c):yield Jut(s,i,o,a,c)})}function Jut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)dG(d);let u=yield qy(),l="";try{let d=yield fpe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=ib.join(yield Hy(),rd(u)),H(`Archive Path: ${l}`),yield jH(d.archiveLocation,l,a),Pa()&&(yield sb(l,u));let h=Uc(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield uG(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof vc&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):We(`Failed to restore: ${d.message}`)}finally{try{yield Gy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function zut(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)dG(l);let u="";try{let l=aG(),d=yield qy(),h={key:i,restoreKeys:o,version:Jm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=ib.join(yield Hy(),rd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield jH(f.signedDownloadUrl,u,a);let I=Uc(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pa()&&(yield sb(u,d)),yield uG(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof vc&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):We(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Gy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function GD(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){let a=GB();return H(`Cache service version: ${a}`),dme(n),dG(s),a==="v2"?yield Kut(n,s,i,o):yield jut(n,s,i,o)})}function jut(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield qy(),h=-1,f=yield _3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield Hy(),I=ib.join(p,rd(d));H(`Archive Path: ${I}`);try{yield lG(p,f,d),Pa()&&(yield sb(I,d));let m=10*1024*1024*1024,C=Uc(I);if(H(`File Size: ${C}`),C>m&&!JH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield gpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new yd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield KH(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===yd.name Line truncated
See ${r.getDocumentationLink()}`;fme.push(n),df(n)}function gme(){wu("deprecation-collector_deprecations",JSON.stringify(fG)),wu("deprecation-collector_errors",JSON.stringify(fme))}import*as WD from"path";var pme="GRADLE_ACTION_ID";var KD=".setup-gradle",cb=class t{getDependencyGraphOption(){let e=dr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return pA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return Zut("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,mme())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return WD.resolve(Bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return eg("dependency-graph-exclude-projects")}getIncludeProjects(){return eg("dependency-graph-include-projects")}getExcludeConfigurations(){return eg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return eg("dependency-graph-include-configurations")}getPluginRepository(){return new JD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var O0=class{isCacheDisabled(){return hme()?pA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&pA("cache-read-only")}isCacheWriteOnly(){return pA("cache-write-only")}isCacheOverwriteExisting(){return pA("cache-overwrite-existing")}isCacheStrictMatch(){return pA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=ab("gradle-home-cache-cleanup");if(e!==void 0)return YD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Za=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return pA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return ab("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return ab("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return ab("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return ab("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new JD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(We("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},JD=class{getUrl(){return eg("gradle-plugin-repository-url")}getUsername(){return eg("gradle-plugin-repository-username")}getPassword(){return eg("gradle-plugin-repository-password")}},zD=class{getGradleVersion(){re Line truncated
`+n(i)+s(i),a=$ot("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>lR(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=cR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=AR(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Xot,async sendRequest(i,o){return e(i),o(i)}}}var Zot="storageRequestFailureDetailsParserPolicy";function Rge(){return{name:Zot,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as eat}from"node:crypto";var dR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return eat("sha256",this.key).update(e,"utf8").digest("base64")}};var hR="12.31.0",fR="2026-02-06";var gR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ja="",O4="*",tat=1*1024*1024;var rat=4*tat;var Dge="AES256",kge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vge=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],_ge=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Fge="BlobUsesCustomerSpecifiedEncryption",Mge="BlobDoesNotUseCustomerSpecifiedEncryption",Lge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function nat(t){let e=[sat,Uge,iat,oat,aat,cat,uat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Aat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${hR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:vge,additionalAllowedQueryParameters:_ge,logger:rR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:tR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(Tge()),s.addPolicy(xge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Rge()),s.addPolicy(Nge());let a=nat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(f0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Xa(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function sAt(t,e){if(t=Wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function iAt(t,e){if(t=Wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function oAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function aAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function cAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function AAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:fR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var WB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=d0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};D0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},g9=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new g9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Wo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MAt(t,e){return Wo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,O(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=C9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),gG=class extends s0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new gG;var EG=class extends a0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(e2.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var j0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=E9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ha()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ha()&&(yield Eb(l,h)),yield FG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),UG(s);let c=E9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ha()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},h2=class{getGradleVersion(){re Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new gb(i));return n.searchPaths.push(...EG(n.patterns)),n})}static stat(e,r,n){return wG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield q0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield q0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield q0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as SG from"crypto";import*as n2 from"fs";import*as Vme from"stream";import*as Wme from"util";import*as Jme from"path";var fdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},gdt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function zme(t,e){return fdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=SG.createHash("sha256"),f=0;try{for(var p=!0,I=gdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Jme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=SG.createHash("sha256");yield Wme.promisify(Vme.pipeline)(n2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var jme=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function NG(t,e){return jme(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function Kme(t){return jme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield NG(e,{followSymbolicLinks:i});return zme(o,r,s)})}import*as TG from"path";var pdt="Gradle User Home",Xme="BASIC_CACHE_PRIMARY_KEY",Zme="BASIC_CACHE_RESTORED_KEY",mdt="setup-java",e0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],i2=class{async restore(e,r){let n=t0e(e),s=await Edt();wu(Xme,s);try{let i=await HD(n,s);i?(wu(Zme,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){We(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=by(Xme),i=by(Zme);if(n.readOnly)return{status:"read-only",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=t0e(e);try{return await GD(o,s),Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return We(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[s2({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function s2(t){return{entryName:pdt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}funcLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${e0e}], make sure you have checked out the target repository`);return`${mdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Idt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",ydt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",RG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function s0e(t){return t.isCacheDisabled()?(xG("Cache is disabled: will not restore state from previous builds."),new RG):t.getCacheProvider()==="basic"?(xG(ydt),new i2):(xG(Idt),Bdt())}async function Bdt(){let t=bdt();return await import(Cdt(t).href)}function bdt(){let t=import.meta.dirname,e=n0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(r0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function xG(t){console.info(t)}import o2 from"fs";import i0e from"path";var a2=class{constructor(e){this.cacheFile=i0e.resolve(e,KD,"valid-wrappers.json")}load(){if(o2.existsSync(this.cacheFile))try{return JSON.parse(o2.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];o2.mkdirSync(i0e.dirname(this.cacheFile),{recursive:!0}),o2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var l0e=fe(A0e(),1);import*as u0e from"util";import*as c2 from"path";import*as A2 from"fs";var xdt=u0e.promisify(A2.readdir);async function d0e(t){return(await h0e(t)).filter(r=>(0,l0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>c2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function h0e(t){let e=await xdt(t),r=await Promise.all(e.map(async n=>{let s=c2.resolve(t,n),i=A2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?h0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Ddt={_useHtmlParser2:!1};function Y0(t,e){if(!t)return e??Ddt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var eq={};Sa(eq,{contains:()=>Q2,extract:()=>wht,html:()=>yht,merge:()=>M0e,parseHTML:()=>bht,root:()=>Qht,text:()=>lg,xml:()=>Bht});var Dd={};Sa(Dd,{DocumentPosition:()=>jo,append:()=>nht,appendChild:()=>rht,compareDocumentPosition:()=>k0e,existsOne:()=>R0e,filter:()=>j0,find:()=>I2,findAll:()=>aht,findOne:()=>y2,findOneChild:()=>oht,getAttributeValue:()=>Xdt,getChildren:()=>z0,getElementById:()=>lht,getElements:()=>uht,getElementsByClassName:()=>dht,getElementsByTagName:()=>ug,getElementsByTagType:()=>hht,getFeed:()=>ZG,getInnerHTML:()=>$dt,getName:()=>eht,getOuterHTML:()=>T0e,getParent:()=>x0e,getSiblings:()=>$G,getText:()=>m2,hasAttrib:()=>Zdt,hasChildren:()=>tr,innerText:()=>yb,isCDATA:()=>V0,isComment:()=>Ag,isDocument:()=>zo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>E2,prepend:()=>iht,prependChild:()=>sht,prevElementSibling:()=>C2,removeElement:()=>ju,removeSubsets:()=>fht,replaceElement:()=>tht,testElement:()=>Aht,textContent:()=>zu,uniqueSort:()=>xd});var Jo={};Sa(Jo,{CDATA:()=>PG,Comment:()=>FG,Directive:()=>_G,Doctype:()=>OG,ElementType:()=>bt,Root:()=>kG,Script:()=>MG,Style:()=>LG,Tag:()=>UG,Text:()=>vG,isTag:()=>DG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function DG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var kG=bt.Root,vG=bt.Text,_G=bt.Directive,FG=bt.Comment,MG=bt.Script,LG=bt.Style,UG=bt.Tag,PG=bt.CDATA,OG=bt.Doctype;var u2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return W0(this,e)}},mb=class extends u2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},EA=class extends mb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},og=class extends mb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ag=class extends mb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Eb=class extends u2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:m2(t.children):V0(t)?m2(t.children):pi(t)?t.data:""}function zu(t){return Array.isArray(t)?t.map(zu).join(""):tr(t)&&!Ag(t)?zu(t.children):pi(t)?t.data:""}function yb(t){return Array.isArray(t)?t.map(yb).join(""):tr(t)&&(t.type===bt.Tag||V0(t))?yb(t.children):pi(t)?t.data:""}function z0(t){return tr(t)?t.children:[]}function x0e(t){return t.parent||null}function $G(t){let e=x0e(t);if(e!=null)return z0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Xdt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Zdt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function eht(t){return t.name}function E2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function C2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function ju(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function tht(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function rht(t,e){if(ju(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function nht(t,e){ju(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function sht(t,e){if(ju(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function iht(t,e){ju(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function j0(t,e,r=!0,n=1/0){return I2(t,Array.isArray(e)?e:[e],r,n)}function I2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function oht(t,e){return e.find(t)}function y2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=y2(t,i.children,!0);if(o)return o}}return null}function R0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&R0e(t,r.children))}function aht(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var B2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function XG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function cht(t,e){return r=>t(r)||e(r)}function D0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(B2,r)?B2[r](n):XG(r,n)});return e.length===0?null:e.reduce(cht)}function Aht(t,e){let r=D0e(t);return r?r(e):!0}function uht(t,e,r,n=1/0){let s=D0e(t);return s?j0(s,e,r,n):[]}function lht(t,e,r=!0){return Array.isArray(e)||(e=[e]),y2(XG("id",t),e,r)}function ug(t,e,r=!0,n=1/0){return j0(B2.tag_name(t),e,r,n)}function dht(t,e,r=!0,n=1/0){return j0(XG("class",t),e,r,n)}function hht(t,e,r=!0,n=1/0){return j0(B2.tag_type(t),e,r,n)}function fht(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(jo||(jo={}));function k0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return jo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?jo.FOLLOWING|jo.CONTAINED_BY:jo.FOLLOWING:a===t?jo.PRECEDING|jo.CONTAINS:jo.PRECEDING}function xd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=k0e(e,r);return n&jo.PRECEDING?-1:n&jo.FOLLOWING?1:0}),t}function ZG(t){let e=b2(Cht,t);return e?e.name==="feed"?ght(e):pht(e):null}function ght(t){var e;let r=t.children,n={type:"atom",items:ug("entry",r).map(o=>{var a;let{children:c}=o,A={media:v0e(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=b2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Rd("summary",c)||Rd("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xb(i));return n.searchPaths.push(...YG(n.patterns)),n})}static stat(e,r,n){return XG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as ZG from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},_ht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=ZG.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=ZG.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var K0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function eq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield eq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as tq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Oht="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",nq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function iEe(t){return t.isCacheDisabled()?(rq("Cache is disabled: will not restore state from previous builds."),new nq):t.getCacheProvider()==="basic"?(rq(Oht),new b2):(rq(Pht),Hht())}async function Hht(){let t=Ght();return await import(Uht(t).href)}function Ght(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function rq(t){console.info(t)}import Q2 from"fs";import oEe from"path";var w2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(Q2.existsSync(this.cacheFile))try{return JSON.parse(Q2.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Q2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),Q2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as S2 from"path";import*as N2 from"fs";var zht=lEe.promisify(N2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>S2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await zht(t),r=await Promise.all(e.map(async n=>{let s=S2.resolve(t,n),i=N2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Kht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??Kht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Nq={};xa(Nq,{contains:()=>G2,extract:()=>Yft,html:()=>Oft,merge:()=>LEe,parseHTML:()=>Gft,root:()=>qft,text:()=>fg,xml:()=>Hft});var kd={};xa(kd,{DocumentPosition:()=>Zo,append:()=>Bft,appendChild:()=>yft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>U2,findAll:()=>Sft,findOne:()=>P2,findOneChild:()=>wft,getAttributeValue:()=>mft,getChildren:()=>sE,getElementById:()=>Rft,getElements:()=>xft,getElementsByClassName:()=>Dft,getElementsByTagName:()=>hg,getElementsByTagType:()=>kft,getFeed:()=>Sq,getInnerHTML:()=>pft,getName:()=>Cft,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>F2,hasAttrib:()=>Eft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>M2,prepend:()=>Qft,prependChild:()=>bft,prevElementSibling:()=>L2,removeElement:()=>Ku,removeSubsets:()=>vft,replaceElement:()=>Ift,testElement:()=>Tft,textContent:()=>ju,uniqueSort:()=>Rd});var $o={};xa($o,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var T2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return rE(this,e)}},kb=class extends T2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},vb=class extends T2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.le Line truncated
`:F2(t.children):tE(t)?F2(t.children):Ii(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):rr(t)&&!dg(t)?ju(t.children):Ii(t)?t.data:""}function Mb(t){return Array.isArray(t)?t.map(Mb).join(""):rr(t)&&(t.type===bt.Tag||tE(t))?Mb(t.children):Ii(t)?t.data:""}function sE(t){return rr(t)?t.children:[]}function REe(t){return t.parent||null}function Qq(t){let e=REe(t);if(e!=null)return sE(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function mft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Eft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Cft(t){return t.name}function M2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function L2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Ift(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function yft(t,e){if(Ku(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Bft(t,e){Ku(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function bft(t,e){if(Ku(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Qft(t,e){Ku(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function iE(t,e,r=!0,n=1/0){return U2(t,Array.isArray(e)?e:[e],r,n)}function U2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function wft(t,e){return e.find(t)}function P2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=P2(t,i.children,!0);if(o)return o}}return null}function DEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&DEe(t,r.children))}function Sft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var O2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function wq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Nft(t,e){return r=>t(r)||e(r)}function kEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(O2,r)?O2[r](n):wq(r,n)});return e.length===0?null:e.reduce(Nft)}function Tft(t,e){let r=kEe(t);return r?r(e):!0}function xft(t,e,r,n=1/0){let s=kEe(t);return s?iE(s,e,r,n):[]}function Rft(t,e,r=!0){return Array.isArray(e)||(e=[e]),P2(wq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return iE(O2.tag_name(t),e,r,n)}function Dft(t,e,r=!0,n=1/0){return iE(wq("class",t),e,r,n)}function kft(t,e,r=!0,n=1/0){return iE(O2.tag_type(t),e,r,n)}function vft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Zo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Zo||(Zo={}));function vEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=vEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Sq(t){let e=H2(Uft,t);return e?e.name==="feed"?_ft(e):Fft(e):null}function _ft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_Ee(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=H2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Xo=fe(kd(),1);var pq={};function mq(t,e){return t===Xo.default.falseFunc?Xo.default.falseFunc:r=>e.isTag(r)&&t(r)}function Eq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function gq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var fq=(t,e,r,n,s)=>{let i=s(e,gq(r),n);return i===Xo.default.trueFunc?t:i===Xo.default.falseFunc?Xo.default.falseFunc:o=>i(o)&&t(o)},M2={is:fq,matches:fq,where:fq,not(t,e,r,n,s){let i=s(e,gq(r),n);return i===Xo.default.falseFunc?t:i===Xo.default.trueFunc?Xo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Tb))?[pq]:void 0,c=s(e,o,a);if(c===Xo.default.falseFunc)return Xo.default.falseFunc;let A=mq(c,i);if(a&&c!==Xo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Eq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function yEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in M2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return M2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:F2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,IEe.parse)(A);return M2.is(t,u,r,n,s)}if(typeof c=="function")return hq(c,o,a,1),u=>c(u,a)&&t(u);if(o in sE)return sE[o](t,a,r,n);if(o in Rb){let u=Rb[o];return hq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Zo=fe(rE(),1);function Cq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function BEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Zo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Zo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Zo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),pEe[e.action](t,e,r)}case Zo.SelectorType.Pseudo:return yEe(t,e,r,n,s);case Zo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Zo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Cq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Cq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Cq(A,i));return!1};case Zo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Zo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Zo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Zo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Zo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function bEe(t,e,r){let n=L2(t,e,r);return mq(n,e.adapter)}function L2(t,e,r){let n=typeof t=="string"?(0,nc.parse)(t):t;return U2(n,e,r)}function QEe(t){return t.type===nc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(QEe)))}var uft={type:nc.SelectorType.Descendant},lft={type:"_flexibleDescendant"},dft={type:nc.SelectorType.Pseudo,name:"scope",data:null};function hft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===pq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(OEe,`\r
`)}}).toArray()}var Fq={};Sa(Fq,{extract:()=>Tgt});function Ngt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Tgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Ngt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Fd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Fd.prototype.cheerio="[cheerio object]";Fd.prototype.splice=Array.prototype.splice;Fd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Fd.prototype,cq,Dq,kq,vq,_q,Fq);function HEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=Y0(s),a=t(n,o,i,null);class c extends Fd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&Ko(u))return u;let f=Y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Ko(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Bb(u)?t(u,f,!1,null).children:xgt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?Bb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Ko(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,eq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function xgt(t){return!!t.name||t.type===Jo.Root||t.type===Jo.Text||t.type===Jo.Comment}var Rgt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Y2(t){return t>=55296&&t<=57343}function GEe(t){return t>=56320&&t<=57343}function qEe(t,e){return(t-55296)*1024+9216+e}function V2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function W2(t){return t>=64976&&t<=65007||Rgt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var ra=ge(vd(),1);var qq={};function Yq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Vq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function Gq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Hq=(t,e,r,n,s)=>{let i=s(e,Gq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},ek={is:Hq,matches:Hq,where:Hq,not(t,e,r,n,s){let i=s(e,Gq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(qb))?[qq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Yq(c,i);if(a&&c!==ra.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function BCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in ek))throw new Error(`Unknown pseudo-class :${o}(${a})`);return ek[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Z2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,yCe.parse)(A);return ek.is(t,u,r,n,s)}if(typeof c=="function")return Oq(c,o,a,1),u=>c(u,a)&&t(u);if(o in fE)return fE[o](t,a,r,n);if(o in Vb){let u=Vb[o];return Oq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(dE(),1);function Wq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function bCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),mCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return BCe(t,e,r,n,s);case na.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Wq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Wq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Wq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case na.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function QCe(t,e,r){let n=tk(t,e,r);return Yq(n,e.adapter)}function tk(t,e,r){let n=typeof t=="string"?(0,oc.parse)(t):t;return rk(n,e,r)}function wCe(t){return t.type===oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(wCe)))}var xgt={type:oc.SelectorType.Descendant},Rgt={type:"_flexibleDescendant"},Dgt={type:oc.SelectorType.Pseudo,name:"scope",data:null};function kgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===qq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(HCe,`\r
`)}}).toArray()}var cY={};xa(cY,{extract:()=>Jpt});function Wpt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Jpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Wpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Md=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,Fq,sY,iY,oY,aY,cY);function GCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=eE(s),a=t(n,o,i,null);class c extends Md{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&ea(u))return u;let f=eE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Lb(u)?t(u,f,!1,null).children:zpt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Lb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Nq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function zpt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var jpt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",N;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ck(t){return t>=55296&&t<=57343}function qCe(t){return t>=56320&&t<=57343}function YCe(t,e){return(t-55296)*1024+9216+e}function Ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function uk(t){return t>=64976&&t<=65007||jpt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},B_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var $g=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function gxe(t){if(t instanceof AggregateError){df("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof $g?(df(String(t)),t.stack&&Z(t.stack)):(df(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function pxe(t,e,r){if(!t.doValidateWrappers())return;let n=new a2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await fxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await eT("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new $g(`At least one Gradle Wrapper Jar failed validation!
`)}`}},H_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function _Re(t){if(t instanceof AggregateError){gf("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof ap?(gf(String(t)),t.stack&&Z(t.stack)):(gf(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function FRe(t,e,r){if(!t.doValidateWrappers())return;let n=new w2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await vRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await pT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new ap(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ho from"fs";import Xg from"path";function mxe(t,e,r){let n=Xg.resolve(e,KD);ho.mkdirSync(n,{recursive:!0}),okt(e),akt(t),Pa()&&ckt(e),r&&Kn("GRADLE_ENCRYPTION_KEY",r)}function okt(t){let e=Xg.resolve(t,"init.d");ho.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Akt("init-scripts",n),i=Xg.resolve(e,n);ho.writeFileSync(i,s)}}function akt(t){let e=ukt();if(e==null)return;let r=Xg.resolve(t,".m2"),n=Xg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=lkt(s,e);ho.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function ckt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import mo from"fs";import cp from"path";function MRe(t,e,r){let n=cp.resolve(e,g2);mo.mkdirSync(n,{recursive:!0}),Pvt(e),Ovt(t),Ha()&&Hvt(e),r&&Zn("GRADLE_ENCRYPTION_KEY",r)}function Pvt(t){let e=cp.resolve(t,"init.d");mo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Gvt("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function Ovt(t){let e=qvt();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=Yvt(s,e);mo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Hvt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Xg.resolve(t,"gradle.properties");if(ho.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function Akt(...t){let e=import.meta.dirname,r=Xg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function ukt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function Gvt(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function qvt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -280,49 +280,49 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function lkt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var cz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",dkt="GRADLE_USER_HOME";async function Exe(t,e,r){let n=await Cxe(),s=await fkt();return process.env[cz]?(Z("Gradle setup only performed on first gradle/actions step in workflow."),!1):(Kn(cz,!0),wu(cz,!0),wu(dkt,s),mxe(n,s,t.getCacheEncryptionKey()),await(await s0e(t)).restore(s,hkt(t)),await pxe(r,Bd(),s),await yme(e),!0)}function hkt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function fkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Bd();return uz.resolve(r,t)}let e=uz.resolve(await Cxe(),".gradle");if(Az.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Kn("GRADLE_USER_HOME",e),e;if(b_.platform()==="win32"&&e.startsWith("C:\\")&&Az.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Kn("GRADLE_USER_HOME",r),r}return Kn("GRADLE_USER_HOME",e),e}async function Cxe(){let t=await By("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),b_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}import*as eC from"fs";import*as Zxe from"os";import*as dh from"path";import*as dz from"crypto";import*as ep from"fs";var pkt=fe(Uy(),1);import*as ew from"path";var S_=fe(Uy(),1);import*as yxe from"stream";import*as Bxe from"util";import{ok as Ekt}from"assert";var Ixe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Q_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Ixe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Ixe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},w_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Ckt=process.platform==="win32",xQr=process.platform==="darwin",Ikt="actions/tool-cache";function bxe(t,e,r,n){return Zg(this,void 0,void 0,function*(){e=e||ew.join(wxe(),dz.randomUUID()),yield lf(ew.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=lz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=lz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Q_(s,i,o).execute(()=>Zg(this,void 0,void 0,function*(){return yield ykt(t,e||"",r,n)}),c=>!(c instanceof w_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function ykt(t,e,r,n){return Zg(this,void 0,void 0,function*(){if(ep.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Ikt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new w_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Bxe.promisify(yxe.pipeline),c=lz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,ep.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield fce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function Qxe(t,e){return Zg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield Qkt(e),Ckt?yield Bkt(t,e):yield bkt(t,e),e})}function Bkt(t,e){return Zg(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\nLine truncated
`," Line feed \\n"]]),fRe=new Map([...$z,["\\"," Backslash \\"],["/"," Forward slash /"]]);function gRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of fRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function Yvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Vvt="GRADLE_USER_HOME",Wvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await zvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Vvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Wvt,o??""),await(await iEe(t)).restore(s,Jvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function Jvt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function zvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(G_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),G_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var Kvt=ge(Xy(),1);import*as pw from"path";var V_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Xvt}from"assert";var PRe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},q_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return PRe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Y_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Zvt=process.platform==="win32",C1r=process.platform==="darwin",e_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new q_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield t_t(t,e||"",r,n)}),c=>!(c instanceof Y_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function t_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(e_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Y_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),vDe=new Map([...Pj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function _De(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of vDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(fRe.values()).toString()}
Invalid characters include: ${Array.from(vDe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function Xz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of $z)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function Oj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Pj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from($z.values()).toString()}
Invalid characters include: ${Array.from(Pj.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var CRe=fe(ERe(),1);function YA(){return`@actions/artifact-${CRe.version}`}var sC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},gl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},pl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ml=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ml.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var np=class extends Error{};np.prototype.name="InvalidTokenError";function rvt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function nvt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return rvt(e)}catch{return atob(e)}}function IRe(t,e){if(typeof t!="string")throw new np("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new np(`Invalid token specified: missing part #${r+1}`);let s;try{s=nvt(n)}catch(i){throw new np(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new np(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var R_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=T_(),e=IRe(t);if(!e.scp)throw R_;let r=e.scp.split(" ");if(r.length===0)throw R_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw R_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw R_}function yRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ua(r),Ua(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BRe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&yRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&yRe(t.signed_url)}var D_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Zz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=T_();this.baseUrl=nRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new Qu(i)])}request(e,r,n,s){return D_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>D_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return D_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(BRe(A),H(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(rp.isUsageErrorMessage(A.msg))throw new rp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&H(`Raw Body: ${s}`),a instanceof rp)throw a;if(ml.isNetworkErrorCode(a?.code))throw new ml(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return D_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Zz(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new x_(e)}import*as iC from"fs";import{normalize as bRe,resolve as QRe}from"path";function wRe(t){if(!iC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&We("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${M3e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield L3e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function O3e(){return ZC(this,arguments,void 0,function*(t=sRe()){return(yield _Vt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield D3e.mkdir(t,{recursive:!0})),t})}var MVt=5,LVt=[400,401,403,404,422];function eI(t,e=MVt,r=LVt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return H(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var H3e="6.0.0";function kp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}kp.VERSION=H3e;var Y3e=fe(G3e(),1);var UM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var UVt="0.0.0-development";async function q3e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function PVt(t,e,r,n){let s=new Y3e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(OVt.bind(null,t,e,r),n)}async function OVt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new UM(s.data.errors[0].message,500,{request:n,response:s});return q3e(t,e,i,n)}return s}function vp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",q3e.bind(null,r,t)),t.hook.wrap("request",PVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}vp.VERSION=UVt;var V3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function PM(t,e,r,n,s){return V3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Oa(s,c,vp,kp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new gl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new pl(`Artifact not found for name: ${t}
`)}var UDe=ge(LDe(),1);function YA(){return`@actions/artifact-${UDe.version}`}var pC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},El=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Cl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function M_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function L_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return M_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=L_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var j_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=J_(),e=PDe(t);if(!e.scp)throw j_;let r=e.scp.split(" ");if(r.length===0)throw j_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw j_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw j_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var K_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=J_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return K_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>K_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return K_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(Il.isNetworkErrorCode(a?.code))throw new Il(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return K_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new z_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield IWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var BWt=5,bWt=[400,401,403,404,422];function dI(t,e=BWt,r=bWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var o4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var nL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var QWt="0.0.0-development";async function c4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function wWt(t,e,r,n){let s=new A4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(SWt.bind(null,t,e,r),n)}async function SWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new nL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",c4e.bind(null,r,t)),t.hook.wrap("request",wWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=QWt;var u4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function sL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ga(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new El(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],H(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function W3e(t){return V3e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new pl(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],O(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function l4e(t){return u4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var J3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function z3e(t,e,r,n,s){return J3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(gf),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Oa(s,c,vp,kp),u=yield PM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new gl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function j3e(t){return J3e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new pl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],H(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var K3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},OM=aRe(),HM=100,HVt=Math.ceil(OM/HM);function $3e(t,e,r,n){return K3e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(gf),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Oa(a,d,vp,kp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f}),I=Math.ceil(p.total_count/HM),m=p.total_count;m>OM&&(We(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${OM}. Results will be incomplete as only the first ${OM} artifacts will be returned`),I=HVt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:HM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=Z3e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function X3e(){return K3e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=Z3e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function Z3e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var B1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},GVt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},tI=class{uploadArtifact(e,r,n,s){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;return KOe(e,r,n,s)}catch(i){throw We(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ga(s,c,qp,Gp),u=yield sL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new El(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var g4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},iL=SDe(),oL=100,NWt=Math.ceil(iL/oL);function p4e(t,e,r,n){return g4e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ga(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f}),E=Math.ceil(g.total_count/oL),m=g.total_count;m>iL&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${iL}. Results will be incomplete as only the first ${iL} artifacts will be returned`),E=NWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var U1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},TWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw je(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=GVt(r,["findBy"]);return U3e(e,n,s,i,o)}return P3e(e,r)}catch(n){throw We(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=TWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw je(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return $3e(r,n,s,i,e?.latest)}return X3e(e?.latest)}catch(r){throw We(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return p4e(r,n,s,i,e?.latest)}return m4e(e?.latest)}catch(r){throw je(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return PM(e,n,s,i,o)}return W3e(e)}catch(n){throw We(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return sL(e,n,s,i,o)}return l4e(e)}catch(n){throw je(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return z3e(e,i,n,s,o)}return j3e(e)}catch(n){throw We(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return h4e(e,i,n,s,o)}return f4e(e)}catch(n){throw je(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var TRr=new tI;import*as zX from"path";import jX from"fs";var qVt="dependency-graph_";async function e8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await YVt(t);return}Z("Enabling dependency graph generation"),Kn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",t7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Bd()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&Kn(t,e)}async function YVt(t){if(r7t()){Z("Dependency graph not supported in the ACT environment.");return}try{await JVt(await VVt(t))}catch(e){ZVt(t,"download-and-submit",e)}}async function VVt(t){let e=ri.payload.workflow_run?{token:$D(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new tI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(qVt)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return WVt()}async function WVt(){let r=(await(await NG(`${KVt()}/**/*.json`)).glob()).filter(n=>!$Vt(n));return r.forEach(XVt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function JVt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await jVt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=zVt(e,r)),r}}function zVt(t,e){let n=`Dependency submission failed for ${t8e(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var E2r=new hI;import*as UZ from"path";import PZ from"fs";var xWt="dependency-graph_";async function C4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await RWt(t);return}Z("Enabling dependency graph generation"),Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",HWt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bd()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Zn(t,e)}async function RWt(t){if(GWt()){Z("Dependency graph not supported in the ACT environment.");return}try{await vWt(await DWt(t))}catch(e){PWt(t,"download-and-submit",e)}}async function DWt(t){let e=oi.payload.workflow_run?{token:p2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new hI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(xWt)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return kWt()}async function kWt(){let r=(await(await eq(`${MWt()}/**/*.json`)).glob()).filter(n=>!LWt(n));return r.forEach(UWt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function vWt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await FWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=_Wt(e,r)),r}}function _Wt(t,e){let n=`Dependency submission failed for ${I4e(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function jVt(t){let e=e7t(),r=jX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=t8e(t);wce(`Submitted ${i}: ${s.data.message}`)}function KVt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function $Vt(t){let e=`${t}.processed`;return jX.existsSync(e)}function XVt(t){let e=`${t}.processed`;jX.writeFileSync(e,"")}function ZVt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new $g(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function e7t(){return Oa($D())}function t8e(t){let e=Bd();return zX.relative(e,t)}function t7t(){let t=ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function r7t(){return process.env.ACT!==void 0}function s7t(t=process.platform){return t==="win32"?50:0}async function r8e(t=process.platform){let e=s7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function i7t(){try{ob()==="gradle/gradle-build-action"&&VD("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Eme("gradle/actions/setup-gradle"),await Exe(new O0,new Za,new jD),await e8e(new cb);let t=new zD;t.verifyNoArguments(),await gz(t.getGradleVersion()),gme()}catch(t){gxe(t)}await r8e()}i7t();export{i7t as run};
`:n}async function FWt(t){let e=OWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function MWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function LWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function UWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function PWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function OWt(){return Ga(p2())}function I4e(t){let e=bd();return UZ.relative(e,t)}function HWt(){let t=oi;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function GWt(){return process.env.ACT!==void 0}function YWt(t=process.platform){return t==="win32"?50:0}async function y4e(t=process.platform){let e=YWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function VWt(){try{Ib()==="gradle/gradle-build-action"&&u2("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),C0e("gradle/actions/setup-gradle"),await LRe(new K0,new rc,new f2),await C4e(new Bb);let t=new h2;t.verifyNoArguments(),await nj(t.getGradleVersion()),p0e()}catch(t){_Re(t)}await y4e()}VWt();export{VWt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+176 -176
View File
@@ -1,120 +1,120 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var m3e=Object.create;var gM=Object.defineProperty;var E3e=Object.getOwnPropertyDescriptor;var C3e=Object.getOwnPropertyNames;var I3e=Object.getPrototypeOf,y3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ba=(t,e)=>{for(var r in e)gM(t,r,{get:e[r],enumerable:!0})},B3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of C3e(e))!y3e.call(t,s)&&s!==r&&gM(t,s,{get:()=>e[s],enumerable:!(n=E3e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?m3e(I3e(t)):{},B3e(e||!t||!t.__esModule?gM(r,"default",{value:t,enumerable:!0}):r,t));var eZ=E(Sp=>{"use strict";var yYt=b("net"),T3e=b("tls"),EM=b("http"),$X=b("https"),x3e=b("events"),BYt=b("assert"),R3e=b("util");Sp.httpOverHttp=D3e;Sp.httpsOverHttp=k3e;Sp.httpOverHttps=v3e;Sp.httpsOverHttps=_3e;function D3e(t){var e=new $A(t);return e.request=EM.request,e}function k3e(t){var e=new $A(t);return e.request=EM.request,e.createSocket=XX,e.defaultPort=443,e}function v3e(t){var e=new $A(t);return e.request=$X.request,e}function _3e(t){var e=new $A(t);return e.request=$X.request,e.createSocket=XX,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=ZX(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}R3e.inherits($A,x3e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=CM({request:e},i.options,ZX(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=CM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),yl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){yl("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){yl("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return yl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),yl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};$A.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function XX(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=CM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=T3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function ZX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function CM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var yl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?yl=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:yl=function(){};Sp.debug=yl});var IM=E((QYt,tZ)=>{tZ.exports=eZ()});var Ir=E((wYt,rZ)=>{rZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((SYt,NZ)=>{"use strict";var nZ=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nZ]===!0}[nZ]=!0},sZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),yM=class extends yr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[sZ]===!0}[sZ]=!0},iZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),BM=class extends yr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[iZ]===!0}[iZ]=!0},oZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),bM=class extends yr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[oZ]===!0}[oZ]=!0},aZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),QM=class extends yr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[aZ]===!0}[aZ]=!0},cZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),wM=class extends yr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function K4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(_4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function $4e(){return"allowed"}function X4e(){return"success"}function Z4e(){return"success"}function e6e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function t6e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&pL(t.origin)&&!pL(fI(t))&&(e=null);break;case"same-origin":Z1(t,fI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Mp(t,e){return t}function r6e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Mp(t.domainLookupStartTime,r),domainLookupEndTime:Mp(t.domainLookupEndTime,r),connectionStartTime:Mp(t.connectionStartTime,r),connectionEndTime:Mp(t.connectionEndTime,r),secureConnectionStartTime:Mp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function n6e(t){return Mp(P4e.now(),t)}function s6e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Hee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function i6e(t){return{referrerPolicy:t.referrerPolicy}}function o6e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Fee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=gL(r),s=gL(r,!0);n.toString().length>4096&&(n=s);let i=Z1(t,n),o=hI(n)&&!hI(t.url);switch(e){case"origin":return s??gL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=fI(t);return Z1(n,a)?n:hI(n)&&!hI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function gL(t,e){return _h(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function hI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function a6e(t,e){if(X1===void 0)return!0;let r=Gee(e);if(r==="no metadata"||r.length===0)return!0;let n=A6e(r),s=u6e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=X1.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),l6e(c,a))return!0}return!1}var c6e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Gee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=c6e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Lee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function A6e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function u6e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function l6e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function d6e(t){}function Z1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function h6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function f6e(t){return t.controller.state==="aborted"}function g6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function p6e(t){return G4e[t.toLowerCase()]??t}function m6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return _h(typeof e=="string"),e}var E6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function qee(t,e,r=0,n=1){class s{ Line truncated
`);function z6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function j6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function K6e(t,e){tS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&rS(t,W6e,i)||i.position===t.length-4&&rS(t,J6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=$6e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",z6e(u)||(u=""),h=new Y6e([d],A,{type:u})):h=P6e(Buffer.from(d)),tS(tte(c)),tS(typeof h=="string"&&tte(h)||H6e(h)),s.push(G6e(c,h,A))}}function $6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Up(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bL(o,!0,!0,a=>a===9||a===32),!O6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Up(a=>a===32||a===9,t,e),U6e(o)){case"content-disposition":{if(r=n=null,!rS(t,V6e,e)||(e.position+=17,r=ste(t,e),r===null))return"failure";if(rS(t,nte,e)){let a=e.position+nte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ste(t,e),n===null))return"failure"}break}case"content-type":{let a=Up(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),s=rte(a);break}case"content-transfer-encoding":{let a=Up(c=>c!==10&&c!==13,t,e);a=bL(a,!1,!0,c=>c===9||c===32),i=rte(a);break}default:Up(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function ste(t,e){tS(t[e.position-1]===34);let r=Up(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Up(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function bL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function rS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}ite.exports={multipartFormDataParser:K6e,validateBoundary:j6e}});var Hp=E(($Yt,pte)=>{"use strict";var mI=lt(),{ReadableStreamFrom:X6e,isBlobLike:ate,isReadableStreamLike:Z6e,readableStreamClose:e5e,createDeferredPromise:t5e,fullyReadBody:r5e,extractMimeType:n5e,utf8DecodeBytes:ute}=wi(),{FormData:cte}=pI(),{kState:Op}=Bl(),{webidl:s5e}=Jn(),{Blob:i5e}=b("node:buffer"),QL=b("node:assert"),{isErrored:lte,isDisturbed:o5e}=b("node:stream"),{isArrayBuffer:a5e}=b("node:util/types"),{serializeAMimeType:c5e}=Js(),{multipartFormDataParser:A5e}=ote(),wL;try{let t=b("node:crypto");wL=e=>t.randomInt(0,e)}catch{wL=t=>Math.floor(Math.random(t))}var nS=new TextEncoder;function u5e(){}var dte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,hte;dte&&(hte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!o5e(e)&&!lte(e)&&e.cancel("Response object has been garbage collected").catch(u5e)}));function fte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:ate(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?nS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>e5e(c))},start(){},type:"bytes"}),QL(Z6e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(a5e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(mI.isFormDataLike(t)){let c=`----formdata-undici-0${`${wL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=nS.encode(A+`; name="${u(l(I))}"\r
var L8e=Object.create;var FM=Object.defineProperty;var U8e=Object.getOwnPropertyDescriptor;var P8e=Object.getOwnPropertyNames;var O8e=Object.getPrototypeOf,H8e=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Qa=(t,e)=>{for(var r in e)FM(t,r,{get:e[r],enumerable:!0})},G8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P8e(e))!H8e.call(t,s)&&s!==r&&FM(t,s,{get:()=>e[s],enumerable:!(n=U8e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?L8e(O8e(t)):{},G8e(e||!t||!t.__esModule?FM(r,"default",{value:t,enumerable:!0}):r,t));var VZ=C(Lp=>{"use strict";var l7t=Q("net"),z8e=Q("tls"),PM=Q("http"),GZ=Q("https"),j8e=Q("events"),d7t=Q("assert"),K8e=Q("util");Lp.httpOverHttp=$8e;Lp.httpsOverHttp=X8e;Lp.httpOverHttps=Z8e;Lp.httpsOverHttps=e4e;function $8e(t){var e=new $A(t);return e.request=PM.request,e}function X8e(t){var e=new $A(t);return e.request=PM.request,e.createSocket=qZ,e.defaultPort=443,e}function Z8e(t){var e=new $A(t);return e.request=GZ.request,e}function e4e(t){var e=new $A(t);return e.request=GZ.request,e.createSocket=qZ,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||PM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=YZ(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}K8e.inherits($A,j8e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=OM({request:e},i.options,YZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=OM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Ql("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){Ql("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){Ql("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return Ql("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Ql(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};$A.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function qZ(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=OM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=z8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function YZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function OM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Ql;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ql=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Ql=function(){};Lp.debug=Ql});var HM=C((f7t,WZ)=>{WZ.exports=VZ()});var Br=C((g7t,JZ)=>{JZ.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var _t=C((p7t,Eee)=>{"use strict";var zZ=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),GM=class extends br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jZ]===!0}[jZ]=!0},KZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qM=class extends br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KZ]===!0}[KZ]=!0},$Z=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),YM=class extends br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[$Z]===!0}[$Z]=!0},XZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[XZ]===!0}[XZ]=!0},ZZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function p5e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(e5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function m5e(){return"allowed"}function E5e(){return"success"}function C5e(){return"success"}function I5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function y5e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&LL(t.origin)&&!LL(NI(t))&&(e=null);break;case"same-origin":pS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Jp(t,e){return t}function B5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Jp(t.domainLookupStartTime,r),domainLookupEndTime:Jp(t.domainLookupEndTime,r),connectionStartTime:Jp(t.connectionStartTime,r),connectionEndTime:Jp(t.connectionEndTime,r),secureConnectionStartTime:Jp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function b5e(t){return Jp(i5e.now(),t)}function Q5e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function kte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function w5e(t){return{referrerPolicy:t.referrerPolicy}}function S5e(t){let e=t.referrerPolicy;_h(e);let r=null;if(t.referrer==="client"){let a=Ste();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=ML(r),s=ML(r,!0);n.toString().length>4096&&(n=s);let i=pS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??ML(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=NI(t);return pS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function ML(t,e){return _h(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function SI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function N5e(t,e){if(gS===void 0)return!0;let r=vte(e);if(r==="no metadata"||r.length===0)return!0;let n=x5e(r),s=R5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=gS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),D5e(c,a))return!0}return!1}var T5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function vte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=T5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Tte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function x5e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function R5e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function D5e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function k5e(t){}function pS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function v5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function _5e(t){return t.controller.state==="aborted"}function F5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function M5e(t){return c5e[t.toLowerCase()]??t}function L5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return _h(typeof e=="string"),e}var U5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function _te(t,e,r=0,n=1){class s{ Line truncated
`);function fHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function gHe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function pHe(t,e){ES(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&CS(t,dHe,i)||i.position===t.length-4&&CS(t,hHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=mHe(t,i);if(a==="failure")return"failure";let{name:c,filename:A,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;A!==null?(u??="text/plain",fHe(u)||(u=""),h=new uHe([d],A,{type:u})):h=iHe(Buffer.from(d)),ES(Wte(c)),ES(typeof h=="string"&&Wte(h)||aHe(h)),s.push(cHe(c,h,A))}}function mHe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=jp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YL(o,!0,!0,a=>a===9||a===32),!oHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jp(a=>a===32||a===9,t,e),sHe(o)){case"content-disposition":{if(r=n=null,!CS(t,lHe,e)||(e.position+=17,r=jte(t,e),r===null))return"failure";if(CS(t,zte,e)){let a=e.position+zte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=jte(t,e),n===null))return"failure"}break}case"content-type":{let a=jp(c=>c!==10&&c!==13,t,e);a=YL(a,!1,!0,c=>c===9||c===32),s=Jte(a);break}case"content-transfer-encoding":{let a=jp(c=>c!==10&&c!==13,t,e);a=YL(a,!1,!0,c=>c===9||c===32),i=Jte(a);break}default:jp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function jte(t,e){ES(t[e.position-1]===34);let r=jp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function jp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function YL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function CS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}Kte.exports={multipartFormDataParser:pHe,validateBoundary:gHe}});var Xp=C((H7t,are)=>{"use strict";var RI=lt(),{ReadableStreamFrom:EHe,isBlobLike:Xte,isReadableStreamLike:CHe,readableStreamClose:IHe,createDeferredPromise:yHe,fullyReadBody:BHe,extractMimeType:bHe,utf8DecodeBytes:tre}=Ri(),{FormData:Zte}=xI(),{kState:$p}=wl(),{webidl:QHe}=Kn(),{Blob:wHe}=Q("node:buffer"),VL=Q("node:assert"),{isErrored:rre,isDisturbed:SHe}=Q("node:stream"),{isArrayBuffer:NHe}=Q("node:util/types"),{serializeAMimeType:THe}=$s(),{multipartFormDataParser:xHe}=$te(),WL;try{let t=Q("node:crypto");WL=e=>t.randomInt(0,e)}catch{WL=t=>Math.floor(Math.random(t))}var IS=new TextEncoder;function RHe(){}var nre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sre;nre&&(sre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SHe(e)&&!rre(e)&&e.cancel("Response object has been garbage collected").catch(RHe)}));function ire(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Xte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?IS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>IHe(c))},start(){},type:"bytes"}),VL(CHe(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(NHe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${WL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=IS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(C),i+=C.byteLength}else{let C=nS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=IS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=nS.encode(`--${c}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(ate(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:X6e(t)}if((typeof s=="string"||mI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!lte(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function l5e(t,e=!1){return t instanceof ReadableStream&&(QL(!mI.isDisturbed(t),"The body has already been consumed."),QL(!t.locked,"The stream is locked.")),fte(t,e)}function d5e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function h5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function f5e(t){return{blob(){return Pp(this,r=>{let n=Ate(this);return n===null?n="":n&&(n=c5e(n)),new i5e([r],{type:n})},t)},arrayBuffer(){return Pp(this,r=>new Uint8Array(r).buffer,t)},text(){return Pp(this,ute,t)},json(){return Pp(this,p5e,t)},formData(){return Pp(this,r=>{let n=Ate(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=A5e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new cte;return i[Op]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new cte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Pp(this,r=>new Uint8Array(r),t)}}}function g5e(t){Object.assign(t.prototype,f5e(t))}async function Pp(t,e,r){if(s5e.brandCheck(t,r),gte(t))throw new TypeError("Body is unusable: Body has already been read");h5e(t[Op]);let n=t5e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Op].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await r5e(t[Op].body,i,s),n.promise)}function gte(t){let e=t[Op].body;return e!=null&&(e.stream.locked||mI.isDisturbed(e.stream))}function p5e(t){return JSON.parse(ute(t))}function Ate(t){let e=t[Op].headersList,r=n5e(e);return r==="failure"?null:r}pte.exports={extractBody:fte,safelyExtractBody:l5e,cloneBody:d5e,mixinBody:g5e,streamRegistry:hte,hasFinalizationRegistry:dte,bodyUnusable:gte}});var Nte=E((XYt,Ste)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:mte}=Tp(),SL=aL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:m5e,RequestAbortedError:bte,HeadersTimeoutError:E5e,HeadersOverflowError:C5e,SocketError:AS,InformationalError:Gp,BodyTimeoutError:I5e,HTTPParserError:y5e,ResponseExceededMaxSizeError:B5e}=Lt(),{kUrl:Qte,kReset:zs,kClient:RL,kParser:Fr,kBlocking:II,kRunning:os,kPending:b5e,kSize:Ete,kWriting:Ql,kQueue:ba,kNoRef:EI,kKeepAliveDefaultTimeout:Q5e,kHostHeader:w5e,kPendingIdx:S5e,kRunningIdx:Eo,kError:Co,kPipelining:aS,kSocket:qp,kKeepAliveTimeoutValue:uS,kMaxHeadersSize:NL,kKeepAliveMaxTimeout:N5e,kKeepAliveTimeoutThreshold:T5e,kHeadersTimeout:x5e,kBodyTimeout:R5e,kStrictContentLength:DL,kMaxRequests:Cte,kCounter:D5e,kMaxResponseSize:k5e,kOnError:v5e,kResume:bl,kHTTPContext:wte}=Ir(),pc=hee(),_5e=Buffer.alloc(0),sS=Buffer[Symbol.species],iS=$e.addListener,F5e=$e.removeAllListeners,TL;async function M5e(){let t=process.env.JEST_WORKER_ID?uL():void 0,e;try{e=await WebAssembly.compile(pee())}catch{e=await WebAssembly.compile(t||uL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onStatus(new sS(mc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderField(new sS(mc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onHeaderValue(new sS(mc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-Ec+mc.byteOffset;return fn.onBody(new sS(mc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var xL=null,kL=M5e();kL.catch();var fn=null,mc=null,oS=0,Ec=null,L5e=0,CI=1,Yp=2|CI,cS=4|CI,vL=8|L5e,_L=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[NL])&&e[NL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(pc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[w5e],i?p+=`connection: upgrade\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=IS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(Xte(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:EHe(t)}if((typeof s=="string"||RI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!rre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function DHe(t,e=!1){return t instanceof ReadableStream&&(VL(!RI.isDisturbed(t),"The body has already been consumed."),VL(!t.locked,"The stream is locked.")),ire(t,e)}function kHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function vHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _He(t){return{blob(){return Kp(this,r=>{let n=ere(this);return n===null?n="":n&&(n=THe(n)),new wHe([r],{type:n})},t)},arrayBuffer(){return Kp(this,r=>new Uint8Array(r).buffer,t)},text(){return Kp(this,tre,t)},json(){return Kp(this,MHe,t)},formData(){return Kp(this,r=>{let n=ere(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=xHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Zte;return i[$p]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Zte;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Kp(this,r=>new Uint8Array(r),t)}}}function FHe(t){Object.assign(t.prototype,_He(t))}async function Kp(t,e,r){if(QHe.brandCheck(t,r),ore(t))throw new TypeError("Body is unusable: Body has already been read");vHe(t[$p]);let n=yHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[$p].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await BHe(t[$p].body,i,s),n.promise)}function ore(t){let e=t[$p].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function MHe(t){return JSON.parse(tre(t))}function ere(t){let e=t[$p].headersList,r=bHe(e);return r==="failure"?null:r}are.exports={extractBody:ire,safelyExtractBody:DHe,cloneBody:kHe,mixinBody:FHe,streamRegistry:sre,hasFinalizationRegistry:nre,bodyUnusable:ore}});var bre=C((G7t,Bre)=>{"use strict";var Me=Q("node:assert"),Pe=lt(),{channels:cre}=Pp(),JL=TL(),{RequestContentLengthMismatchError:Fh,ResponseContentLengthMismatchError:Are,RequestAbortedError:mre,InvalidArgumentError:LHe,HeadersTimeoutError:UHe,HeadersOverflowError:PHe,SocketError:Zp,InformationalError:em,BodyTimeoutError:OHe,HTTPParserError:HHe,ResponseExceededMaxSizeError:GHe}=_t(),{kUrl:Ere,kReset:Xs,kClient:QS,kParser:lr,kBlocking:vI,kRunning:an,kPending:Cre,kSize:ure,kWriting:Sl,kQueue:wa,kNoRef:DI,kKeepAliveDefaultTimeout:qHe,kHostHeader:YHe,kPendingIdx:VHe,kRunningIdx:Bo,kError:Ss,kPipelining:wS,kSocket:Lh,kKeepAliveTimeoutValue:NS,kMaxHeadersSize:zL,kKeepAliveMaxTimeout:WHe,kKeepAliveTimeoutThreshold:JHe,kHeadersTimeout:zHe,kBodyTimeout:jHe,kStrictContentLength:$L,kMaxRequests:lre,kCounter:KHe,kMaxResponseSize:$He,kOnError:dre,kResume:nu,kHTTPContext:Ire}=Br(),Di=ste(),hre=Buffer.alloc(0),yS=Buffer[Symbol.species],BS=Pe.addListener,XHe=Pe.removeAllListeners,Uh=Symbol("kIdleSocketValidation"),Mh=Symbol("kIdleSocketValidationTimeout"),tU=Symbol("kSocketUsed"),jL;async function ZHe(){let t=process.env.JEST_WORKER_ID?DL():void 0,e;try{e=await WebAssembly.compile(ate())}catch{e=await WebAssembly.compile(t||DL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onStatus(new yS(Ec.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Lr.ptr===r),Lr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderField(new yS(Ec.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderValue(new yS(Ec.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Lr.ptr===r),Lr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onBody(new yS(Ec.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Lr.ptr===r),Lr.onMessageComplete()||0)}})}var KL=null,XL=ZHe();XL.catch();var Lr=null,Ec=null,bS=0,Cc=null,e9e=0,kI=1,tm=2|kI,SS=4|kI,ZL=8|e9e,eU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[zL])&&e[zL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Di.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[YHe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[aS]&&!h[zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return mte.sendHeaders.hasSubscribers&&mte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?yte(f,null,t,e,h,u,p,l):$e.isBuffer(c)?yte(f,c,t,e,h,u,p,l):$e.isBlobLike(c)?typeof c.stream=="function"?Bte(f,c.stream(),t,e,h,u,p,l):q5e(f,c,t,e,h,u,p,l):$e.isStream(c)?G5e(f,c,t,e,h,u,p,l):$e.isIterable(c)?Bte(f,c,t,e,h,u,p,l):Ge(!1),!0}function G5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"stream body cannot be pipelined");let c=!1,A=new lS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){$e.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new bte;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[Ql]&&r[os]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function yte(t,e,r,n,s,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[wS]&&!h[Xs]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return cre.sendHeaders.hasSubscribers&&cre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?gre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?gre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?pre(f,c.stream(),t,e,h,u,g,l):a9e(f,c,t,e,h,u,g,l):Pe.isStream(c)?o9e(f,c,t,e,h,u,g,l):Pe.isIterable(c)?pre(f,c,t,e,h,u,g,l):Me(!1),!0}function o9e(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===0,"stream body cannot be pipelined");let c=!1,A=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new mre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Sl]&&r[an]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Pe.destroy(e,f):Pe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function gre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[zs]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Xs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[bl]()}catch(c){t(c)}}async function q5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Fh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[nu]()}catch(c){t(c)}}async function a9e(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Fh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[zs]=!0),r[bl]()}catch(c){t(c)}}async function Bte(t,e,r,n,s,i,o,a){Ge(i!==0||r[os]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ge(c===null),s[Co]?h(s[Co]):c=d});s.on("close",A).on("drain",A);let l=new lS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Co])throw s[Co];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var lS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Ql]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Co])throw r[Co];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[DL])throw new Fh;process.emitWarning(new Fh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[zs]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Xs]=!0),r[nu]()}catch(c){t(c)}}async function pre(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ss]?h(s[Ss]):c=d});s.on("close",A).on("drain",A);let l=new TS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ss])throw s[Ss];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var TS=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Sl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ss])throw r[Ss];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[$L])throw new Fh;process.emitWarning(new Fh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xs]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Yp&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Ql]=!1,e[Co])throw e[Co];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===tm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Sl]=!1,e[Ss])throw e[Ss];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[DL])throw new Fh;process.emitWarning(new Fh)}e[Fr].timeout&&e[Fr].timeoutType===Yp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[bl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ql]=!1,e&&(Ge(n[os]<=1,"pipeline should only contain this request"),s(e))}};Ste.exports=U5e});var Fte=E((ZYt,_te)=>{"use strict";var Io=b("node:assert"),{pipeline:Y5e}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:FL,RequestAbortedError:Tte,SocketError:yI,InformationalError:ML}=Lt(),{kUrl:dS,kReset:fS,kClient:Vp,kRunning:gS,kPending:V5e,kQueue:wl,kPendingIdx:LL,kRunningIdx:Qa,kError:Sa,kSocket:Tn,kStrictContentLength:W5e,kOnError:UL,kMaxConcurrentStreams:vte,kHTTP2Session:wa,kResume:Sl,kSize:J5e,kHTTPContext:z5e}=Ir(),nu=Symbol("open streams"),xte,Rte=!1,hS;try{hS=b("node:http2")}catch{hS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:j5e,HTTP2_HEADER_METHOD:K5e,HTTP2_HEADER_PATH:$5e,HTTP2_HEADER_SCHEME:X5e,HTTP2_HEADER_CONTENT_LENGTH:Z5e,HTTP2_HEADER_EXPECT:eHe,HTTP2_HEADER_STATUS:tHe}}=hS;function rHe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function nHe(t,e){t[Tn]=e,Rte||(Rte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=hS.connect(t[dS],{createConnection:()=>e,peerMaxConcurrentStreams:t[vte]});r[nu]=0,r[Vp]=t,r[Tn]=e,mt.addListener(r,"error",iHe),mt.addListener(r,"frameError",oHe),mt.addListener(r,"end",aHe),mt.addListener(r,"goaway",cHe),mt.addListener(r,"close",function(){let{[Vp]:s}=this,{[Tn]:i}=s,o=this[Tn][Sa]||this[Sa]||new yI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){Io(s[V5e]===0);let a=s[wl].splice(s[Qa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){Io(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[Vp][UL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new yI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new yI("closed",mt.getSocketInfo(this));t[Tn]=null,this[wa]!=null&&this[wa].destroy(s),t[LL]=t[Qa],Io(t[gS]===0),t.emit("disconnect",t[dS],[t],s),t[Sl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uHe(t,...s)},resume(){sHe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function sHe(t){let e=t[Tn];e?.destroyed===!1&&(t[J5e]===0&&t[vte]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function iHe(t){Io(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn][Sa]=t,this[Vp][UL](t)}function oHe(t,e,r){if(r===0){let n=new ML(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Tn][Sa]=n,this[Vp][UL](n)}}function aHe(){let t=new yI("other side closed",mt.getSocketInfo(this[Tn]));this.destroy(t),mt.destroy(this[Tn],t)}function cHe(t){let e=this[Sa]||new yI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Vp];if(r[Tn]=null,r[z5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[Tn],e),r[Qa]<r[wl].length){let n=r[wl][r[Qa]];r[wl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[LL]=r[Qa]}Io(r[gS]===0),r.emit("disconnect",r[dS],[r],e),r[Sl]()}function AHe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uHe(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[dS];l[j5e]=i||`${h}${f?`:${f}`:""}`,l[K5e]=n;let p=N=>{e.aborted||e.completed||(N=N||new Tte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[wl][t[Qa]++]=null,t[Sl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[nu],t[wl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[nu],t[wl][t[Qa]++]=null}),d.once("close",()=>{r[nu]-=1,r[nu]===0&&r.unref()}),!0;l[$5e]=s,l[X5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){xte??=Hp().extractBody;let[N,M]=xte(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),AHe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[W5e])return mt.errorRequest(t,e,new FL),!1;process.emitWarning(new FL)}m!=null&&(Io(u,"no body must not have content length"),l[Z5e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[eHe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont Line truncated
`,this[MHe]=c??3e5,this[FHe]=s??3e5,this[LHe]=C??!0,this[UHe]=N,this[GL]=O,this[Tl]=null,this[qHe]=P>-1?P:-1,this[VHe]=Z??100,this[zr]=null,this[Na]=[],this[iu]=0,this[Ta]=0,this[wI]=ce=>YL(this,ce),this[YHe]=ce=>Jte(this,ce)}get pipelining(){return this[CS]}set pipelining(e){this[CS]=e,this[wI](!0)}get[TI](){return this[Na].length-this[Ta]}get[NI](){return this[Ta]-this[iu]}get[SI](){return this[Na].length-this[iu]}get[THe](){return!!this[zr]&&!this[Jp]&&!this[zr].destroyed}get[HL](){return!!(this[zr]?.busy(null)||this[SI]>=(Wte(this)||1)||this[TI]>0)}[NHe](e){zte(this),this.once("connect",e)}[GHe](e,r){let n=e.origin||this[Ic].origin,s=new yHe(n,e,r);return this[Na].push(s),this[Lh]||(Mh.bodyLength(s.body)==null&&Mh.isIterable(s.body)?(this[Lh]=1,queueMicrotask(()=>YL(this))):this[wI](!0)),this[Lh]&&this[xl]!==2&&this[HL]&&(this[xl]=2),this[xl]<2}async[OHe](){return new Promise(e=>{this[SI]?this[Tl]=e:e(null)})}async[HHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Mh.errorRequest(this,o,e)}let s=()=>{this[Tl]&&(this[Tl](),this[Tl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[wI]()})}},zHe=ES();function Jte(t,e){if(t[NI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[Ta]===t[iu]);let r=t[Na].splice(t[iu]);for(let n=0;n<r.length;n++){let s=r[n];Mh.errorRequest(t,s,e)}su(t[SI]===0)}}async function zte(t){su(!t[Jp]),su(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[Ic];if(r[0]==="["){let i=r.indexOf("]");su(i!==-1);let o=r.substring(1,i);su(Vte.isIP(o)),r=o}t[Jp]=!0,Wp.beforeConnect.hasSubscribers&&Wp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Nl],localAddress:t[QI]},connector:t[bI]});try{let i=await new Promise((o,a)=>{t[bI]({host:e,hostname:r,protocol:n,port:s,servername:t[Nl],localAddress:t[QI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Mh.destroy(i.on("error",qte),new QHe);return}su(i);try{t[zr]=i.alpnProtocol==="h2"?await JHe(t,i):await WHe(t,i)}catch(o){throw i.destroy().on("error",qte),o}t[Jp]=!1,i[PHe]=0,i[GL]=t[GL],i[SHe]=t,i[RHe]=null,Wp.connected.hasSubscribers&&Wp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Nl],localAddress:t[QI]},connector:t[bI],socket:i}),t.emit("connect",t[Ic],[t])}catch(i){if(t.destroyed)return;if(t[Jp]=!1,Wp.connectError.hasSubscribers&&Wp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Nl],localAddress:t[QI]},connector:t[bI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[NI]===0);t[TI]>0&&t[Na][t[Ta]].servername===t[Nl];){let o=t[Na][t[Ta]++];Mh.errorRequest(t,o,i)}else Jte(t,i);t.emit("connectionError",t[Ic],[t],i)}t[wI]()}function Yte(t){t[xl]=0,t.emit("drain",t[Ic],[t])}function YL(t,e){t[Lh]!==2&&(t[Lh]=2,jHe(t,e),t[Lh]=0,t[iu]>256&&(t[Na].splice(0,t[iu]),t[Ta]-=t[iu],t[iu]=0))}function jHe(t,e){for(;;){if(t.destroyed){su(t[TI]===0);return}if(t[Tl]&&!t[SI]){t[Tl](),t[Tl]=null;return}if(t[zr]&&t[zr].resume(),t[HL])t[xl]=2;else if(t[xl]===2){e?(t[xl]=1,queueMicrotask(()=>Yte(t))):Yte(t);continue}if(t[TI]===0||t[NI]>=(Wte(t)||1))return;let r=t[Na][t[Ta]];if(t[Ic].protocol==="https:"&&t[Nl]!==r.servername){if(t[NI]>0)return;t[Nl]=r.servername,t[zr]?.destroy(new bHe("servername changed"),()=>{t[zr]=null,YL(t)})}if(t[Jp])return;if(!t[zr]){zte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}jte.exports=qL});var VL=E((sVt,Kte)=>{"use strict";var IS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Kte.exports=class{constructor(){this.head=this.tail=new IS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new IS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Xte=E((iVt,$te)=>{var{kFree:KHe,kConnected:$He,kPending:XHe,kQueued:ZHe,kRunning:e9e,kSize:t9e}=Ir(),Uh=Symbol("pool"),WL=class{constructor(e){this[Uh]=e}get connected(){return this[Uh][$He]}get free(){return this[Uh][KHe]}get pending(){return this[Uh][XHe]}get queued(){return this[Uh][ZHe]}get running(){return this[Uh][e9e]}get size(){return this[Uh][t9e]}};$te.exports=WL});var XL=E((oVt,cre)=>{"use strict";var r9e=kp(),n9e=VL(),{kConnected:JL,kSize:Zte,kRunning:ere,kPending:tre,kQueued:xI,kBusy:s9e,kFree:i9e,kUrl:o9e,kClose:a9e,kDestroy:c9e,kDispatch:A9e}=Ir(),u9e=Xte(),js=Symbol("clients"),bs=Symbol("needDrain"),RI=Symbol("queue"),zL=Symbol("closed resolve"),jL=Symbol("onDrain"),rre=Symbol("onConnect"),nre=Symbol("onDisconnect"),sre=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[$L])throw new Fh;process.emitWarning(new Fh)}e[lr].timeout&&e[lr].timeoutType===tm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[nu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Sl]=!1,e&&(Me(n[an]<=1,"pipeline should only contain this request"),s(e))}};Bre.exports=t9e});var Dre=C((q7t,Rre)=>{"use strict";var bo=Q("node:assert"),{pipeline:c9e}=Q("node:stream"),mt=lt(),{RequestContentLengthMismatchError:rU,RequestAbortedError:Qre,SocketError:_I,InformationalError:nU}=_t(),{kUrl:xS,kReset:DS,kClient:rm,kRunning:kS,kPending:A9e,kQueue:Nl,kPendingIdx:sU,kRunningIdx:Sa,kError:Ta,kSocket:Dn,kStrictContentLength:u9e,kOnError:iU,kMaxConcurrentStreams:xre,kHTTP2Session:Na,kResume:Tl,kSize:l9e,kHTTPContext:d9e}=Br(),su=Symbol("open streams"),wre,Sre=!1,RS;try{RS=Q("node:http2")}catch{RS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:h9e,HTTP2_HEADER_METHOD:f9e,HTTP2_HEADER_PATH:g9e,HTTP2_HEADER_SCHEME:p9e,HTTP2_HEADER_CONTENT_LENGTH:m9e,HTTP2_HEADER_EXPECT:E9e,HTTP2_HEADER_STATUS:C9e}}=RS;function I9e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function y9e(t,e){t[Dn]=e,Sre||(Sre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=RS.connect(t[xS],{createConnection:()=>e,peerMaxConcurrentStreams:t[xre]});r[su]=0,r[rm]=t,r[Dn]=e,mt.addListener(r,"error",b9e),mt.addListener(r,"frameError",Q9e),mt.addListener(r,"end",w9e),mt.addListener(r,"goaway",S9e),mt.addListener(r,"close",function(){let{[rm]:s}=this,{[Dn]:i}=s,o=this[Dn][Ta]||this[Ta]||new _I("closed",mt.getSocketInfo(i));if(s[Na]=null,s.destroyed){bo(s[A9e]===0);let a=s[Nl].splice(s[Sa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Na]=r,e[Na]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=s,this[rm][iU](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new _I("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ta]||new _I("closed",mt.getSocketInfo(this));t[Dn]=null,this[Na]!=null&&this[Na].destroy(s),t[sU]=t[Sa],bo(t[kS]===0),t.emit("disconnect",t[xS],[t],s),t[Tl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return T9e(t,...s)},resume(){B9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function B9e(t){let e=t[Dn];e?.destroyed===!1&&(t[l9e]===0&&t[xre]===0?(e.unref(),t[Na].unref()):(e.ref(),t[Na].ref()))}function b9e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Ta]=t,this[rm][iU](t)}function Q9e(t,e,r){if(r===0){let n=new nU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Ta]=n,this[rm][iU](n)}}function w9e(){let t=new _I("other side closed",mt.getSocketInfo(this[Dn]));this.destroy(t),mt.destroy(this[Dn],t)}function S9e(t){let e=this[Ta]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[rm];if(r[Dn]=null,r[d9e]=null,this[Na]!=null&&(this[Na].destroy(e),this[Na]=null),mt.destroy(this[Dn],e),r[Sa]<r[Nl].length){let n=r[Nl][r[Sa]];r[Nl][r[Sa]++]=null,mt.errorRequest(r,n,e),r[sU]=r[Sa]}bo(r[kS]===0),r.emit("disconnect",r[xS],[r],e),r[Tl]()}function N9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function T9e(t,e){let r=t[Na],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[xS];l[h9e]=i||`${h}${f?`:${f}`:""}`,l[f9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Qre,mt.errorRequest(t,e,B),d!=null&&mt.destroy(d,B),mt.destroy(u,B),t[Nl][t[Sa]++]=null,t[Tl]())};try{e.onConnect(g)}catch(B){mt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[su],t[Nl][t[Sa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Nl][t[Sa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[g9e]=s,l[p9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){wre??=Xp().extractBody;let[B,M]=wre(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),N9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[u9e])return mt.errorRequest(t,e,new rU),!1;process.emitWarning(new rU)}m!=null&&(bo(u,"no body must not have content length"),l[m9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[E9e]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[eGe]=c??3e5,this[Z9e]=s??3e5,this[tGe]=I??!0,this[rGe]=B,this[AU]=V,this[Rl]=null,this[aGe]=P>-1?P:-1,this[AGe]=X??100,this[Kr]=null,this[xa]=[],this[ou]=0,this[Ra]=0,this[UI]=ue=>lU(this,ue),this[cGe]=ue=>qre(this,ue)}get pipelining(){return this[MS]}set pipelining(e){this[MS]=e,this[UI](!0)}get[HI](){return this[xa].length-this[Ra]}get[OI](){return this[Ra]-this[ou]}get[PI](){return this[xa].length-this[ou]}get[W9e](){return!!this[Kr]&&!this[sm]&&!this[Kr].destroyed}get[cU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Gre(this)||1)||this[HI]>0)}[V9e](e){Yre(this),this.once("connect",e)}[oGe](e,r){let n=e.origin||this[yc].origin,s=new P9e(n,e,r);return this[xa].push(s),this[Oh]||(Ph.bodyLength(s.body)==null&&Ph.isIterable(s.body)?(this[Oh]=1,queueMicrotask(()=>lU(this))):this[UI](!0)),this[Oh]&&this[Dl]!==2&&this[cU]&&(this[Dl]=2),this[Dl]<2}async[sGe](){return new Promise(e=>{this[PI]?this[Rl]=e:e(null)})}async[iGe](e){return new Promise(r=>{let n=this[xa].splice(this[Ra]);for(let i=0;i<n.length;i++){let o=n[i];Ph.errorRequest(this,o,e)}let s=()=>{this[Rl]&&(this[Rl](),this[Rl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},dGe=FS();function qre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ra]===t[ou]);let r=t[xa].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Ph.errorRequest(t,s,e)}iu(t[PI]===0)}}async function Yre(t){iu(!t[sm]),iu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Hre.isIP(o)),r=o}t[sm]=!0,nm.beforeConnect.hasSubscribers&&nm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[xl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Ph.destroy(i.on("error",Pre),new G9e);return}iu(i);try{t[Kr]=i.alpnProtocol==="h2"?await lGe(t,i):await uGe(t,i)}catch(o){throw i.destroy().on("error",Pre),o}t[sm]=!1,i[nGe]=0,i[AU]=t[AU],i[Y9e]=t,i[z9e]=null,nm.connected.hasSubscribers&&nm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[yc],[t])}catch(i){if(t.destroyed)return;if(t[sm]=!1,nm.connectError.hasSubscribers&&nm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[xl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[OI]===0);t[HI]>0&&t[xa][t[Ra]].servername===t[xl];){let o=t[xa][t[Ra]++];Ph.errorRequest(t,o,i)}else qre(t,i);t.emit("connectionError",t[yc],[t],i)}t[UI]()}function Ore(t){t[Dl]=0,t.emit("drain",t[yc],[t])}function lU(t,e){t[Oh]!==2&&(t[Oh]=2,hGe(t,e),t[Oh]=0,t[ou]>256&&(t[xa].splice(0,t[ou]),t[Ra]-=t[ou],t[ou]=0))}function hGe(t,e){for(;;){if(t.destroyed){iu(t[HI]===0);return}if(t[Rl]&&!t[PI]){t[Rl](),t[Rl]=null;return}if(t[Kr]&&t[Kr].resume(),t[cU])t[Dl]=2;else if(t[Dl]===2){e?(t[Dl]=1,queueMicrotask(()=>Ore(t))):Ore(t);continue}if(t[HI]===0||t[OI]>=(Gre(t)||1))return;let r=t[xa][t[Ra]];if(t[yc].protocol==="https:"&&t[xl]!==r.servername){if(t[OI]>0)return;t[xl]=r.servername,t[Kr]?.destroy(new H9e("servername changed"),()=>{t[Kr]=null,lU(t)})}if(t[sm])return;if(!t[Kr]){Yre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ra]++:t[xa].splice(t[Ra],1)}}Vre.exports=uU});var dU=C((z7t,Wre)=>{"use strict";var LS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Wre.exports=class{constructor(){this.head=this.tail=new LS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zre=C((j7t,Jre)=>{var{kFree:fGe,kConnected:gGe,kPending:pGe,kQueued:mGe,kRunning:EGe,kSize:CGe}=Br(),Hh=Symbol("pool"),hU=class{constructor(e){this[Hh]=e}get connected(){return this[Hh][gGe]}get free(){return this[Hh][fGe]}get pending(){return this[Hh][pGe]}get queued(){return this[Hh][mGe]}get running(){return this[Hh][EGe]}get size(){return this[Hh][CGe]}};Jre.exports=hU});var CU=C((K7t,sne)=>{"use strict";var IGe=qp(),yGe=dU(),{kConnected:fU,kSize:jre,kRunning:Kre,kPending:$re,kQueued:GI,kBusy:BGe,kFree:bGe,kUrl:QGe,kClose:wGe,kDestroy:SGe,kDispatch:NGe}=Br(),TGe=zre(),Zs=Symbol("clients"),Ns=Symbol("needDrain"),qI=Symbol("queue"),gU=Symbol("closed resolve"),pU=Symbol("onDrain"),Xre=Symbol("onConnect"),Zre=Symbol("onDisconnect"),ene=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};fse.exports=XU});var US=E((_Vt,Cse)=>{"use strict";var pse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Mqe}=Lt(),Lqe=Kp();Ese()===void 0&&mse(new Lqe);function mse(t){if(!t||typeof t.dispatch!="function")throw new Mqe("Argument agent must implement Agent");Object.defineProperty(globalThis,pse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ese(){return globalThis[pse]}Cse.exports={setGlobalDispatcher:mse,getGlobalDispatcher:Ese}});var PS=E((MVt,Ise)=>{"use strict";Ise.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Bse=E((LVt,yse)=>{"use strict";var Uqe=mS();yse.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new Uqe(r,o,s,i);return r(a,c)}}});var Qse=E((UVt,bse)=>{"use strict";var Pqe=TS();bse.exports=t=>e=>function(n,s){return e(n,new Pqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Sse=E((PVt,wse)=>{"use strict";var Oqe=lt(),{InvalidArgumentError:Hqe,RequestAbortedError:Gqe}=Lt(),qqe=PS(),ZU=class extends qqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Hqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=Oqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Gqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Yqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new ZU({maxSize:i},s);return e(n,o)}}wse.exports=Yqe});var xse=E((OVt,Tse)=>{"use strict";var{isIP:Vqe}=b("node:net"),{lookup:Wqe}=b("node:dns"),Jqe=PS(),{InvalidArgumentError:om,InformationalError:zqe}=Lt(),Nse=Math.pow(2,31)-1,eP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new zqe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){Wqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Nse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Nse?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new tP(this,e,r)}},tP=class extends Jqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":cae(i)&&(r[s]=i);break;case"id":Aae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&cae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Aae(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};uae.exports={EventSourceStream:OP}});var Cae=E((m7t,Eae)=>{"use strict";var{pipeline:sJe}=b("node:stream"),{fetching:iJe}=qI(),{makeRequest:oJe}=Am(),{webidl:uu}=Jn(),{EventSourceStream:aJe}=lae(),{parseMIMEType:cJe}=Js(),{createFastMessageEvent:AJe}=gm(),{isNetworkError:dae}=HI(),{delay:uJe}=UP(),{kEnumerableProperty:Zh}=lt(),{environmentSettingsObject:hae}=wi(),fae=!1,gae=3e3,ry=0,pae=1,ny=2,lJe="anonymous",dJe="use-credentials",Im=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=ry;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),uu.util.markAsUncloneable(this);let n="EventSource constructor";uu.argumentLengthCheck(arguments,1,n),fae||(fae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=uu.converters.USVString(e,n,"url"),r=uu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:gae};let s=hae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=lJe;r.withCredentials&&(o=dJe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=oJe(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===ny)return;this.#r=ry;let e={request:this.#s,dispatcher:this.#a},r=n=>{dae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?cJe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=pae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new aJe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(AJe(c.type,c.options))}});sJe(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=iJe(e)}async#A(){this.#r!==ny&&(this.#r=ry,this.dispatchEvent(new Event("error")),await uJe(this.#o.reconnectionTime),this.#r===ry&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){uu.brandCheck(this,t),this.#r!==ny&&(this.#r=ny,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},mae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ry,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:pae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ny,writable:!1}};Object.defineProperties(Im,mae);Object.defineProperties(Im.prototype,mae);Object.defineProperties(Im.prototype,{close:Zh,onerror:Zh,onmessage:Zh,onopen:Zh,readyState:Zh,url:Zh,withCredentials:Zh});uu.converters.EventSourceInitDict=uu.dictionaryConverter([{key:"withCredentials",converter:uu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:uu.converters.any}]);Eae.exports={EventSource:Im,defaultReconnectionTime:gae}});var NN=E((E7t,Ye)=>{"use strict";var hJe=zp(),Iae=aI(),fJe=jp(),gJe=mre(),pJe=Kp(),mJe=lU(),EJe=Hre(),CJe=Jre(),yae=Lt(),SN=lt(),{InvalidArgumentError:wN}=yae,ym=vne(),IJe=AI(),yJe=WU(),BJe=gse(),bJe=jU(),QJe=vU(),wJe=TS(),{getGlobalDispatcher:Bae,setGlobalDispatcher:SJe}=US(),NJe=PS(),TJe=mS(),xJe=ES();Object.assign(Iae.prototype,ym);Ye.exports.Dispatcher=Iae;Ye.exports.Client=hJe;Ye.exports.Pool=fJe;Ye.exports.BalancedPool=gJe;Ye.exports.Agent=pJe;Ye.exports.ProxyAgent=mJe;Ye.exports.EnvHttpProxyAgent=EJe;Ye.exports Line truncated
%s`,M,M,C,n);var O=C.type==="*"?DO:C.type==="?"?RO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),ee=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);ee+=ce;var fe=z.split("(").length-1,De=ce;for(p=0;p<fe;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var Ke="";ce===""&&e!==jN&&(Ke="$");var st=z+Z+ce+Ke+ee;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===jN)return[n,s];if(!s)return hKe(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Mi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=dKe;function dKe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?DO:e.dot?sKe:iKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===af?r:typeof o=="string"?fKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Mi.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;fy.sep!=="/"&&(e=e.split(fy.sep).join("/")),e=e.split(cAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(af)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===af){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===af){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===af?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===af)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function hKe(t){return t.replace(/\\(.)/g,"$1")}function fKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var xm=E((IJt,gAe)=>{"use strict";var BKe="2.0.0",bKe=Number.MAX_SAFE_INTEGER||9007199254740991,QKe=16,wKe=250,SKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];gAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:QKe,MAX_SAFE_BUILD_LENGTH:wKe,MAX_SAFE_INTEGER:bKe,RELEASE_TYPES:SKe,SEMVER_SPEC_VERSION:BKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ey=E((yJt,pAe)=>{"use strict";var NKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pAe.exports=NKe});var Rm=E((Nc,mAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:vO,MAX_SAFE_BUILD_LENGTH:TKe,MAX_LENGTH:xKe}=xm(),RKe=Ey();Nc=mAe.exports={};var DKe=Nc.re=[],kKe=Nc.safeRe=[],me=Nc.src=[],vKe=Nc.safeSrc=[],Ee=Nc.t={},_Ke=0,_O="[a-zA-Z0-9-]",FKe=[["\\s",1],["\\d",xKe],[_O,TKe]],MKe=t=>{for(let[e,r]of FKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};lie.exports=CP});var tN=C((QWt,pie)=>{"use strict";var hie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eVe}=_t(),tVe=am();gie()===void 0&&fie(new tVe);function fie(t){if(!t||typeof t.dispatch!="function")throw new eVe("Argument agent must implement Agent");Object.defineProperty(globalThis,hie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gie(){return globalThis[hie]}pie.exports={setGlobalDispatcher:fie,getGlobalDispatcher:gie}});var rN=C((SWt,mie)=>{"use strict";mie.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Cie=C((NWt,Eie)=>{"use strict";var rVe=_S();Eie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new rVe(r,o,s,i);return r(a,c)}}});var yie=C((TWt,Iie)=>{"use strict";var nVe=VS();Iie.exports=t=>e=>function(n,s){return e(n,new nVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var bie=C((xWt,Bie)=>{"use strict";var sVe=lt(),{InvalidArgumentError:iVe,RequestAbortedError:oVe}=_t(),aVe=rN(),IP=class extends aVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=sVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new oVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function cVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new IP({maxSize:i},s);return e(n,o)}}Bie.exports=cVe});var Sie=C((RWt,wie)=>{"use strict";var{isIP:AVe}=Q("node:net"),{lookup:uVe}=Q("node:dns"),lVe=rN(),{InvalidArgumentError:Em,InformationalError:dVe}=_t(),Qie=Math.pow(2,31)-1,yP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new dVe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){uVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Qie?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===Qie?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new BP(this,e,r)}},BP=class extends lVe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":sce(i)&&(r[s]=i);break;case"id":ice(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ice(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oce.exports={EventSourceStream:lO}});var gce=C((aJt,fce)=>{"use strict";var{pipeline:Ize}=Q("node:stream"),{fetching:yze}=ty(),{makeRequest:Bze}=ym(),{webidl:lu}=Kn(),{EventSourceStream:bze}=ace(),{parseMIMEType:Qze}=$s(),{createFastMessageEvent:wze}=Nm(),{isNetworkError:cce}=ZI(),{delay:Sze}=AO(),{kEnumerableProperty:rf}=lt(),{environmentSettingsObject:Ace}=Ri(),uce=!1,lce=3e3,gy=0,dce=1,py=2,Nze="anonymous",Tze="use-credentials",km=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),uce||(uce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lce};let s=Ace,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Nze;r.withCredentials&&(o=Tze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ace.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Bze(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===py)return;this.#r=gy;let e={request:this.#i,dispatcher:this.#c},r=n=>{cce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Qze(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=dce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new bze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(wze(c.type,c.options))}});Ize(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=yze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Sze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){lu.brandCheck(this,t),this.#r!==py&&(this.#r=py,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},hce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(km,hce);Object.defineProperties(km.prototype,hce);Object.defineProperties(km.prototype,{close:rf,onerror:rf,onmessage:rf,onopen:rf,readyState:rf,url:rf,withCredentials:rf});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);fce.exports={EventSource:km,defaultReconnectionTime:lce}});var YN=C((cJt,ze)=>{"use strict";var xze=im(),pce=II(),Rze=om(),Dze=hne(),kze=am(),vze=kU(),_ze=Lne(),Fze=Yne(),mce=_t(),qN=lt(),{InvalidArgumentError:GN}=mce,vm=Rse(),Mze=BI(),Lze=hP(),Uze=die(),Pze=pP(),Oze=eP(),Hze=VS(),{getGlobalDispatcher:Ece,setGlobalDispatcher:Gze}=tN(),qze=rN(),Yze=_S(),Vze=FS();Object.assign(pce.prototype,vm);ze.exports.Dispatcher=pce;ze.exports.Client=xze;ze.exports.Pool=Rze;ze.exports.BalancedPool=Dze;ze.exports.Agent=kze;ze.exports.ProxyAgent=vze;ze.exports.EnvHttpProxyAgent=_ze;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?n3:I.type==="?"?r3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),ee=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);ee+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==dT&&(ke="$");var et=z+X+ce+ke+ee;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===dT)return[n,s];if(!s)return v$e(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Hi.makeRe=function(t,e){return new un(t,e||{}).makeRe()};un.prototype.makeRe=k$e;function k$e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?n3:e.dot?Q$e:w$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===uf?r:typeof o=="string"?_$e(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Hi.match=function(t,e,r){r=r||{};var n=new un(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};un.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;Ty.sep!=="/"&&(e=e.split(Ty.sep).join("/")),e=e.split(oue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};un.prototype.matchOne=function(t,e,r){return e.indexOf(uf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};un.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===uf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===uf){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===uf?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};un.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};un.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===uf)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function v$e(t){return t.replace(/\\(.)/g,"$1")}function _$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Om=C((ujt,hue)=>{"use strict";var G$e="2.0.0",q$e=Number.MAX_SAFE_INTEGER||9007199254740991,Y$e=16,V$e=250,W$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Y$e,MAX_SAFE_BUILD_LENGTH:V$e,MAX_SAFE_INTEGER:q$e,RELEASE_TYPES:W$e,SEMVER_SPEC_VERSION:G$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ky=C((ljt,fue)=>{"use strict";var J$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fue.exports=J$e});var Hm=C((xc,gue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:i3,MAX_SAFE_BUILD_LENGTH:z$e,MAX_LENGTH:j$e}=Om(),K$e=ky();xc=gue.exports={};var $$e=xc.re=[],X$e=xc.safeRe=[],me=xc.src=[],Z$e=xc.safeSrc=[],Ee=xc.t={},eXe=0,o3="[a-zA-Z0-9-]",tXe=[["\\s",1],["\\d",j$e],[o3,z$e]],rXe=t=>{for(let[e,r]of tXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+_T.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bet()+e+" "+t[0]}function bet(){return Rn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Qet(...t){return process.stderr.write(vT.formatWithOptions(Rn.inspectOpts,...t)+`
`)}function wet(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Net(){return process.env.DEBUG}function Tet(t){t.inspectOpts={};let e=Object.keys(Rn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Rn.inspectOpts[e[r]]}_T.exports=b3()(Rn);var{formatters:Wle}=_T.exports;Wle.o=function(t){return this.inspectOpts.colors=this.useColors,vT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Wle.O=function(t){return this.inspectOpts.colors=this.useColors,vT.inspect(t,this.inspectOpts)}});var FT=E(($jt,S3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?S3.exports=Ole():S3.exports=Jle()});var Kle=E(ri=>{"use strict";var xet=ri&&ri.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ret=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zle=ri&&ri.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xet(e,t,r);return Ret(e,t),e};Object.defineProperty(ri,"__esModule",{value:!0});ri.req=ri.json=ri.toBuffer=void 0;var Det=zle(b("http")),ket=zle(b("https"));async function jle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ri.toBuffer=jle;async function vet(t){let r=(await jle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ri.json=vet;function _et(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ket:Det).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ri.req=_et});var T3=E(Pi=>{"use strict";var Xle=Pi&&Pi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Fet=Pi&&Pi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zle=Pi&&Pi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xle(e,t,r);return Fet(e,t),e},Met=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xle(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Agent=void 0;var Let=Zle(b("net")),$le=Zle(b("http")),Uet=b("https");Met(Kle(),Pi);var Rc=Symbol("AgentBaseInternalState"),N3=class extends $le.Agent{constructor(e){super(e),this[Rc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Let.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Uet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof $le.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Rc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Rc].currentSocket;if(this[Rc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Rc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Rc]&&(this[Rc].defaultPort=e)}get protocol(){return this[Rc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Rc]&&(this[Rc].protocol=e)}};Pi.Agent=N3});var ede=E(Pm=>{"use strict";var Pet=Pm&&Pm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pm,"__esModule",{value:!0});Pm.parseProxyResponse=void 0;var Oet=Pet(FT()),MT=(0,Oet.default)("https-proxy-agent:parse-proxy-response");function Het(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),MT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),MT("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+XT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Vtt()+e+" "+t[0]}function Vtt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Wtt(...t){return process.stderr.write($T.formatWithOptions(vn.inspectOpts,...t)+`
`)}function Jtt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ztt(){return process.env.DEBUG}function jtt(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}XT.exports=j3()(vn);var{formatters:Yde}=XT.exports;Yde.o=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Yde.O=function(t){return this.inspectOpts.colors=this.useColors,$T.inspect(t,this.inspectOpts)}});var ZT=C((H$t,X3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?X3.exports=Ude():X3.exports=Vde()});var zde=C(ai=>{"use strict";var Ktt=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$tt=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ktt(e,t,r);return $tt(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var Xtt=Wde(Q("http")),Ztt=Wde(Q("https"));async function Jde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Jde;async function ert(t){let r=(await Jde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=ert;function trt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ztt:Xtt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=trt});var e8=C(Yi=>{"use strict";var Kde=Yi&&Yi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rrt=Yi&&Yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$de=Yi&&Yi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Kde(e,t,r);return rrt(e,t),e},nrt=Yi&&Yi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Kde(e,t,r)};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Agent=void 0;var srt=$de(Q("net")),jde=$de(Q("http")),irt=Q("https");nrt(zde(),Yi);var kc=Symbol("AgentBaseInternalState"),Z3=class extends jde.Agent{constructor(e){super(e),this[kc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new srt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?irt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof jde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[kc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kc].currentSocket;if(this[kc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kc]&&(this[kc].defaultPort=e)}get protocol(){return this[kc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kc]&&(this[kc].protocol=e)}};Yi.Agent=Z3});var Xde=C(Km=>{"use strict";var ort=Km&&Km.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Km,"__esModule",{value:!0});Km.parseProxyResponse=void 0;var art=ort(ZT()),ex=(0,art.default)("https-proxy-agent:parse-proxy-response");function crt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){MT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}MT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Pm.parseProxyResponse=Het});var ode=E(xo=>{"use strict";var Get=xo&&xo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qet=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sde=xo&&xo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Get(e,t,r);return qet(e,t),e},ide=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpsProxyAgent=void 0;var LT=sde(b("net")),tde=sde(b("tls")),Yet=ide(b("assert")),Vet=ide(FT()),Wet=T3(),Jet=b("url"),zet=ede(),ky=(0,Vet.default)("https-proxy-agent"),rde=t=>t.servername===void 0&&t.host&&!LT.isIP(t.host)?{...t,servername:t.host}:t,UT=class extends Wet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Jet.URL(e):e,this.proxyHeaders=r?.headers??{},ky("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?nde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(ky("Creating `tls.Socket`: %o",this.connectOpts),s=tde.connect(rde(this.connectOpts))):(ky("Creating `net.Socket`: %o",this.connectOpts),s=LT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=LT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){ex("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}Km.parseProxyResponse=crt});var she=C(ko=>{"use strict";var Art=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),urt=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rhe=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Art(e,t,r);return urt(e,t),e},nhe=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var tx=rhe(Q("net")),Zde=rhe(Q("tls")),lrt=nhe(Q("assert")),drt=nhe(ZT()),hrt=e8(),frt=Q("url"),grt=Xde(),Wy=(0,drt.default)("https-proxy-agent"),ehe=t=>t.servername===void 0&&t.host&&!tx.isIP(t.host)?{...t,servername:t.host}:t,rx=class extends hrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new frt.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?the(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),s=Zde.connect(ehe(this.connectOpts))):(Wy("Creating `net.Socket`: %o",this.connectOpts),s=tx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,zet.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",jet),r.secureEndpoint?(ky("Upgrading socket connection to TLS"),tde.connect({...nde(rde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new LT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{ky("Replaying proxy buffer for failed request"),(0,Yet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};UT.protocols=["http","https"];xo.HttpsProxyAgent=UT;function jet(t){t.resume()}function nde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ade=E(Ro=>{"use strict";var Ket=Ro&&Ro.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$et=Ro&&Ro.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cde=Ro&&Ro.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ket(e,t,r);return $et(e,t),e},Xet=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.HttpProxyAgent=void 0;var Zet=cde(b("net")),ett=cde(b("tls")),ttt=Xet(FT()),rtt=b("events"),ntt=T3(),ade=b("url"),Om=(0,ttt.default)("http-proxy-agent"),PT=class extends ntt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ade.URL(e):e,this.proxyHeaders=r?.headers??{},Om("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?stt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new ade.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Om("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Om("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,grt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",prt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),Zde.connect({...the(ehe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new tx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,lrt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};rx.protocols=["http","https"];ko.HttpsProxyAgent=rx;function prt(t){t.resume()}function the(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ahe=C(vo=>{"use strict";var mrt=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ert=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ohe=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&mrt(e,t,r);return Ert(e,t),e},Crt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var Irt=ohe(Q("net")),yrt=ohe(Q("tls")),Brt=Crt(ZT()),brt=Q("events"),Qrt=e8(),ihe=Q("url"),$m=(0,Brt.default)("http-proxy-agent"),nx=class extends Qrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ihe.URL(e):e,this.proxyHeaders=r?.headers??{},$m("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?wrt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new ihe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;$m("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&($m("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Om("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Om("Creating `tls.Socket`: %o",this.connectOpts),i=ett.connect(this.connectOpts)):(Om("Creating `net.Socket`: %o",this.connectOpts),i=Zet.connect(this.connectOpts)),await(0,rtt.once)(i,"connect"),i}};PT.protocols=["http","https"];Ro.HttpProxyAgent=PT;function stt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var vde=E($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.state=void 0;$T.state={instrumenterImplementation:void 0}});var Kde=E(rx=>{"use strict";Object.defineProperty(rx,"__esModule",{value:!0});rx.state=void 0;rx.state={operationRequestMap:new WeakMap}});var Rge=E((Xdr,dat)=>{dat.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var kge=E((Zdr,Dge)=>{var hat=Rge();Dge.exports={version:hat.version}});var _R=E(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.isJsonObject=u0.typeofJsonValue=void 0;function Bat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}u0.typeofJsonValue=Bat;function bat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}u0.isJsonObject=bat});var MR=E(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.base64encode=l0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),FR=[];for(let t=0;t<ku.length;t++)FR[ku[t].charCodeAt(0)]=t;FR[45]=ku.indexOf("+");FR[95]=ku.indexOf("/");function Qat(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=FR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}l0.base64decode=Qat;function wat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ku[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=ku[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=ku[s|n>>6],e+=ku[n&63],r=0;break}return r&&(e+=ku[s],e+="=",r==1&&(e+="=")),e}l0.base64encode=wat});var Lge=E(LR=>{"use strict";Object.defineProperty(LR,"__esModule",{value:!0});LR.utf8read=void 0;var CH=t=>String.fromCharCode.apply(String,t);function Sat(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(CH(n)),s=0);return r.length?(s&&r.push(CH(n.slice(0,s))),r.join("")):CH(n.slice(0,s))}LR.utf8read=Sat});var TB=E(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.WireType=tA.mergeBinaryOptions=tA.UnknownFieldHandler=void 0;var Nat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Nat=tA.UnknownFieldHandler||(tA.UnknownFieldHandler={}));function Tat(t,e){return Object.assign(Object.assign({},t),e)}tA.mergeBinaryOptions=Tat;var xat;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(xat=tA.WireType||(tA.WireType={}))});var PR=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.varint32read=Ai.varint32write=Ai.int64toString=Ai.int64fromString=Ai.varint64write=Ai.varint64read=void 0;function Rat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ai.varint64read=Rat;function Dat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Ai.varint64write=Dat;var UR=65536*65536;function kat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=UR&&(s=s+(n/UR|0),n=n%UR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Ai.int64fromString=kat;function vat(t,e){if(e>>>0<=2097151)return""+(UR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}Ai.int64toString=vat;function _at(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Ai.varint32write=_at;function Fat(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Ai.varint32read=Fat});var ud=E(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.PbLong=Ad.PbULong=Ad.detectBi=void 0;var xB=PR(),ir;function Uge(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Ad.detectBi=Uge;Uge();function Pge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Oge=/^-?[0-9]+$/,HR=4294967296,OR=2147483648,GR=c Line truncated
`)}};dD.RpcError=WH});var zH=E(fD=>{"use strict";Object.defineProperty(fD,"__esModule",{value:!0});fD.mergeRpcOptions=void 0;var ppe=ct();function nAt(t,e){if(!e)return t;let r={};hD(t,r),hD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=ppe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ppe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hD(t.meta,r.meta),hD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}fD.mergeRpcOptions=nAt;function hD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var KH=E(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.Deferred=Pf.DeferredState=void 0;var sA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sA=Pf.DeferredState||(Pf.DeferredState={}));var jH=class{constructor(e=!0){this._state=sA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==sA.PENDING)throw new Error(`cannot resolve ${sA[this.state].toLowerCase()}`);this._resolve(e),this._state=sA.RESOLVED}reject(e){if(this.state!==sA.PENDING)throw new Error(`cannot reject ${sA[this.state].toLowerCase()}`);this._reject(e),this._state=sA.REJECTED}resolvePending(e){this._state===sA.PENDING&&this.resolve(e)}rejectPending(e){this._state===sA.PENDING&&this.reject(e)}};Pf.Deferred=jH});var XH=E(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});gD.RpcOutputStreamController=void 0;var mpe=KH(),Of=ct(),$H=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Of.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Of.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Of.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Of.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Of.assert(e,"bad state"),Of.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new mpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Of.assert(n.state==mpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};gD.RpcOutputStreamController=$H});var e9=E(E0=>{"use strict";var sAt=E0&&E0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(E0,"__esModule",{value:!0});E0.UnaryCall=void 0;var ZH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return sAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};E0.UnaryCall=ZH});var r9=E(C0=>{"use strict";var iAt=C0&&C0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(C0,"__esModule",{value:!0});C0.ServerStreamingCall=void 0;var t9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),$m("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?($m("Creating `tls.Socket`: %o",this.connectOpts),i=yrt.connect(this.connectOpts)):($m("Creating `net.Socket`: %o",this.connectOpts),i=Irt.connect(this.connectOpts)),await(0,brt.once)(i,"connect"),i}};nx.protocols=["http","https"];vo.HttpProxyAgent=nx;function wrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Dhe=C(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var zhe=C(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var Dpe=C((Gfr,vct)=>{vct.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var vpe=C((qfr,kpe)=>{var _ct=Dpe();kpe.exports={version:_ct.version}});var XR=C(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.isJsonObject=y0.typeofJsonValue=void 0;function qct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}y0.typeofJsonValue=qct;function Yct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}y0.isJsonObject=Yct});var eD=C(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.base64encode=B0.base64decode=void 0;var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<ku.length;t++)ZR[ku[t].charCodeAt(0)]=t;ZR[45]=ku.indexOf("+");ZR[95]=ku.indexOf("/");function Vct(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=ZR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}B0.base64decode=Vct;function Wct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ku[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=ku[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=ku[s|n>>6],e+=ku[n&63],r=0;break}return r&&(e+=ku[s],e+="=",r==1&&(e+="=")),e}B0.base64encode=Wct});var Upe=C(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var WH=t=>String.fromCharCode.apply(String,t);function Jct(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(WH(n)),s=0);return r.length?(s&&r.push(WH(n.slice(0,s))),r.join("")):WH(n.slice(0,s))}tD.utf8read=Jct});var GB=C(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.WireType=nA.mergeBinaryOptions=nA.UnknownFieldHandler=void 0;var zct;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(zct=nA.UnknownFieldHandler||(nA.UnknownFieldHandler={}));function jct(t,e){return Object.assign(Object.assign({},t),e)}nA.mergeBinaryOptions=jct;var Kct;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Kct=nA.WireType||(nA.WireType={}))});var nD=C(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.varint32read=fi.varint32write=fi.int64toString=fi.int64fromString=fi.varint64write=fi.varint64read=void 0;function $ct(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}fi.varint64read=$ct;function Xct(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}fi.varint64write=Xct;var rD=65536*65536;function Zct(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=rD&&(s=s+(n/rD|0),n=n%rD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}fi.int64fromString=Zct;function eAt(t,e){if(e>>>0<=2097151)return""+(rD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}fi.int64toString=eAt;function tAt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}fi.varint32write=tAt;function rAt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}fi.varint32read=rAt});var dd=C(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.PbLong=ld.PbULong=ld.detectBi=void 0;var qB=nD(),or;function Ppe(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}ld.detectBi=Ppe;Ppe();function Ope(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Hpe=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c Line truncated
`)}};RD.RpcError=C9});var y9=C(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var mme=ct();function Qut(t,e){if(!e)return t;let r={};DD(t,r),DD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=mme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=mme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DD(t.meta,r.meta),DD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}kD.mergeRpcOptions=Qut;function DD(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var b9=C(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Deferred=Gf.DeferredState=void 0;var oA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oA=Gf.DeferredState||(Gf.DeferredState={}));var B9=class{constructor(e=!0){this._state=oA.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oA.PENDING)throw new Error(`cannot resolve ${oA[this.state].toLowerCase()}`);this._resolve(e),this._state=oA.RESOLVED}reject(e){if(this.state!==oA.PENDING)throw new Error(`cannot reject ${oA[this.state].toLowerCase()}`);this._reject(e),this._state=oA.REJECTED}resolvePending(e){this._state===oA.PENDING&&this.resolve(e)}rejectPending(e){this._state===oA.PENDING&&this.reject(e)}};Gf.Deferred=B9});var w9=C(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var Eme=b9(),qf=ct(),Q9=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){qf.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){qf.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){qf.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){qf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;qf.assert(e,"bad state"),qf.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Eme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;qf.assert(n.state==Eme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=Q9});var N9=C(x0=>{"use strict";var wut=x0&&x0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(x0,"__esModule",{value:!0});x0.UnaryCall=void 0;var S9=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return wut(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};x0.UnaryCall=S9});var x9=C(R0=>{"use strict";var Sut=R0&&R0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(R0,"__esModule",{value:!0});R0.ServerStreamingCall=void 0;var T9=class{constructor(e Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var kCe=E(DCe=>{"use strict";var $q=Yu().Buffer;DCe._dbcs=Vu;var $n=-1,RCe=-2,Zo=-10,Ms=-1e3,Z0=new Array(256),Rb=-1;for(H2=0;H2<256;H2++)Z0[H2]=$n;var H2;function Vu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Z0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(Z0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Z0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ms-o[n]],c=48;c<=57;c++){if(a[c]===$n)a[c]=Ms-s;else if(a[c]>Ms)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ms-a[c]],u=129;u<=254;u++){if(A[u]===$n)A[u]=Ms-i;else{if(A[u]===Ms-i)continue;if(A[u]>Ms)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ms-A[u]],d=48;d<=57;d++)l[d]===$n&&(l[d]=RCe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function pCt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(tCt.has(s)){r=s;break}}return r}function mCt(t,e){let r=pCt(e);r!==""&&(t.referrerPolicy=r)}function ECt(){return"allowed"}function CCt(){return"success"}function ICt(){return"success"}function yCt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function BCt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&gV(t.origin)&&!gV(gg(t))&&(e=null);break;case"same-origin":Pb(t,gg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function sE(t,e){return t}function bCt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sE(t.domainLookupStartTime,r),domainLookupEndTime:sE(t.domainLookupEndTime,r),connectionStartTime:sE(t.connectionStartTime,r),connectionEndTime:sE(t.connectionEndTime,r),secureConnectionStartTime:sE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function QCt(t){return sE(iCt.now(),t)}function wCt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function cBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function SCt(t){return{referrerPolicy:t.referrerPolicy}}function NCt(t){let e=t.referrerPolicy;Ob(e);let r=null;if(t.referrer==="client"){let i=nBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else vd.is.URL(t.referrer)&&(r=t.referrer);let n=fV(r),s=fV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??fV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=gg(t);return Pb(n,i)?n:fg(n)&&!fg(i)?"no-referrer":s}case"same-origin":return Pb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Pb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=gg(t);return fg(n)&&!fg(i)?"no-referrer":n}}}function fV(t,e=!1){return Ob(vd.is.URL(t)),t=new URL(t),dBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var TCt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),xCt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function ABe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),xCt(t)):TCt(t)}function RCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||ABe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function fg(t){return vd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:RCt(t.origin):!1}function DCt(t){}function Pb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function kCt(t){return t.controller.state==="aborted"}function vCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function _Ct(t){return aCt[t.toLowerCase()]??t}var FCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function uBe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,FCt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function MCt(t,e,r,n=0,s=1){let i=uBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return vd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return vd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ra(a=>QV(a)&&a!==59,t,e);i=BV.decode(o)}return{name:n,value:i}}function oIt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw mi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ra(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bV(o,!0,!0,a=>a===9||a===32),!XCt.test(o.toString()))throw mi("header name does not match the field-name token production");if(t[e.position]!==58)throw mi("expected :");switch(e.position++,ra(a=>a===32||a===9,t,e),$Ct(o)){case"content-disposition":{if(r=n=null,ra(c=>QV(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw mi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=iIt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw mi("name attribute is required in content-disposition header");break}case"content-type":{let a=ra(c=>c!==10&&c!==13,t,e);a=bV(a,!1,!0,c=>c===9||c===32),s=EBe(a);break}case"content-transfer-encoding":{let a=ra(c=>c!==10&&c!==13,t,e);a=bV(a,!1,!0,c=>c===9||c===32),i=EBe(a);break}default:ra(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw mi("expected CRLF");e.position+=2}}function ra(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function bV(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function aIt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function mi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function cIt(t){return t<=31||t===127}function AIt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function QV(t){return t<=127&&t!==32&&t!==9&&!cIt(t)&&!AIt(t)}CBe.exports={multipartFormDataParser:sIt,validateBoundary:nIt}});var Hb=E((sIr,yBe)=>{"use strict";function uIt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yBe.exports={createDeferredPromise:uIt}});var aE=E((iIr,SBe)=>{"use strict";var NV=Ze(),{ReadableStreamFrom:lIt,readableStreamClose:dIt,fullyReadBody:hIt,extractMimeType:fIt}=$i(),{FormData:BBe,setFormDataState:gIt}=dk(),{webidl:Za}=Xn(),wV=b("node:assert"),{isErrored:SV,isDisturbed:pIt}=b("node:stream"),{isUint8Array:mIt}=b("node:util/types"),{serializeAMimeType:EIt}=ta(),{multipartFormDataParser:CIt}=IBe(),{createDeferredPromise:IIt}=Hb(),{parseJSONFromBytes:yIt}=zu(),{utf8DecodeBytes:BIt}=ok(),{runtimeFeatures:bIt}=ju(),QIt=bIt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),hk=new TextEncoder;function wIt(){}var SIt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pIt(e)&&!SV(e)&&e.cancel("Response object has been garbage collected").catch(wIt)});function QBe(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),wV(Za.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let A=`----formdata-undici-0${`${QIt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var _Ie=C(vIe=>{"use strict";var wY=Yu().Buffer;vIe._dbcs=Vu;var es=-1,kIe=-2,ra=-10,Ps=-1e3,AE=new Array(256),Wb=-1;for(ok=0;ok<256;ok++)AE[ok]=es;var ok;function Vu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=AE.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(AE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(AE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Ps-o[n]],c=48;c<=57;c++){if(a[c]===es)a[c]=Ps-s;else if(a[c]>Ps)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Ps-a[c]],u=129;u<=254;u++){if(A[u]===es)A[u]=Ps-i;else{if(A[u]===Ps-i)continue;if(A[u]>Ps)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Ps-A[u]],d=48;d<=57;d++)l[d]===es&&(l[d]=kIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function OIt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(wIt.has(s)){r=s;break}}return r}function HIt(t,e){let r=OIt(e);r!==""&&(t.referrerPolicy=r)}function GIt(){return"allowed"}function qIt(){return"success"}function YIt(){return"success"}function VIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WIt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&YV(t.origin)&&!YV(Cg(t))&&(e=null);break;case"same-origin":rQ(t,Cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function fE(t,e){return t}function JIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:fE(t.domainLookupStartTime,r),domainLookupEndTime:fE(t.domainLookupEndTime,r),connectionStartTime:fE(t.connectionStartTime,r),connectionEndTime:fE(t.connectionEndTime,r),secureConnectionStartTime:fE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function zIt(t){return fE(xIt.now(),t)}function jIt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Abe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KIt(t){return{referrerPolicy:t.referrerPolicy}}function $It(t){let e=t.referrerPolicy;nQ(e);let r=null;if(t.referrer==="client"){let i=sbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Fd.is.URL(t.referrer)&&(r=t.referrer);let n=qV(r),s=qV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Cg(t);return rQ(n,i)?n:Eg(n)&&!Eg(i)?"no-referrer":s}case"same-origin":return rQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return rQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":n}}}function qV(t,e=!1){return nQ(Fd.is.URL(t)),t=new URL(t),hbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var XIt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),ZIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function ube(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),ZIt(t)):XIt(t)}function eyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||ube(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Eg(t){return Fd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:eyt(t.origin):!1}function tyt(t){}function rQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function ryt(t){return t.controller.state==="aborted"}function nyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function syt(t){return DIt[t.toLowerCase()]??t}var iyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,iyt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function oyt(t,e,r,n=0,s=1){let i=lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Fd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ia(a=>ZV(a)&&a!==59,t,e);i=$V.decode(o)}return{name:n,value:i,extended:s}}function Ryt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Bi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ia(a=>a!==10&&a!==13&&a!==58,t,e);if(o=XV(o,!0,!0,a=>a===9||a===32),!Byt.test(o.toString()))throw Bi("header name does not match the field-name token production");if(t[e.position]!==58)throw Bi("expected :");switch(e.position++,ia(a=>a===32||a===9,t,e),yyt(o)){case"content-disposition":{r=n=null;let a=!1;if(ia(A=>ZV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Bi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=xyt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Bi("name attribute is required in content-disposition header");break}case"content-type":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),s=Cbe(a);break}case"content-transfer-encoding":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),i=Cbe(a);break}default:ia(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Bi("expected CRLF");e.position+=2}}function ia(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function XV(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function Dyt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Bi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function kyt(t){return t<=31||t===127}function vyt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function ZV(t){return t<=127&&t!==32&&t!==9&&!kyt(t)&&!vyt(t)}Ibe.exports={multipartFormDataParser:Tyt,validateBoundary:Nyt}});var sQ=C((zyr,Bbe)=>{"use strict";function _yt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Bbe.exports={createDeferredPromise:_yt}});var mE=C((jyr,Nbe)=>{"use strict";var r7=Ze(),{ReadableStreamFrom:Fyt,readableStreamClose:Myt,fullyReadBody:Lyt,extractMimeType:Uyt}=ro(),{FormData:bbe,setFormDataState:Pyt}=Dk(),{webidl:tc}=ts(),e7=Q("node:assert"),{isErrored:t7,isDisturbed:Oyt}=Q("node:stream"),{isUint8Array:Hyt}=Q("node:util/types"),{serializeAMimeType:Gyt}=sa(),{multipartFormDataParser:qyt}=ybe(),{createDeferredPromise:Yyt}=sQ(),{parseJSONFromBytes:Vyt}=zu(),{utf8DecodeBytes:Wyt}=wk(),{runtimeFeatures:Jyt}=ju(),zyt=Jyt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),kk=new TextEncoder;function jyt(){}var Kyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Oyt(e)&&!t7(e)&&e.cancel("Response object has been garbage collected").catch(jyt)});function wbe(t,e=!1){let r=null,n=null;tc.is.ReadableStream(t)?r=t:tc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),e7(tc.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(tc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(tc.is.BufferSource(t))i=tc.util.getCopyOfBytesHeldByBufferSource(t);else if(tc.is.FormData(t)){let A=`----formdata-undici-0${`${zyt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=hk.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=kk.encode(u+`; name="${l(d(m))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=hk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=kk.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=hk.encode(`--${A}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(Za.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(NV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:lIt(t)}return(typeof i=="string"||mIt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(SV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!SV(r)&&n.enqueue(typeof A=="string"?hk.encode(A):new Uint8Array(A));queueMicrotask(()=>dIt(n))})(),[{stream:r,source:i,length:o},a]}function NIt(t,e=!1){return Za.is.ReadableStream(t)&&(wV(!NV.isDisturbed(t),"The body has already been consumed."),wV(!t.locked,"The stream is locked.")),QBe(t,e)}function TIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function xIt(t,e){return{blob(){return oE(this,n=>{let s=bBe(e(this));return s===null?s="":s&&(s=EIt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return oE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return oE(this,BIt,t,e)},json(){return oE(this,yIt,t,e)},formData(){return oE(this,n=>{let s=bBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=CIt(n,s),o=new BBe;return gIt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new BBe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return oE(this,n=>new Uint8Array(n),t,e)}}}function RIt(t,e){Object.assign(t.prototype,xIt(t,e))}function oE(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),wBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=IIt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(hIt(t.body,o,i),s.promise)}function wBe(t){let e=t.body;return e!=null&&(e.stream.locked||NV.isDisturbed(e.stream))}function bBe(t){let e=t.headersList,r=fIt(e);return r==="failure"?null:r}SBe.exports={extractBody:QBe,safelyExtractBody:NIt,cloneBody:TIt,mixinBody:RIt,streamRegistry:SIt,bodyUnusable:wBe}});var LBe=E((oIr,MBe)=>{"use strict";var Ve=b("node:assert"),We=Ze(),{channels:NBe}=Dd(),TV=AY(),{RequestContentLengthMismatchError:pg,ResponseContentLengthMismatchError:DIt,RequestAbortedError:vBe,HeadersTimeoutError:kIt,HeadersOverflowError:vIt,SocketError:Yb,InformationalError:cE,BodyTimeoutError:_It,HTTPParserError:FIt,ResponseExceededMaxSizeError:MIt}=je(),{kUrl:_Be,kReset:Ei,kClient:FV,kParser:Yr,kBlocking:Vb,kRunning:gs,kPending:LIt,kSize:TBe,kWriting:Fd,kQueue:ec,kNoRef:Gb,kKeepAliveDefaultTimeout:UIt,kHostHeader:PIt,kPendingIdx:OIt,kRunningIdx:na,kError:sa,kPipelining:pk,kSocket:AE,kKeepAliveTimeoutValue:Ek,kMaxHeadersSize:HIt,kKeepAliveMaxTimeout:GIt,kKeepAliveTimeoutThreshold:qIt,kHeadersTimeout:YIt,kBodyTimeout:VIt,kStrictContentLength:DV,kMaxRequests:xBe,kCounter:WIt,kMaxResponseSize:JIt,kOnError:zIt,kResume:_d,kHTTPContext:FBe,kClosed:kV}=Kt(),hA=Sye(),jIt=Buffer.alloc(0),fk=Buffer[Symbol.species],KIt=We.removeAllListeners,xV;function $It(){let t=process.env.JEST_WORKER_ID?tV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(xye())}catch{}return e||(e=new WebAssembly.Module(t||tV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onStatus(new fk(fA.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onHeaderField(new fk(fA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onHeaderValue(new fk(fA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-gA+fA.byteOffset;return yn.onBody(new fk(fA.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var RV=null,yn=null,fA=null,gk=0,gA=null,XIt=0,qb=1,uE=2|qb,mk=4|qb,vV=8|XIt,_V=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(hA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[HIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[JIt]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[PIt],i?p+=`connection: upgrade\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=kk.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(tc.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(r7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=tc.is.ReadableStream(t)?t:Fyt(t)}return(typeof i=="string"||Hyt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(t7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!t7(r)&&n.enqueue(typeof A=="string"?kk.encode(A):new Uint8Array(A));queueMicrotask(()=>Myt(n))})(),[{stream:r,source:i,length:o},a]}function $yt(t,e=!1){return tc.is.ReadableStream(t)&&(e7(!r7.isDisturbed(t),"The body has already been consumed."),e7(!t.locked,"The stream is locked.")),wbe(t,e)}function Xyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Zyt(t,e){return{blob(){return pE(this,n=>{let s=Qbe(e(this));return s===null?s="":s&&(s=Gyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return pE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return pE(this,Wyt,t,e)},json(){return pE(this,Vyt,t,e)},formData(){return pE(this,n=>{let s=Qbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=qyt(n,s),o=new bbe;return Pyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new bbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return pE(this,n=>new Uint8Array(n),t,e)}}}function eBt(t,e){Object.assign(t.prototype,Zyt(t,e))}function pE(t,e,r,n){try{tc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Sbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Yyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Lyt(t.body,o,i),s.promise)}function Sbe(t){let e=t.body;return e!=null&&(e.stream.locked||r7.isDisturbed(e.stream))}function Qbe(t){let e=t.headersList,r=Uyt(e);return r==="failure"?null:r}Nbe.exports={extractBody:wbe,safelyExtractBody:$yt,cloneBody:Xyt,mixinBody:eBt,streamRegistry:Kyt,bodyUnusable:Sbe}});var Gbe=C((Kyr,Hbe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:Tbe}=vd(),n7=LY(),{RequestContentLengthMismatchError:Ig,ResponseContentLengthMismatchError:xbe,RequestAbortedError:Lbe,InvalidArgumentError:tBt,HeadersTimeoutError:rBt,HeadersOverflowError:nBt,SocketError:yg,InformationalError:EE,BodyTimeoutError:sBt,HTTPParserError:iBt,ResponseExceededMaxSizeError:oBt}=$e(),{kUrl:Ube,kReset:bi,kClient:Lk,kParser:gr,kBlocking:aQ,kRunning:hn,kPending:u7,kSize:Rbe,kWriting:Md,kQueue:rc,kNoRef:iQ,kKeepAliveDefaultTimeout:aBt,kHostHeader:cBt,kPendingIdx:ABt,kRunningIdx:oa,kError:Os,kPipelining:Fk,kSocket:bg,kKeepAliveTimeoutValue:Uk,kMaxHeadersSize:uBt,kKeepAliveMaxTimeout:lBt,kKeepAliveTimeoutThreshold:dBt,kHeadersTimeout:hBt,kBodyTimeout:fBt,kStrictContentLength:o7,kMaxRequests:Dbe,kCounter:gBt,kMaxResponseSize:pBt,kOnError:kbe,kResume:$u,kHTTPContext:Pbe,kClosed:a7}=Kt(),no=NBe(),vbe=Buffer.alloc(0),vk=Buffer[Symbol.species],mBt=De.removeAllListeners,Qg=Symbol("kIdleSocketValidation"),Bg=Symbol("kIdleSocketValidationTimeout"),l7=Symbol("kSocketUsed"),s7;function EBt(){let t=process.env.JEST_WORKER_ID?RV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(RBe())}catch{}return e||(e=new WebAssembly.Module(t||RV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onStatus(new vk(gA.buffer,o,i))},wasm_on_message_begin:n=>(He(Wr.ptr===n),Wr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderField(new vk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderValue(new vk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(Wr.ptr===n),Wr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onBody(new vk(gA.buffer,o,i))},wasm_on_message_complete:n=>(He(Wr.ptr===n),Wr.onMessageComplete())}})}var i7=null,Wr=null,gA=null,_k=0,pA=null,CBt=0,oQ=1,CE=2|oQ,Mk=4|oQ,c7=8|CBt,A7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(no.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[uBt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[cBt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[pk]&&!h[Ei]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
`;else p+=`${m}: ${C}\r
`}return NBe.sendHeaders.hasSubscribers&&NBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?DBe(f,null,t,e,h,u,p,l):We.isBuffer(c)?DBe(f,c,t,e,h,u,p,l):We.isBlobLike(c)?typeof c.stream=="function"?kBe(f,c.stream(),t,e,h,u,p,l):Ayt(f,c,t,e,h,u,p,l):We.isStream(c)?cyt(f,c,t,e,h,u,p,l):We.isIterable(c)?kBe(f,c,t,e,h,u,p,l):Ve(!1),!0}function cyt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,A=new Ck({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new vBe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ve(s.destroyed||s[Fd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function DBe(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`:t[Fk]&&!h[bi]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return Tbe.sendHeaders.hasSubscribers&&Tbe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Fbe(f,null,t,e,h,u,g,l):De.isBuffer(c)?Fbe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?Mbe(f,c.stream(),t,e,h,u,g,l):DBt(f,c,t,e,h,u,g,l):De.isStream(c)?RBt(f,c,t,e,h,u,g,l):De.isIterable(c)?Mbe(f,c,t,e,h,u,g,l):He(!1),!0}function RBt(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"stream body cannot be pipelined");let c=!1,A=new Pk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Lbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Md]&&r[hn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Fbe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Ei]=!0)):i===0?s.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[bi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[_d]()}catch(c){t(c)}}async function Ayt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new pg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[$u]()}catch(c){t(c)}}async function DBt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ig;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ei]=!0),r[_d]()}catch(c){t(c)}}async function kBe(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Ve(c===null),s[sa]?h(s[sa]):c=d});s.on("close",A).on("drain",A);let l=new Ck({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[sa])throw s[sa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Ck=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Fd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[sa])throw r[sa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[DV])throw new pg;process.emitWarning(new pg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ei]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[bi]=!0),r[$u]()}catch(c){t(c)}}async function Mbe(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Os]?h(s[Os]):c=d});s.on("close",A).on("drain",A);let l=new Pk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Os])throw s[Os];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Pk=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Md]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Os])throw r[Os];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[o7])throw new Ig;process.emitWarning(new Ig)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bi]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===uE&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Fd]=!1,e[sa])throw e[sa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[gr].timeout&&r[gr].timeoutType===CE&&r[gr].timeout.refresh&&r[gr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Md]=!1,e[Os])throw e[Os];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[DV])throw new pg;process.emitWarning(new pg)}e[Yr].timeout&&e[Yr].timeoutType===uE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[_d]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Fd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};MBe.exports=ZIt});var WBe=E((aIr,VBe)=>{"use strict";var oa=b("node:assert"),{pipeline:uyt}=b("node:stream"),At=Ze(),{RequestContentLengthMismatchError:PV,RequestAbortedError:lyt,SocketError:jb,InformationalError:Md,InvalidArgumentError:dyt}=je(),{kUrl:zb,kReset:bk,kClient:Xi,kRunning:Kb,kPending:hyt,kQueue:Ld,kPendingIdx:HV,kRunningIdx:tc,kError:Zi,kSocket:Rr,kStrictContentLength:fyt,kOnError:lE,kMaxConcurrentStreams:yk,kPingInterval:UBe,kHTTP2Session:$u,kHTTP2InitialWindowSize:gyt,kHTTP2ConnectionWindowSize:pyt,kResume:pA,kSize:myt,kHTTPContext:GV,kClosed:OV,kBodyTimeout:Eyt,kEnableConnectProtocol:Wb,kRemoteSettings:Jb,kHTTP2Stream:Ik,kHTTP2SessionState:qV}=Kt(),{channels:PBe}=Dd(),ia=Symbol("open streams"),OBe,Bk;try{Bk=b("node:http2")}catch{Bk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Cyt,HTTP2_HEADER_METHOD:HBe,HTTP2_HEADER_PATH:GBe,HTTP2_HEADER_SCHEME:MV,HTTP2_HEADER_CONTENT_LENGTH:Iyt,HTTP2_HEADER_EXPECT:yyt,HTTP2_HEADER_STATUS:LV,HTTP2_HEADER_PROTOCOL:Byt,NGHTTP2_REFUSED_STREAM:byt,NGHTTP2_CANCEL:Qyt}}=Bk;function UV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function wyt(t,e){t[Rr]=e;let r=t[gyt],n=t[pyt],s=Bk.connect(t[zb],{createConnection:()=>e,peerMaxConcurrentStreams:t[yk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,s[ia]=0,s[Xi]=t,s[Rr]=e,s[qV]={ping:{interval:t[UBe]===0?null:setInterval(xyt,t[UBe],s).unref()}},s[Wb]=!1,s[Jb]=!1,n&&At.addListener(s,"connect",Nyt.bind(s,n)),At.addListener(s,"error",Ryt),At.addListener(s,"frameError",Dyt),At.addListener(s,"end",kyt),At.addListener(s,"goaway",vyt),At.addListener(s,"close",_yt),At.addListener(s,"remoteSettings",Tyt),s.unref(),t[$u]=s,e[$u]=s,At.addListener(e,"error",Myt),At.addListener(e,"end",Lyt),At.addListener(e,"close",Fyt),e[OV]=!1,e.on("close",Uyt),{version:"h2",defaultPipelining:1/0,write(i){return Oyt(t,i)},resume(){Syt(t)},destroy(i,o){e[OV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Kb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Jb]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Jb]===!1;return!1}}}function Syt(t){let e=t[Rr];e?.destroyed===!1&&(t[myt]===0||t[yk]===0?(e.unref(),t[$u].unref()):(e.ref(),t[$u].ref()))}function Nyt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Tyt(t){if(this[Xi][yk]=t.maxConcurrentStreams??this[Xi][yk],this[Jb]===!0&&this[Wb]===!0&&t.enableConnectProtocol===!1){let e=new Md("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Zi]=e,this[Xi][lE](e);return}this[Wb]=t.enableConnectProtocol??this[Wb],this[Jb]=!0,this[Xi][pA]()}function xyt(t){let e=t[qV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Xi],o=this[Xi];if(n!=null){let a=new Md(`HTTP/2: "PING" errored - type ${n.message}`);o[Zi]=a,i[lE](a)}else i.emit("ping",s)}}function Ryt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Zi]=t,this[Xi][lE](t)}function Dyt(t,e,r){if(r===0){let n=new Md(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Zi]=n,this[Xi][lE](n)}}function kyt(){let t=new jb("other side closed",At.getSocketInfo(this[Rr]));this.destroy(t),At.destroy(this[Rr],t)}function vyt(t){let e=this[Zi]||new jb(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[Rr])),r=this[Xi];if(r[Rr]=null,r[GV]=null,this.close(),this[$u]=null,At.destroy(this[Rr],e),r[tc]<r[Ld].length){let n=r[Ld][r[tc]];r[Ld][r[tc]++]=null,At.errorRequest(r,n,e),r[HV]=r[tc]}oa(r[Kb]===0),r.emit("disconnect",r[zb],[r],e),r.emit("connectionError",r[zb],[r],e),r[pA]()}function _yt(){let{[Xi]:t,[qV]:e}=this,{[Rr]:r}=t,n=this[Rr][Zi]||this[Zi]||new jb("closed",At.getSocketInfo(r));if(t[Rr]=null,t[GV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oa(t[hyt]===0);let s=t[Ld].splice(t[tc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function Fyt(){let t=this[Zi]||new jb("closed",At.getSocketInfo(this)),e=this[$u][Xi];e[Rr]=null,e[GV]=null,this[$u]!==null&&this[$u].destroy(t),e[HV]=e[tc],oa(e[Kb]===0),e.emit("disconnect",e[zb],[e],t),e[pA]()}function Myt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=t,this[Xi][lE](t)}function Lyt(){At.destroy(this,new jb("other side closed",At.getSocketInfo(this)))}func Line truncated
`;PBe.sendHeaders.publish({request:e,headers:k,socket:n[Rr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[yyt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[Ik]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[Ik]=!0,O()),++n[ia],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[LV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),UV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Ld][t[tc]++]=null,t[pA]()):(m(new Md("HTTP/2: stream half-closed (remote)")),t[Ld][t[tc]++]=null,t[HV]=t[tc],t[pA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Md(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Md(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?qBe(m,f,null,t,e,t[Rr],y,C):At.isBuffer(d)?qBe(m,f,d,t,e,t[Rr],y,C):At.isBlobLike(d)?typeof d.stream=="function"?YBe(m,f,d.stream(),t,e,t[Rr],y,C):Gyt(m,f,d,t,e,t[Rr],y,C):At.isStream(d)?Hyt(m,t[Rr],C,f,d,t,e,y):At.isIterable(d)?YBe(m,f,d,t,e,t[Rr],y,C):oa(!1)}}function qBe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(oa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[bk]=!0),s.onRequestSent(),n[pA]()}catch(c){t(c)}}function Hyt(t,e,r,n,s,i,o,a){oa(a!==0||i[Kb]===0,"stream body cannot be pipelined");let c=uyt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[bk]=!0),i[pA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function Gyt(t,e,r,n,s,i,o,a){oa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new PV;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[bk]=!0),n[pA]()}catch(c){t(c)}}async function YBe(t,e,r,n,s,i,o,a){oa(o!==0||n[Kb]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{oa(c===null),i[Zi]?d(i[Zi]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[Zi])throw i[Zi];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[bk]=!0),n[pA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}VBe.exports=wyt});var Gd=E((cIr,tbe)=>{"use strict";var Xu=b("node:assert"),$Be=b("node:net"),$b=b("node:http"),mg=Ze(),{ClientStats:qyt}=UY(),{channels:dE}=Dd(),Yyt=fye(),Vyt=lg(),{InvalidArgumentError:fr,InformationalError:Wyt,ClientDestroyedError:Jyt}=je(),zyt=dg(),{kUrl:mA,kServerName:Hd,kClient:jyt,kBusy:YV,kConnect:Kyt,kResuming:Eg,kRunning:tQ,kPending:rQ,kSize:Xb,kQueue:rc,kConnected:$yt,kConnecting:hE,kNeedDrain:Pd,kKeepAliveDefaultTimeout:JBe,kHostHeader:Xyt,kPendingIdx:nc,kRunningIdx:Zu,kError:Zyt,kPipelining:Qk,kKeepAliveTimeoutValue:eBt,kMaxHeadersSize:tBt,kKeepAliveMaxTimeout:rBt,kKeepAliveTimeoutThreshold:nBt,kHeadersTimeout:sBt,kBodyTimeout:iBt,kStrictContentLength:oBt,kConnector:Zb,kMaxRequests:VV,kCounter:aBt,kClose:cBt,kDestroy:ABt,kDispatch:uBt,kLocalAddress:eQ,kMaxResponseSize:lBt,kOnError:dBt,kHTTPContext:rn,kMaxConcurrentStreams:hBt,kHTTP2InitialWindowSize:fBt,kHTTP2ConnectionWindowSize:gBt,kResume:Od,kPingInterval:pBt}=Kt(),mBt=LBe(),EBt=WBe(),Ud=Symbol("kClosedResolve"),CBt=$b&&$b.maxHeaderSize&&Number.isInteger($b.maxHeaderSize)&&$b.maxHeaderSize>0?()=>$b.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},zBe=()=>{};function XBe(t){return t[Qk]??t[rn]?.defaultPipelining??1}var WV=class extends Vyt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:fe}={}){if(A!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu Line truncated
`,this[iBt]=a??3e5,this[sBt]=n??3e5,this[oBt]=m??!0,this[VV]=N,this[Ud]=null,this[lBt]=O>-1?O:-1,this[rn]=null,this[hBt]=D??100,this[fBt]=ee??262144,this[gBt]=ce??524288,this[pBt]=fe??6e4,this[rc]=[],this[Zu]=0,this[nc]=0,this[Od]=De=>JV(this,De),this[dBt]=De=>ZBe(this,De)}get pipelining(){return this[Qk]}set pipelining(e){this[Qk]=e,this[Od](!0)}get stats(){return new qyt(this)}get[rQ](){return this[rc].length-this[nc]}get[tQ](){return this[nc]-this[Zu]}get[Xb](){return this[rc].length-this[Zu]}get[$yt](){return!!this[rn]&&!this[hE]&&!this[rn].destroyed}get[YV](){return!!(this[rn]?.busy(null)||this[Xb]>=(XBe(this)||1)||this[rQ]>0)}[Kyt](e){ebe(this),this.once("connect",e)}[uBt](e,r){let n=new Yyt(this[mA].origin,e,r);return this[rc].push(n),this[Eg]||(mg.bodyLength(n.body)==null&&mg.isIterable(n.body)?(this[Eg]=1,queueMicrotask(()=>JV(this))):this[Od](!0)),this[Eg]&&this[Pd]!==2&&this[YV]&&(this[Pd]=2),this[Pd]<2}[cBt](){return new Promise(e=>{this[Xb]?this[Ud]=e:e(null)})}[ABt](e){return new Promise(r=>{let n=this[rc].splice(this[nc]);for(let i=0;i<n.length;i++){let o=n[i];mg.errorRequest(this,o,e)}let s=()=>{this[Ud]&&(this[Ud](),this[Ud]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[Od]()})}};function ZBe(t,e){if(t[tQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Xu(t[nc]===t[Zu]);let r=t[rc].splice(t[Zu]);for(let n=0;n<r.length;n++){let s=r[n];mg.errorRequest(t,s,e)}Xu(t[Xb]===0)}}function ebe(t){Xu(!t[hE]),Xu(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");Xu(i!==-1);let o=r.substring(1,i);Xu($Be.isIPv6(o)),r=o}t[hE]=!0,dE.beforeConnect.hasSubscribers&&dE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Hd],localAddress:t[eQ]},connector:t[Zb]}),t[Zb]({host:e,hostname:r,protocol:n,port:s,servername:t[Hd],localAddress:t[eQ]},(i,o)=>{if(i){jBe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Od]();return}if(t.destroyed){mg.destroy(o.on("error",zBe),new Jyt),t[Od]();return}Xu(o);try{t[rn]=o.alpnProtocol==="h2"?EBt(t,o):mBt(t,o)}catch(a){o.destroy().on("error",zBe),jBe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Od]();return}t[hE]=!1,o[aBt]=0,o[VV]=t[VV],o[jyt]=t,o[Zyt]=null,dE.connected.hasSubscribers&&dE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Hd],localAddress:t[eQ]},connector:t[Zb],socket:o}),t.emit("connect",t[mA],[t]),t[Od]()})}function jBe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[hE]=!1,dE.connectError.hasSubscribers&&dE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Hd],localAddress:t[eQ]},connector:t[Zb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Xu(t[tQ]===0);t[rQ]>0&&t[rc][t[nc]].servername===t[Hd];){let o=t[rc][t[nc]++];mg.errorRequest(t,o,e)}else ZBe(t,e);t.emit("connectionError",t[mA],[t],e)}}function KBe(t){t[Pd]=0,t.emit("drain",t[mA],[t])}function JV(t,e){t[Eg]!==2&&(t[Eg]=2,IBt(t,e),t[Eg]=0,t[Zu]>256&&(t[rc].splice(0,t[Zu]),t[nc]-=t[Zu],t[Zu]=0))}function IBt(t,e){for(;;){if(t.destroyed){Xu(t[rQ]===0);return}if(t[Ud]&&!t[Xb]){t[Ud](),t[Ud]=null;return}if(t[rn]&&t[rn].resume(),t[YV])t[Pd]=2;else if(t[Pd]===2){e?(t[Pd]=1,queueMicrotask(()=>KBe(t))):KBe(t);continue}if(t[rQ]===0||t[tQ]>=(XBe(t)||1))return;let r=t[rc][t[nc]];if(r===null)return;if(t[mA].protocol==="https:"&&t[Hd]!==r.servername){if(t[tQ]>0)return;t[Hd]=r.servername,t[rn]?.destroy(new Wyt("servername changed"),()=>{t[rn]=null,JV(t)})}if(t[hE])return;if(!t[rn]){ebe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[nc]++:t[rc].splice(t[nc],1)}}tbe.exports=WV});var zV=E((uIr,rbe)=>{"use strict";var wk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};rbe.exports=class{constructor(){this.head=this.tail=new wk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new wk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Sk=E((lIr,lbe)=>{"use strict";var{PoolStats:yBt}=UY(),BBt=lg(),bBt=zV(),{kConnected:jV,kSize:nbe,kRunning:sbe,kPending:ibe,kQueued:nQ,kBusy:QBt,kFree:wBt,kUrl:SBt,kClose:NBt,kDestroy:TBt,kDispatch:xBt}=Kt(),Gn=Symbol("clients"),Ls=Symbol("needDrain"),sQ=Symbol("queue"),KV=Symbol("closed resolve"),$V=Symbol("onDrain"),obe=Symbol("onConnect"),abe=Symbol("onDisconnect"),cbe=Symbol("onConnectionError"),XV=Symbol("get dispatcher"),Abe=Symbol("add client"),ube=Symbol("remove client"),ZV=class extends BBt{[sQ]=new bBt;[nQ]=0;[Gn]=[];[Ls]=!1;[$V](e,r,n){let s=this[sQ],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[o7])throw new Ig;process.emitWarning(new Ig)}e[gr].timeout&&e[gr].timeoutType===CE&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),n[$u]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Md]=!1,e&&(He(n[hn]<=1,"pipeline should only contain this request"),s(e))}};Hbe.exports=IBt});var $be=C(($yr,Kbe)=>{"use strict";var ca=Q("node:assert"),{pipeline:kBt}=Q("node:stream"),At=Ze(),{RequestContentLengthMismatchError:g7,RequestAbortedError:vBt,SocketError:lQ,InformationalError:Ld,InvalidArgumentError:_Bt}=$e(),{kUrl:uQ,kReset:qk,kClient:so,kRunning:dQ,kPending:FBt,kQueue:Ud,kPendingIdx:m7,kRunningIdx:nc,kError:io,kSocket:kr,kStrictContentLength:MBt,kOnError:IE,kMaxConcurrentStreams:Hk,kPingInterval:qbe,kHTTP2Session:Xu,kHTTP2InitialWindowSize:LBt,kHTTP2ConnectionWindowSize:UBt,kResume:mA,kSize:PBt,kHTTPContext:E7,kClosed:p7,kBodyTimeout:OBt,kEnableConnectProtocol:cQ,kRemoteSettings:AQ,kHTTP2Stream:Ok,kHTTP2SessionState:C7}=Kt(),{channels:Ybe}=vd(),aa=Symbol("open streams"),Vbe,Gk;try{Gk=Q("node:http2")}catch{Gk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:HBt,HTTP2_HEADER_METHOD:Wbe,HTTP2_HEADER_PATH:Jbe,HTTP2_HEADER_SCHEME:d7,HTTP2_HEADER_CONTENT_LENGTH:GBt,HTTP2_HEADER_EXPECT:qBt,HTTP2_HEADER_STATUS:h7,HTTP2_HEADER_PROTOCOL:YBt,NGHTTP2_REFUSED_STREAM:VBt,NGHTTP2_CANCEL:WBt}}=Gk;function f7(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function JBt(t,e){t[kr]=e;let r=t[LBt],n=t[UBt],s=Gk.connect(t[uQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Hk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[so]=t,s[kr]=e,s[C7]={ping:{interval:t[qbe]===0?null:setInterval($Bt,t[qbe],s).unref()}},s[cQ]=!1,s[AQ]=!1,n&&At.addListener(s,"connect",jBt.bind(s,n)),At.addListener(s,"error",XBt),At.addListener(s,"frameError",ZBt),At.addListener(s,"end",ebt),At.addListener(s,"goaway",tbt),At.addListener(s,"close",rbt),At.addListener(s,"remoteSettings",KBt),s.unref(),t[Xu]=s,e[Xu]=s,At.addListener(e,"error",sbt),At.addListener(e,"end",ibt),At.addListener(e,"close",nbt),e[p7]=!1,e.on("close",obt),{version:"h2",defaultPipelining:1/0,write(i){return cbt(t,i)},resume(){zBt(t)},destroy(i,o){e[p7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[dQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[AQ]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[AQ]===!1;return!1}}}function zBt(t){let e=t[kr];e?.destroyed===!1&&(t[PBt]===0||t[Hk]===0?(e.unref(),t[Xu].unref()):(e.ref(),t[Xu].ref()))}function jBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function KBt(t){if(this[so][Hk]=t.maxConcurrentStreams??this[so][Hk],this[AQ]===!0&&this[cQ]===!0&&t.enableConnectProtocol===!1){let e=new Ld("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][io]=e,this[so][IE](e);return}this[cQ]=t.enableConnectProtocol??this[cQ],this[AQ]=!0,this[so][mA]()}function $Bt(t){let e=t[C7];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[so],o=this[so];if(n!=null){let a=new Ld(`HTTP/2: "PING" errored - type ${n.message}`);o[io]=a,i[IE](a)}else i.emit("ping",s)}}function XBt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][io]=t,this[so][IE](t)}function ZBt(t,e,r){if(r===0){let n=new Ld(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][io]=n,this[so][IE](n)}}function ebt(){let t=new lQ("other side closed",At.getSocketInfo(this[kr]));this.destroy(t),At.destroy(this[kr],t)}function tbt(t){let e=this[io]||new lQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[kr])),r=this[so];if(r[kr]=null,r[E7]=null,this.close(),this[Xu]=null,At.destroy(this[kr],e),r[nc]<r[Ud].length){let n=r[Ud][r[nc]];r[Ud][r[nc]++]=null,At.errorRequest(r,n,e),r[m7]=r[nc]}ca(r[dQ]===0),r.emit("disconnect",r[uQ],[r],e),r.emit("connectionError",r[uQ],[r],e),r[mA]()}function rbt(){let{[so]:t,[C7]:e}=this,{[kr]:r}=t,n=this[kr][io]||this[io]||new lQ("closed",At.getSocketInfo(r));if(t[kr]=null,t[E7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ca(t[FBt]===0);let s=t[Ud].splice(t[nc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function nbt(){let t=this[io]||new lQ("closed",At.getSocketInfo(this)),e=this[Xu][so];e[kr]=null,e[E7]=null,this[Xu]!==null&&this[Xu].destroy(t),e[m7]=e[nc],ca(e[dQ]===0),e.emit("disconnect",e[uQ],[e],t),e[mA]()}function sbt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=t,this[so][IE](t)}function ibt(){At.destroy(this,new lQ("other side closed",At.getSocketInfo(this)))}func Line truncated
`;Ybe.sendHeaders.publish({request:e,headers:k,socket:n[kr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[qBt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[Ok]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[Ok]=!0,V()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[h7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),f7(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Ud][t[nc]++]=null,t[mA]()):(m(new Ld("HTTP/2: stream half-closed (remote)")),t[Ud][t[nc]++]=null,t[m7]=t[nc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Ld(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Ld(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?zbe(m,f,null,t,e,t[kr],y,I):At.isBuffer(d)?zbe(m,f,d,t,e,t[kr],y,I):At.isBlobLike(d)?typeof d.stream=="function"?jbe(m,f,d.stream(),t,e,t[kr],y,I):ubt(m,f,d,t,e,t[kr],y,I):At.isStream(d)?Abt(m,t[kr],I,f,d,t,e,y):At.isIterable(d)?jbe(m,f,d,t,e,t[kr],y,I):ca(!1)}}function zbe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ca(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[qk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function Abt(t,e,r,n,s,i,o,a){ca(a!==0||i[dQ]===0,"stream body cannot be pipelined");let c=kBt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[qk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function ubt(t,e,r,n,s,i,o,a){ca(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new g7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[qk]=!0),n[mA]()}catch(c){t(c)}}async function jbe(t,e,r,n,s,i,o,a){ca(o!==0||n[dQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ca(c===null),i[io]?d(i[io]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[io])throw i[io];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[qk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}Kbe.exports=JBt});var Gd=C((Xyr,iQe)=>{"use strict";var Zu=Q("node:assert"),tQe=Q("node:net"),hQ=Q("node:http"),wg=Ze(),{ClientStats:lbt}=dV(),{channels:yE}=vd(),dbt=gBe(),hbt=gg(),{InvalidArgumentError:pr,InformationalError:fbt,ClientDestroyedError:gbt}=$e(),pbt=pg(),{kUrl:EA,kServerName:Hd,kClient:mbt,kBusy:y7,kConnect:Ebt,kResuming:Sg,kRunning:mQ,kPending:EQ,kSize:fQ,kQueue:sc,kConnected:Cbt,kConnecting:BE,kNeedDrain:Od,kKeepAliveDefaultTimeout:Xbe,kHostHeader:Ibt,kPendingIdx:ic,kRunningIdx:tl,kError:ybt,kPipelining:Yk,kKeepAliveTimeoutValue:Bbt,kMaxHeadersSize:bbt,kKeepAliveMaxTimeout:Qbt,kKeepAliveTimeoutThreshold:wbt,kHeadersTimeout:Sbt,kBodyTimeout:Nbt,kStrictContentLength:Tbt,kConnector:gQ,kMaxRequests:B7,kCounter:xbt,kClose:Rbt,kDestroy:Dbt,kDispatch:kbt,kLocalAddress:pQ,kMaxResponseSize:vbt,kOnError:_bt,kHTTPContext:sn,kMaxConcurrentStreams:Fbt,kHTTP2InitialWindowSize:Mbt,kHTTP2ConnectionWindowSize:Lbt,kResume:el,kPingInterval:Ubt}=Kt(),Pbt=Gbe(),Obt=$be(),Pd=Symbol("kClosedResolve"),Hbt=hQ&&hQ.maxHeaderSize&&Number.isInteger(hQ.maxHeaderSize)&&hQ.maxHeaderSize>0?()=>hQ.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},Zbe=()=>{};function rQe(t){return t[Yk]??t[sn]?.defaultPipelining??1}var b7=class extends hbt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:ee,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[Nbt]=a??3e5,this[Sbt]=n??3e5,this[Tbt]=m??!0,this[B7]=B,this[Pd]=null,this[vbt]=V>-1?V:-1,this[sn]=null,this[Fbt]=v??100,this[Mbt]=ee??262144,this[Lbt]=ce??524288,this[Ubt]=ue??6e4,this[sc]=[],this[tl]=0,this[ic]=0,this[el]=ke=>Q7(this,ke),this[_bt]=ke=>nQe(this,ke)}get pipelining(){return this[Yk]}set pipelining(e){this[Yk]=e,this[el](!0)}get stats(){return new lbt(this)}get[EQ](){return this[sc].length-this[ic]}get[mQ](){return this[ic]-this[tl]}get[fQ](){return this[sc].length-this[tl]}get[Cbt](){return!!this[sn]&&!this[BE]&&!this[sn].destroyed}get[y7](){return!!(this[sn]?.busy(null)||this[fQ]>=(rQe(this)||1)||this[EQ]>0)}[Ebt](e){sQe(this),this.once("connect",e)}[kbt](e,r){let n=new dbt(this[EA].origin,e,r);return this[sc].push(n),this[Sg]||(wg.bodyLength(n.body)==null&&wg.isIterable(n.body)?(this[Sg]=1,queueMicrotask(()=>Q7(this))):this[el](!0)),this[Sg]&&this[Od]!==2&&this[y7]&&(this[Od]=2),this[Od]<2}[Rbt](){return new Promise(e=>{this[fQ]?this[Pd]=e:e(null)})}[Dbt](e){return new Promise(r=>{let n=this[sc].splice(this[ic]);for(let i=0;i<n.length;i++){let o=n[i];wg.errorRequest(this,o,e)}let s=()=>{this[Pd]&&(this[Pd](),this[Pd]=null),r(null)};this[sn]?(this[sn].destroy(e,s),this[sn]=null):queueMicrotask(s),this[el]()})}};function nQe(t,e){if(t[mQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Zu(t[ic]===t[tl]);let r=t[sc].splice(t[tl]);for(let n=0;n<r.length;n++){let s=r[n];wg.errorRequest(t,s,e)}Zu(t[fQ]===0)}}function sQe(t){Zu(!t[BE]),Zu(!t[sn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");Zu(i!==-1);let o=r.substring(1,i);Zu(tQe.isIPv6(o)),r=o}t[BE]=!0,yE.beforeConnect.hasSubscribers&&yE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ]});try{t[gQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Hd],localAddress:t[pQ]},(i,o)=>{if(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[el]();return}if(t.destroyed){wg.destroy(o.on("error",Zbe),new gbt),t[el]();return}Zu(o);try{t[sn]=o.alpnProtocol==="h2"?Obt(t,o):Pbt(t,o)}catch(a){o.destroy().on("error",Zbe),I7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[el]();return}t[BE]=!1,o[xbt]=0,o[B7]=t[B7],o[mbt]=t,o[ybt]=null,yE.connected.hasSubscribers&&yE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ],socket:o}),t.emit("connect",t[EA],[t]),t[el]()})}catch(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[el]()}}function I7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[BE]=!1,yE.connectError.hasSubscribers&&yE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[sn]?.version,servername:t[Hd],localAddress:t[pQ]},connector:t[gQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Zu(t[mQ]===0);t[EQ]>0&&t[sc][t[ic]].servername===t[Hd];){let o=t[sc][t[ic]++];wg.errorRequest(t,o,e)}else nQe(t,e);t.emit("connectionError",t[EA],[t],e)}}function eQe(t){t[Od]=0,t.emit("drain",t[EA],[t])}function Q7(t,e){t[Sg]!==2&&(t[Sg]=2,Gbt(t,e),t[Sg]=0,t[tl]>256&&(t[sc].splice(0,t[tl]),t[ic]-=t[tl],t[tl]=0))}function Gbt(t,e){for(;;){if(t.destroyed){Zu(t[EQ]===0);return}if(t[Pd]&&!t[fQ]){t[Pd](),t[Pd]=null;return}if(t[sn]&&t[sn].resume(),t[y7])t[Od]=2;else if(t[Od]===2){e?(t[Od]=1,queueMicrotask(()=>eQe(t))):eQe(t);continue}if(t[EQ]===0||t[mQ]>=(rQe(t)||1))return;let r=t[sc][t[ic]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Hd]!==r.servername){if(t[mQ]>0)return;t[Hd]=r.servername,t[sn]?.destroy(new fbt("servername changed"),()=>{t[sn]=null,Q7(t)})}if(t[BE])return;if(!t[sn]){sQe(t);return}if(t[sn].destroyed||t[sn].busy(r))return;!r.aborted&&t[sn].write(r)?t[ic]++:t[sc].splice(t[ic],1)}}iQe.exports=b7});var w7=C((eBr,oQe)=>{"use strict";var Vk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};oQe.exports=class{constructor(){this.head=this.tail=new Vk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Vk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Wk=C((tBr,gQe)=>{"use strict";var{PoolStats:qbt}=dV(),Ybt=gg(),Vbt=w7(),{kConnected:S7,kSize:aQe,kRunning:cQe,kPending:AQe,kQueued:CQ,kBusy:Wbt,kFree:Jbt,kUrl:zbt,kClose:jbt,kDestroy:Kbt,kDispatch:$bt}=Kt(),Vn=Symbol("clients"),Hs=Symbol("needDrain"),IQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),uQe=Symbol("onConnect"),lQe=Symbol("onDisconnect"),dQe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),hQe=Symbol("add client"),fQe=Symbol("remove client"),R7=class extends Ybt{[IQ]=new Vbt;[CQ]=0;[Vn] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var{InvalidArgumentError:Swt}=je(),{runtimeFeatures:Nwt}=ju();function Twt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var _we=Nwt.has("crypto")?b("node:crypto"):null,xwt=_we?.hash?t=>_we.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Mwe(t){return Array.isArray(t)&&(t.length&1)===0}function Rwt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Dwt(t){let e={};if(!t)return e;if(Mwe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var Fwe=["record","playback","update"];function kwt(t){if(!Fwe.includes(t))throw new Swt(`Invalid snapshot mode: ${t}. Must be one of: ${Fwe.join(", ")}`)}Lwe.exports={createHeaderFilters:Twt,hashId:xwt,isUndiciHeaders:Mwe,normalizeHeaders:Dwt,isUrlExcludedFactory:Rwt,validateSnapshotMode:kwt}});var Wwe=E((qIr,Vwe)=>{"use strict";var{writeFile:vwt,readFile:_wt,mkdir:Fwt}=b("node:fs/promises"),{dirname:Mwt,resolve:Uwe}=b("node:path"),{setTimeout:Lwt,clearTimeout:Pwe}=b("node:timers"),{InvalidArgumentError:Owe,UndiciError:Uwt}=je(),{hashId:Pwt,isUrlExcludedFactory:Owt,normalizeHeaders:Hwe,createHeaderFilters:Gwe}=pW();function EQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Hwe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:qwe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function qwe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function Ywe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function CQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Pwt(r)}var mW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Gwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Owt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=EQ(e,this.#a,this.matchOptions),s=CQ(n),i=Hwe(r.headers),o={statusCode:r.statusCode,headers:Ywe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=EQ(e,this.#a,this.matchOptions),n=CQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new Owe("Snapshot path is required");try{let n=await _wt(Uwe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new Uwt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Owe("Snapshot path is required");let n=Uwe(r);await Fwt(Mwt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await vwt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};O1e.exports=zW});var KW=C((kBr,Y1e)=>{"use strict";var{InvalidArgumentError:J1t}=$e(),{runtimeFeatures:z1t}=ju();function j1t(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var H1e=z1t.has("crypto")?Q("node:crypto"):null,K1t=H1e?.hash?t=>H1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function q1e(t){return Array.isArray(t)&&(t.length&1)===0}function $1t(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function X1t(t){let e={};if(!t)return e;if(q1e(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var G1e=["record","playback","update"];function Z1t(t){if(!G1e.includes(t))throw new J1t(`Invalid snapshot mode: ${t}. Must be one of: ${G1e.join(", ")}`)}Y1e.exports={createHeaderFilters:j1t,hashId:K1t,isUndiciHeaders:q1e,normalizeHeaders:X1t,isUrlExcludedFactory:$1t,validateSnapshotMode:Z1t}});var Z1e=C((vBr,X1e)=>{"use strict";var{writeFile:eSt,readFile:tSt,mkdir:rSt}=Q("node:fs/promises"),{dirname:nSt,resolve:V1e}=Q("node:path"),{setTimeout:sSt,clearTimeout:W1e}=Q("node:timers"),{InvalidArgumentError:J1e,UndiciError:iSt}=$e(),{hashId:oSt,isUrlExcludedFactory:aSt,normalizeHeaders:z1e,createHeaderFilters:j1e}=KW();function kQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||z1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:K1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function K1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function $1e(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function vQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return oSt(r)}var $W=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#c=j1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=aSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=kQ(e,this.#c,this.matchOptions),s=vQ(n),i=z1e(r.headers),o={statusCode:r.statusCode,headers:$1e(i,this.#c,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=kQ(e,this.#c,this.matchOptions),n=vQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new J1e("Snapshot path is required");try{let n=await tSt(V1e(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new iSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new J1e("Snapshot path is required");let n=V1e(r);await rSt(nSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await eSt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ro} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_getValuesQuery ON cacheInterceptorV${ro}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_deleteByUrlQuery ON cacheInterceptorV${ro}(deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${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,
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${ro}
FROM cacheInterceptorV${ao}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#s=this.#n.prepare(`
UPDATE cacheInterceptorV${ro} SET
`),this.#i=this.#n.prepare(`
UPDATE cacheInterceptorV${ao} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
staleAt = ?
WHERE
id = ?
`),this.#i=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ro} (
`),this.#s=this.#n.prepare(`
INSERT INTO cacheInterceptorV${ao} (
url,
method,
body,
@@ -182,125 +182,125 @@ ${e.format(r)}`.trim())}};vwe.exports=fW});var pW=E((GIr,Lwe)=>{"use strict";var
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ro}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ro}
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#a=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#c=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
DELETE FROM cacheInterceptorV${ao}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${ro}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${ao}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){PW(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){PW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){PW(e),SSt(r);let n=0,s=[],i=this;return new wSt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#c.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!NSt(s[l],u[l])){A=!1;break}}if(A)return c}}};function NSt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var kg=E((lyr,Z1e)=>{"use strict";var{kConstruct:TSt}=Kt(),{kEnumerableProperty:TE}=Ze(),{iteratorMixin:xSt,isValidHeaderName:bQ,isValidHeaderValue:z1e}=$i(),{webidl:wt}=Xn(),HW=b("node:assert"),nv=b("node:util");function J1e(t){return t===10||t===13||t===9||t===32}function j1e(t){let e=0,r=t.length;for(;r>e&&J1e(t.charCodeAt(r-1));)--r;for(;r>e&&J1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function K1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});GW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)GW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function GW(t,e,r){if(r=j1e(r),bQ(e)){if(!z1e(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(X1e(t)==="immutable")throw new TypeError("immutable");return iv(t).append(e,r,!1)}function RSt(t){let e=iv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function $1e(t,e){return t[0]<e[0]?-1:1}var sv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":oTe(i)&&(r[s]=i);break;case"id":aTe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&oTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&aTe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};cTe.exports={EventSourceStream:wJ}});var mTe=E((Myr,pTe)=>{"use strict";var{pipeline:JRt}=b("node:stream"),{fetching:zRt}=TQ(),{makeRequest:jRt}=RE(),{webidl:Ps}=Xn(),{EventSourceStream:KRt}=ATe(),{parseMIMEType:$Rt}=ta(),{createFastMessageEvent:XRt}=Rv(),{isNetworkError:uTe}=wQ(),{kEnumerableProperty:Og}=Ze(),{environmentSettingsObject:lTe}=$i(),dTe=!1,hTe=3e3,FQ=0,fTe=1,MQ=2,ZRt="anonymous",eDt="use-credentials",OE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=FQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ps.util.markAsUncloneable(this);let n="EventSource constructor";Ps.argumentLengthCheck(arguments,1,n),dTe||(dTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ps.converters.USVString(e),r=Ps.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=lTe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=ZRt;r.withCredentials===!0&&(o=eDt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=lTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=jRt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===MQ)return;this.#r=FQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!uTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(uTe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?$Rt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=fTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new KRt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(XRt(c.type,c.options))}});JRt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=zRt(e)}#A(){this.#r!==MQ&&(this.#r=FQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===FQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Ps.brandCheck(this,t),this.#r!==MQ&&(this.#r=MQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Ps.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},gTe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:FQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:fTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:MQ,writable:!1}};Object.defineProperties(OE,gTe);Object.defineProperties(OE.prototype,gTe);Object.defineProperties(OE.prototype,{close:Og,onerror:Og,onmessage:Og,onopen:Og,readyState:Og,url:Og,withCredentials:Og});Ps.converters.EventSourceInitDict=Ps.dictionaryConverter([{key:"withCredentials",converter:Ps.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ps.converters.any},{key:"node",converter:Ps.dictionaryConverter([{key:"reconnectionTime",converter:Ps.converters["unsigned long"],defaultValue:()=>hTe},{key:"dispatcher",converter:Ps.converters.any}]),defaultValue:()=>({})}]);pTe.exports={EventSource:OE,defaultReconnectionTime:hTe}});var bTe=E((Lyr,ge)=>{"use strict";var tDt=Gd(),CTe=_b(),rDt=Cg(),nDt=Cbe(),sDt=bbe(),iDt=Bg(),oDt=C7(),aDt=g7(),cDt=oQe(),ADt=dQe(),uDt=gQe(),ITe=je(),qv=Ze(),{InvalidArgumentError:Gv}=ITe,HE=KQe(),lDt=dg(),dDt=nW(),{MockCallHistory:hD Line truncated
`)}close(){this.#n.close()}get(e){wJ(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){wJ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){wJ(e),uTt(r);let n=0,s=[],i=this;return new ATt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#a.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!lTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function lTt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var qg=C((tbr,yNe)=>{"use strict";var{kConstruct:dTt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:hTt,isValidHeaderName:OQ,isValidHeaderValue:pNe}=ro(),{webidl:wt}=ts(),NJ=Q("node:assert"),bv=Q("node:util");function gNe(t){return t===10||t===13||t===9||t===32}function mNe(t){let e=0,r=t.length;for(;r>e&&gNe(t.charCodeAt(r-1));)--r;for(;r>e&&gNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function ENe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});TJ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)TJ(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function TJ(t,e,r){if(r=mNe(r),OQ(e)){if(!pNe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(INe(t)==="immutable")throw new TypeError("immutable");return wv(t).append(e,r,!1)}function fTt(t){let e=wv(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function CNe(t,e){return t[0]<e[0]?-1:1}var Qv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea Line truncated
${i}`;break;case"retry":Sxe(i)&&(r[s]=i);break;case"id":Nxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Sxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Nxe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Txe.exports={EventSourceStream:fz}});var Lxe=C((Sbr,Mxe)=>{"use strict";var{pipeline:R2t}=Q("node:stream"),{fetching:D2t}=VQ(),{makeRequest:k2t}=GE(),{webidl:qs}=ts(),{EventSourceStream:v2t}=xxe(),{parseMIMEType:_2t}=sa(),{createFastMessageEvent:F2t}=Kv(),{isNetworkError:Rxe}=GQ(),{kEnumerableProperty:$g}=Ze(),{environmentSettingsObject:Dxe}=ro(),kxe=!1,vxe=3e3,XQ=0,_xe=1,ZQ=2,M2t="anonymous",L2t="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=XQ;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),kxe||(kxe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Dxe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=M2t;r.withCredentials===!0&&(o=L2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Dxe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=k2t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===ZQ)return;this.#r=XQ;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!Rxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Rxe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?_2t(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=_xe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new v2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(F2t(c.type,c.options))}});R2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=D2t(e)}#A(){this.#r!==ZQ&&(this.#r=XQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===XQ&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==ZQ&&(this.#r=ZQ,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Fxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:XQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:_xe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ZQ,writable:!1}};Object.defineProperties(XE,Fxe);Object.defineProperties(XE.prototype,Fxe);Object.defineProperties(XE.prototype,{close:$g,onerror:$g,onmessage:$g,onopen:$g,readyState:$g,url:$g,withCredentials:$g});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>vxe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);Mxe.exports={EventSource:XE,defaultReconnectionTime:vxe}});var qxe=C((Nbr,ge)=>{"use strict";var U2t=Gd(),Pxe=$b(),P2t=Ng(),O2t=bQe(),H2t=NQe(),G2t=Rg(),q2t=X7(),Y2t=z7(),V2t=dwe(),W2t=Cwe(),J2t=Bwe(),Oxe=$e(),A_=Ze(),{InvalidArgumentError:c_}=Oxe,ZE=n1e(),z2t=pg(),j2t=LW(),{MockCallHistory:K2 Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return QDt(e,r).catch(n=>{throw ETe?BTe(n,ETe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=kg().Headers;ge.exports.Response=wQ().Response;ge.exports.Request=RE().Request;ge.exports.FormData=dk().FormData;var{setGlobalOrigin:wDt,getGlobalOrigin:SDt}=sV();ge.exports.setGlobalOrigin=wDt;ge.exports.getGlobalOrigin=SDt;var{CacheStorage:NDt}=rNe(),{kConstruct:TDt}=Kt();ge.exports.caches=new NDt(TDt);var{deleteCookie:xDt,getCookies:RDt,getSetCookies:DDt,setCookie:kDt,parseCookie:vDt}=gNe();ge.exports.deleteCookie=xDt;ge.exports.getCookies=RDt;ge.exports.getSetCookies=DDt;ge.exports.setCookie=kDt;ge.exports.parseCookie=vDt;var{parseMIMEType:_Dt,serializeAMimeType:FDt}=ta();ge.exports.parseMIMEType=_Dt;ge.exports.serializeAMimeType=FDt;var{CloseEvent:MDt,ErrorEvent:LDt,MessageEvent:UDt}=Rv(),{WebSocket:PDt,ping:ODt}=jNe();ge.exports.WebSocket=PDt;ge.exports.CloseEvent=MDt;ge.exports.ErrorEvent=LDt;ge.exports.MessageEvent=UDt;ge.exports.ping=ODt;ge.exports.WebSocketStream=nTe().WebSocketStream;ge.exports.WebSocketError=IJ().WebSocketError;ge.exports.request=LQ(HE.request);ge.exports.stream=LQ(HE.stream);ge.exports.pipeline=LQ(HE.pipeline);ge.exports.connect=LQ(HE.connect);ge.exports.upgrade=LQ(HE.upgrade);ge.exports.MockClient=dDt;ge.exports.MockCallHistory=hDt;ge.exports.MockCallHistoryLog=fDt;ge.exports.MockPool=pDt;ge.exports.MockAgent=gDt;ge.exports.SnapshotAgent=mDt;ge.exports.mockErrors=EDt;var{EventSource:HDt}=mTe();ge.exports.EventSource=HDt;function GDt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=GDt});var UQ=E(th=>{"use strict";th.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");th.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");th.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";th.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);th.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);th.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());th.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var wTe=E((Oyr,QTe)=>{"use strict";var{asciiLowercase:Yv,solelyContainsHTTPTokenCodePoints:qDt,soleyContainsHTTPQuotedStringTokenCodePoints:YDt}=UQ();QTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Yv(String(e)),this._map.get(e)}has(e){return e=Yv(String(e)),this._map.has(e)}set(e,r){if(e=Yv(String(e)),r=String(r),!qDt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!YDt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Yv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var TTe=E((Hyr,NTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:VDt,removeTrailingHTTPWhitespace:STe,isHTTPWhitespaceChar:WDt,solelyContainsHTTPTokenCodePoints:SJ,soleyContainsHTTPQuotedStringTokenCodePoints:JDt,asciiLowercase:NJ,collectAnHTTPQuotedString:zDt}=UQ();NTe.exports=t=>{t=VDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!SJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=STe(n),n.length===0||!SJ(n))return null;let s={type:NJ(r),subtype:NJ(n),parameters:new Map};for(;e<t.length;){for(++e;WDt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=NJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=zDt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=STe(o),o==="")continue}i.length>0&&SJ(i)&&JDt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var RTe=E((Gyr,xTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:jDt}=UQ();xTe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!jDt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var _Te=E((Yyr,vTe)=>{"use strict";var KDt=wTe(),$Dt=TTe(),XDt=RTe(),{asciiLowercase:DTe,solelyContainsHTTPTokenCodePoints:kTe}=UQ();vTe.exports=class{constructor(e){e=String(e);let r=$Dt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new KDt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=DTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!kTe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=DTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!kTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return XDt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KTe=E((nbr,h2t)=>{h2t.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?mz:f.type==="?"?Iz:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=T2t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+Z,ce=D.split(")").length,fe=D.split("(").length-ce,De=Z;for(let st=0;st<fe;st++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==Ez?"(?:$|\\/)":"";s=D+z+Z+Ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Ez)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return R2t(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?mz:r.dot?S2t:N2t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?k2t(a):a===Os?Os:a._src).reduce((a,c)=>(a[a.length-1]===Os&&c===Os||a.push(c),a),[]),o.forEach((a,c)=>{a!==Os||o[c-1]===Os||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Os))}),o.filter(a=>a!==Os).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Cz.sep!=="/"&&(e=e.split(Cz.sep).join("/")),e=e.split(bxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return co.defaults(e).Minimatch}};co.Minimatch=zE});var Dxe=E((vbr,Rxe)=>{Rxe.exports=xxe;var bz=b("fs"),{EventEmitter:_2t}=b("events"),{Minimatch:Bz}=Sxe(),{resolve:F2t}=b("path");function M2t(t,e){return new Promise((r,n)=>{bz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Nxe(t,e){return new Promise((r,n)=>{(e?bz.stat:bz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Nxe(t,!1):null):r(null):r(o)})})}async function*Txe(t,e,r,n,s,i){let o=await M2t(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Nxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*Txe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*L2t(t,e,r,n){yield*Txe("",t,e,r,n,!0)}function U2t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Kv=class extends _2t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=U2t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new Bz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new Bz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new Bz(i,{dot:!0}))}this.iterator=L2t(F2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,w);w=G===-1?Q.length:G}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let G=Q.indexOf("*/",w);G!==-1?(w=G+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function jC(Q){let B=zC(Q.toString()),w=B.match(oM);if(w||(w=B.match(aM)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return akt(e,r).catch(n=>{throw Uxe?Gxe(n,Uxe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=qg().Headers;ge.exports.Response=GQ().Response;ge.exports.Request=GE().Request;ge.exports.FormData=Dk().FormData;var{setGlobalOrigin:ckt,getGlobalOrigin:Akt}=vV();ge.exports.setGlobalOrigin=ckt;ge.exports.getGlobalOrigin=Akt;var{CacheStorage:ukt}=QTe(),{kConstruct:lkt}=Kt();ge.exports.caches=new ukt(lkt);var{deleteCookie:dkt,getCookies:hkt,getSetCookies:fkt,setCookie:gkt,parseCookie:pkt}=MTe();ge.exports.deleteCookie=dkt;ge.exports.getCookies=hkt;ge.exports.getSetCookies=fkt;ge.exports.setCookie=gkt;ge.exports.parseCookie=pkt;var{parseMIMEType:mkt,serializeAMimeType:Ekt}=sa();ge.exports.parseMIMEType=mkt;ge.exports.serializeAMimeType=Ekt;var{CloseEvent:Ckt,ErrorEvent:Ikt,MessageEvent:ykt}=Kv(),{WebSocket:Bkt,ping:bkt}=gxe();ge.exports.WebSocket=Bkt;ge.exports.CloseEvent=Ckt;ge.exports.ErrorEvent=Ikt;ge.exports.MessageEvent=ykt;ge.exports.ping=bkt;ge.exports.WebSocketStream=bxe().WebSocketStream;ge.exports.WebSocketError=Az().WebSocketError;ge.exports.request=ew(ZE.request);ge.exports.stream=ew(ZE.stream);ge.exports.pipeline=ew(ZE.pipeline);ge.exports.connect=ew(ZE.connect);ge.exports.upgrade=ew(ZE.upgrade);ge.exports.MockClient=j2t;ge.exports.MockCallHistory=K2t;ge.exports.MockCallHistoryLog=$2t;ge.exports.MockPool=Z2t;ge.exports.MockAgent=X2t;ge.exports.SnapshotAgent=ekt;ge.exports.mockErrors=tkt;var{EventSource:Qkt}=Lxe();ge.exports.EventSource=Qkt;function wkt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=wkt});var tw=C(rh=>{"use strict";rh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");rh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");rh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";rh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);rh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);rh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());rh.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Vxe=C((Rbr,Yxe)=>{"use strict";var{asciiLowercase:u_,solelyContainsHTTPTokenCodePoints:Skt,soleyContainsHTTPQuotedStringTokenCodePoints:Nkt}=tw();Yxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=u_(String(e)),this._map.get(e)}has(e){return e=u_(String(e)),this._map.has(e)}set(e,r){if(e=u_(String(e)),r=String(r),!Skt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Nkt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=u_(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var zxe=C((Dbr,Jxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Tkt,removeTrailingHTTPWhitespace:Wxe,isHTTPWhitespaceChar:xkt,solelyContainsHTTPTokenCodePoints:gz,soleyContainsHTTPQuotedStringTokenCodePoints:Rkt,asciiLowercase:pz,collectAnHTTPQuotedString:Dkt}=tw();Jxe.exports=t=>{t=Tkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!gz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Wxe(n),n.length===0||!gz(n))return null;let s={type:pz(r),subtype:pz(n),parameters:new Map};for(;e<t.length;){for(++e;xkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=pz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Dkt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Wxe(o),o==="")continue}i.length>0&&gz(i)&&Rkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Kxe=C((kbr,jxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:kkt}=tw();jxe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!kkt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var eRe=C((_br,Zxe)=>{"use strict";var vkt=Vxe(),_kt=zxe(),Fkt=Kxe(),{asciiLowercase:$xe,solelyContainsHTTPTokenCodePoints:Xxe}=tw();Zxe.exports=class{constructor(e){e=String(e);let r=_kt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new vkt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=$xe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Xxe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=$xe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Xxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Fkt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var pRe=C((jQr,$kt)=>{$kt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?aj:f.type==="?"?uj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=gvt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),ee=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==cj?"(?:$|\\/)":"";s=v+z+X+ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===cj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return mvt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?aj:r.dot?hvt:fvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Cvt(a):a===Ys?Ys:a._src).reduce((a,c)=>(a[a.length-1]===Ys&&c===Ys||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ys||o[c-1]===Ys||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;Aj.sep!=="/"&&(e=e.split(Aj.sep).join("/")),e=e.split(qRe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ho.defaults(e).Minimatch}};ho.Minimatch=oC});var $Re=C((wwr,KRe)=>{KRe.exports=jRe;var hj=Q("fs"),{EventEmitter:yvt}=Q("events"),{Minimatch:dj}=WRe(),{resolve:Bvt}=Q("path");function bvt(t,e){return new Promise((r,n)=>{hj.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function JRe(t,e){return new Promise((r,n)=>{(e?hj.stat:hj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?JRe(t,!1):null):r(null):r(o)})})}async function*zRe(t,e,r,n,s,i){let o=await bvt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await JRe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*zRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Qvt(t,e,r,n){yield*zRe("",t,e,r,n,!0)}function wvt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var p_=class extends yvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=wvt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new dj(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new dj(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new dj(i,{dot:!0}))}this.iterator=Qvt(Bvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,S);S=H===-1?w.length:H}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let H=w.indexOf("*/",S);H!==-1?(S=H+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function aI(w){let b=oI(w.toString()),S=b.match(SM);if(S||(S=b.match(NM)),!S)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(a1).map(G=>G.replace(c1,"").trim())}function KC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var G=Q[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),w[F]=Y.concat(Y.length>0?te:G);else if(j)w[F]=G;else{if(Y=jC(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(G)(...Ft)}}),JC(w,B)}class $C{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):XC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):XC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function XC(Q,B){Q.length=1,Q.head=Q.tail=B}function yp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,Sn;function po(xh,...iI){if(xh)return Pe?Sn(xh):Cr();if(iI.length<=1)return Cr(iI[0]);Cr(iI)}var wp=Mt._createTaskItem(Ue,Pe?po:Nt||po);if(be?Mt._tasks.unshift(wp):Mt._tasks.push(wp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((xh,iI)=>{Cr=xh,Sn=iI})}function go(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var Sn=Ue[Nt],po=Y.indexOf(Sn);po===0?Y.shift():po>0&&Y.splice(po,1),Sn.callback(be,...Pe),be!=null&&yt("error",be,Sn.data)}G<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function Qp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>yt("drain")),!0):!1}let Th=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,Sn)=>{if(Cr)return Nt(Cr);Pe(Sn)})});Se(Ue),j(Ue,be)};var sI=!1,Mt={_tasks:new $C,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Qp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!sI){for(sI=!0;!Mt.paused&&G<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}G+=1,Mt._tasks.length===0&&yt("empty"),G===Mt.concurrency&&yt("saturated");var Sn=ee(go(Ue));F(be,Sn)}sI=!1}},length(){return Mt._tasks.length},running(){return G},workersList(){return Y},idle(){return Mt._tasks.length+G===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Th("saturated")},unsaturated:{writable:!1,value:Th("unsaturated")},empty:{writable:!1,value:Th("empty")},drain:{writable:!1,value:Th("drain")},error:{writable:!1,value:Th("error")}}),Mt}function ZC(Q,B){return yp(Q,1,B)}function Bp(Q,B,w){return yp(Q,B,w)}function fo(Q,B,w,F){F=O(F);var G=I(w);return Ws(Q,(Y,J,j)=>{G(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var ya=m(fo,4);function bp(...Q){var B=Q.map(I);return function(...w){var F=this,G=w[w.length-1];return typeof G=="function"?w.pop():G=KA(),ya(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>G(Y,...J)),G[jA]}}function A1(...Q){return bp(...Q.reverse())}function we(Q,B,w,F){return y(fe(B),Q,w,F)}var H=m(we,4);function T(Q,B,w,F){var G=I(w);return H(Q,B,(Y,J)=>{G(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});kr[es]||(Hxe=global[es]||[],qxe(kr,Hxe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||Gxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,t_,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),Gxe()}return Object.defineProperty(e,t_,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Yg(kr[es]),b("assert").equal(kr[es].length,0)}));var Hxe;global[es]||qxe(global,kr[es]);Nz.exports=wz(J2t(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(Nz.exports=wz(kr),kr.__patched=!0);function wz(t){V2t(t),t.gracefulify=wz,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(ce,fe,De,Ke){return e(ce,fe,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?jE([ee,[ce,fe,De],st,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return n(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return i(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return a(fe,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,st,Yt){return A(De,ce(De,Ke,st,Yt))}:function(De,Ke,st,Yt){return A(De,Ke,ce(De,Ke,st,Yt))};return ee(D,z,Z);function ce(fe,De,Ke,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?jE([ee,[fe,De,Ke],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=W2t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),ce(D,z,Z,ee);function ce(fe,De,Ke,st,Yt){return k(fe,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?jE([ce,[fe,De,Ke,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function jE(t){Yg("ENQUEUE",t[0].name,t[1]),kr[es].push(t),Sz()}var e_;function Gxe(){for(var t=Date.now(),e=0;e<kr[es].length;++e)kr[es][e].length>2&&(kr[es][e][3]=t,kr[es][e][4]=t);Sz()}function Sz(){if(clearTimeout(e_),e_=void 0,kr[es].length!==0){var t=kr[es].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Yg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Yg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(Yg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[es].push(t)}e_===void 0&&(e_=setTimeout(Sz,0))}}});var r_=E((Ubr,Yxe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};B2e.exports={AggregateError:Aj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var uj=E((zQr,b2e)=>{"use strict";b2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Es=E((jQr,S2e)=>{"use strict";var{format:pMt,inspect:y_}=uj(),{AggregateError:mMt}=Nr(),EMt=globalThis.AggregateError||mMt,CMt=Symbol("kIsNodeError"),IMt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yMt=/^([A-Z][a-z0-9]*)+$/,BMt="__node_internal_",B_={};function Jg(t,e){if(!t)throw new B_.ERR_INTERNAL_ASSERTION(e)}function Q2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function bMt(t,e,r){if(typeof e=="function")return Jg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Jg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:pMt(e,...r)}function rs(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(bMt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[CMt]=!0,B_[t]=n}function w2e(t){let e=BMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function QMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new EMt([e,t],e.message);return r.code=e.code,r}return t||e}var lj=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new B_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};rs("ERR_ASSERTION","%s",Error);rs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Jg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)Jg(typeof c=="string","All expected entries have to be of type string"),IMt.includes(c)?s.push(c.toLowerCase()):yMt.test(c)?i.push(c):(Jg(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=q$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=q$(" "+s+"="+n[s]+`
`);return kt.from(r)};MC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};MC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Ih(e.mode&FGt,6),100),kt.write(r,Ih(e.uid,6),108),kt.write(r,Ih(e.gid,6),116),GGt(e.size,r,124),kt.write(r,Ih(e.mtime.getTime()/1e3|0,11),136),r[156]=KF+OGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(zUe,r,Xw),kt.copy(kGt,r,Y$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Ih(e.devmajor||0,6),329),kt.write(r,Ih(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Ih(KUe(r),6),148),r)};MC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-KF,i=FC(e,0,100,r),o=Ch(e,100,8),a=Ch(e,108,8),c=Ch(e,116,8),A=Ch(e,124,12),u=Ch(e,136,12),l=PGt(s),d=e[157]===0?null:FC(e,157,100,r),h=FC(e,265,32),f=FC(e,297,32),p=Ch(e,329,8),I=Ch(e,337,8),m=KUe(e);if(m===256)return null;if(m!==Ch(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(MGt(e))e[345]&&(i=FC(e,345,155,r)+"/"+i);else if(!LGt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function MGt(t){return kt.equals(zUe,t.subarray(Xw,Xw+6))}function LGt(t){return kt.equals(vGt,t.subarray(Xw,Xw+6))&&kt.equals(_Gt,t.subarray(Y$,Y$+2))}function UGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function PGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function OGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function jUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function KUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Ih(t,e){return t=t.toString(8),t.length>e?DGt.slice(0,e)+" ":RGt.slice(0,e-t.length)+t+" "}function HGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function GGt(t,e,r){t.toString(8).length>11?HGt(t,e,r):kt.write(e,Ih(t,11),r)}function qGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Ch(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return qGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=UGt(jUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function FC(t,e,r,n){return kt.toString(t.subarray(e,jUe(t,0,e,e+r)),n)}function q$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var tPe=E((ySr,ePe)=>{var{Writable:YGt,Readable:VGt,getStreamError:$Ue}=G$(),WGt=N$(),XUe=RC(),LC=V$(),JGt=XUe.alloc(0),J$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new WGt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return JGt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return XUe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},z$=class extends VGt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy($Ue(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=ZUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},j$=class extends YGt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function tO(t){process.exitCode=ZP.Failure,Qo(t)}function Gl(){return process.env.RUNNER_DEBUG==="1"}function V(t){Rh("debug",{},t)}function Qo(t,e={}){Rh("error",x1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){Rh("warning",x1(e),t instanceof Error?t.toString():t)}function Lae(t,e={}){Rh("notice",x1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+Mae.EOL)}function cy(t,e){if(process.env.GITHUB_STATE||"")return jX("STATE",KX(t,e));Rh("save-state",{name:t},Il(e))}function fu(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Eze,existsSync as Cze}from"fs";import{EOL as Ize}from"os";var Bm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Cze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Eze(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Ize}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var iO=pe(Gae(),1),qae=pe(NN(),1),vze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Yae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Vae(t){return new iO.HttpClient().getAgent(t)}function _ze(t){return new iO.HttpClient().getAgentDispatcher(t)}function Wae(t){let e=_ze(t);return(n,s)=>vze(this,void 0,void 0,function*(){return(0,qae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Jae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function oO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function ql(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function HN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>HN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function zae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function jae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Kae=Function.bind,$ae=Kae.bind(Kae);function Xae(t,e,r){let n=$ae(jae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=$ae(zae,null).apply(null,i)})}function Mze(){let t=Symbol("Singular"),e={registry:{}},r=HN.bind(null,e,t);return Xae(r,e,t),r}function Lze(){let t={registry:{}},e=HN.bind(null,t);return Xae(e,t),e}var Zae={Singular:Mze,Collection:Lze};var Uze="0.0.0-development",Pze=`octokit-endpoint.js/${Uze} ${ql()}`,Oze={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.githu Line truncated
`+b);let[,F]=S;return F.replace(/\s/g,"").split(Q1).map(H=>H.replace(w1,"").trim())}function cI(w,b){var S={};return Object.keys(w).forEach(F=>{var H=w[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),S[F]=Y.concat(Y.length>0?te:H);else if(j)S[F]=H;else{if(Y=aI(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(te)}function te(Se,yt){var Lt=Y.map(St=>Se[St]);Lt.push(yt),E(H)(...Lt)}}),iI(S,b)}class AI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):uI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):uI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function uI(w,b){w.length=1,w.head=w.tail=b}function kp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function te(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function yt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var yr,xn;function Io(Rh,...mI){if(Rh)return Ye?xn(Rh):yr();if(mI.length<=1)return yr(mI[0]);yr(mI)}var Mp=Ut._createTaskItem(qe,Ye?Io:Nt||Io);if(be?Ut._tasks.unshift(Mp):Ut._tasks.push(Mp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Rh,mI)=>{yr=Rh,xn=mI})}function Co(qe){return function(be,...Ye){H-=1;for(var Nt=0,yr=qe.length;Nt<yr;Nt++){var xn=qe[Nt],Io=Y.indexOf(xn);Io===0?Y.shift():Io>0&&Y.splice(Io,1),xn.callback(be,...Ye),be!=null&&yt("error",be,xn.data)}H<=Ut.concurrency-Ut.buffer&&yt("unsaturated"),Ut.idle()&&yt("drain"),Ut.process()}}function Fp(qe){return qe.length===0&&Ut.idle()?(A(()=>yt("drain")),!0):!1}let xh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{te(qe,(yr,xn)=>{if(yr)return Nt(yr);Ye(xn)})});Se(qe),j(qe,be)};var pI=!1,Ut={_tasks:new AI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!pI){for(pI=!0;!Ut.paused&&H<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var yr=Ut._tasks.shift();qe.push(yr),Y.push(yr),be.push(yr.data)}H+=1,Ut._tasks.length===0&&yt("empty"),H===Ut.concurrency&&yt("saturated");var xn=ee(Co(qe));F(be,xn)}pI=!1}},length(){return Ut._tasks.length},running(){return H},workersList(){return Y},idle(){return Ut._tasks.length+H===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:xh("saturated")},unsaturated:{writable:!1,value:xh("unsaturated")},empty:{writable:!1,value:xh("empty")},drain:{writable:!1,value:xh("drain")},error:{writable:!1,value:xh("error")}}),Ut}function lI(w,b){return kp(w,1,b)}function vp(w,b,S){return kp(w,b,S)}function Eo(w,b,S,F){F=V(F);var H=E(S);return Ks(w,(Y,J,j)=>{H(b,Y,(te,Se)=>{b=Se,j(te)})},Y=>F(Y,b))}var ba=m(Eo,4);function _p(...w){var b=w.map(E);return function(...S){var F=this,H=S[S.length-1];return typeof H=="function"?S.pop():H=KA(),ba(b,S,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[jA]}}function S1(...w){return _p(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var O=m(we,4);function T(w,b,S,F){var H=E(S);return O(w,b,(Y,J)=>{H(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var G=m(T,4);function K(w,b,S){return G(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});_r[ns]||(aDe=global[ns]||[],ADe(_r,aDe),_r.close=(function(t){function e(r,n){return t.call(_r,r,function(s){s||cDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,y_,{value:t}),e})(_r.close),_r.closeSync=(function(t){function e(r){t.apply(_r,arguments),cDe()}return Object.defineProperty(e,y_,{value:t}),e})(_r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(_r[ns]),Q("assert").equal(_r[ns].length,0)}));var aDe;global[ns]||ADe(global,_r[ns]);mj.exports=gj(_vt(_r));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_r.__patched&&(mj.exports=gj(_r),_r.__patched=!0);function gj(t){kvt(t),t.gracefulify=gj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),ee(v,z,X);function ee(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?aC([ee,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,ee){return typeof X=="function"&&(ee=X,X=0),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var ee=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return ee(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?aC([ee,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=vvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,mn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function aC(t){tp("ENQUEUE",t[0].name,t[1]),_r[ns].push(t),pj()}var I_;function cDe(){for(var t=Date.now(),e=0;e<_r[ns].length;++e)_r[ns][e].length>2&&(_r[ns][e][3]=t,_r[ns][e][4]=t);pj()}function pj(){if(clearTimeout(I_),I_=void 0,_r[ns].length!==0){var t=_r[ns].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)tp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){tp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(tp("RETRY",e.name,r),e.apply(null,r.concat([s]))):_r[ns].push(t)}I_===void 0&&(I_=setTimeout(pj,0))}}});var B_=C((Rwr,uDe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Gke.exports={AggregateError:Zj,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var eK=C((O1r,qke)=>{"use strict";qke.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var ys=C((H1r,Wke)=>{"use strict";var{format:nUt,inspect:H_}=eK(),{AggregateError:sUt}=xr(),iUt=globalThis.AggregateError||sUt,oUt=Symbol("kIsNodeError"),aUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],cUt=/^([A-Z][a-z0-9]*)+$/,AUt="__node_internal_",G_={};function sp(t,e){if(!t)throw new G_.ERR_INTERNAL_ASSERTION(e)}function Yke(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function uUt(t,e,r){if(typeof e=="function")return sp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return sp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:nUt(e,...r)}function is(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(uUt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[oUt]=!0,G_[t]=n}function Vke(t){let e=AUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function lUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new iUt([e,t],e.message);return r.code=e.code,r}return t||e}var tK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new G_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};is("ERR_ASSERTION","%s",Error);is("ERR_INVALID_ARG_TYPE",(t,e,r)=>{sp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)sp(typeof c=="string","All expected entries have to be of type string"),aUt.includes(c)?s.push(c.toLowerCase()):cUt.test(c)?i.push(c):(sp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=_X(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=_X(" "+s+"="+n[s]+`
`);return kt.from(r)};zC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};zC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,yh(e.mode&wYt,6),100),kt.write(r,yh(e.uid,6),108),kt.write(r,yh(e.gid,6),116),kYt(e.size,r,124),kt.write(r,yh(e.mtime.getTime()/1e3|0,11),136),r[156]=pM+RYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(fOe,r,g1),kt.copy(BYt,r,FX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,yh(e.devmajor||0,6),329),kt.write(r,yh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,yh(pOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-pM,i=JC(e,0,100,r),o=Ih(e,100,8),a=Ih(e,108,8),c=Ih(e,116,8),A=Ih(e,124,12),u=Ih(e,136,12),l=xYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),g=Ih(e,329,8),E=Ih(e,337,8),m=pOe(e);if(m===256)return null;if(m!==Ih(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(SYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!NYt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function SYt(t){return kt.equals(fOe,t.subarray(g1,g1+6))}function NYt(t){return kt.equals(bYt,t.subarray(g1,g1+6))&&kt.equals(QYt,t.subarray(FX,FX+2))}function TYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function xYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function RYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function gOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function pOe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function yh(t,e){return t=t.toString(8),t.length>e?yYt.slice(0,e)+" ":IYt.slice(0,e-t.length)+t+" "}function DYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function kYt(t,e,r){t.toString(8).length>11?DYt(t,e,r):kt.write(e,yh(t,11),r)}function vYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Ih(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return vYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=TYt(gOe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function JC(t,e,r,n){return kt.toString(t.subarray(e,gOe(t,0,e,e+r)),n)}function _X(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var yOe=C((hTr,IOe)=>{var{Writable:_Yt,Readable:FYt,getStreamError:mOe}=vX(),MYt=EX(),EOe=GC(),jC=MX(),LYt=EOe.alloc(0),UX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new MYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return LYt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return EOe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},PX=class extends FYt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(mOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=COe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},OX=class extends _Yt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function SO(t){process.exitCode=QO.Failure,No(t)}function Yl(){return process.env.RUNNER_DEBUG==="1"}function q(t){bl("debug",{},t)}function No(t,e={}){bl("error",W1(e),t instanceof Error?t.toString():t)}function Xe(t,e={}){bl("warning",W1(e),t instanceof Error?t.toString():t)}function vce(t,e={}){bl("notice",W1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+kce.EOL)}function _ce(t){LM("group",t)}function Fce(){LM("endgroup")}function yy(t,e){if(process.env.GITHUB_STATE||"")return OZ("STATE",HZ(t,e));bl("save-state",{name:t},Bl(e))}function Tc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as _je,existsSync as Fje}from"fs";import{EOL as Mje}from"os";var _m=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Fje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(_je(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Mje}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var RO=pe(Oce(),1),Hce=pe(YN(),1),jje=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Gce(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function qce(t){return new RO.HttpClient().getAgent(t)}function Kje(t){return new RO.HttpClient().getAgentDispatcher(t)}function Yce(t){let e=Kje(t);return(n,s)=>jje(this,void 0,void 0,function*(){return(0,Hce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Vce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function DO(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Vl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function sT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>sT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Wce(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Jce(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var zce=Function.bind,jce=zce.bind(zce);function Kce(t,e,r){let n=jce(Jce,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=jce(Wce,null).apply(null,i)})}function Xje(){let t=Symbol("Singular"),e={registry:{}},r=sT.bind(null,e,t);return Kce(r,e,t),r}function Zje(){let t={registry:{}},e=sT.bind(null,t);return Kce(e,t),e}var $ce={Singular:Xje,Collection:Zje};var eKe="0.0.0-development",tKe=`octokit-endpoint.js/${eKe} ${Vl()}`,rKe={method:"GET",baseUrl:"ht Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Bje=class extends Error{constructor(t,e,r){super(yje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},bje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Qje=["query","method","url"],bce=/\/api\/v3\/?$/;function wje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Qje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>bje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return bce.test(i)&&(s.url=i.replace(bce,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Bje(s,a,o.data)}return o.data.data})}function gO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>wje(r,s,i),{defaults:gO.bind(null,r),endpoint:r.endpoint})}var yWt=gO(ly,{headers:{"user-agent":`octokit-graphql.js/${Ije} ${ql()}`},method:"POST",url:"/graphql"});function Qce(t){return gO(t,{method:"POST",url:"/graphql"})}var pO="(?:[a-zA-Z0-9_-]+)",wce="\\.",Sce=new RegExp(`^${pO}${wce}${pO}${wce}${pO}$`),Sje=Sce.test.bind(Sce);async function Nje(t){let e=Sje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function Tje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function xje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Tje(t),e(s)}var Nce=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Nje.bind(null,e),{hook:xje.bind(null,e)})};var mO="7.0.6";var Tce=()=>{},Rje=console.warn.bind(console),Dje=console.error.bind(console);function kje(t={}){return typeof t.debug!="function"&&(t.debug=Tce),typeof t.info!="function"&&(t.info=Tce),typeof t.warn!="function"&&(t.warn=Rje),typeof t.error!="function"&&(t.error=Dje),t}var xce=`octokit-core.js/${mO} ${ql()}`,YN=class{static VERSION=mO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Zae.Collection,n={baseUrl:ly.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${xce}`:xce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=ly.defaults(n),this.graphql=Qce(this.request).defaults(n),this.log=kje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Nce(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var EO="17.0.0";var vje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`)}var UKe=class extends Error{constructor(t,e,r){super(LKe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},PKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],OKe=["query","method","url"],yAe=/\/api\/v3\/?$/;function HKe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(OKe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>PKe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return yAe.test(i)&&(s.url=i.replace(yAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new UKe(s,a,o.data)}return o.data.data})}function OO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>HKe(r,s,i),{defaults:OO.bind(null,r),endpoint:r.endpoint})}var uzt=OO(Qy,{headers:{"user-agent":`octokit-graphql.js/${MKe} ${Vl()}`},method:"POST",url:"/graphql"});function BAe(t){return OO(t,{method:"POST",url:"/graphql"})}var HO="(?:[a-zA-Z0-9_-]+)",bAe="\\.",QAe=new RegExp(`^${HO}${bAe}${HO}${bAe}${HO}$`),GKe=QAe.test.bind(QAe);async function qKe(t){let e=GKe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function YKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function VKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=YKe(t),e(s)}var wAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(qKe.bind(null,e),{hook:VKe.bind(null,e)})};var GO="7.0.6";var SAe=()=>{},WKe=console.warn.bind(console),JKe=console.error.bind(console);function zKe(t={}){return typeof t.debug!="function"&&(t.debug=SAe),typeof t.info!="function"&&(t.info=SAe),typeof t.warn!="function"&&(t.warn=WKe),typeof t.error!="function"&&(t.error=JKe),t}var NAe=`octokit-core.js/${GO} ${Vl()}`,aT=class{static VERSION=GO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new $ce.Collection,n={baseUrl:Qy.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${NAe}`:NAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Qy.defaults(n),this.graphql=BAe(this.request).defaults(n),this.log=zKe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=wAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var qO="17.0.0";var jKe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`)}
`:`${Fce(t.status,e)}
`:`${vAe(t.status,e)}
${QO[t.status]}
`}function Hce(t){return t==="enabled"||t==="read-only"||t==="write-only"}function Fce(t,e){if(!Hce(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function Hje(t){return t?Oje[t]:void 0}function Gje(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Fi}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${Pje}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Fi}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Fi}#enhanced-caching)** provider.`}function qje(t){let e=t.entries,r=e.filter(A=>A.restoredKey).length,n=e.filter(A=>A.savedKey).length,s=Gce(e)?`Entries: ${r} restored (${WN(e,A=>A.restoredSize)}Mb), ${n} saved (${WN(e,A=>A.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?Hje(t.cleanup):void 0,o=Yje(t.entries),a=`<pre>
${Vje(t.entries)}</pre>`,c=[QO[t.status],i,o,a].filter(Boolean).join(`
${jO[t.status]}
`}function PAe(t){return t==="enabled"||t==="read-only"||t==="write-only"}function vAe(t,e){if(!PAe(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function s$e(t){return t?r$e[t]:void 0}function i$e(t){return t?n$e[t]:void 0}function o$e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${ni}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${t$e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${ni}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${ni}#enhanced-caching)** provider.`}function a$e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=OAe(e)?`Entries: ${r} restored (${AT(e,u=>u.restoredSize)}Mb), ${n} saved (${AT(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?s$e(t.cleanup):void 0,o=i$e(t.projectCache),a=c$e(t.entries),c=`<pre>
${A$e(t.entries)}</pre>`,A=[jO[t.status],i,o,a,c].filter(Boolean).join(`
`);return`<details>
<summary>${s}</summary>
${c}
</details>`}function Gce(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function Yje(t){return Gce(t)?`<table>
${A}
</details>`}function OAe(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function c$e(t){return OAe(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${Mce(t,e=>e.restoredSize)}</td>
<td>${WN(t,e=>e.restoredSize)}</td>
<td>${Lce(t,e=>e.restoredTime)}</td>
<td>${_Ae(t,e=>e.restoredSize)}</td>
<td>${AT(t,e=>e.restoredSize)}</td>
<td>${FAe(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${Mce(t,e=>e.savedSize)}</td>
<td>${WN(t,e=>e.savedSize)}</td>
<td>${Lce(t,e=>e.savedTime)}</td>
<td>${_Ae(t,e=>e.savedSize)}</td>
<td>${AT(t,e=>e.savedSize)}</td>
<td>${FAe(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function Vje(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function A$e(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${Uce(e.restoredSize)}
Time: ${Pce(e.restoredTime)}
Size: ${MAe(e.restoredSize)}
Time: ${LAe(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${Uce(e.savedSize)}
Time: ${Pce(e.savedTime)}
Size: ${MAe(e.savedSize)}
Time: ${LAe(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function Mce(t,e){return t.filter(r=>e(r)).length}function WN(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function Lce(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function Uce(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function Pce(t){return t===void 0||t===0?"":`${t} ms`}import*as qB from"path";import*as Tm from"fs";function wO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as XN from"path";import*as wm from"path";import of from"assert";var Yl=process.platform==="win32";function Eu(t){if(t=mu(t),Yl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=wm.dirname(t);return Yl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function JN(t,e){if(of(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),of(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),dy(e))return e;if(Yl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return of(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(va(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return of(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return of(dy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Yl&&t.endsWith("\\")||(t+=wm.sep),t+e}function dy(t){return of(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=va(t),Yl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function hy(t){return of(t,"isRooted parameter 'itemPath' must not be empty"),t=va(t),Yl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function va(t){return t=t||"",Yl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=va(t),!t.endsWith(wm.sep)||t===wm.sep||Yl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var _a;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(_a||(_a={}));var qce=process.platform==="win32";function NO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=qce?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=qce?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Eu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Eu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function Yce(t,e){let r=_a.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function Vce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as dAe from"os";import*as Nm from"path";var hAe=pe(lAe(),1);import uf from"assert";import*as cf from"path";import gy from"assert";var gKe=process.platform==="win32",Af=class{constructor(e){if(this.segments=[],typeof e=="string")if(gy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!hy(e))this.segments=e.split(cf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=cf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{gy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];gy(n,"Parameter 'itemPath' must not contain any empty segments"),n=va(e[r]),r===0&&hy(n)?(n=mu(n),gy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(gy(!n.includes(cf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(cf.sep)||gKe&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=cf.sep,e+=this.segments[n];return e}};var{Minimatch:pKe}=hAe.default,Cu=process.platform==="win32",py=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],uf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);uf(A&&dy(A),"Parameter 'segments' first element must be a root path"),i=new Af(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`)}function _Ae(t,e){return t.filter(r=>e(r)).length}function AT(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function FAe(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function MAe(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function LAe(t){return t===void 0||t===0?"":`${t} ms`}import*as nb from"path";import*as Pm from"fs";function KO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as gT from"path";import*as Lm from"path";import Af from"assert";var Wl=process.platform==="win32";function Eu(t){if(t=mu(t),Wl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Lm.dirname(t);return Wl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=mu(e)),e}function uT(t,e){if(Af(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Af(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),wy(e))return e;if(Wl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Fa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Af(wy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Wl&&t.endsWith("\\")||(t+=Lm.sep),t+e}function wy(t){return Af(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Fa(t),Wl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Sy(t){return Af(t,"isRooted parameter 'itemPath' must not be empty"),t=Fa(t),Wl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Fa(t){return t=t||"",Wl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function mu(t){return t?(t=Fa(t),!t.endsWith(Lm.sep)||t===Lm.sep||Wl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ma;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ma||(Ma={}));var HAe=process.platform==="win32";function XO(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Eu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Eu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function GAe(t,e){let r=Ma.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function qAe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as uue from"os";import*as Um from"path";var lue=pe(Aue(),1);import hf from"assert";import*as lf from"path";import xy from"assert";var F$e=process.platform==="win32",df=class{constructor(e){if(this.segments=[],typeof e=="string")if(xy(e,"Parameter 'itemPath' must not be empty"),e=mu(e),!Sy(e))this.segments=e.split(lf.sep);else{let r=e,n=Eu(r);for(;n!==r;){let s=lf.basename(r);this.segments.unshift(s),r=n,n=Eu(r)}this.segments.unshift(r)}else{xy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];xy(n,"Parameter 'itemPath' must not contain any empty segments"),n=Fa(e[r]),r===0&&Sy(n)?(n=mu(n),xy(n===Eu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(xy(!n.includes(lf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(lf.sep)||F$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=lf.sep,e+=this.segments[n];return e}};var{Minimatch:M$e}=lue.default,Cu=process.platform==="win32",Ry=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],hf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);hf(A&&wy(A),"Parameter 'segments' first element must be a root path"),i=new df(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new py(i));return n.searchPaths.push(...NO(n.patterns)),n})}static stat(e,r,n){return kO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Tm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Tm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Tm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var IKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function fAe(t,e){return IKe(this,void 0,void 0,function*(){return yield $N.create(t,e)})}var ale=pe(ile(),1);import*as hT from"crypto";import*as km from"fs";import*as lf from"path";import*as cle from"util";var by;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(by||(by={}));var Ts;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ts||(Ts={}));var Li;(function(t){t.GNU="gnu",t.BSD="bsd"})(Li||(Li={}));var lT=2,dT=5e3,ZO=5e3,e3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,ole=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qy="cache.tar",t3="manifest.txt",lzt=10*Math.pow(1024,3);var Dm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},TZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},xZe="1.0";function wy(){return Dm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=lf.join(n,"actions","temp")}let r=lf.join(e,hT.randomUUID());return yield DN(r),r})}function Tc(t){return km.statSync(t).size}function r3(t){return Dm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield fAe(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=TZe(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=lf.relative(a,s).replace(new RegExp(`\\${lf.sep}`,"g"),"/");V(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Sy(t){return Dm(this,void 0,void 0,function*(){return cle.promisify(km.unlink)(t)})}function Ale(t){return Dm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield _N(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){V(s.message)}return n=n.trim(),V(n),n})}function Ny(){return Dm(this,void 0,void 0,function*(){let t=yield Ale("zstd",["--quiet"]),e=ale.clean(t);return V(`zstd version: ${e}`),t===""?Ts.Gzip:Ts.ZstdWithoutLong})}function zl(t){return t===Ts.Gzip?by.Gzip:by.Zstd}function ule(){return Dm(this,void 0,void 0,function*(){return km.existsSync(e3)?e3:(yield Ale("tar")).toLowerCase().includes("gnu tar")?hu("tar"):""})}function n3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function vm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(xZe),hT.createHash("sha256").update(n.join("|")).digest("hex")}function lle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as A0 from"fs";import{URL as fat}from"url";var xc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as RZe}from"node:os";import DZe from"node:util";import kZe from"node:process";function dle(t,...e){kZe.stderr.write(`${DZe.format(t,...e)}${RZe}`)}import Ty from"node:process";function gT(t){return Ty.env[t]}var hle=typeof Ty.versions.deno=="string"&&Ty.versions.deno.length>0,fle=typeof Ty.versions.bun=="string"&&Ty.versions.bun.length>0,pT=!0;var gle=gT("DEBUG"),mle,s3=[],i3=[],mT=[];gle&&o3(gle);var Ele=Object.assign(t=>Cle(t),{enable:o3,enabled:a3,disable:vZe,log:dle});function o3(t){mle=t,s3=[],i3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?i3.push(r.substring(1)):s3.push(r);for(let r of mT)r.enabled=a3(r.namespace)}function a3(t){if(t.endsWith("*"))return!0;for(let e of i3)if(ple(t,e))return!1;for(let e of s3)if(ple(t,e))return!0;return!1}function ple(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function vZe(){let t=mle||"";return o3(""),t}function Cle(t){let e=Object.assign(r,{enabled:a3(t),destroy:_Ze,log:Ele.log,namespace:t,extend:FZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return mT.push(e),e}function _Ze(){let t=mT.indexOf(this);return t>=0?(mT.splice(t,1),!0):!1}function FZe(t){let e=Cle(`${this.namespace}:${t}`);return e.log=this.log,e}var _m=Ele;var c3=["verbose","info","warning","error"],Ile={verbose:400,info:300,warning:200,error:100};function yle(t,e){e.log=(...r)=>{t.log(...r)}}function Ble(t){return c3.includes(t)}function ET(t){let e=new Set,r=gT(t.logLevelEnvVarName),n,s=_m(t.namespace);s.log=(...u)=>{_m.log(...u)};function i(u){if(u&&!Ble(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${c3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);_m.enable(l.join(","))}r&&(Ble(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${c3.join(", ")}.`));function o(u){return!!(n&&Ile[u.level]<=Ile[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(yle(u,d),o(d)){let h=_m.disable();_m.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return yle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var ble=ET({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),MZe=ble.logger;function xy(t){return ble.createClientLogger(t)}function CT(t){return t.toLowerCase()}function LZe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*UZe(t){for(let e of t.values())yield[e.name,e.value]}var A3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(CT(e),{name:e,value:LZe(r)})}get(e){return this._headersMap.get(CT(e))?.value}has(e){return this._ Line truncated
${GZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Fm(t){return t instanceof xs?!0:hf(t)&&t.name==="RestError"}function Zs(t,e){return Buffer.from(t,e)}import h3 from"node:http";import f3 from"node:https";import Sle from"node:zlib";import{Transform as qZe}from"node:stream";var ei=xy("ts-http-runtime");var YZe={};function Ry(t){return t&&typeof t.pipe=="function"}function Nle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Tle(t){return t&&typeof t.byteLength=="number"}var BT=class extends qZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},g3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new xc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Fa;ei.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=zZe(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new BT(f);p.on("error",I=>{ei.error("Error in upload progress",I)}),Ry(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=VZe(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?WZe(A,u):A;let h=e.onDownloadProgress;if(h){let f=new BT(h);f.on("error",p=>{ei.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await JZe(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Ry(a)&&(A=Nle(a));let u=Promise.resolve();Ry(c)&&(u=Nle(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ei.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?h3.request(a,c):f3.request(a,c);u.once("error",l=>{A(new xs(l.message,{code:l.code??xs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new xc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Ry(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Tle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ei.error("Unrecognized body type",n),A(new xs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?h3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new h3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return f3.globalAgent;let s=e.tlsSettings??YZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ei.info("No cached TLS Agent exist, creating a new Agent"),i=new f3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function VZe(t){let e=Ui();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function WZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Sle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Sle.createInflate();return t.pipe(n),n}return t}function JZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new xs(`Error reading response as text: ${s.message}`,{code:xs.PARSE_ERROR}))})})}function zZe(t){return t?Buffer.isBuffer(t)?t.length:Ry(t)?null:Tle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xle(){return new g3}function bT(){return xle()}var p3="logPolicy";function QT(t={}){let e=t.logger??ei.info,r=new Fa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:p3,asy Line truncated
`;return e}function mtt(t){return t instanceof Uint8Array?t.byteLength:vy(t)?t.size===-1?void 0:t.size:void 0}function Ett(t){let e=0;for(let r of t){let n=mtt(r);if(n===void 0)return;e+=n}return e}async function Ctt(t,e,r){let n=[Zs(`--${r}`,"utf-8"),...e.flatMap(i=>[Zs(`\r
`,"utf-8"),Zs(ptt(i.headers),"utf-8"),Zs(`\r
`,"utf-8"),i.body,Zs(`\r
--${r}`,"utf-8")]),Zs(`--\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Ry(i));return n.searchPaths.push(...XO(n.patterns)),n})}static stat(e,r,n){return s3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Pm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Pm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var O$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function due(t,e){return O$e(this,void 0,void 0,function*(){return yield fT.create(t,e)})}var ide=pe(nde(),1);import*as DT from"crypto";import*as qm from"fs";import*as ff from"path";import*as ode from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));var Ds;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ds||(Ds={}));var Gi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gi||(Gi={}));var TT=2,xT=5e3,w3=5e3,S3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",N3="manifest.txt",tKt=10*Math.pow(1024,3),RT="cache read denied:";var Gm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},$et=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},Xet="1.0";function Py(){return Gm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=ff.join(n,"actions","temp")}let r=ff.join(e,DT.randomUUID());return yield zN(r),r})}function Rc(t){return qm.statSync(t).size}function T3(t){return Gm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield due(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=$et(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=ff.relative(a,s).replace(new RegExp(`\\${ff.sep}`,"g"),"/");q(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function Oy(t){return Gm(this,void 0,void 0,function*(){return ode.promisify(qm.unlink)(t)})}function ade(t){return Gm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield $N(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function Hy(){return Gm(this,void 0,void 0,function*(){let t=yield ade("zstd",["--quiet"]),e=ide.clean(t);return q(`zstd version: ${e}`),t===""?Ds.Gzip:Ds.ZstdWithoutLong})}function Kl(t){return t===Ds.Gzip?Ly.Gzip:Ly.Zstd}function cde(){return Gm(this,void 0,void 0,function*(){return qm.existsSync(S3)?S3:(yield ade("tar")).toLowerCase().includes("gnu tar")?fu("tar"):""})}function x3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Xet),DT.createHash("sha256").update(n.join("|")).digest("hex")}function Ade(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as I0 from"fs";import{URL as Fct}from"url";var Dc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Zet}from"node:os";import ett from"node:util";import ttt from"node:process";function ude(t,...e){ttt.stderr.write(`${ett.format(t,...e)}${Zet}`)}import Gy from"node:process";function vT(t){return Gy.env[t]}var lde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,dde=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,_T=!0;var hde=vT("DEBUG"),gde,R3=[],D3=[],FT=[];hde&&k3(hde);var pde=Object.assign(t=>mde(t),{enable:k3,enabled:v3,disable:rtt,log:ude});function k3(t){gde=t,R3=[],D3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?D3.push(r.substring(1)):R3.push(r);for(let r of FT)r.enabled=v3(r.namespace)}function v3(t){if(t.endsWith("*"))return!0;for(let e of D3)if(fde(t,e))return!1;for(let e of R3)if(fde(t,e))return!0;return!1}function fde(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,c=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function rtt(){let t=gde||"";return k3(""),t}function mde(t){let e=Object.assign(r,{enabled:v3(t),destroy:ntt,log:pde.log,namespace:t,extend:stt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return FT.push(e),e}function ntt(){let t=FT.indexOf(this);return t>=0?(FT.splice(t,1),!0):!1}function stt(t){let e=mde(`${this.namespace}:${t}`);return e.log=this.log,e}var Vm=pde;var _3=["verbose","info","warning","error"],Ede={verbose:400,info:300,warning:200,error:100};function Cde(t,e){e.log=(...r)=>{t.log(...r)}}function Ide(t){return _3.includes(t)}function MT(t){let e=new Set,r=vT(t.logLevelEnvVarName),n,s=Vm(t.namespace);s.log=(...u)=>{Vm.log(...u)};function i(u){if(u&&!Ide(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${_3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Vm.enable(l.join(","))}r&&(Ide(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${_3.join(", ")}.`));function o(u){return!!(n&&Ede[u.level]<=Ede[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Cde(u,d),o(d)){let h=Vm.disable();Vm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Cde(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var yde=MT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),itt=yde.logger;function qy(t){return yde.createClientLogger(t)}function LT(t){return t.toLowerCase()}function ott(t){return String(t).trim().replace(/[\r\n]/g,"")}function*att(t){for(let e of t.values())yield[e.name,e.value]}var F3=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(LT(e),{name:e,value:ott(r)})}get(e){return this._headersMap.get(LT(e))?.value}has(e){return this._ Line truncated
${ltt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Wm(t){return t instanceof ks?!0:pf(t)&&t.name==="RestError"}function si(t,e){return Buffer.from(t,e)}import P3 from"node:http";import O3 from"node:https";import Qde from"node:zlib";import{Transform as dtt}from"node:stream";var ii=qy("ts-http-runtime");var htt={};function Yy(t){return t&&typeof t.pipe=="function"}function wde(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Sde(t){return t&&typeof t.byteLength=="number"}var OT=class extends dtt{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},H3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Dc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new La;ii.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let A=mtt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new OT(f);g.on("error",E=>{ii.error("Error in upload progress",E)}),Yy(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=ftt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?gtt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new OT(h);f.on("error",g=>{ii.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await ptt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=wde(a));let u=Promise.resolve();Yy(c)&&(u=wde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ii.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,A)=>{let u=i?P3.request(a,c):O3.request(a,c);u.once("error",l=>{A(new ks(l.message,{code:l.code??ks.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Dc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Yy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Sde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ii.error("Unrecognized body type",n),A(new ks("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?P3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new P3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return O3.globalAgent;let s=e.tlsSettings??htt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ii.info("No cached TLS Agent exist, creating a new Agent"),i=new O3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ftt(t){let e=qi();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function gtt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Qde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Qde.createInflate();return t.pipe(n),n}return t}function ptt(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new ks(`Error reading response as text: ${s.message}`,{code:ks.PARSE_ERROR}))})})}function mtt(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:Sde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Nde(){return new H3}function HT(){return Nde()}var G3="logPolicy";function GT(t={}){let e=t.logger??ii.info,r=new La({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:G3,asy Line truncated
`;return e}function Urt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function Prt(t){let e=0;for(let r of t){let n=Urt(r);if(n===void 0)return;e+=n}return e}async function Ort(t,e,r){let n=[si(`--${r}`,"utf-8"),...e.flatMap(i=>[si(`\r
`,"utf-8"),si(Lrt(i.headers),"utf-8"),si(`\r
`,"utf-8"),i.body,si(`\r
--${r}`,"utf-8")]),si(`--\r
\r
`,"utf-8")],s=Ett(n);s&&t.headers.set("Content-Length",s),t.body=await yde(n)}var _y="multipartPolicy",Itt=70,ytt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Btt(t){if(t.length>Itt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ytt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function WT(){return{name:_y,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Btt(r):r=gtt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ctt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function JT(){return yT()}var Bde=ET({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),hXt=Bde.logger;function Do(t){return Bde.createClientLogger(t)}var Dc=Do("core-rest-pipeline");function _3(t={}){return QT({logger:Dc.info,...t})}var F3=YT;function M3(t={}){return VT(t)}import L3 from"node:os";import $l from"node:process";function bde(){return"User-Agent"}async function Qde(t){if($l&&$l.versions){let e=`${L3.type()} ${L3.release()}; ${L3.arch()}`;$l.versions.bun?t.set("Bun",`${$l.versions.bun} (${e})`):$l.versions.deno?t.set("Deno",`${$l.versions.deno} (${e})`):$l.versions.node&&t.set("Node",`${$l.versions.node} (${e})`)}}var zT="1.24.0";function Rtt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function wde(){return bde()}async function jT(t){let e=new Map;e.set("core-rest-pipeline",zT),await Qde(e);let r=Rtt(e);return t?`${t} ${r}`:r}var Sde=wde(),Nde="userAgentPolicy";function U3(t={}){let e=jT(t.userAgentPrefix);return{name:Nde,async sendRequest(r,n){return r.headers.has(Sde)||r.headers.set(Sde,await e),n(r)}}}var Tde=Symbol("rawContent");function P3(t){return typeof t[Tde]=="function"}function xde(t){return P3(t)?t[Tde]():t}var KT=_y;function O3(){let t=WT();return{name:KT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)P3(n.body)&&(n.body=xde(n.body));return t.sendRequest(e,r)}}}var H3=GT;function G3(){return qT()}function q3(t={}){return NT(t)}function Y3(){return TT()}var Fy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function V3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Fy(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var Ptt="The delay was aborted.";function Hm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return V3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Ptt})}function Xl(t){if(hf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Rde(t){return hf(t)}function Gm(){return df()}var Wt=pT;function Zl(t){return R3(t)}function J3(t,e){return HT(t,e)}var Dde="setClientRequestIdPolicy";function z3(t="x-ms-client-request-id"){return{name:Dde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function j3(t){return xT(t)}function K3(t){return RT(t)}var qm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function kde(t={}){let e=new $3(t.parentContext);return t.span&&(e=e.setValue(qm.span,t.span)),t.namespace&&(e=e.setValue(qm.namespace,t.namespace)),e}var $3=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var _de=pe(vde(),1),XT=_de.state;function Ott(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Htt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Ott(),tracingContext:kde({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function My(){return XT.instrumenterImplementation||(XT.instrumenterImplementation=Htt()),XT.instrumenterImplementation}function Ly(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=My().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Ant(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Xr("InvalidTag",l,Rs(t,i))}let A=snt(t,i);if(A===!1)return Xr("InvalidAttr","Attributes for '"+c+"' have open quote.",Rs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=ghe(u,e);if(d===!0)n=!0;else return Xr(d.err.code,d.err.msg,Rs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Rs(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+c+"' has not been opened.",Rs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Rs(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Rs(t,o))}r.length==0&&(s=!0)}}else return Xr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Rs(t,i));else{let l=ghe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rs(t,i-u.length+l.err.line));if(s===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=fhe(t,i);continue}else if(t[i+1]==="?"){if(i=hhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ant(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rs(t,i));i=l}else if(s===!0&&!dhe(t[i]))return Xr("InvalidXml","Extra text at the end",Rs(t,i));t[i]==="<"&&i--}}else{if(dhe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rs(t,i))}if(n){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rs(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function dhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function hhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function fhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var rnt='"',nnt="'";function snt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===rnt||t[e]===nnt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var int=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ghe(t,e){let r=ax(t,int),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Jy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Jy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Jy(r[s]));let i=r[s][2];if(!cnt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Jy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Jy(r[s]))}return!0}function ont(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function ant(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,ont(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function cnt(t){return g8(t)}function Ant(t){return g8(t)}function Rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Jy(t){return t.startIndex+t[1].length}var phe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},mhe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Ehe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new si("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Ky(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=jm(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=b8(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=Q8(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new si(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=jm(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=jm(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=Q8(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=b8(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let I=r;I&&s.unpairedTagsSet.has(I.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let C=null,y={},N;N=Fnt(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=_nt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new si(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=b8(s.transformTagName,l,h,s));let O=new si(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new si(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new si(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function Hnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Gnt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function qnt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function Ynt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Vnt(t,e,r=">"){Line truncated
`;function Znt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(R8(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Yhe(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function x8(t,e){let r="";e.format&&(r=Xnt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Gi(a)):a instanceof Gi&&n.push(a)}let s=Znt(t,e),i=new _c;return Vhe(t,e,r,i,n,s)}function Vhe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=T8(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=R8(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Yhe(u,!1,e,n,i),h=est(A[":@"],e);n.push(d,h);let f=rst(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=T8(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],N=Ex(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=mx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=qhe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=qhe(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=Whe(A[u],e):C=Vhe(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function est(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=rd(t[s]),n=!0}return n?r:null}function Whe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=R8(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=tst(s[":@"],e),a=Whe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function tst(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${rd(s)}"`}return r}function R8(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function qhe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Yhe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=T8(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${rd(A)}"`}return i}function rst(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function T8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function D8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var nst={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function oi(t){if(this.options=Object.assign({},nst,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Gi(r)):r instanceof Gi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=Prt(n);s&&t.headers.set("Content-Length",s),t.body=await Che(n)}var zy="multipartPolicy",Hrt=70,Grt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function qrt(t){if(t.length>Hrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Grt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ux(){return{name:zy,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?qrt(r):r=Mrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ort(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lx(){return PT()}var Ihe=MT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ner=Ihe.logger;function _o(t){return Ihe.createClientLogger(t)}var vc=_o("core-rest-pipeline");function o8(t={}){return GT({logger:vc.info,...t})}var a8=cx;function c8(t={}){return Ax(t)}import A8 from"node:os";import Zl from"node:process";function yhe(){return"User-Agent"}async function Bhe(t){if(Zl&&Zl.versions){let e=`${A8.type()} ${A8.release()}; ${A8.arch()}`;Zl.versions.bun?t.set("Bun",`${Zl.versions.bun} (${e})`):Zl.versions.deno?t.set("Deno",`${Zl.versions.deno} (${e})`):Zl.versions.node&&t.set("Node",`${Zl.versions.node} (${e})`)}}var dx="1.24.0";function $rt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function bhe(){return yhe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await Bhe(e);let r=$rt(e);return t?`${t} ${r}`:r}var Qhe=bhe(),whe="userAgentPolicy";function u8(t={}){let e=hx(t.userAgentPrefix);return{name:whe,async sendRequest(r,n){return r.headers.has(Qhe)||r.headers.set(Qhe,await e),n(r)}}}var She=Symbol("rawContent");function l8(t){return typeof t[She]=="function"}function Nhe(t){return l8(t)?t[She]():t}var fx=zy;function d8(){let t=ux();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)l8(n.body)&&(n.body=Nhe(n.body));return t.sendRequest(e,r)}}}var h8=ox;function f8(){return ax()}function g8(t={}){return VT(t)}function p8(){return WT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function m8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new jy(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var ont="The delay was aborted.";function Xm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return m8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ont})}function ed(t){if(pf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function The(t){return pf(t)}function Zm(){return gf()}var Jt=_T;function td(t){return r8(t)}function C8(t,e){return ix(t,e)}var xhe="setClientRequestIdPolicy";function I8(t="x-ms-client-request-id"){return{name:xhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function y8(t){return JT(t)}function B8(t){return zT(t)}var e0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Rhe(t={}){let e=new b8(t.parentContext);return t.span&&(e=e.setValue(e0.span,t.span)),t.namespace&&(e=e.setValue(e0.namespace,t.namespace)),e}var b8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var khe=pe(Dhe(),1),px=khe.state;function ant(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cnt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:ant(),tracingContext:Rhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Ky(){return px.instrumenterImplementation||(px.instrumenterImplementation=cnt()),px.instrumenterImplementation}function $y(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Ky().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Rst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",en("InvalidTag",l,vs(t,i))}let A=wst(t,i);if(A===!1)return en("InvalidAttr","Attributes for '"+c+"' have open quote.",vs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=hfe(u,e);if(d===!0)n=!0;else return en(d.err.code,d.err.msg,vs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return en("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",vs(t,o));if(r.length===0)return en("InvalidTag","Closing tag '"+c+"' has not been opened.",vs(t,o));{let l=r.pop();if(c!==l.tagName){let d=vs(t,l.tagStartPos);return en("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",vs(t,o))}r.length==0&&(s=!0)}}else return en("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",vs(t,i));else{let l=hfe(u,e);if(l!==!0)return en(l.err.code,l.err.msg,vs(t,i-u.length+l.err.line));if(s===!0)return en("InvalidXml","Multiple possible root nodes found.",vs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=dfe(t,i);continue}else if(t[i+1]==="?"){if(i=lfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Tst(t,i);if(l==-1)return en("InvalidChar","char '&' is not expected.",vs(t,i));i=l}else if(s===!0&&!ufe(t[i]))return en("InvalidXml","Extra text at the end",vs(t,i));t[i]==="<"&&i--}}else{if(ufe(t[i]))continue;return en("InvalidChar","char '"+t[i]+"' is not expected.",vs(t,i))}if(n){if(r.length==1)return en("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",vs(t,r[0].tagStartPos));if(r.length>0)return en("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return en("InvalidXml","Start tag expected.",1);return!0}function ufe(t){return t===" "||t===" "||t===`
`||t==="\r"}function lfe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return en("InvalidXml","XML declaration allowed only at the start of the document.",vs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dfe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var bst='"',Qst="'";function wst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===bst||t[e]===Qst)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Sst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hfe(t,e){let r=wx(t,Sst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return en("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",aB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return en("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",aB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return en("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",aB(r[s]));let i=r[s][2];if(!xst(i))return en("InvalidAttr","Attribute '"+i+"' is an invalid name.",aB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return en("InvalidAttr","Attribute '"+i+"' is repeated.",aB(r[s]))}return!0}function Nst(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Tst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Nst(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function en(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function xst(t){return H8(t)}function Rst(t){return H8(t)}function vs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function aB(t){return t.startIndex+t[1].length}var ffe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},gfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},pfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new uB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=o0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=j8(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=K8(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new Ai(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=o0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=o0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=K8(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=j8(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=rit(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=tit(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new Ai(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=j8(s.transformTagName,l,h,s));let V=new Ai(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new Ai(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new Ai(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function cit(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Ait(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}function uit(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function lit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function dit(t,e,r=">"){Line truncated
`;function Iit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(r4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Gfe(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function t4(t,e){let r="";e.format&&(r=Cit);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Ji(a)):a instanceof Ji&&n.push(a)}let s=Iit(t,e),i=new Mc;return qfe(t,e,r,i,n,s)}function qfe(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=e4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=r4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Gfe(u,!1,e,n,i),h=yit(A[":@"],e);n.push(d,h);let f=bit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=e4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=Mx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Fx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Hfe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Hfe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Yfe(A[u],e):I=qfe(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function yit(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=sd(t[s]),n=!0}return n?r:null}function Yfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=r4(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Bit(s[":@"],e),a=Yfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Bit(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${sd(s)}"`}return r}function r4(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function Hfe(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Gfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=e4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${sd(A)}"`}return i}function bit(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function e4(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function n4(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Qit={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function li(t){if(this.options=Object.assign({},Qit,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Ji(r)):r instanceof Ji&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function sst(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function k8(t,e,r,n,s){return!r.sanitizeName||If(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}oi.prototype.build=function(t){if(this.options.preserveOrder)return x8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new _c,r=sst(t,this.options);return this.j2x(t,0,e,r).val}};oi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:k8(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=k8(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=k8(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};oi.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+rd(e)+'"'};function ist(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}oi.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=rd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=rd(t[n]),r=!0)}return r?e:null};oi.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function wit(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function s4(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}li.prototype.build=function(t){if(this.options.preserveOrder)return t4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mc,r=wit(t,this.options);return this.j2x(t,0,e,r).val}};li.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:s4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=s4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=s4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};li.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+sd(e)+'"'};function Sit(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}li.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=sd(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=sd(t[n]),r=!0)}return r?e:null};li.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>xx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Sx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Nx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Mr=class extends bf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new tB(e,r,this)}computeHMACSHA256(e){return mst("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Qf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=Do("storage-common");var ko;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ko||(ko={}));var sd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Est=new Qf("The operation was aborted."),rB=class extends Fc{retryOptions;constructor(e,r,n=sd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:sd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):sd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:sd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:sd.maxRetryDelayInMs):sd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:sd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:sd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=wx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=nd(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(pn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return pn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return pn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case ko.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ko.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),Tx(s,n,Est)}};var nB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new rB(e,r,this.retryOptions)}};var Cst="storageBrowserPolicy";function $he(){return{name:Cst,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nd(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Ist="StorageCorrectContentLengthPolicy";function Xhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Ist,async sendRequest(e,r){return t(e),r(e)}}}var yst="storageRetryPolicy",$m={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Bst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],bst=new Qf("The operation was aborted.");function Zhe(t={}){let e=t.retryPolicyType??$m.retryPolicyType,r=t.maxTries??$m.maxTries,n=t.retryDelayInMs??$m.retryDelayInMs,s=t.maxRetryDelayInMs??$m.maxRetryDelayInMs,i=t.secondaryHost??$m.secondaryHost,o=t.tryTimeoutInMs??$m.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Bst)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Ke.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ke.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Ke.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Yx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Vx(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends Sf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gB(e,r,this)}computeHMACSHA256(e){return Uit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var In=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var od={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Pit=new Nf("The operation was aborted."),pB=class extends Lc{retryOptions;constructor(e,r,n=od){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:od.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):od.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:od.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:od.maxRetryDelayInMs):od.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:od.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:od.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=id(s.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(In.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(In.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return In.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return In.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return In.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return In.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(Ke.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(In.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return In.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Pit)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var Oit="storageBrowserPolicy";function jfe(){return{name:Oit,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=id(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ke.COOKIE),t.headers.delete(Ke.CONTENT_LENGTH)),e(t)}}}var Hit="StorageCorrectContentLengthPolicy";function Kfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ke.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Hit,async sendRequest(e,r){return t(e),r(e)}}}var Git="storageRetryPolicy",c0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Yit=new Nf("The operation was aborted.");function $fe(t={}){let e=t.retryPolicyType??c0.retryPolicyType,r=t.maxTries??c0.maxTries,n=t.retryDelayInMs??c0.retryDelayInMs,s=t.maxRetryDelayInMs??c0.maxRetryDelayInMs,i=t.secondaryHost??c0.secondaryHost,o=t.tryTimeoutInMs??c0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return In.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of qit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Qst("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>xx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Sx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Nx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:wst,async sendRequest(i,o){return e(i),o(i)}}}var Sst="storageRequestFailureDetailsParserPolicy";function efe(){return{name:Sst,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as Nst}from"node:crypto";var Rx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Nst("sha256",this.key).update(e,"utf8").digest("base64")}};var Dx="12.31.0",kx="2026-02-06";var vx="https://storage.azure.com/.default",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ma="",U8="*",Tst=1*1024*1024;var xst=4*Tst;var tfe="AES256",rfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",nfe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],sfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],ife="BlobUsesCustomerSpecifiedEncryption",ofe="BlobDoesNotUseCustomerSpecifiedEncryption",afe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var sB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new sB([],e);return r._credential=t,r}function Rst(t){let e=[Dst,cfe,kst,vst,_st,Fst,Lst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Mst(s));return{wrappedPolicies:h8(r),afterRetry:n}}}}function P8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?f8(e):M8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Dx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Oy({...r,loggingOptions:{additionalAllowedHeaderNames:nfe,additionalAllowedQueryParameters:sfe,logger:Ix.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Cx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:_8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:H3}),s.addPolicy(Xhe()),s.addPolicy(Zhe(r.retryOptions),{phase:"Retry"}),s.addPolicy(efe()),s.addPolicy($he());let a=Rst(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=O8(t);Oi(c)?s.addPolicy(Ym({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ha(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Dot(t,e){if(t=vf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function kot(t,e){if(t=vf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function vot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function _ot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Fot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Mot(t,e){if(t=vf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",kf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ha(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function kf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function vf(t){let e=t.version?t.version:kx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var pB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Gm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ma||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ma||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ma||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ma||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};a0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Mf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Mf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var iat=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},hH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function yge(t,e,r){return iat(this,void 0,void 0,function*(){var n;let s=new Ga(t),i=s.getBlockBlobClient(),o=new hH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),V(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new NR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as bge from"buffer";import*as eA from"fs";import*as Qge from"stream";import*as wge from"util";var TR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xR(t){return t?t>=200&&t<300:!1}function oat(t){return t?t>=500:!0}function aat(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function cat(t){return TR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Bge(t,e,r){return TR(this,arguments,void 0,function*(n,s,i,o=lT,a=dT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!oat(d)))return l;if(d&&(h=aat(d),A=`Cache service responded with ${d}`),V(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){V(`${n} - Error is not retryable`);break}yield cat(a),u++}throw Error(`${n} failed: ${A}`)})}function wB(t,e){return TR(this,arguments,void 0,function*(r,n,s=lT,i=dT){return yield Bge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Qc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function c0(t,e){return TR(this,arguments,void 0,function*(r,n,s=lT,i=dT){return yield Bge(r,n,o=>o.message.statusCode,s,i)})}var Lo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Aat(t,e){return Lo(this,void 0,void 0,function*(){yield wge.promisify(Qge.pipeline)(t.message,e)})}var RR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,V(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function mH(t,e,r){return ci(this,void 0,void 0,function*(){let n=new fat(t),s=xge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Nge(t,e,s):s.concurrentBlobDownloads?yield Sge(t,e,s):yield DR(t,e):yield DR(t,e)})}function Mge(t,e,r){return ci(this,void 0,void 0,function*(){let n=pH(),s=vm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield wB("reserveCache",()=>ci(this,void 0,void 0,function*(){return n.postJson(NB("caches"),i)}))})}function _ge(t,e){return`bytes ${t}-${e}/*`}function Eat(t,e,r,n,s){return ci(this,void 0,void 0,function*(){V(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${_ge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":_ge(n,s)},o=yield c0(`uploadChunk (start: ${n}, end: ${s})`,()=>ci(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!xR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Cat(t,e,r,n){return ci(this,void 0,void 0,function*(){let s=Tc(r),i=NB(`caches/${e.toString()}`),o=A0.openSync(r,"r"),a=fH(n),c=n3("uploadConcurrency",a.uploadConcurrency),A=n3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ci(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Eat(t,i,()=>A0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{A0.closeSync(o)}})}function Iat(t,e,r){return ci(this,void 0,void 0,function*(){let n={size:r};return yield wB("commitCache",()=>ci(this,void 0,void 0,function*(){return t.postJson(NB(`caches/${e.toString()}`),n)}))})}function EH(t,e,r,n){return ci(this,void 0,void 0,function*(){if(fH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield yge(r,e,n)}else{let i=pH();V("Upload cache"),yield Cat(i,t,e,n),V("Commiting cache");let o=Tc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Iat(i,t,o);if(!xR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var xpe=pe(A9(),1),tn=pe(ct(),1),Vi=pe(ct(),1),Hf=pe(ct(),1),Gf=pe(ct(),1),qf=pe(ct(),1);var h9=pe(ct(),1),f9=pe(ct(),1),Spe=pe(ct(),1),Npe=pe(ct(),1),Tpe=pe(ct(),1);var u9=pe(ct(),1),l9=pe(ct(),1),bpe=pe(ct(),1),Qpe=pe(ct(),1),wpe=pe(ct(),1),d9=class extends wpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Qpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,bpe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?l9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,u9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,u9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?l9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ED=new d9;var g9=class extends Tpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>ED}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Npe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Spe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(ED.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?f9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,h9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ED.internalBinaryWrite(e.scope[i],r.tag(2,h9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?f9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield R9(r,"create");yield D9(n,t)})}var S0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Va=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},w0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},yD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function vpe(t){if(!t||t.length===0)throw new Va("Path Validation Error: At least one directory or file path is required")}function _9(t){if(t.length>512)throw new Va(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Va(`Key Validation Error: ${t} cannot contain commas.`)}function _pe(){return SB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Fpe(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=SB();return V(`Cache service version: ${A}`),vpe(s),A==="v2"?yield LAt(s,i,o,a,c):yield MAt(s,i,o,a,c)})}function MAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)_9(d);let u=yield Ny(),l="";try{let d=yield Fge(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),d.cacheKey;l=qB.join(yield wy(),zl(u)),V(`Archive Path: ${l}`),yield mH(d.archiveLocation,l,a),Gl()&&(yield GB(l,u));let h=Tc(l);return re(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield k9(l,u),re("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Va.name)throw d;h instanceof Qc&&typeof h.statusCode=="number"&&h.statusCode>=500?Qo(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{yield Sy(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function LAt(t,e,r,n){return S0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(A)),A.length>10)throw new Va("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)_9(l);let u="";try{let l=x9(),d=yield Ny(),h={key:i,restoreKeys:o,version:vm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?re(`Cache hit for restore-key: ${f.matchedKey}`):re(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),f.matchedKey;u=qB.join(yield wy(),zl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield mH(f.signedDownloadUrl,u,a);let I=Tc(u);return re(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Gl()&&(yield GB(u,d)),yield k9(u,d),re("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Va.name)throw l;d instanceof Qc&&typeof d.statusCode=="number"&&d.statusCode>=500?Qo(`Failed to restore: ${l.message}`):Xe(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Sy(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function Mpe(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){let a=SB();return V(`Cache service version: ${a}`),vpe(n),_9(s),a==="v2"?yield PAt(n,s,i,o):yield UAt(n,s,i,o)})}function UAt(t,e,r){return S0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Ny(),h=-1,f=yield r3(n);if(V("Cache Paths:"),V(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield wy(),I=qB.join(p,zl(d));V(`Archive Path: ${I}`);try{yield v9(p,f,d),Gl()&&(yield GB(I,d));let m=10*1024*1024*1024,C=Tc(I);if(V(`File Size: ${C}`),C>m&&!gH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield Mge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new w0(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield EH(h,I,"",i)}catch(m){let C=m;if(C.name===Va.name)throw m;C.name Line truncated
`+n(i)+s(i),a=Vit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Ke.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Ke.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(Ke.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Jx(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Yx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Vx(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Wit,async sendRequest(i,o){return e(i),o(i)}}}var Jit="storageRequestFailureDetailsParserPolicy";function Xfe(){return{name:Jit,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}import{createHmac as zit}from"node:crypto";var zx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return zit("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",Qu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ua="",u4="*",jit=1*1024*1024;var Kit=4*jit;var Zfe="AES256",ege="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",tge=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],rge=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],nge="BlobUsesCustomerSpecifiedEncryption",sge="BlobDoesNotUseCustomerSpecifiedEncryption",ige=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var EB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function tn(t,e={}){t||(t=new Sr);let r=new EB([],e);return r._credential=t,r}function $it(t){let e=[Xit,oge,Zit,eot,tot,rot,sot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>not(s));return{wrappedPolicies:P8(r),afterRetry:n}}}}function l4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?O8(e):c4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eB({...r,loggingOptions:{additionalAllowedHeaderNames:tge,additionalAllowedQueryParameters:rge,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:o4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:h8}),s.addPolicy(Kfe()),s.addPolicy($fe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Xfe()),s.addPolicy(jfe());let a=$it(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=d4(t);Vi(c)?s.addPolicy(t0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new qa(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Xat(t,e){if(t=Mf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Zat(t,e){if(t=Mf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function ect(t,e){if(t=Mf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function tct(t,e){if(t=Mf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function rct(t,e){if(t=Mf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function nct(t,e){if(t=Mf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new qa(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Ff(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Mf(t){let e=t.version?t.version:Kx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var RB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Zm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};E0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Sct=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},PH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Cpe(t,e,r){return Sct(this,void 0,void 0,function*(){var n;let s=new Ya(t),i=s.getBlockBlobClient(),o=new PH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),q(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new VR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as ype from"buffer";import*as rA from"fs";import*as Bpe from"stream";import*as bpe from"util";var WR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function JR(t){return t?t>=200&&t<300:!1}function Nct(t){return t?t>=500:!0}function Tct(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function xct(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Ipe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=TT,a=xT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!Nct(d)))return l;if(d&&(h=Tct(d),A=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){q(`${n} - Error is not retryable`);break}yield xct(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return WR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield Ipe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function C0(t,e){return WR(this,arguments,void 0,function*(r,n,s=TT,i=xT){return yield Ipe(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Rct(t,e){return Oo(this,void 0,void 0,function*(){yield bpe.promisify(Bpe.pipeline)(t.message,e)})}var zR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,q(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function YH(t,e,r){return hi(this,void 0,void 0,function*(){let n=new Fct(t),s=Npe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield wpe(t,e,s):s.concurrentBlobDownloads?yield Qpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Lpe(t,e,r){return hi(this,void 0,void 0,function*(){let n=qH(),s=Ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>hi(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Fpe(t,e){return`bytes ${t}-${e}/*`}function Pct(t,e,r,n,s){return hi(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Fpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Fpe(n,s)},o=yield C0(`uploadChunk (start: ${n}, end: ${s})`,()=>hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!JR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Oct(t,e,r,n){return hi(this,void 0,void 0,function*(){let s=Rc(r),i=HB(`caches/${e.toString()}`),o=I0.openSync(r,"r"),a=OH(n),c=x3("uploadConcurrency",a.uploadConcurrency),A=x3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>hi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield Pct(t,i,()=>I0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{I0.closeSync(o)}})}function Hct(t,e,r){return hi(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>hi(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function VH(t,e,r,n){return hi(this,void 0,void 0,function*(){if(OH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Cpe(r,e,n)}else{let i=qH();q("Upload cache"),yield Oct(i,t,e,n),q("Commiting cache");let o=Rc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Hct(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var Rme=pe(M9(),1),nn=pe(ct(),1),Ki=pe(ct(),1),Yf=pe(ct(),1),Vf=pe(ct(),1),Wf=pe(ct(),1);var O9=pe(ct(),1),H9=pe(ct(),1),Nme=pe(ct(),1),Tme=pe(ct(),1),xme=pe(ct(),1);var L9=pe(ct(),1),U9=pe(ct(),1),Qme=pe(ct(),1),wme=pe(ct(),1),Sme=pe(ct(),1),P9=class extends Sme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,wme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Qme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?U9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,L9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,L9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?U9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new P9;var G9=class extends xme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>MD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Tme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(MD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?H9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,O9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,O9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?H9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield nG(r,"create");yield sG(n,t)})}var M0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Ja=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Jf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},aG="cache write denied:",PD=class t extends Jf{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},_me=RT,OD=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},HD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Fme(t){if(!t||t.length===0)throw new Ja("Path Validation Error: At least one directory or file path is required")}function cG(t){if(t.length>512)throw new Ja(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ja(`Key Validation Error: ${t} cannot contain commas.`)}function Mme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Lme(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();q(`Cache service version: ${A}`),Fme(s);let u=GH();if(!xpe(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),q(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield slt(s,i,o,a,c):yield nlt(s,i,o,a,c)})}function nlt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)cG(h);let l=yield Hy(),d="";try{let h;try{h=yield Mpe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(_me)?new OD(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=nb.join(yield Py(),Kl(l)),q(`Archive Path: ${d}`),yield YH(h.archiveLocation,d,a),Yl()&&(yield rb(d,l));let f=Rc(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield iG(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Ja.name)throw h;f instanceof wc&&typeof f.statusCode=="number"&&f.statusCode>=500?No(`Failed to restore: ${h.message}`):Xe(`Failed to restore: ${h.message}`)}finally{try{yield Oy(d)}catch(h){q(`Failed to delete archive: ${h}`)}}})}function slt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)cG(d);let l="";try{let d=rG(),h=yield Hy(),f={key:i,restoreKeys:o,version:Ym(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(_me)?new OD(y):I}if(!g.ok){q(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;l=nb.join(yield Py(),Kl(h)),q(`Archive path: ${l}`),q(`Starting download of archive to: ${l}`),yield YH(g.signedDownloadUrl,l,a);let m=Rc(l);return re(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Yl()&&(yield rb(l,h)),yield iG(l,h),re("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Ja.name)throw d;h instanceof wc&&typeof h.statusCode=="number"&&h.statusCode>=500?No(`Failed to restore: ${d.message}`):Xe(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Oy(l))}catch(d){q(`Failed to delete archive: ${d}`)}}})}function Ume(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();q(`Cache service version: ${a}`),Fme(n),cG(s);let c=GH();return Rpe(c)?a==="v2"?yield olt(n,s,i,o):yield ilt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),q(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ilt(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Hy(),f=-1,g=yield T3(n);if(q("Cache Paths:"),q(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield Py(),m=nb.join(E,Kl(h));q(`Archive Path: ${m}`);try{yield oG(E,g,h),Yl()&&(yield rb(m,h));let I=10*1024*1024*1024 Line truncated
<h3>Job Summary for Gradle</h3>
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,s=WB(),i=_i(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe(WAt(o));else throw o}}function WAt(t){let e=`Failed to generate PR comment.
${t}`,s=ab(),i=Oi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Xe(hlt(o));else throw o}}function hlt(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function JAt(t){return`${jAt()}
${$At(t)}`}function zAt(){let t=Ope();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function jAt(){let t=Ppe();return t.length===0?"":`
`:e}function flt(t){return`${plt()}
${Elt(t)}`}function glt(){let t=Gme();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function plt(){let t=Hme();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${bD()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${qD()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${KAt(e)}</li>`).join("")}
${t.map(e=>`<li>${mlt(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function KAt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function $At(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function mlt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Elt(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -308,16 +308,16 @@ This job uses deprecated functionality from the <code>${bD()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>ZAt(e)).join("")}
</tr>${t.map(e=>Ilt(e)).join("")}
</table>
`}function XAt(t){return t.some(e=>e.buildFailed)}function ZAt(t){return`
`}function Clt(t){return t.some(e=>e.buildFailed)}function Ilt(t){return`
<tr>
<td>${Ype(t.rootProjectName,30)}</td>
<td>${Ype(t.requestedTasks,60)}</td>
<td>${Wme(t.rootProjectName,30)}</td>
<td>${Wme(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${eut(t)}</td>
<td>${tut(t)}</td>
</tr>`}function eut(t){return t.buildFailed?":x:":":white_check_mark:"}function tut(t){return t.buildScanFailed?U9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?U9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):U9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function U9({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Ype(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function rut(){let t=pu;if(t.payload.pull_request==null){re("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;re(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=Wpe(t),n=_i(WB()),{owner:s,repo:i}=t.repo,o=`
<td align='center'>${ylt(t)}</td>
<td>${Blt(t)}</td>
</tr>`}function ylt(t){return t.buildFailed?":x:":":white_check_mark:"}function Blt(t){return t.buildScanFailed?lG({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?lG({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):lG({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function lG({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Wme(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function blt(){let t=pu;if(t.payload.pull_request==null){re("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;re(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=zme(t),n=Oi(ab()),{owner:s,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -333,60 +333,60 @@ This job uses deprecated functionality from the <code>${bD()}</code> action. Fol
clientMutationId
}
}
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>re(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>Xe(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function Wpe(t){return`<!-- gradle-job-summary: ${T0.constructJobCorrelator(t.workflow,t.job,L9())} -->`}var Jpe=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Ho from"fs";import*as _u from"path";function zpe(){return Kpe().map(e=>{let r=Ho.readFileSync(e,"utf8"),n=JSON.parse(r);return iut(e,n),n})}function jpe(){Kpe().forEach(aut)}function Kpe(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Ho.existsSync(t)?Ho.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!out(e)):[]}function iut(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Ho.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Ho.existsSync(n)){let s=Ho.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function out(t){let e=`${t}.processed`;return Ho.existsSync(e)}function aut(t){let e=`${t}.processed`;Ho.writeFileSync(e,"")}import*as Dme from"fs";import*as kme from"path";import{pathToFileURL as blt}from"url";import*as D0 from"fs";function P9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as RD from"path";import*as x0 from"path";import Vf from"assert";var fd=process.platform==="win32";function Mu(t){if(t=Fu(t),fd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=x0.dirname(t);return fd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function ND(t,e){if(Vf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Vf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),zB(e))return e;if(fd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Vf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Wa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Vf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Vf(zB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||fd&&t.endsWith("\\")||(t+=x0.sep),t+e}function zB(t){return Vf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Wa(t),fd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function jB(t){return Vf(t,"isRooted parameter 'itemPath' must not be empty"),t=Wa(t),fd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Wa(t){return t=t||"",fd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=Wa(t),!t.endsWith(x0.sep)||t===x0.sep||fd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ja;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ja||(Ja={}));var $pe=process.platform==="win32";function H9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=$pe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=$pe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Mu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Mu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function Xpe(t,e){let r=Ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function Zpe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Cme from"os";import*as Line truncated
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>re(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>Xe(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function zme(t){return`<!-- gradle-job-summary: ${U0.constructJobCorrelator(t.workflow,t.job,uG())} -->`}var jme=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Yo from"fs";import*as _u from"path";function Kme(){return Xme().map(e=>{let r=Yo.readFileSync(e,"utf8"),n=JSON.parse(r);return Slt(e,n),n})}function $me(){Xme().forEach(Tlt)}function Xme(){let t=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Yo.existsSync(t)?Yo.readdirSync(t).map(e=>_u.resolve(t,e)).filter(e=>_u.extname(e)===".json"&&!Nlt(e)):[]}function Slt(t,e){let r=_u.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Yo.existsSync(r))return;let n=_u.resolve(r,_u.basename(t));if(Yo.existsSync(n)){let s=Yo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Nlt(t){let e=`${t}.processed`;return Yo.existsSync(e)}function Tlt(t){let e=`${t}.processed`;Yo.writeFileSync(e,"")}import*as v0e from"fs";import*as _0e from"path";import{pathToFileURL as Wdt}from"url";import*as H0 from"fs";function dG(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as KD from"path";import*as P0 from"path";import jf from"assert";var pd=process.platform==="win32";function Mu(t){if(t=Fu(t),pd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=P0.dirname(t);return pd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Fu(e)),e}function JD(t,e){if(jf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),jf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Ab(e))return e;if(pd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(za(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return jf(Ab(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||pd&&t.endsWith("\\")||(t+=P0.sep),t+e}function Ab(t){return jf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=za(t),pd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function ub(t){return jf(t,"isRooted parameter 'itemPath' must not be empty"),t=za(t),pd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function za(t){return t=t||"",pd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Fu(t){return t?(t=za(t),!t.endsWith(P0.sep)||t===P0.sep||pd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var ja;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(ja||(ja={}));var Zme=process.platform==="win32";function fG(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Zme?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=Zme?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Mu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Mu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function e0e(t,e){let r=ja.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function t0e(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as y0e from"os";import*as Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new eb(i));return n.searchPaths.push(...H9(n.patterns)),n})}static stat(e,r,n){return z9(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield D0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield D0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield D0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as j9 from"crypto";import*as DD from"fs";import*as Ime from"stream";import*as yme from"util";import*as Bme from"path";var Elt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Clt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function bme(t,e){return Elt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:V,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=j9.createHash("sha256"),f=0;try{for(var p=!0,I=Clt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Bme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(DD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=j9.createHash("sha256");yield yme.promisify(Ime.pipeline)(DD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Qme=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function K9(t,e){return Qme(this,void 0,void 0,function*(){return yield xD.create(t,e)})}function wme(t){return Qme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield K9(e,{followSymbolicLinks:i});return bme(o,r,s)})}import*as $9 from"path";var Ilt="Gradle User Home",Nme="BASIC_CACHE_PRIMARY_KEY",Tme="BASIC_CACHE_RESTORED_KEY",ylt="setup-java",xme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],vD=class{async restore(e,r){let n=Rme(e),s=await Blt();cy(Nme,s);try{let i=await Fpe(n,s);i?(cy(Tme,i),re(`Basic caching restored from cache key: ${i}`)):re("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Xe(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=fu(Nme),i=fu(Tme);if(n.readOnly)return{status:"read-only",entries:[kD({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return re(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[kD({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=Rme(e);try{return await Mpe(o,s),re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[kD({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]}}catch(a){return Xe(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[kD({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function kD(t){return{entryName:Ilt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcomLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${xme}], make sure you have checked out the target repository`);return`${ylt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Qlt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",wlt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Z9=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function vme(t){return t.isCacheDisabled()?(X9("Cache is disabled: will not restore state from previous builds."),new Z9):t.getCacheProvider()==="basic"?(X9(wlt),new vD):(X9(Qlt),Slt())}function _me(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function Slt(){let t=Nlt();return await import(blt(t).href)}function Nlt(){let t=import.meta.dirname,e=kme.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Dme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function X9(t){console.info(t)}import*as Pme from"util";var _lt=pe(Ume(),1);import*as eG from"fs";var Fgr=Pme.promisify(eG.readdir);var Mlt={_useHtmlParser2:!1};function k0(t,e){if(!t)return e??Mlt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var QG={};Ba(QG,{contains:()=>zD,extract:()=>Rdt,html:()=>Sdt,merge:()=>c0e,parseHTML:()=>Tdt,root:()=>xdt,text:()=>tg,xml:()=>Ndt});var yd={};Ba(yd,{DocumentPosition:()=>Vo,append:()=>cdt,appendChild:()=>adt,compareDocumentPosition:()=>s0e,existsOne:()=>r0e,filter:()=>L0,find:()=>YD,findAll:()=>ddt,findOne:()=>VD,findOneChild:()=>ldt,getAttributeValue:()=>ndt,getChildren:()=>M0,getElementById:()=>pdt,getElements:()=>gdt,getElementsByClassName:()=>mdt,getElementsByTagName:()=>eg,getElementsByTagType:()=>Edt,getFeed:()=>bG,getInnerHTML:()=>rdt,getName:()=>idt,getOuterHTML:()=>e0e,getParent:()=>t0e,getSiblings:()=>yG,getText:()=>HD,hasAttrib:()=>sdt,hasChildren:()=>tr,innerText:()=>ob,isCDATA:()=>v0,isComment:()=>Zf,isDocument:()=>Yo,isTag:()=>Qe,isText:()=>di,nextElementSibling:()=>GD,prepend:()=>udt,prependChild:()=>Adt,prevElementSibling:()=>qD,removeElement:()=>Ou,removeSubsets:()=>Cdt,replaceElement:()=>odt,testElement:()=>fdt,textContent:()=>Pu,uniqueSort:()=>Cd});var qo={};Ba(qo,{CDATA:()=>AG,Comment:()=>iG,Directive:()=>sG,Doctype:()=>uG,ElementType:()=>bt,Root:()=>rG,Script:()=>oG,Style:()=>aG,Tag:()=>cG,Text:()=>nG,isTag:()=>tG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function tG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var rG=bt.Root,nG=bt.Text,sG=bt.Directive,iG=bt.Comment,oG=bt.Script,aG=bt.Style,cG=bt.Tag,AG=bt.CDATA,uG=bt.Doctype;var _D=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _0(this,e)}},rb=class extends _D{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},oA=class extends rb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Kf=class extends rb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},$f=class extends rb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},nb=class extends _D{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},sb=class extends nb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ji=class extends nb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Xf=class extends nb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}} Line truncated
`:HD(t.children):v0(t)?HD(t.children):di(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):tr(t)&&!Zf(t)?Pu(t.children):di(t)?t.data:""}function ob(t){return Array.isArray(t)?t.map(ob).join(""):tr(t)&&(t.type===bt.Tag||v0(t))?ob(t.children):di(t)?t.data:""}function M0(t){return tr(t)?t.children:[]}function t0e(t){return t.parent||null}function yG(t){let e=t0e(t);if(e!=null)return M0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function ndt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function sdt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function idt(t){return t.name}function GD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function qD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ou(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function odt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function adt(t,e){if(Ou(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function cdt(t,e){Ou(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Adt(t,e){if(Ou(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function udt(t,e){Ou(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function L0(t,e,r=!0,n=1/0){return YD(t,Array.isArray(e)?e:[e],r,n)}function YD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function ldt(t,e){return e.find(t)}function VD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=VD(t,i.children,!0);if(o)return o}}return null}function r0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&r0e(t,r.children))}function ddt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var WD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>di(e)&&t(e.data):e=>di(e)&&e.data===t}};function BG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function hdt(t,e){return r=>t(r)||e(r)}function n0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(WD,r)?WD[r](n):BG(r,n)});return e.length===0?null:e.reduce(hdt)}function fdt(t,e){let r=n0e(t);return r?r(e):!0}function gdt(t,e,r,n=1/0){let s=n0e(t);return s?L0(s,e,r,n):[]}function pdt(t,e,r=!0){return Array.isArray(e)||(e=[e]),VD(BG("id",t),e,r)}function eg(t,e,r=!0,n=1/0){return L0(WD.tag_name(t),e,r,n)}function mdt(t,e,r=!0,n=1/0){return L0(BG("class",t),e,r,n)}function Edt(t,e,r=!0,n=1/0){return L0(WD.tag_type(t),e,r,n)}function Cdt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Vo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Vo||(Vo={}));function s0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Vo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Vo.FOLLOWING|Vo.CONTAINED_BY:Vo.FOLLOWING:a===t?Vo.PRECEDING|Vo.CONTAINS:Vo.PRECEDING}function Cd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=s0e(e,r);return n&Vo.PRECEDING?-1:n&Vo.FOLLOWING?1:0}),t}function bG(t){let e=JD(Qdt,t);return e?e.name==="feed"?Idt(e):ydt(e):null}function Idt(t){var e;let r=t.children,n={type:"atom",items:eg("entry",r).map(o=>{var a;let{children:c}=o,A={media:i0e(c)};hi(A,"id","id",c),hi(A,"title","title",c);let u=(a=JD("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Id("summary",c)||Id("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new gb(i));return n.searchPaths.push(...fG(n.patterns)),n})}static stat(e,r,n){return BG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield H0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield H0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield H0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as bG from"crypto";import*as $D from"fs";import*as B0e from"stream";import*as b0e from"util";import*as Q0e from"path";var Hdt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Gdt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function w0e(t,e){return Hdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:q,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=bG.createHash("sha256"),f=0;try{for(var g=!0,E=Gdt(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${Q0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if($D.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=bG.createHash("sha256");yield b0e.promisify(B0e.pipeline)($D.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var S0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function QG(t,e){return S0e(this,void 0,void 0,function*(){return yield jD.create(t,e)})}function N0e(t){return S0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield QG(e,{followSymbolicLinks:i});return w0e(o,r,s)})}import*as wG from"path";var qdt="Gradle User Home",x0e="BASIC_CACHE_PRIMARY_KEY",R0e="BASIC_CACHE_RESTORED_KEY",Ydt="setup-java",D0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],XD=class{async restore(e,r){let n=k0e(e),s=await Vdt();yy(x0e,s);try{let i=await Lme(n,s);i?(yy(R0e,i),re(`Basic caching restored from cache key: ${i}`)):re("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Xe(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=Tc(x0e),i=Tc(R0e);if(n.readOnly)return{status:"read-only",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return re(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=k0e(e);try{return await Ume(o,s)===-1?(Xe(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return Xe(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[mb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${D0e}], make sure you have checked out the target repository`);return`${Ydt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Jdt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",zdt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",NG=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function F0e(t){return t.isCacheDisabled()?(SG("Cache is disabled: will not restore state from previous builds."),new NG):t.getCacheProvider()==="basic"?(SG(zdt),new XD):(SG(Jdt),jdt())}function M0e(t){if(!t.isCacheDisabled())return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function jdt(){let t=Kdt();return await import(Wdt(t).href)}function Kdt(){let t=import.meta.dirname,e=_0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(v0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function SG(t){console.info(t)}import*as H0e from"util";var nht=pe(O0e(),1);import*as TG from"fs";var wmr=H0e.promisify(TG.readdir);var iht={_useHtmlParser2:!1};function G0(t,e){if(!t)return e??iht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var XG={};Qa(XG,{contains:()=>h2,extract:()=>Zht,html:()=>jht,merge:()=>uEe,parseHTML:()=>$ht,root:()=>Xht,text:()=>ig,xml:()=>Kht});var bd={};Qa(bd,{DocumentPosition:()=>zo,append:()=>Dht,appendChild:()=>Rht,compareDocumentPosition:()=>oEe,existsOne:()=>sEe,filter:()=>J0,find:()=>A2,findAll:()=>Fht,findOne:()=>u2,findOneChild:()=>_ht,getAttributeValue:()=>Sht,getChildren:()=>W0,getElementById:()=>Pht,getElements:()=>Uht,getElementsByClassName:()=>Oht,getElementsByTagName:()=>sg,getElementsByTagType:()=>Hht,getFeed:()=>$G,getInnerHTML:()=>wht,getName:()=>Tht,getOuterHTML:()=>rEe,getParent:()=>nEe,getSiblings:()=>jG,getText:()=>o2,hasAttrib:()=>Nht,hasChildren:()=>rr,innerText:()=>Bb,isCDATA:()=>q0,isComment:()=>ng,isDocument:()=>Jo,isTag:()=>Qe,isText:()=>mi,nextElementSibling:()=>a2,prepend:()=>vht,prependChild:()=>kht,prevElementSibling:()=>c2,removeElement:()=>Ou,removeSubsets:()=>Ght,replaceElement:()=>xht,testElement:()=>Lht,textContent:()=>Pu,uniqueSort:()=>yd});var Wo={};Qa(Wo,{CDATA:()=>LG,Comment:()=>vG,Directive:()=>kG,Doctype:()=>UG,ElementType:()=>bt,Root:()=>RG,Script:()=>_G,Style:()=>FG,Tag:()=>MG,Text:()=>DG,isTag:()=>xG});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function xG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var RG=bt.Root,DG=bt.Text,kG=bt.Directive,vG=bt.Comment,_G=bt.Script,FG=bt.Style,MG=bt.Tag,LG=bt.CDATA,UG=bt.Doctype;var ZD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Y0(this,e)}},Eb=class extends ZD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},cA=class extends Eb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},eg=class extends Eb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},tg=class extends Eb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Cb=class extends ZD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},Ib=class extends Cb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends Cb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},rg=class extends Cb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}} Line truncated
`:o2(t.children):q0(t)?o2(t.children):mi(t)?t.data:""}function Pu(t){return Array.isArray(t)?t.map(Pu).join(""):rr(t)&&!ng(t)?Pu(t.children):mi(t)?t.data:""}function Bb(t){return Array.isArray(t)?t.map(Bb).join(""):rr(t)&&(t.type===bt.Tag||q0(t))?Bb(t.children):mi(t)?t.data:""}function W0(t){return rr(t)?t.children:[]}function nEe(t){return t.parent||null}function jG(t){let e=nEe(t);if(e!=null)return W0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Sht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Nht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Tht(t){return t.name}function a2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function c2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ou(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function xht(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Rht(t,e){if(Ou(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Dht(t,e){Ou(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function kht(t,e){if(Ou(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function vht(t,e){Ou(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function J0(t,e,r=!0,n=1/0){return A2(t,Array.isArray(e)?e:[e],r,n)}function A2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function _ht(t,e){return e.find(t)}function u2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=u2(t,i.children,!0);if(o)return o}}return null}function sEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&sEe(t,r.children))}function Fht(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var l2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>mi(e)&&t(e.data):e=>mi(e)&&e.data===t}};function KG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Mht(t,e){return r=>t(r)||e(r)}function iEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(l2,r)?l2[r](n):KG(r,n)});return e.length===0?null:e.reduce(Mht)}function Lht(t,e){let r=iEe(t);return r?r(e):!0}function Uht(t,e,r,n=1/0){let s=iEe(t);return s?J0(s,e,r,n):[]}function Pht(t,e,r=!0){return Array.isArray(e)||(e=[e]),u2(KG("id",t),e,r)}function sg(t,e,r=!0,n=1/0){return J0(l2.tag_name(t),e,r,n)}function Oht(t,e,r=!0,n=1/0){return J0(KG("class",t),e,r,n)}function Hht(t,e,r=!0,n=1/0){return J0(l2.tag_type(t),e,r,n)}function Ght(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var zo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(zo||(zo={}));function oEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?zo.FOLLOWING|zo.CONTAINED_BY:zo.FOLLOWING:a===t?zo.PRECEDING|zo.CONTAINS:zo.PRECEDING}function yd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=oEe(e,r);return n&zo.PRECEDING?-1:n&zo.FOLLOWING?1:0}),t}function $G(t){let e=d2(Jht,t);return e?e.name==="feed"?qht(e):Yht(e):null}function qht(t){var e;let r=t.children,n={type:"atom",items:sg("entry",r).map(o=>{var a;let{children:c}=o,A={media:aEe(c)};Ei(A,"id","id",c),Ei(A,"title","title",c);let u=(a=d2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Bd("summary",c)||Bd("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var zo=pe(Bd(),1);var OG={};function HG(t,e){return t===zo.default.falseFunc?zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function GG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function PG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var UG=(t,e,r,n,s)=>{let i=s(e,PG(r),n);return i===zo.default.trueFunc?t:i===zo.default.falseFunc?zo.default.falseFunc:o=>i(o)&&t(o)},o2={is:UG,matches:UG,where:UG,not(t,e,r,n,s){let i=s(e,PG(r),n);return i===zo.default.falseFunc?t:i===zo.default.trueFunc?zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=PG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(hb))?[OG]:void 0,c=s(e,o,a);if(c===zo.default.falseFunc)return zo.default.falseFunc;let A=HG(c,i);if(a&&c!==zo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...GG(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function J0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in o2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return o2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:i2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,W0e.parse)(A);return o2.is(t,u,r,n,s)}if(typeof c=="function")return LG(c,o,a,1),u=>c(u,a)&&t(u);if(o in W0)return W0[o](t,a,r,n);if(o in gb){let u=gb[o];return LG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var jo=pe(Y0(),1);function qG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function z0e(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case jo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),G0e[e.action](t,e,r)}case jo.SelectorType.Pseudo:return J0e(t,e,r,n,s);case jo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=qG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=qG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=qG(A,i));return!1};case jo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case jo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case jo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case jo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function j0e(t,e,r){let n=a2(t,e,r);return HG(n,e.adapter)}function a2(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return c2(n,e,r)}function K0e(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(K0e)))}var ght={type:ja.SelectorType.Descendant},pht={type:"_flexibleDescendant"},mht={type:ja.SelectorType.Pseudo,name:"scope",data:null};function Eht(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===OG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(dEe,`\r
`)}}).toArray()}var iq={};Ba(iq,{extract:()=>vft});function kft(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function vft(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=kft(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var wd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};wd.prototype.cheerio="[cheerio object]";wd.prototype.splice=Array.prototype.splice;wd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(wd.prototype,kG,tq,rq,nq,sq,iq);function hEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=k0(s),a=t(n,o,i,null);class c extends wd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&Wo(u))return u;let f=k0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Wo(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&ab(u)?t(u,f,!1,null).children:_ft(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?ab(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Wo(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,QG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function _ft(t){return!!t.name||t.type===qo.Root||t.type===qo.Text||t.type===qo.Comment}var Fft=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Fs={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function f2(t){return t>=55296&&t<=57343}function fEe(t){return t>=56320&&t<=57343}function gEe(t,e){return(t-55296)*1024+9216+e}function g2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function p2(t){return t>=64976&&t<=65007||Fft.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),zTe=new Map([...dz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function jTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of zTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var $o=pe(Qd(),1);var fq={};function gq(t,e){return t===$o.default.falseFunc?$o.default.falseFunc:r=>e.isTag(r)&&t(r)}function pq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function hq(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var dq=(t,e,r,n,s)=>{let i=s(e,hq(r),n);return i===$o.default.trueFunc?t:i===$o.default.falseFunc?$o.default.falseFunc:o=>i(o)&&t(o)},w2={is:dq,matches:dq,where:dq,not(t,e,r,n,s){let i=s(e,hq(r),n);return i===$o.default.falseFunc?t:i===$o.default.trueFunc?$o.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=hq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(xb))?[fq]:void 0,c=s(e,o,a);if(c===$o.default.falseFunc)return $o.default.falseFunc;let A=gq(c,i);if(a&&c!==$o.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...pq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function jEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in w2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return w2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Q2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,zEe.parse)(A);return w2.is(t,u,r,n,s)}if(typeof c=="function")return lq(c,o,a,1),u=>c(u,a)&&t(u);if(o in rE)return rE[o](t,a,r,n);if(o in Db){let u=Db[o];return lq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=pe(eE(),1);function mq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function KEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),YEe[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return jEe(t,e,r,n,s);case Xo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=mq(A,i));return!1};case Xo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Xo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Xo.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Xo.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function $Ee(t,e,r){let n=S2(t,e,r);return gq(n,e.adapter)}function S2(t,e,r){let n=typeof t=="string"?(0,$a.parse)(t):t;return N2(n,e,r)}function XEe(t){return t.type===$a.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(XEe)))}var Uft={type:$a.SelectorType.Descendant},Pft={type:"_flexibleDescendant"},Oft={type:$a.SelectorType.Pseudo,name:"scope",data:null};function Hft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===fq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(fCe,`\r
`)}}).toArray()}var vq={};Qa(vq,{extract:()=>rpt});function tpt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function rpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=tpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Nd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Nd.prototype.cheerio="[cheerio object]";Nd.prototype.splice=Array.prototype.splice;Nd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Nd.prototype,oq,xq,Rq,Dq,kq,vq);function gCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=G0(s),a=t(n,o,i,null);class c extends Nd{_make(l,d){let h=A(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function A(u,l,d=a,h){if(u&&jo(u))return u;let f=G0(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=jo(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&bb(u)?t(u,f,!1,null).children:npt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?bb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):jo(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,XG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function npt(t){return!!t.name||t.type===Wo.Root||t.type===Wo.Text||t.type===Wo.Comment}var spt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",N;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));var Us={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function v2(t){return t>=55296&&t<=57343}function pCe(t){return t>=56320&&t<=57343}function mCe(t,e){return(t-55296)*1024+9216+e}function _2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function F2(t){return t>=64976&&t<=65007||spt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
`," Line feed \\n"]]),fRe=new Map([...tj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function gRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of fRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(zTe.values()).toString()}
Invalid characters include: ${Array.from(fRe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);re("Artifact name is valid!")}function hz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of dz)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);re("Artifact name is valid!")}function rj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of tj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(dz.values()).toString()}
Invalid characters include: ${Array.from(tj.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var ZTe=pe(XTe(),1);function kA(){return`@actions/artifact-${ZTe.version}`}var WE=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},ol=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},al=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},rh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},cl=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};cl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Gg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Gg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var qg=class extends Error{};qg.prototype.name="InvalidTokenError";function g2t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function p2t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return g2t(e)}catch{return atob(e)}}function exe(t,e){if(typeof t!="string")throw new qg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new qg(`Invalid token specified: missing part #${r+1}`);let s;try{s=p2t(n)}catch(i){throw new qg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new qg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Jv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=Vv(),e=exe(t);if(!e.scp)throw Jv;let r=e.scp.split(" ");if(r.length===0)throw Jv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Jv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Jv}function txe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(wc(r),wc(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function rxe(t){if(typeof t!="object"||t===null){V("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&txe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&txe(t.signed_url)}var zv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},fz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Vv();this.baseUrl=LTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new zn(e,[new du(i)])}request(e,r,n,s){return zv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>zv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return zv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(rxe(A),V(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Gg.isUsageErrorMessage(A.msg))throw new Gg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof Gg)throw a;if(cl.isNetworkErrorCode(a?.code))throw new cl(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);re(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return zv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function _A(t){let e=new fz(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Wv(e)}import*as JE from"fs";import{normalize as nxe,resolve as sxe}from"path";function ixe(t){if(!JE.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Xe("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);re(`Redirecting to blob download url: ${pOe(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield mOe(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function IOe(){return HC(this,arguments,void 0,function*(t=UTe()){return(yield Jqt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield lOe.mkdir(t,{recursive:!0})),t})}var jqt=5,Kqt=[400,401,403,404,422];function GC(t,e=jqt,r=Kqt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return V(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var yOe="6.0.0";function Ep(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Ep.VERSION=yOe;var QOe=pe(BOe(),1);var tM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var $qt="0.0.0-development";async function bOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function Xqt(t,e,r,n){let s=new QOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(Zqt.bind(null,t,e,r),n)}async function Zqt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new tM(s.data.errors[0].message,500,{request:n,response:s});return bOe(t,e,i,n)}return s}function Cp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",bOe.bind(null,r,t)),t.hook.wrap("request",Xqt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Cp.VERSION=$qt;var wOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function rM(t,e,r,n,s){return wOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield _i(s,c,Cp,Ep).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new ol(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new al(`Artifact not found for name: ${t}
`)}var CRe=pe(ERe(),1);function kA(){return`@actions/artifact-${CRe.version}`}var sC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},cl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Al=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},nh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ul=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ul.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ep=class extends Error{};ep.prototype.name="InvalidTokenError";function Zkt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function evt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Zkt(e)}catch{return atob(e)}}function IRe(t,e){if(typeof t!="string")throw new ep("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new ep(`Invalid token specified: missing part #${r+1}`);let s;try{s=evt(n)}catch(i){throw new ep(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ep(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var h_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=l_(),e=IRe(t);if(!e.scp)throw h_;let r=e.scp.split(" ");if(r.length===0)throw h_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw h_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw h_}function yRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Sc(r),Sc(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function BRe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&yRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&yRe(t.signed_url)}var f_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=l_();this.baseUrl=nRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new $n(e,[new hu(i)])}request(e,r,n,s){return f_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>f_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return f_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(BRe(A),q(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(Zg.isUsageErrorMessage(A.msg))throw new Zg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof Zg)throw a;if(ul.isNetworkErrorCode(a?.code))throw new ul(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);re(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return f_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function _A(t){let e=new nj(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new d_(e)}import*as iC from"fs";import{normalize as bRe,resolve as QRe}from"path";function wRe(t){if(!iC.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Xe("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);re(`Redirecting to blob download url: ${M3e(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield L3e(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function O3e(){return ZC(this,arguments,void 0,function*(t=sRe()){return(yield LVt(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield D3e.mkdir(t,{recursive:!0})),t})}var PVt=5,OVt=[400,401,403,404,422];function eI(t,e=PVt,r=OVt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return q(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var H3e="6.0.0";function xp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}xp.VERSION=H3e;var Y3e=pe(G3e(),1);var yM=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var HVt="0.0.0-development";async function q3e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function GVt(t,e,r,n){let s=new Y3e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(qVt.bind(null,t,e,r),n)}async function qVt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new yM(s.data.errors[0].message,500,{request:n,response:s});return q3e(t,e,i,n)}return s}function Rp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",q3e.bind(null,r,t)),t.hook.wrap("request",GVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=HVt;var V3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function BM(t,e,r,n,s){return V3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Oi(s,c,Rp,xp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new cl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Al(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],V(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function SOe(t){return wOe(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ln.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new al(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],q(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function W3e(t){return V3e(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:gn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Al(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ao.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var NOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function TOe(t,e,r,n,s){return NOe(this,void 0,void 0,function*(){var i;let[o,a]=GC(sf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=_i(s,c,Cp,Ep),u=yield rM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new ol(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function xOe(t){return NOe(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ln.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new al(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var ROe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nM=HTe(),sM=100,eYt=Math.ceil(nM/sM);function DOe(t,e,r,n){return ROe(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=GC(sf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=_i(a,d,Cp,Ep),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:sM,page:f}),I=Math.ceil(p.total_count/sM),m=p.total_count;m>nM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${nM}. Results will be incomplete as only the first ${nM} artifacts will be returned`),I=eYt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:sM,page:f});for(let y of C.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=vOe(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function kOe(){return ROe(this,arguments,void 0,function*(t=!1){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ao.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=vOe(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function vOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var i1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},tYt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},qC=class{uploadArtifact(e,r,n,s){return i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;return RPe(e,r,n,s)}catch(i){throw Xe(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?lo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var J3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function z3e(t,e,r,n,s){return J3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Oi(s,c,Rp,xp),u=yield BM(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new cl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function j3e(t){return J3e(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:gn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Al(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var K3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},bM=aRe(),QM=100,YVt=Math.ceil(bM/QM);function $3e(t,e,r,n){return K3e(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(cf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Oi(a,d,Rp,xp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:QM,page:f}),E=Math.ceil(g.total_count/QM),m=g.total_count;m>bM&&(Xe(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${bM}. Results will be incomplete as only the first ${bM} artifacts will be returned`),E=YVt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){q(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:QM,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=Z3e(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function X3e(){return K3e(this,arguments,void 0,function*(t=!1){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?lo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=Z3e(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function Z3e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var B1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},VVt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},tI=class{uploadArtifact(e,r,n,s){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;return KOe(e,r,n,s)}catch(i){throw Xe(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=tYt(r,["findBy"]);return EOe(e,n,s,i,o)}return COe(e,r)}catch(n){throw Xe(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=VVt(r,["findBy"]);return U3e(e,n,s,i,o)}return P3e(e,r)}catch(n){throw Xe(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return DOe(r,n,s,i,e?.latest)}return kOe(e?.latest)}catch(r){throw Xe(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return $3e(r,n,s,i,e?.latest)}return X3e(e?.latest)}catch(r){throw Xe(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return rM(e,n,s,i,o)}return SOe(e)}catch(n){throw Xe(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return BM(e,n,s,i,o)}return W3e(e)}catch(n){throw Xe(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return i1(this,void 0,void 0,function*(){try{if(qE())throw new rh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return TOe(e,i,n,s,o)}return xOe(e)}catch(n){throw Xe(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return B1(this,void 0,void 0,function*(){try{if(tC())throw new nh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return z3e(e,i,n,s,o)}return j3e(e)}catch(n){throw Xe(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var yTr=new qC;import*as iM from"path";import uX from"fs";var rYt="dependency-graph_";async function FOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await _Oe(t,!1);return;case"generate-submit-and-upload":await _Oe(t,!0);return;case"generate-and-upload":await nYt(t)}}catch(r){uYt(t,e,r)}}async function _Oe(t,e){if(LOe()){re("Dependency graph not supported in the ACT environment.");return}let r=await MOe();try{await sYt(r)}catch(n){try{await AX(r,t)}catch(s){re(String(s))}throw n}e&&await AX(r,t)}async function nYt(t){if(LOe()){re("Dependency graph not supported in the ACT environment.");return}await AX(await MOe(),t)}async function MOe(){let r=(await(await K9(`${aYt()}/**/*.json`)).glob()).filter(n=>!cYt(n));return r.forEach(AYt),re(`Found dependency graph files: ${r.join(", ")}`),r}async function AX(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=JB(),n=new qC;for(let s of t){let i=lX(s);re(`Uploading dependency graph file: ${i}`);let o=`${rYt}${iM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function sYt(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await oYt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=iYt(e,r)),r}}function iYt(t,e){let n=`Dependency submission failed for ${lX(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var hRr=new tI;import*as wM from"path";import tZ from"fs";var WVt="dependency-graph_";async function t8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await e8e(t,!1);return;case"generate-submit-and-upload":await e8e(t,!0);return;case"generate-and-upload":await JVt(t)}}catch(r){e7t(t,e,r)}}async function e8e(t,e){if(n8e()){re("Dependency graph not supported in the ACT environment.");return}let r=await r8e();try{await zVt(r)}catch(n){try{await eZ(r,t)}catch(s){re(String(s))}throw n}e&&await eZ(r,t)}async function JVt(t){if(n8e()){re("Dependency graph not supported in the ACT environment.");return}await eZ(await r8e(),t)}async function r8e(){let r=(await(await QG(`${$Vt()}/**/*.json`)).glob()).filter(n=>!XVt(n));return r.forEach(ZVt),re(`Found dependency graph files: ${r.join(", ")}`),r}async function eZ(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=cb(),n=new tI;for(let s of t){let i=rZ(s);re(`Uploading dependency graph file: ${i}`);let o=`${WVt}${wM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function zVt(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await KVt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=jVt(e,r)),r}}function jVt(t,e){let n=`Dependency submission failed for ${rZ(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function oYt(t){let e=lYt(),r=uX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=pu.repo.owner,n.repo=pu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=lX(t);Lae(`Submitted ${i}: ${s.data.message}`)}function aYt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function cYt(t){let e=`${t}.processed`;return uX.existsSync(e)}function AYt(t){let e=`${t}.processed`;uX.writeFileSync(e,"")}function uYt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new GE(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function lYt(){return _i(WB())}function lX(t){let e=JB();return iM.relative(e,t)}function LOe(){return process.env.ACT!==void 0}function hYt(t=process.platform){return t==="win32"?50:0}async function UOe(t=process.platform){let e=hYt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>RJ(t));async function fYt(){try{Gpe(),Hpe(),await MTe(new QD,new wD)&&await FOe(new T0)}catch(t){RJ(t)}await UOe()}fYt();export{fYt as run};
`:n}async function KVt(t){let e=t7t(),r=tZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=pu.repo.owner,n.repo=pu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=rZ(t);vce(`Submitted ${i}: ${s.data.message}`)}function $Vt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function XVt(t){let e=`${t}.processed`;return tZ.existsSync(e)}function ZVt(t){let e=`${t}.processed`;tZ.writeFileSync(e,"")}function e7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new eC(r);Xe(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function t7t(){return Oi(ab())}function rZ(t){let e=cb();return wM.relative(e,t)}function n8e(){return process.env.ACT!==void 0}function n7t(t=process.platform){return t==="win32"?50:0}async function s8e(t=process.platform){let e=n7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>Cz(t));async function s7t(){try{Yme(),qme(),await rRe(new YD,new ib,new VD)&&await t8e(new U0)}catch(t){Cz(t)}await s8e()}s7t();export{s7t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+92 -92
View File
@@ -1,104 +1,104 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var lse=Object.create;var CB=Object.defineProperty;var dse=Object.getOwnPropertyDescriptor;var gse=Object.getOwnPropertyNames;var hse=Object.getPrototypeOf,fse=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nn=(t,e)=>{for(var r in e)CB(t,r,{get:e[r],enumerable:!0})},mse=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of gse(e))!fse.call(t,n)&&n!==r&&CB(t,n,{get:()=>e[n],enumerable:!(s=dse(e,n))||s.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?lse(hse(t)):{},mse(e||!t||!t.__esModule?CB(r,"default",{value:t,enumerable:!0}):r,t));var nF=m(ZA=>{"use strict";var dYe=Q("net"),Qse=Q("tls"),wB=Q("http"),tF=Q("https"),yse=Q("events"),gYe=Q("assert"),bse=Q("util");ZA.httpOverHttp=wse;ZA.httpsOverHttp=Nse;ZA.httpOverHttps=Sse;ZA.httpsOverHttps=Tse;function wse(t){var e=new Ei(t);return e.request=wB.request,e}function Nse(t){var e=new Ei(t);return e.request=wB.request,e.createSocket=rF,e.defaultPort=443,e}function Sse(t){var e=new Ei(t);return e.request=tF.request,e}function Tse(t){var e=new Ei(t);return e.request=tF.request,e.createSocket=rF,e.defaultPort=443,e}function Ei(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||wB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=sF(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}bse.inherits(Ei,yse.EventEmitter);Ei.prototype.addRequest=function(e,r,s,n){var i=this,o=NB({request:e},i.options,sF(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ei.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=NB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),no("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(d){d.upgrade=!0}function A(d,g,h){process.nextTick(function(){c(d,g,h)})}function c(d,g,h){if(o.removeAllListeners(),g.removeAllListeners(),d.statusCode!==200){no("tunneling socket could not be established, statusCode=%d",d.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){no("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return no("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(d){o.removeAllListeners(),no(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var g=new Error("tunneling socket could not be established, cause="+d.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ei.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function rF(t,e){var r=this;Ei.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=NB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Qse.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function sF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function NB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var no;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?no=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:no=function(){};ZA.debug=no});var SB=m((fYe,iF)=>{iF.exports=nF()});var je=m((mYe,oF)=>{oF.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Se=m((pYe,RF)=>{"use strict";var aF=Symbol.for("undici.error.UND_ERR"),Ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[aF]===!0}[aF]=!0},AF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),TB=class extends Ze{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[AF]===!0}[AF]=!0},cF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),DB=class extends Ze{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[cF]===!0}[cF]=!0},uF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xB=class extends Ze{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[uF]===!0}[uF]=!0},lF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),RB=class extends Ze{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[lF]===!0}[lF]=!0},dF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),kB=class extends Ze{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function qie(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(Tie.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Vie(){return"allowed"}function Jie(){return"success"}function Wie(){return"success"}function zie(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Kie(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&yQ(t.origin)&&!yQ(Xl(t))&&(e=null);break;case"same-origin":Mf(t,Xl(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ac(t,e){return t}function Xie(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ac(t.domainLookupStartTime,r),domainLookupEndTime:Ac(t.domainLookupEndTime,r),connectionStartTime:Ac(t.connectionStartTime,r),connectionEndTime:Ac(t.connectionEndTime,r),secureConnectionStartTime:Ac(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function jie(t){return Ac(Fie.now(),t)}function Zie(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function VM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function $ie(t){return{referrerPolicy:t.referrerPolicy}}function eoe(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=OM();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=QQ(r),n=QQ(r,!0);s.toString().length>4096&&(s=n);let i=Mf(t,s),o=Kl(s)&&!Kl(t.url);switch(e){case"origin":return n??QQ(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Xl(t);return Mf(s,a)?s:Kl(s)&&!Kl(a)?"no-referrer":n}default:return o?"no-referrer":n}}function QQ(t,e){return wa(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Kl(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function toe(t,e){if(Ff===void 0)return!0;let r=JM(e);if(r==="no metadata"||r.length===0)return!0;let s=soe(r),n=noe(r,s);for(let i of n){let o=i.algo,a=i.hash,A=Ff.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),ioe(A,a))return!0}return!1}var roe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function JM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=roe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();HM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function soe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function noe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function ioe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function ooe(t){}function Mf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function aoe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function Aoe(t){return t.controller.state==="aborted"}function coe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function uoe(t){return Lie[t.toLowerCase()]??t}function loe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wa(typeof e=="string"),e}var doe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function WM(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Goe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Yoe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function qoe(t,e){Lf(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Pf(t,_oe,i)||i.position===t.length-4&&Pf(t,Hoe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Voe(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:d}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,d==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Goe(u)||(u=""),h=new voe([g],c,{type:u})):h=Foe(Buffer.from(g)),Lf(iU(A)),Lf(typeof h=="string"&&iU(h)||Uoe(h)),n.push(Loe(A,h,c))}}function Voe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=uc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xQ(o,!0,!0,a=>a===9||a===32),!Moe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,uc(a=>a===32||a===9,t,e),koe(o)){case"content-disposition":{if(r=s=null,!Pf(t,Ooe,e)||(e.position+=17,r=AU(t,e),r===null))return"failure";if(Pf(t,aU,e)){let a=e.position+aU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=AU(t,e),s===null))return"failure"}break}case"content-type":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),n=oU(a);break}case"content-transfer-encoding":{let a=uc(A=>A!==10&&A!==13,t,e);a=xQ(a,!1,!0,A=>A===9||A===32),i=oU(a);break}default:uc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function AU(t,e){Lf(t[e.position-1]===34);let r=uc(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function uc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xQ(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Pf(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}cU.exports={multipartFormDataParser:qoe,validateBoundary:Yoe}});var gc=m((GYe,IU)=>{"use strict";var $l=me(),{ReadableStreamFrom:Joe,isBlobLike:lU,isReadableStreamLike:Woe,readableStreamClose:zoe,createDeferredPromise:Koe,fullyReadBody:Xoe,extractMimeType:joe,utf8DecodeBytes:hU}=Gr(),{FormData:dU}=Zl(),{kState:dc}=io(),{webidl:Zoe}=Ht(),{Blob:$oe}=Q("node:buffer"),RQ=Q("node:assert"),{isErrored:fU,isDisturbed:eae}=Q("node:stream"),{isArrayBuffer:tae}=Q("node:util/types"),{serializeAMimeType:rae}=Cr(),{multipartFormDataParser:sae}=uU(),kQ;try{let t=Q("node:crypto");kQ=e=>t.randomInt(0,e)}catch{kQ=t=>Math.floor(Math.random(t))}var vf=new TextEncoder;function nae(){}var mU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,pU;mU&&(pU=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eae(e)&&!fU(e)&&e.cancel("Response object has been garbage collected").catch(nae)}));function EU(t,e=!1){let r=null;t instanceof ReadableStream?r=t:lU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?vf.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>zoe(A))},start(){},type:"bytes"}),RQ(Woe(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(tae(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if($l.isFormDataLike(t)){let A=`----formdata-undici-0${`${kQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=w=>w.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[w,p]of t)if(typeof p=="string"){let y=vf.encode(c+`; name="${u(d(w))}"\r
var mne=Object.create;var UB=Object.defineProperty;var pne=Object.getOwnPropertyDescriptor;var Ene=Object.getOwnPropertyNames;var Cne=Object.getPrototypeOf,Ine=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},an=(t,e)=>{for(var r in e)UB(t,r,{get:e[r],enumerable:!0})},Bne=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ene(e))!Ine.call(t,n)&&n!==r&&UB(t,n,{get:()=>e[n],enumerable:!(s=pne(e,n))||s.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?mne(Cne(t)):{},Bne(e||!t||!t.__esModule?UB(r,"default",{value:t,enumerable:!0}):r,t));var _F=m(Ac=>{"use strict";var Rqe=Q("net"),Sne=Q("tls"),HB=Q("http"),PF=Q("https"),Tne=Q("events"),kqe=Q("assert"),Dne=Q("util");Ac.httpOverHttp=xne;Ac.httpsOverHttp=Rne;Ac.httpOverHttps=kne;Ac.httpsOverHttps=Fne;function xne(t){var e=new Ci(t);return e.request=HB.request,e}function Rne(t){var e=new Ci(t);return e.request=HB.request,e.createSocket=vF,e.defaultPort=443,e}function kne(t){var e=new Ci(t);return e.request=PF.request,e}function Fne(t){var e=new Ci(t);return e.request=PF.request,e.createSocket=vF,e.defaultPort=443,e}function Ci(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=OF(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}Dne.inherits(Ci,Tne.EventEmitter);Ci.prototype.addRequest=function(e,r,s,n){var i=this,o=GB({request:e},i.options,OF(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Ci.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=GB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Ao("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,g,h){process.nextTick(function(){c(l,g,h)})}function c(l,g,h){if(o.removeAllListeners(),g.removeAllListeners(),l.statusCode!==200){Ao("tunneling socket could not be established, statusCode=%d",l.statusCode),g.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){Ao("got illegal response body from proxy"),g.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return Ao("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=g,r(g)}function u(l){o.removeAllListeners(),Ao(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var g=new Error("tunneling socket could not be established, cause="+l.message);g.code="ECONNRESET",e.request.emit("error",g),s.removeSocket(n)}};Ci.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function vF(t,e){var r=this;Ci.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=GB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=Sne.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function OF(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function GB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var Ao;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ao=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Ao=function(){};Ac.debug=Ao});var YB=m((Mqe,HF)=>{HF.exports=_F()});var $e=m((Uqe,GF)=>{GF.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Se=m((Lqe,gM)=>{"use strict";var YF=Symbol.for("undici.error.UND_ERR"),et=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[YF]===!0}[YF]=!0},qF=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qB=class extends et{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[qF]===!0}[qF]=!0},VF=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),VB=class extends et{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[VF]===!0}[VF]=!0},JF=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),JB=class extends et{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[JF]===!0}[JF]=!0},WF=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),WB=class extends et{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[WF]===!0}[WF]=!0},zF=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),zB=class extends et{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Koe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(Foe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Xoe(){return"allowed"}function joe(){return"success"}function Zoe(){return"success"}function $oe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function eae(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&OQ(t.origin)&&!OQ(cd(t))&&(e=null);break;case"same-origin":Kf(t,cd(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ec(t,e){return t}function tae(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ec(t.domainLookupStartTime,r),domainLookupEndTime:Ec(t.domainLookupEndTime,r),connectionStartTime:Ec(t.connectionStartTime,r),connectionEndTime:Ec(t.connectionEndTime,r),secureConnectionStartTime:Ec(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function rae(t){return Ec(voe.now(),t)}function sae(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function SU(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function nae(t){return{referrerPolicy:t.referrerPolicy}}function iae(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let a=BU();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=vQ(r),n=vQ(r,!0);s.toString().length>4096&&(s=n);let i=Kf(t,s),o=Ad(s)&&!Ad(t.url);switch(e){case"origin":return n??vQ(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=cd(t);return Kf(s,a)?s:Ad(s)&&!Ad(a)?"no-referrer":n}default:return o?"no-referrer":n}}function vQ(t,e){return wa(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Ad(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function oae(t,e){if(zf===void 0)return!0;let r=TU(e);if(r==="no metadata"||r.length===0)return!0;let s=Aae(r),n=cae(r,s);for(let i of n){let o=i.algo,a=i.hash,A=zf.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),uae(A,a))return!0}return!1}var aae=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function TU(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=aae.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();yU.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function Aae(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function cae(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function uae(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function lae(t){}function Kf(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function dae(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function gae(t){return t.controller.state==="aborted"}function hae(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function fae(t){return Hoe[t.toLowerCase()]??t}function mae(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wa(typeof e=="string"),e}var pae=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function DU(t,e,r=0,s=1){class n{#e;#t; Line truncated
`);function Wae(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function zae(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Kae(t,e){jf(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Zf(t,Vae,i)||i.position===t.length-4&&Zf(t,Jae,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Xae(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let g;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";g=t.subarray(i.position,f-4),i.position+=g.length,l==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",Wae(u)||(u=""),h=new Yae([g],c,{type:u})):h=vae(Buffer.from(g)),jf(HU(A)),jf(typeof h=="string"&&HU(h)||_ae(h)),n.push(Hae(A,h,c))}}function Xae(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Ic(a=>a!==10&&a!==13&&a!==58,t,e);if(o=JQ(o,!0,!0,a=>a===9||a===32),!Oae.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ic(a=>a===32||a===9,t,e),Pae(o)){case"content-disposition":{if(r=s=null,!Zf(t,qae,e)||(e.position+=17,r=qU(t,e),r===null))return"failure";if(Zf(t,YU,e)){let a=e.position+YU.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=qU(t,e),s===null))return"failure"}break}case"content-type":{let a=Ic(A=>A!==10&&A!==13,t,e);a=JQ(a,!1,!0,A=>A===9||A===32),n=GU(a);break}case"content-transfer-encoding":{let a=Ic(A=>A!==10&&A!==13,t,e);a=JQ(a,!1,!0,A=>A===9||A===32),i=GU(a);break}default:Ic(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function qU(t,e){jf(t[e.position-1]===34);let r=Ic(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Ic(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function JQ(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Zf(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}VU.exports={multipartFormDataParser:Kae,validateBoundary:zae}});var yc=m((aVe,rL)=>{"use strict";var dd=Ee(),{ReadableStreamFrom:jae,isBlobLike:WU,isReadableStreamLike:Zae,readableStreamClose:$ae,createDeferredPromise:eAe,fullyReadBody:tAe,extractMimeType:rAe,utf8DecodeBytes:XU}=Wr(),{FormData:zU}=ld(),{kState:Qc}=co(),{webidl:sAe}=Vt(),{Blob:nAe}=Q("node:buffer"),WQ=Q("node:assert"),{isErrored:jU,isDisturbed:iAe}=Q("node:stream"),{isArrayBuffer:oAe}=Q("node:util/types"),{serializeAMimeType:aAe}=br(),{multipartFormDataParser:AAe}=JU(),zQ;try{let t=Q("node:crypto");zQ=e=>t.randomInt(0,e)}catch{zQ=t=>Math.floor(Math.random(t))}var $f=new TextEncoder;function cAe(){}var ZU=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,$U;ZU&&($U=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!iAe(e)&&!jU(e)&&e.cancel("Response object has been garbage collected").catch(cAe)}));function eL(t,e=!1){let r=null;t instanceof ReadableStream?r=t:WU(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?$f.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>$ae(A))},start(){},type:"bytes"}),WQ(Zae(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(oAe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(dd.isFormDataLike(t)){let A=`----formdata-undici-0${`${zQ(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=y=>y.replace(/\r?\n|\r/g,`\r
`),g=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[y,E]of t)if(typeof E=="string"){let b=$f.encode(c+`; name="${u(l(y))}"\r
\r
${d(p)}\r
`);g.push(y),i+=y.byteLength}else{let y=vf.encode(`${c}; name="${u(d(w))}"`+(p.name?`; filename="${u(p.name)}"`:"")+`\r
Content-Type: ${p.type||"application/octet-stream"}\r
${l(E)}\r
`);g.push(b),i+=b.byteLength}else{let b=$f.encode(`${c}; name="${u(l(y))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);g.push(y,p,h),typeof p.size=="number"?i+=y.byteLength+p.size+h.byteLength:f=!0}let E=vf.encode(`--${A}--\r
`);g.push(E),i+=E.byteLength,f&&(i=null),n=t,s=async function*(){for(let w of g)w.stream?yield*w.stream():yield w},o=`multipart/form-data; boundary=${A}`}else if(lU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($l.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Joe(t)}if((typeof n=="string"||$l.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:d}=await A.next();if(d)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!fU(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function iae(t,e=!1){return t instanceof ReadableStream&&(RQ(!$l.isDisturbed(t),"The body has already been consumed."),RQ(!t.locked,"The stream is locked.")),EU(t,e)}function oae(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function aae(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aae(t){return{blob(){return lc(this,r=>{let s=gU(this);return s===null?s="":s&&(s=rae(s)),new $oe([r],{type:s})},t)},arrayBuffer(){return lc(this,r=>new Uint8Array(r).buffer,t)},text(){return lc(this,hU,t)},json(){return lc(this,uae,t)},formData(){return lc(this,r=>{let s=gU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=sae(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new dU;return i[dc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new dU;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return lc(this,r=>new Uint8Array(r),t)}}}function cae(t){Object.assign(t.prototype,Aae(t))}async function lc(t,e,r){if(Zoe.brandCheck(t,r),CU(t))throw new TypeError("Body is unusable: Body has already been read");aae(t[dc]);let s=Koe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[dc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Xoe(t[dc].body,i,n),s.promise)}function CU(t){let e=t[dc].body;return e!=null&&(e.stream.locked||$l.isDisturbed(e.stream))}function uae(t){return JSON.parse(hU(t))}function gU(t){let e=t[dc].headersList,r=joe(e);return r==="failure"?null:r}IU.exports={extractBody:EU,safelyExtractBody:iae,cloneBody:oae,mixinBody:cae,streamRegistry:pU,hasFinalizationRegistry:mU,bodyUnusable:CU}});var RU=m((YYe,xU)=>{"use strict";var ee=Q("node:assert"),Ae=me(),{channels:BU}=ec(),FQ=hQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:lae,RequestAbortedError:SU,HeadersTimeoutError:dae,HeadersOverflowError:gae,SocketError:qf,InformationalError:hc,BodyTimeoutError:hae,HTTPParserError:fae,ResponseExceededMaxSizeError:mae}=Se(),{kUrl:TU,kReset:Ir,kClient:PQ,kParser:nt,kBlocking:rd,kRunning:zt,kPending:pae,kSize:QU,kWriting:ao,kQueue:on,kNoRef:ed,kKeepAliveDefaultTimeout:Eae,kHostHeader:Cae,kPendingIdx:Iae,kRunningIdx:Is,kError:Bs,kPipelining:Gf,kSocket:fc,kKeepAliveTimeoutValue:Vf,kMaxHeadersSize:MQ,kKeepAliveMaxTimeout:Bae,kKeepAliveTimeoutThreshold:Qae,kHeadersTimeout:yae,kBodyTimeout:bae,kStrictContentLength:vQ,kMaxRequests:yU,kCounter:wae,kMaxResponseSize:Nae,kOnError:Sae,kResume:oo,kHTTPContext:DU}=je(),Fn=pM(),Tae=Buffer.alloc(0),Of=Buffer[Symbol.species],_f=Ae.addListener,Dae=Ae.removeAllListeners,UQ;async function xae(){let t=process.env.JEST_WORKER_ID?pQ():void 0,e;try{e=await WebAssembly.compile(IM())}catch{e=await WebAssembly.compile(t||pQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onStatus(new Of(Mn.buffer,i,n))||0},wasm_on_message_begin:r=>(ee(wt.ptr===r),wt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderField(new Of(Mn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onHeaderValue(new Of(Mn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(ee(wt.ptr===r),wt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{ee(wt.ptr===r);let i=s-Un+Mn.byteOffset;return wt.onBody(new Of(Mn.buffer,i,n))||0},wasm_on_message_complete:r=>(ee(wt.ptr===r),wt.onMessageComplete()||0)}})}var LQ=null,OQ=xae();OQ.catch();var wt=null,Mn=null,Hf=0,Un=null,Rae=0,td=1,mc=2|td,Yf=4|td,_Q=8|Rae,HQ=class{constructor(e,r,{exports:s}){ee(Number.isFinite(e[MQ])&&e[MQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Fn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.header Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Cae],i?E+=`connection: upgrade\r
`);g.push(b,E,h),typeof E.size=="number"?i+=b.byteLength+E.size+h.byteLength:f=!0}let p=$f.encode(`--${A}--\r
`);g.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let y of g)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${A}`}else if(WU(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(dd.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:jae(t)}if((typeof n=="string"||dd.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!jU(r)){let g=new Uint8Array(u);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function uAe(t,e=!1){return t instanceof ReadableStream&&(WQ(!dd.isDisturbed(t),"The body has already been consumed."),WQ(!t.locked,"The stream is locked.")),eL(t,e)}function lAe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function dAe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function gAe(t){return{blob(){return Bc(this,r=>{let s=KU(this);return s===null?s="":s&&(s=aAe(s)),new nAe([r],{type:s})},t)},arrayBuffer(){return Bc(this,r=>new Uint8Array(r).buffer,t)},text(){return Bc(this,XU,t)},json(){return Bc(this,fAe,t)},formData(){return Bc(this,r=>{let s=KU(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=AAe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new zU;return i[Qc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new zU;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Bc(this,r=>new Uint8Array(r),t)}}}function hAe(t){Object.assign(t.prototype,gAe(t))}async function Bc(t,e,r){if(sAe.brandCheck(t,r),tL(t))throw new TypeError("Body is unusable: Body has already been read");dAe(t[Qc]);let s=eAe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Qc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await tAe(t[Qc].body,i,n),s.promise)}function tL(t){let e=t[Qc].body;return e!=null&&(e.stream.locked||dd.isDisturbed(e.stream))}function fAe(t){return JSON.parse(XU(t))}function KU(t){let e=t[Qc].headersList,r=rAe(e);return r==="failure"?null:r}rL.exports={extractBody:eL,safelyExtractBody:uAe,cloneBody:lAe,mixinBody:hAe,streamRegistry:$U,hasFinalizationRegistry:ZU,bodyUnusable:tL}});var EL=m((AVe,pL)=>{"use strict";var j=Q("node:assert"),ee=Ee(),{channels:sL}=uc(),KQ=xQ(),{RequestContentLengthMismatchError:Na,ResponseContentLengthMismatchError:nL,RequestAbortedError:dL,InvalidArgumentError:mAe,HeadersTimeoutError:pAe,HeadersOverflowError:EAe,SocketError:bc,InformationalError:wc,BodyTimeoutError:CAe,HTTPParserError:IAe,ResponseExceededMaxSizeError:BAe}=Se(),{kUrl:gL,kReset:wr,kClient:sm,kParser:We,kBlocking:fd,kRunning:yt,kPending:hL,kSize:iL,kWriting:uo,kQueue:An,kNoRef:gd,kKeepAliveDefaultTimeout:QAe,kHostHeader:yAe,kPendingIdx:bAe,kRunningIdx:bs,kError:cr,kPipelining:nm,kSocket:Ta,kKeepAliveTimeoutValue:om,kMaxHeadersSize:XQ,kKeepAliveMaxTimeout:wAe,kKeepAliveTimeoutThreshold:NAe,kHeadersTimeout:SAe,kBodyTimeout:TAe,kStrictContentLength:$Q,kMaxRequests:oL,kCounter:DAe,kMaxResponseSize:xAe,kOnError:aL,kResume:wi,kHTTPContext:fL}=$e(),zr=$M(),AL=Buffer.alloc(0),em=Buffer[Symbol.species],tm=ee.addListener,RAe=ee.removeAllListeners,Da=Symbol("kIdleSocketValidation"),Sa=Symbol("kIdleSocketValidationTimeout"),sy=Symbol("kSocketUsed"),jQ;async function kAe(){let t=process.env.JEST_WORKER_ID?FQ():void 0,e;try{e=await WebAssembly.compile(rU())}catch{e=await WebAssembly.compile(t||FQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onStatus(new em(Un.buffer,i,n))||0},wasm_on_message_begin:r=>(j(ot.ptr===r),ot.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onHeaderField(new em(Un.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onHeaderValue(new em(Un.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(j(ot.ptr===r),ot.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{j(ot.ptr===r);let i=s-Ln+Un.byteOffset;return ot.onBody(new em(Un.buffer,i,n))||0},wasm_on_message_complete:r=>(j(ot.ptr===r),ot.onMessageComplete()||0)}})}var ZQ=null,ey=kAe();ey.catch();var ot=null,Un=null,rm=0,Ln=null,FAe=0,hd=1,Nc=2|hd,im=4|hd,ty=8|FAe,ry=class{constructor(e,r,{exports:s}){j(Number.isFinite(e[XQ])&&e[XQ]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zr.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeo Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[yAe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Gf]&&!h[Ir]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return BU.sendHeaders.hasSubscribers&&BU.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?wU(f,null,t,e,h,u,E,d):Ae.isBuffer(A)?wU(f,A,t,e,h,u,E,d):Ae.isBlobLike(A)?typeof A.stream=="function"?NU(f,A.stream(),t,e,h,u,E,d):Pae(f,A,t,e,h,u,E,d):Ae.isStream(A)?Lae(f,A,t,e,h,u,E,d):Ae.isIterable(A)?NU(f,A,t,e,h,u,E,d):ee(!1),!0}function Lae(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"stream body cannot be pipelined");let A=!1,c=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){Ae.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SU;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,ee(n.destroyed||n[ao]&&r[zt]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ae.destroy(e,f):Ae.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function wU(t,e,r,s,n,i,o,a){try{e?Ae.isBuffer(e)&&(ee(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[nm]&&!h[wr]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let y=0;y<c.length;y+=2){let E=c[y+0],b=c[y+1];if(Array.isArray(b))for(let N=0;N<b.length;N++)p+=`${E}: ${b[N]}\r
`;else p+=`${E}: ${b}\r
`}return sL.sendHeaders.hasSubscribers&&sL.sendHeaders.publish({request:e,headers:p,socket:h}),!A||g===0?uL(f,null,t,e,h,u,p,l):ee.isBuffer(A)?uL(f,A,t,e,h,u,p,l):ee.isBlobLike(A)?typeof A.stream=="function"?lL(f,A.stream(),t,e,h,u,p,l):_Ae(f,A,t,e,h,u,p,l):ee.isStream(A)?OAe(f,A,t,e,h,u,p,l):ee.isIterable(A)?lL(f,A,t,e,h,u,p,l):j(!1),!0}function OAe(t,e,r,s,n,i,o,a){j(i!==0||r[yt]===0,"stream body cannot be pipelined");let A=!1,c=new am({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){ee.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new dL;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,j(n.destroyed||n[uo]&&r[yt]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ee.destroy(e,f):ee.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function uL(t,e,r,s,n,i,o,a){try{e?ee.isBuffer(e)&&(j(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Ir]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[wr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(ee(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[oo]()}catch(A){t(A)}}async function Pae(t,e,r,s,n,i,o,a){ee(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Na;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(j(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wi]()}catch(A){t(A)}}async function _Ae(t,e,r,s,n,i,o,a){j(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Na;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ir]=!0),r[oo]()}catch(A){t(A)}}async function NU(t,e,r,s,n,i,o,a){ee(i!==0||r[zt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{ee(A===null),n[Bs]?h(n[Bs]):A=g});n.on("close",c).on("drain",c);let d=new Jf({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Bs])throw n[Bs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Jf=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[ao]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bs])throw r[Bs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[vQ])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ir]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[wr]=!0),r[wi]()}catch(A){t(A)}}async function lL(t,e,r,s,n,i,o,a){j(i!==0||r[yt]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{j(A===null),n[cr]?h(n[cr]):A=g});n.on("close",c).on("drain",c);let l=new am({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[cr])throw n[cr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var am=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[uo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[cr])throw r[cr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[$Q])throw new Na;process.emitWarning(new Na)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[wr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[nt].timeout&&r[nt].timeoutType===mc&&r[nt].timeout.refresh&&r[nt].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[ao]=!1,e[Bs])throw e[Bs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[We].timeout&&r[We].timeoutType===Nc&&r[We].timeout.refresh&&r[We].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[uo]=!1,e[cr])throw e[cr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[vQ])throw new Na;process.emitWarning(new Na)}e[nt].timeout&&e[nt].timeoutType===mc&&e[nt].timeout.refresh&&e[nt].timeout.refresh(),s[oo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ao]=!1,e&&(ee(s[zt]<=1,"pipeline should only contain this request"),n(e))}};xU.exports=kae});var OU=m((qYe,vU)=>{"use strict";var Qs=Q("node:assert"),{pipeline:vae}=Q("node:stream"),Ee=me(),{RequestContentLengthMismatchError:GQ,RequestAbortedError:kU,SocketError:sd,InformationalError:YQ}=Se(),{kUrl:Wf,kReset:Kf,kClient:pc,kRunning:Xf,kPending:Oae,kQueue:Ao,kPendingIdx:qQ,kRunningIdx:an,kError:cn,kSocket:xt,kStrictContentLength:_ae,kOnError:VQ,kMaxConcurrentStreams:PU,kHTTP2Session:An,kResume:co,kSize:Hae,kHTTPContext:Gae}=je(),bi=Symbol("open streams"),FU,MU=!1,zf;try{zf=Q("node:http2")}catch{zf={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Yae,HTTP2_HEADER_METHOD:qae,HTTP2_HEADER_PATH:Vae,HTTP2_HEADER_SCHEME:Jae,HTTP2_HEADER_CONTENT_LENGTH:Wae,HTTP2_HEADER_EXPECT:zae,HTTP2_HEADER_STATUS:Kae}}=zf;function Xae(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function jae(t,e){t[xt]=e,MU||(MU=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zf.connect(t[Wf],{createConnection:()=>e,peerMaxConcurrentStreams:t[PU]});r[bi]=0,r[pc]=t,r[xt]=e,Ee.addListener(r,"error",$ae),Ee.addListener(r,"frameError",eAe),Ee.addListener(r,"end",tAe),Ee.addListener(r,"goaway",rAe),Ee.addListener(r,"close",function(){let{[pc]:n}=this,{[xt]:i}=n,o=this[xt][cn]||this[cn]||new sd("closed",Ee.getSocketInfo(i));if(n[An]=null,n.destroyed){Qs(n[Oae]===0);let a=n[Ao].splice(n[an]);for(let A=0;A<a.length;A++){let c=a[A];Ee.errorRequest(n,c,o)}}}),r.unref(),t[An]=r,e[An]=r,Ee.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=n,this[pc][VQ](n)}),Ee.addListener(e,"end",function(){Ee.destroy(this,new sd("other side closed",Ee.getSocketInfo(this)))}),Ee.addListener(e,"close",function(){let n=this[cn]||new sd("closed",Ee.getSocketInfo(this));t[xt]=null,this[An]!=null&&this[An].destroy(n),t[qQ]=t[an],Qs(t[Xf]===0),t.emit("disconnect",t[Wf],[t],n),t[co]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return nAe(t,...n)},resume(){Zae(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Zae(t){let e=t[xt];e?.destroyed===!1&&(t[Hae]===0&&t[PU]===0?(e.unref(),t[An].unref()):(e.ref(),t[An].ref()))}function $ae(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][cn]=t,this[pc][VQ](t)}function eAe(t,e,r){if(r===0){let s=new YQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][cn]=s,this[pc][VQ](s)}}function tAe(){let t=new sd("other side closed",Ee.getSocketInfo(this[xt]));this.destroy(t),Ee.destroy(this[xt],t)}function rAe(t){let e=this[cn]||new sd(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ee.getSocketInfo(this)),r=this[pc];if(r[xt]=null,r[Gae]=null,this[An]!=null&&(this[An].destroy(e),this[An]=null),Ee.destroy(this[xt],e),r[an]<r[Ao].length){let s=r[Ao][r[an]];r[Ao][r[an]++]=null,Ee.errorRequest(r,s,e),r[qQ]=r[an]}Qs(r[Xf]===0),r.emit("disconnect",r[Wf],[r],e),r[co]()}function sAe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function nAe(t,e){let r=t[An],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ee.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let D=0;D<c.length;D+=2){let U=c[D+0],v=c[D+1];if(Array.isArray(v))for(let k=0;k<v.length;k++)d[U]?d[U]+=`,${v[k]}`:d[U]=v[k];else d[U]=v}let g,{hostname:h,port:f}=t[Wf];d[Yae]=i||`${h}${f?`:${f}`:""}`,d[qae]=s;let E=D=>{e.aborted||e.completed||(D=D||new kU,Ee.errorRequest(t,e,D),g!=null&&Ee.destroy(g,D),Ee.destroy(u,D),t[Ao][t[an]++]=null,t[co]())};try{e.onConnect(E)}catch(D){Ee.errorRequest(t,e,D)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(d,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[bi],t[Ao][t[an]++]=null}),g.once("close",()=>{r[bi]-=1,r[bi]===0&&r.unref()}),!0;d[Vae]=n,d[Jae]="https";let w=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let p=Ee.bodyLength(u);if(Ee.isFormDataLike(u)){FU??=gc().extractBody;let[D,U]=FU(u);d["content-type"]=U,u=D.stream,p=D.length}if(p==null&&(p=e.contentLength),(p===0||!w)&&(p=null),sAe(s)&&p>0&&e.contentLength!=null&&e.contentLength!==p){if(t[_ae])return Ee.errorRequest(t,e,new GQ),!1;process.emitWarning(new GQ)}p!=null&&(Qs(u,"no body must not have content length"),d[Wae]=`${p}`),r.ref();let y=s==="GET"||s==="HEAD"||u===null;return a?(d[zae]="100-continue",g=r.request(d,{endStream:y,signal:A}),g.once("continue",N)):(g=r Line truncated
`,this[xAe]=A??3e5,this[DAe]=n??3e5,this[RAe]=y??!0,this[kAe]=D,this[KQ]=v,this[lo]=null,this[PAe]=O>-1?O:-1,this[OAe]=Ge??100,this[gt]=null,this[un]=[],this[Ni]=0,this[ln]=0,this[ad]=fe=>jQ(this,fe),this[vAe]=fe=>jU(this,fe)}get pipelining(){return this[em]}set pipelining(e){this[em]=e,this[ad](!0)}get[ud](){return this[un].length-this[ln]}get[cd](){return this[ln]-this[Ni]}get[Ad](){return this[un].length-this[Ni]}get[QAe](){return!!this[gt]&&!this[Cc]&&!this[gt].destroyed}get[zQ](){return!!(this[gt]?.busy(null)||this[Ad]>=(XU(this)||1)||this[ud]>0)}[BAe](e){ZU(this),this.once("connect",e)}[LAe](e,r){let s=e.origin||this[Pn].origin,n=new fAe(s,e,r);return this[un].push(n),this[Ta]||(Sa.bodyLength(n.body)==null&&Sa.isIterable(n.body)?(this[Ta]=1,queueMicrotask(()=>jQ(this))):this[ad](!0)),this[Ta]&&this[go]!==2&&this[zQ]&&(this[go]=2),this[go]<2}async[MAe](){return new Promise(e=>{this[Ad]?this[lo]=e:e(null)})}async[UAe](e){return new Promise(r=>{let s=this[un].splice(this[ln]);for(let i=0;i<s.length;i++){let o=s[i];Sa.errorRequest(this,o,e)}let n=()=>{this[lo]&&(this[lo](),this[lo]=null),r(null)};this[gt]?(this[gt].destroy(e,n),this[gt]=null):queueMicrotask(n),this[ad]()})}},GAe=$f();function jU(t,e){if(t[cd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wi(t[ln]===t[Ni]);let r=t[un].splice(t[Ni]);for(let s=0;s<r.length;s++){let n=r[s];Sa.errorRequest(t,n,e)}wi(t[Ad]===0)}}async function ZU(t){wi(!t[Cc]),wi(!t[gt]);let{host:e,hostname:r,protocol:s,port:n}=t[Pn];if(r[0]==="["){let i=r.indexOf("]");wi(i!==-1);let o=r.substring(1,i);wi(KU.isIP(o)),r=o}t[Cc]=!0,Ec.beforeConnect.hasSubscribers&&Ec.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id]});try{let i=await new Promise((o,a)=>{t[id]({host:e,hostname:r,protocol:s,port:n,servername:t[uo],localAddress:t[od]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sa.destroy(i.on("error",WU),new EAe);return}wi(i);try{t[gt]=i.alpnProtocol==="h2"?await HAe(t,i):await _Ae(t,i)}catch(o){throw i.destroy().on("error",WU),o}t[Cc]=!1,i[FAe]=0,i[KQ]=t[KQ],i[IAe]=t,i[bAe]=null,Ec.connected.hasSubscribers&&Ec.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],socket:i}),t.emit("connect",t[Pn],[t])}catch(i){if(t.destroyed)return;if(t[Cc]=!1,Ec.connectError.hasSubscribers&&Ec.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[gt]?.version,servername:t[uo],localAddress:t[od]},connector:t[id],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wi(t[cd]===0);t[ud]>0&&t[un][t[ln]].servername===t[uo];){let o=t[un][t[ln]++];Sa.errorRequest(t,o,i)}else jU(t,i);t.emit("connectionError",t[Pn],[t],i)}t[ad]()}function zU(t){t[go]=0,t.emit("drain",t[Pn],[t])}function jQ(t,e){t[Ta]!==2&&(t[Ta]=2,YAe(t,e),t[Ta]=0,t[Ni]>256&&(t[un].splice(0,t[Ni]),t[ln]-=t[Ni],t[Ni]=0))}function YAe(t,e){for(;;){if(t.destroyed){wi(t[ud]===0);return}if(t[lo]&&!t[Ad]){t[lo](),t[lo]=null;return}if(t[gt]&&t[gt].resume(),t[zQ])t[go]=2;else if(t[go]===2){e?(t[go]=1,queueMicrotask(()=>zU(t))):zU(t);continue}if(t[ud]===0||t[cd]>=(XU(t)||1))return;let r=t[un][t[ln]];if(t[Pn].protocol==="https:"&&t[uo]!==r.servername){if(t[cd]>0)return;t[uo]=r.servername,t[gt]?.destroy(new pAe("servername changed"),()=>{t[gt]=null,jQ(t)})}if(t[Cc])return;if(!t[gt]){ZU(t);return}if(t[gt].destroyed||t[gt].busy(r))return;!r.aborted&&t[gt].write(r)?t[ln]++:t[un].splice(t[ln],1)}}$U.exports=XQ});var ZQ=m((KYe,eL)=>{"use strict";var tm=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};eL.exports=class{constructor(){this.head=this.tail=new tm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new tm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var rL=m((XYe,tL)=>{var{kFree:qAe,kConnected:VAe,kPending:JAe,kQueued:WAe,kRunning:zAe,kSize:KAe}=je(),Da=Symbol("pool"),$Q=class{constructor(e){this[Da]=e}get connected(){return this[Da][VAe]}get free(){return this[Da][qAe]}get pending(){return this[Da][JAe]}get queued(){return this[Da][WAe]}get running(){return this[Da][zAe]}get size(){return this[Da][KAe]}};tL.exports=$Q});var iy=m((jYe,dL)=>{"use strict";var XAe=nc(),jAe=ZQ(),{kConnected:ey,kSize:sL,kRunning:nL,kPending:iL,kQueued:ld,kBusy:ZAe,kFree:$Ae,kUrl:ece,kClose:tce,kDestroy:rce,kDispatch:sce}=je(),nce=rL(),Br=Symbol("clients"),ir=Symbol("needDrain"),dd=Symbol("queue"),ty=Symbol("closed resolve"),ry=Symbol("onDrain"),oL=Symbol("onConnect"),aL=Symbol("onDisconnect"),AL=Symbol("onConnectionError"),sy=Symbol(" Line truncated
`,"latin1"),r!==null&&n!==r){if(s[$Q])throw new Na;process.emitWarning(new Na)}e[We].timeout&&e[We].timeoutType===Nc&&e[We].timeout.refresh&&e[We].timeout.refresh(),s[wi]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[uo]=!1,e&&(j(s[yt]<=1,"pipeline should only contain this request"),n(e))}};pL.exports=MAe});var NL=m((cVe,wL)=>{"use strict";var ws=Q("node:assert"),{pipeline:HAe}=Q("node:stream"),Ie=Ee(),{RequestContentLengthMismatchError:ny,RequestAbortedError:CL,SocketError:md,InformationalError:iy}=Se(),{kUrl:Am,kReset:um,kClient:Sc,kRunning:lm,kPending:GAe,kQueue:lo,kPendingIdx:oy,kRunningIdx:cn,kError:ln,kSocket:Mt,kStrictContentLength:YAe,kOnError:ay,kMaxConcurrentStreams:bL,kHTTP2Session:un,kResume:go,kSize:qAe,kHTTPContext:VAe}=$e(),Ni=Symbol("open streams"),IL,BL=!1,cm;try{cm=Q("node:http2")}catch{cm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:JAe,HTTP2_HEADER_METHOD:WAe,HTTP2_HEADER_PATH:zAe,HTTP2_HEADER_SCHEME:KAe,HTTP2_HEADER_CONTENT_LENGTH:XAe,HTTP2_HEADER_EXPECT:jAe,HTTP2_HEADER_STATUS:ZAe}}=cm;function $Ae(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function ece(t,e){t[Mt]=e,BL||(BL=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=cm.connect(t[Am],{createConnection:()=>e,peerMaxConcurrentStreams:t[bL]});r[Ni]=0,r[Sc]=t,r[Mt]=e,Ie.addListener(r,"error",rce),Ie.addListener(r,"frameError",sce),Ie.addListener(r,"end",nce),Ie.addListener(r,"goaway",ice),Ie.addListener(r,"close",function(){let{[Sc]:n}=this,{[Mt]:i}=n,o=this[Mt][ln]||this[ln]||new md("closed",Ie.getSocketInfo(i));if(n[un]=null,n.destroyed){ws(n[GAe]===0);let a=n[lo].splice(n[cn]);for(let A=0;A<a.length;A++){let c=a[A];Ie.errorRequest(n,c,o)}}}),r.unref(),t[un]=r,e[un]=r,Ie.addListener(e,"error",function(n){ws(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ln]=n,this[Sc][ay](n)}),Ie.addListener(e,"end",function(){Ie.destroy(this,new md("other side closed",Ie.getSocketInfo(this)))}),Ie.addListener(e,"close",function(){let n=this[ln]||new md("closed",Ie.getSocketInfo(this));t[Mt]=null,this[un]!=null&&this[un].destroy(n),t[oy]=t[cn],ws(t[lm]===0),t.emit("disconnect",t[Am],[t],n),t[go]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ace(t,...n)},resume(){tce(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function tce(t){let e=t[Mt];e?.destroyed===!1&&(t[qAe]===0&&t[bL]===0?(e.unref(),t[un].unref()):(e.ref(),t[un].ref()))}function rce(t){ws(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Mt][ln]=t,this[Sc][ay](t)}function sce(t,e,r){if(r===0){let s=new iy(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Mt][ln]=s,this[Sc][ay](s)}}function nce(){let t=new md("other side closed",Ie.getSocketInfo(this[Mt]));this.destroy(t),Ie.destroy(this[Mt],t)}function ice(t){let e=this[ln]||new md(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ie.getSocketInfo(this)),r=this[Sc];if(r[Mt]=null,r[VAe]=null,this[un]!=null&&(this[un].destroy(e),this[un]=null),Ie.destroy(this[Mt],e),r[cn]<r[lo].length){let s=r[lo][r[cn]];r[lo][r[cn]++]=null,Ie.errorRequest(r,s,e),r[oy]=r[cn]}ws(r[lm]===0),r.emit("disconnect",r[Am],[r],e),r[go]()}function oce(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ace(t,e){let r=t[un],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return Ie.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let x=0;x<c.length;x+=2){let k=c[x+0],P=c[x+1];if(Array.isArray(P))for(let F=0;F<P.length;F++)l[k]?l[k]+=`,${P[F]}`:l[k]=P[F];else l[k]=P}let g,{hostname:h,port:f}=t[Am];l[JAe]=i||`${h}${f?`:${f}`:""}`,l[WAe]=s;let p=x=>{e.aborted||e.completed||(x=x||new CL,Ie.errorRequest(t,e,x),g!=null&&Ie.destroy(g,x),Ie.destroy(u,x),t[lo][t[cn]++]=null,t[go]())};try{e.onConnect(p)}catch(x){Ie.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),g=r.request(l,{endStream:!1,signal:A}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++r[Ni],t[lo][t[cn]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++r[Ni],t[lo][t[cn]++]=null}),g.once("close",()=>{r[Ni]-=1,r[Ni]===0&&r.unref()}),!0;l[zAe]=n,l[KAe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=Ie.bodyLength(u);if(Ie.isFormDataLike(u)){IL??=yc().extractBody;let[x,k]=IL(u);l["content-type"]=k,u=x.stream,E=x.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),oce(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[YAe])return Ie.errorRequest(t,e,new ny),!1;process.emitWarning(new ny)}E!=null&&(ws(u,"no body must not have content length"),l[XAe]=`${E}`),r.ref();let b=s==="GET"||s==="HEAD"||u===null;return a?(l[jAe]="100-continue",g=r.request(l,{endStream:b,signal:A}),g.once("continue",N)):(g=r. Line truncated
`,this[Fce]=A??3e5,this[kce]=n??3e5,this[Mce]=b??!0,this[Uce]=x,this[ly]=P,this[fo]=null,this[_ce]=v>-1?v:-1,this[Gce]=De??100,this[ht]=null,this[dn]=[],this[Ti]=0,this[gn]=0,this[Id]=he=>gy(this,he),this[Hce]=he=>vL(this,he)}get pipelining(){return this[fm]}set pipelining(e){this[fm]=e,this[Id](!0)}get[yd](){return this[dn].length-this[gn]}get[Qd](){return this[gn]-this[Ti]}get[Bd](){return this[dn].length-this[Ti]}get[wce](){return!!this[ht]&&!this[Dc]&&!this[ht].destroyed}get[uy](){return!!(this[ht]?.busy(null)||this[Bd]>=(PL(this)||1)||this[yd]>0)}[bce](e){OL(this),this.once("connect",e)}[Oce](e,r){let s=e.origin||this[vn].origin,n=new Ece(s,e,r);return this[dn].push(n),this[Ra]||(xa.bodyLength(n.body)==null&&xa.isIterable(n.body)?(this[Ra]=1,queueMicrotask(()=>gy(this))):this[Id](!0)),this[Ra]&&this[mo]!==2&&this[uy]&&(this[mo]=2),this[mo]<2}async[Pce](){return new Promise(e=>{this[Bd]?this[fo]=e:e(null)})}async[vce](e){return new Promise(r=>{let s=this[dn].splice(this[gn]);for(let i=0;i<s.length;i++){let o=s[i];xa.errorRequest(this,o,e)}let n=()=>{this[fo]&&(this[fo](),this[fo]=null),r(null)};this[ht]?(this[ht].destroy(e,n),this[ht]=null):queueMicrotask(n),this[Id]()})}},Vce=hm();function vL(t,e){if(t[Qd]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Si(t[gn]===t[Ti]);let r=t[dn].splice(t[Ti]);for(let s=0;s<r.length;s++){let n=r[s];xa.errorRequest(t,n,e)}Si(t[Bd]===0)}}async function OL(t){Si(!t[Dc]),Si(!t[ht]);let{host:e,hostname:r,protocol:s,port:n}=t[vn];if(r[0]==="["){let i=r.indexOf("]");Si(i!==-1);let o=r.substring(1,i);Si(LL.isIP(o)),r=o}t[Dc]=!0,Tc.beforeConnect.hasSubscribers&&Tc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed]});try{let i=await new Promise((o,a)=>{t[Ed]({host:e,hostname:r,protocol:s,port:n,servername:t[ho],localAddress:t[Cd]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){xa.destroy(i.on("error",ML),new Bce);return}Si(i);try{t[ht]=i.alpnProtocol==="h2"?await qce(t,i):await Yce(t,i)}catch(o){throw i.destroy().on("error",ML),o}t[Dc]=!1,i[Lce]=0,i[ly]=t[ly],i[yce]=t,i[Sce]=null,Tc.connected.hasSubscribers&&Tc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed],socket:i}),t.emit("connect",t[vn],[t])}catch(i){if(t.destroyed)return;if(t[Dc]=!1,Tc.connectError.hasSubscribers&&Tc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ht]?.version,servername:t[ho],localAddress:t[Cd]},connector:t[Ed],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Si(t[Qd]===0);t[yd]>0&&t[dn][t[gn]].servername===t[ho];){let o=t[dn][t[gn]++];xa.errorRequest(t,o,i)}else vL(t,i);t.emit("connectionError",t[vn],[t],i)}t[Id]()}function UL(t){t[mo]=0,t.emit("drain",t[vn],[t])}function gy(t,e){t[Ra]!==2&&(t[Ra]=2,Jce(t,e),t[Ra]=0,t[Ti]>256&&(t[dn].splice(0,t[Ti]),t[gn]-=t[Ti],t[Ti]=0))}function Jce(t,e){for(;;){if(t.destroyed){Si(t[yd]===0);return}if(t[fo]&&!t[Bd]){t[fo](),t[fo]=null;return}if(t[ht]&&t[ht].resume(),t[uy])t[mo]=2;else if(t[mo]===2){e?(t[mo]=1,queueMicrotask(()=>UL(t))):UL(t);continue}if(t[yd]===0||t[Qd]>=(PL(t)||1))return;let r=t[dn][t[gn]];if(t[vn].protocol==="https:"&&t[ho]!==r.servername){if(t[Qd]>0)return;t[ho]=r.servername,t[ht]?.destroy(new Ice("servername changed"),()=>{t[ht]=null,gy(t)})}if(t[Dc])return;if(!t[ht]){OL(t);return}if(t[ht].destroyed||t[ht].busy(r))return;!r.aborted&&t[ht].write(r)?t[gn]++:t[dn].splice(t[gn],1)}}_L.exports=dy});var hy=m((hVe,HL)=>{"use strict";var mm=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};HL.exports=class{constructor(){this.head=this.tail=new mm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new mm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var YL=m((fVe,GL)=>{var{kFree:Wce,kConnected:zce,kPending:Kce,kQueued:Xce,kRunning:jce,kSize:Zce}=$e(),ka=Symbol("pool"),fy=class{constructor(e){this[ka]=e}get connected(){return this[ka][zce]}get free(){return this[ka][Wce]}get pending(){return this[ka][Kce]}get queued(){return this[ka][Xce]}get running(){return this[ka][jce]}get size(){return this[ka][Zce]}};GL.exports=fy});var By=m((mVe,$L)=>{"use strict";var $ce=hc(),eue=hy(),{kConnected:my,kSize:qL,kRunning:VL,kPending:JL,kQueued:bd,kBusy:tue,kFree:rue,kUrl:sue,kClose:nue,kDestroy:iue,kDispatch:oue}=$e(),aue=YL(),Nr=Symbol("clients"),ur=Symbol("needDrain"),wd=Symbol("queue"),py=Symbol("closed resolve"),Ey=Symbol("onDrain"),WL=Symbol("onConnect"),zL=Symbol("onDisconnect"),KL=Symbol("onConnectionError"),Cy=Symbol(" Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};E3.exports=ib});var Cm=m((wqe,y3)=>{"use strict";var I3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:xle}=Se(),Rle=Qc();Q3()===void 0&&B3(new Rle);function B3(t){if(!t||typeof t.dispatch!="function")throw new xle("Argument agent must implement Agent");Object.defineProperty(globalThis,I3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Q3(){return globalThis[I3]}y3.exports={setGlobalDispatcher:B3,getGlobalDispatcher:Q3}});var Im=m((Sqe,b3)=>{"use strict";b3.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var N3=m((Tqe,w3)=>{"use strict";var kle=Zf();w3.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new kle(r,o,n,i);return r(a,A)}}});var T3=m((Dqe,S3)=>{"use strict";var Fle=cm();S3.exports=t=>e=>function(s,n){return e(s,new Fle({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var x3=m((xqe,D3)=>{"use strict";var Mle=me(),{InvalidArgumentError:Ule,RequestAbortedError:Lle}=Se(),Ple=Im(),ob=class extends Ple{#e=1024*1024;#t=null;#r=!1;#s=!1;#i=0;#n=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ule("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#s=!0,this.#n=e}onHeaders(e,r,s,n){let o=Mle.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Lle(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#n??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#s?this.#a.onError(this.#n):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function vle({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new ob({maxSize:i},n);return e(s,o)}}D3.exports=vle});var F3=m((Rqe,k3)=>{"use strict";var{isIP:Ole}=Q("node:net"),{lookup:_le}=Q("node:dns"),Hle=Im(),{InvalidArgumentError:kc,InformationalError:Gle}=Se(),R3=Math.pow(2,31)-1,ab=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Gle("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#s(e,r,s){_le(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===R3?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===R3?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new Ab(this,e,r)}},Ab=class extends Hle{#e=null;#t=null;#r=null;#s=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#s=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#s.onError(r);le Line truncated
${i}`;break;case"retry":d4(i)&&(r[n]=i);break;case"id":g4(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&d4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&g4(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};h4.exports={EventSourceStream:Wb}});var y4=m((AVe,Q4)=>{"use strict";var{pipeline:Zfe}=Q("node:stream"),{fetching:$fe}=wd(),{makeRequest:eme}=Uc(),{webidl:Ri}=Ht(),{EventSourceStream:tme}=f4(),{parseMIMEType:rme}=Cr(),{createFastMessageEvent:sme}=Hc(),{isNetworkError:m4}=yd(),{delay:nme}=Vb(),{kEnumerableProperty:qa}=me(),{environmentSettingsObject:p4}=Gr(),E4=!1,C4=3e3,vd=0,I4=1,Od=2,ime="anonymous",ome="use-credentials",Jc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#s=vd;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),Ri.util.markAsUncloneable(this);let s="EventSource constructor";Ri.argumentLengthCheck(arguments,1,s),E4||(E4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ri.converters.USVString(e,s,"url"),r=Ri.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:C4};let n=p4,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=ime;r.withCredentials&&(o=ome,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=p4.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=eme(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===Od)return;this.#s=vd;let e={request:this.#i,dispatcher:this.#a},r=s=>{m4(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(m4(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?rme(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=I4,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new tme({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(sme(A.type,A.options))}});Zfe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=$fe(e)}async#c(){this.#s!==Od&&(this.#s=vd,this.dispatchEvent(new Event("error")),await nme(this.#o.reconnectionTime),this.#s===vd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Ri.brandCheck(this,t),this.#s!==Od&&(this.#s=Od,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},B4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:vd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:I4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Od,writable:!1}};Object.defineProperties(Jc,B4);Object.defineProperties(Jc.prototype,B4);Object.defineProperties(Jc.prototype,{close:qa,onerror:qa,onmessage:qa,onopen:qa,readyState:qa,url:qa,withCredentials:qa});Ri.converters.EventSourceInitDict=Ri.dictionaryConverter([{key:"withCredentials",converter:Ri.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ri.converters.any}]);Q4.exports={EventSource:Jc,defaultReconnectionTime:C4}});var Ap=m((cVe,re)=>{"use strict";var ame=Ic(),b4=Yl(),Ame=Bc(),cme=BL(),ume=Qc(),lme=Ey(),dme=VL(),gme=jL(),w4=Se(),ap=me(),{InvalidArgumentError:op}=w4,Wc=PP(),hme=Vl(),fme=$y(),mme=C3(),pme=rb(),Eme=_y(),Cme=cm(),{getGlobalDispatcher:N4,setGlobalDispatcher:Ime}=Cm(),Bme=Im(),Qme=Zf(),yme=$f();Object.assign(b4.prototype,Wc);re.exports.Dispatcher=b4;re.exports.Client=ame;re.exports.Pool=Ame;re.exports.BalancedPool=cme;re.exports.Agent=ume;re.exports.ProxyAgent=lme;re.exports.EnvHttpProxyAgent=dme;re.exports.RetryAgent=gme;re.exports.RetryHandle Line truncated
`.trim())}};o3.exports=Bb});var Mm=m((qVe,l3)=>{"use strict";var A3=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Fde}=Se(),Mde=kc();u3()===void 0&&c3(new Mde);function c3(t){if(!t||typeof t.dispatch!="function")throw new Fde("Argument agent must implement Agent");Object.defineProperty(globalThis,A3,{value:t,writable:!0,enumerable:!1,configurable:!1})}function u3(){return globalThis[A3]}l3.exports={setGlobalDispatcher:c3,getGlobalDispatcher:u3}});var Um=m((JVe,d3)=>{"use strict";d3.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var h3=m((WVe,g3)=>{"use strict";var Ude=gm();g3.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new Ude(r,o,n,i);return r(a,A)}}});var m3=m((zVe,f3)=>{"use strict";var Lde=bm();f3.exports=t=>e=>function(s,n){return e(s,new Lde({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var E3=m((KVe,p3)=>{"use strict";var Pde=Ee(),{InvalidArgumentError:vde,RequestAbortedError:Ode}=Se(),_de=Um(),Qb=class extends _de{#e=1024*1024;#t=null;#r=!1;#n=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new vde("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#n=!0,this.#s=e}onHeaders(e,r,s,n){let o=Pde.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Ode(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#n?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#r=!0,this.#n?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#n){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Hde({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Qb({maxSize:i},n);return e(s,o)}}p3.exports=Hde});var B3=m((XVe,I3)=>{"use strict";var{isIP:Gde}=Q("node:net"),{lookup:Yde}=Q("node:dns"),qde=Um(),{InvalidArgumentError:Yc,InformationalError:Vde}=Se(),C3=Math.pow(2,31)-1,yb=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#n,this.pick=e.pick??this.#i}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Vde("No DNS entries found"));return}this.setRecords(e,a);let A=this.#r.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#n(e,r,s){Yde(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===C3?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===C3?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new bb(this,e,r)}},bb=class extends qde{#e=null;#t=null;#r=null;#n=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#i=r,this.#n=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#n.onError(r);le Line truncated
${i}`;break;case"retry":$4(i)&&(r[n]=i);break;case"id":eO(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&$4(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&eO(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};tO.exports={EventSourceStream:g1}});var uO=m((S7e,cO)=>{"use strict";var{pipeline:$me}=Q("node:stream"),{fetching:epe}=Pd(),{makeRequest:tpe}=Jc(),{webidl:Fi}=Vt(),{EventSourceStream:rpe}=rO(),{parseMIMEType:spe}=br(),{createFastMessageEvent:npe}=Zc(),{isNetworkError:sO}=Ud(),{delay:ipe}=l1(),{kEnumerableProperty:Wa}=Ee(),{environmentSettingsObject:nO}=Wr(),iO=!1,oO=3e3,jd=0,aO=1,Zd=2,ope="anonymous",ape="use-credentials",su=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=jd;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Fi.util.markAsUncloneable(this);let s="EventSource constructor";Fi.argumentLengthCheck(arguments,1,s),iO||(iO=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Fi.converters.USVString(e,s,"url"),r=Fi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:oO};let n=nO,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=ope;r.withCredentials&&(o=ape,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nO.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=tpe(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===Zd)return;this.#n=jd;let e={request:this.#i,dispatcher:this.#a},r=s=>{sO(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(sO(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?spe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=aO,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new rpe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(npe(A.type,A.options))}});$me(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=epe(e)}async#c(){this.#n!==Zd&&(this.#n=jd,this.dispatchEvent(new Event("error")),await ipe(this.#o.reconnectionTime),this.#n===jd&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Fi.brandCheck(this,t),this.#n!==Zd&&(this.#n=Zd,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},AO={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:jd,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:aO,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zd,writable:!1}};Object.defineProperties(su,AO);Object.defineProperties(su.prototype,AO);Object.defineProperties(su.prototype,{close:Wa,onerror:Wa,onmessage:Wa,onopen:Wa,readyState:Wa,url:Wa,withCredentials:Wa});Fi.converters.EventSourceInitDict=Fi.dictionaryConverter([{key:"withCredentials",converter:Fi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Fi.converters.any}]);cO.exports={EventSource:su,defaultReconnectionTime:oO}});var yp=m((T7e,ie)=>{"use strict";var Ape=xc(),lO=rd(),cpe=Rc(),upe=AP(),lpe=kc(),dpe=My(),gpe=kP(),hpe=OP(),dO=Se(),Qp=Ee(),{InvalidArgumentError:Bp}=dO,nu=wv(),fpe=nd(),mpe=fb(),ppe=a3(),Epe=Eb(),Cpe=rb(),Ipe=bm(),{getGlobalDispatcher:gO,setGlobalDispatcher:Bpe}=Mm(),Qpe=Um(),ype=gm(),bpe=hm();Object.assign(lO.prototype,nu);ie.exports.Dispatcher=lO;ie.exports.Client=Ape;ie.exports.Pool=cpe;ie.exports.BalancedPool=upe;ie.exports.Agent=lpe;ie.exports.ProxyAgent=dpe;ie.exports.EnvHttpProxyAgent=gpe;ie.exports.RetryAgent=hpe;ie.exports.RetryHandle Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var P_=m(L_=>{"use strict";var Zw=_i().Buffer;L_._dbcs=Hi;var Gt=-1,U_=-2,Ls=-10,lr=-1e3,fu=new Array(256),Eg=-1;for(I0=0;I0<256;I0++)fu[I0]=Gt;var I0;function Hi(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=fu.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(fu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(fu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[lr-o[s]],A=48;A<=57;A++){if(a[A]===Gt)a[A]=lr-n;else if(a[A]>lr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[lr-a[A]],u=129;u<=254;u++){if(c[u]===Gt)c[u]=lr-i;else{if(c[u]===lr-i)continue;if(c[u]>lr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[lr-c[u]],g=48;g<=57;g++)d[g]===Gt&&(d[g]=U_)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Zbe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(Pbe.has(n)){r=n;break}}return r}function $be(t,e){let r=Zbe(e);r!==""&&(t.referrerPolicy=r)}function e1e(){return"allowed"}function t1e(){return"success"}function r1e(){return"success"}function s1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function n1e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&mS(t.origin)&&!mS(uA(t))&&(e=null);break;case"same-origin":Sg(t,uA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Iu(t,e){return t}function i1e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Iu(t.domainLookupStartTime,r),domainLookupEndTime:Iu(t.domainLookupEndTime,r),connectionStartTime:Iu(t.connectionStartTime,r),connectionEndTime:Iu(t.connectionEndTime,r),secureConnectionStartTime:Iu(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function o1e(t){return Iu(Hbe.now(),t)}function a1e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function g9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function A1e(t){return{referrerPolicy:t.referrerPolicy}}function c1e(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let i=A9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Go.is.URL(t.referrer)&&(r=t.referrer);let s=fS(r),n=fS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??fS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=uA(t);return Sg(s,i)?s:cA(s)&&!cA(i)?"no-referrer":n}case"same-origin":return Sg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Sg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=uA(t);return cA(s)&&!cA(i)?"no-referrer":s}}}function fS(t,e=!1){return Tg(Go.is.URL(t)),t=new URL(t),p9(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var u1e=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),l1e=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function h9(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),l1e(t)):u1e(t)}function d1e(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||h9(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function cA(t){return Go.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:d1e(t.origin):!1}function g1e(t){}function Sg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function h1e(t){return t.controller.state==="aborted"}function f1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function m1e(t){return Ybe[t.toLowerCase()]??t}var p1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function f9(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let d;switch(this.#t){case"key":d=c;break;case"value":d=u;break;case"key+value":d=[c,u];break}return{value:d,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,p1e),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function E1e(t,e,r,s=0,n=1){let i=f9(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Go.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Os(a=>wS(a)&&a!==59,t,e);i=yS.decode(o)}return{name:s,value:i}}function G1e(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Rr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Os(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bS(o,!0,!0,a=>a===9||a===32),!M1e.test(o.toString()))throw Rr("header name does not match the field-name token production");if(t[e.position]!==58)throw Rr("expected :");switch(e.position++,Os(a=>a===32||a===9,t,e),F1e(o)){case"content-disposition":{if(r=s=null,Os(A=>wS(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Rr("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=H1e(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw Rr("name attribute is required in content-disposition header");break}case"content-type":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),n=y9(a);break}case"content-transfer-encoding":{let a=Os(A=>A!==10&&A!==13,t,e);a=bS(a,!1,!0,A=>A===9||A===32),i=y9(a);break}default:Os(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Rr("expected CRLF");e.position+=2}}function Os(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function bS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Y1e(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Rr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function q1e(t){return t<=31||t===127}function V1e(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function wS(t){return t<=127&&t!==32&&t!==9&&!q1e(t)&&!V1e(t)}b9.exports={multipartFormDataParser:_1e,validateBoundary:O1e}});var Dg=m((pXe,N9)=>{"use strict";function J1e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}N9.exports={createDeferredPromise:J1e}});var yu=m((EXe,R9)=>{"use strict";var TS=ce(),{ReadableStreamFrom:W1e,readableStreamClose:z1e,fullyReadBody:K1e,extractMimeType:X1e}=rs(),{FormData:S9,setFormDataState:j1e}=V0(),{webidl:Bn}=Yt(),NS=Q("node:assert"),{isErrored:SS,isDisturbed:Z1e}=Q("node:stream"),{isUint8Array:$1e}=Q("node:util/types"),{serializeAMimeType:ewe}=vs(),{multipartFormDataParser:twe}=w9(),{createDeferredPromise:rwe}=Dg(),{parseJSONFromBytes:swe}=qi(),{utf8DecodeBytes:nwe}=O0(),{runtimeFeatures:iwe}=Vi(),owe=iwe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),J0=new TextEncoder;function awe(){}var Awe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Z1e(e)&&!SS(e)&&e.cancel("Response object has been garbage collected").catch(awe)});function D9(t,e=!1){let r=null,s=null;Bn.is.ReadableStream(t)?r=t:Bn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),NS(Bn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Bn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Bn.is.BufferSource(t))i=Bn.util.getCopyOfBytesHeldByBufferSource(t);else if(Bn.is.FormData(t)){let c=`----formdata-undici-0${`${owe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let d=p=>p.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=p=>p.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let E=!1;for(let[p,y]of t)if(typeof y=="string"){let N=J0.encode(u+`; name="${d(g(p))}"\r
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var b5=m(y5=>{"use strict";var EN=Gi().Buffer;y5._dbcs=Yi;var Jt=-1,Q5=-2,Os=-10,mr=-1e3,Nu=new Array(256),Rg=-1;for(U0=0;U0<256;U0++)Nu[U0]=Jt;var U0;function Yi(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Nu.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(Nu.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Nu.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[mr-o[s]],A=48;A<=57;A++){if(a[A]===Jt)a[A]=mr-n;else if(a[A]>mr)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[mr-a[A]],u=129;u<=254;u++){if(c[u]===Jt)c[u]=mr-i;else{if(c[u]===mr-i)continue;if(c[u]>mr)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[mr-c[u]],g=48;g<=57;g++)l[g]===Jt&&(l[g]=Q5)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipVals.lengLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function ewe(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(O1e.has(n)){r=n;break}}return r}function twe(t,e){let r=ewe(e);r!==""&&(t.referrerPolicy=r)}function rwe(){return"allowed"}function swe(){return"success"}function nwe(){return"success"}function iwe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function owe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&PS(t.origin)&&!PS(gA(t))&&(e=null);break;case"same-origin":Hg(t,gA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Ru(t,e){return t}function awe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ru(t.domainLookupStartTime,r),domainLookupEndTime:Ru(t.domainLookupEndTime,r),connectionStartTime:Ru(t.connectionStartTime,r),connectionEndTime:Ru(t.connectionEndTime,r),secureConnectionStartTime:Ru(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Awe(t){return Ru(Y1e.now(),t)}function cwe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function $9(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function uwe(t){return{referrerPolicy:t.referrerPolicy}}function lwe(t){let e=t.referrerPolicy;Gg(e);let r=null;if(t.referrer==="client"){let i=z9();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Vo.is.URL(t.referrer)&&(r=t.referrer);let s=LS(r),n=LS(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??LS(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=gA(t);return dA(s)&&!dA(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=gA(t);return Hg(s,i)?s:dA(s)&&!dA(i)?"no-referrer":n}case"same-origin":return Hg(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Hg(t,s)?s:n;case"no-referrer-when-downgrade":{let i=gA(t);return dA(s)&&!dA(i)?"no-referrer":s}}}function LS(t,e=!1){return Gg(Vo.is.URL(t)),t=new URL(t),sG(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var dwe=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),gwe=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function eG(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),gwe(t)):dwe(t)}function hwe(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||eG(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function dA(t){return Vo.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:hwe(t.origin):!1}function fwe(t){}function Hg(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function mwe(t){return t.controller.state==="aborted"}function pwe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Ewe(t){return V1e[t.toLowerCase()]??t}var Cwe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function tG(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o,this.#t=a,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#r,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#r=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,Cwe),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function Iwe(t,e,r,s=0,n=1){let i=tG(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vo.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Vo.brandCheck(this,e),i(this,"value")}},en Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Gs(a=>JS(a)&&a!==59,t,e);i=qS.decode(o)}return{name:s,value:i,extended:n}}function qwe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Lr("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=Gs(a=>a!==10&&a!==13&&a!==58,t,e);if(o=VS(o,!0,!0,a=>a===9||a===32),!Lwe.test(o.toString()))throw Lr("header name does not match the field-name token production");if(t[e.position]!==58)throw Lr("expected :");switch(e.position++,Gs(a=>a===32||a===9,t,e),Uwe(o)){case"content-disposition":{r=s=null;let a=!1;if(Gs(c=>JS(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Lr("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let c=Ywe(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(c.extended?(s=c.value,a=!0):a||(s=c.value))}if(r===null)throw Lr("name attribute is required in content-disposition header");break}case"content-type":{let a=Gs(A=>A!==10&&A!==13,t,e);a=VS(a,!1,!0,A=>A===9||A===32),n=cG(a);break}case"content-transfer-encoding":{let a=Gs(A=>A!==10&&A!==13,t,e);a=VS(a,!1,!0,A=>A===9||A===32),i=cG(a);break}default:Gs(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Lr("expected CRLF");e.position+=2}}function Gs(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function VS(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function Vwe(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function Lr(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Jwe(t){return t<=31||t===127}function Wwe(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function JS(t){return t<=127&&t!==32&&t!==9&&!Jwe(t)&&!Wwe(t)}uG.exports={multipartFormDataParser:Gwe,validateBoundary:Hwe}});var Yg=m((Lje,dG)=>{"use strict";function zwe(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}dG.exports={createDeferredPromise:zwe}});var Mu=m((Pje,pG)=>{"use strict";var KS=ue(),{ReadableStreamFrom:Kwe,readableStreamClose:Xwe,fullyReadBody:jwe,extractMimeType:Zwe}=As(),{FormData:gG,setFormDataState:$we}=oE(),{webidl:yn}=Wt(),WS=Q("node:assert"),{isErrored:zS,isDisturbed:eNe}=Q("node:stream"),{isUint8Array:tNe}=Q("node:util/types"),{serializeAMimeType:rNe}=Hs(),{multipartFormDataParser:sNe}=lG(),{createDeferredPromise:nNe}=Yg(),{parseJSONFromBytes:iNe}=Ji(),{utf8DecodeBytes:oNe}=eE(),{runtimeFeatures:aNe}=Wi(),ANe=aNe.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),aE=new TextEncoder;function cNe(){}var uNe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!eNe(e)&&!zS(e)&&e.cancel("Response object has been garbage collected").catch(cNe)});function fG(t,e=!1){let r=null,s=null;yn.is.ReadableStream(t)?r=t:yn.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),WS(yn.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(yn.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(yn.is.BufferSource(t))i=yn.util.getCopyOfBytesHeldByBufferSource(t);else if(yn.is.FormData(t)){let c=`----formdata-undici-0${`${ANe(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),g=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,b]of t)if(typeof b=="string"){let N=aE.encode(u+`; name="${l(g(E))}"\r
\r
${g(y)}\r
`);h.push(N),o+=N.byteLength}else{let N=J0.encode(`${u}; name="${d(g(p))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
${g(b)}\r
`);h.push(N),o+=N.byteLength}else{let N=aE.encode(`${u}; name="${l(g(E))}"`+(b.name?`; filename="${l(b.name)}"`:"")+`\r
Content-Type: ${b.type||"application/octet-stream"}\r
\r
`);h.push(N,y,f),typeof y.size=="number"?o+=N.byteLength+y.size+f.byteLength:E=!0}let w=J0.encode(`--${c}--\r
`);h.push(w),o+=w.byteLength,E&&(o=null),i=t,n=async function*(){for(let p of h)p.stream?yield*p.stream():yield p},a=`multipart/form-data; boundary=${c}`}else if(Bn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(TS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Bn.is.ReadableStream(t)?t:W1e(t)}return(typeof i=="string"||$1e(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let d of u){if(SS(r))break;d.length&&s.enqueue(new Uint8Array(d))}else c?.length&&!SS(r)&&s.enqueue(typeof c=="string"?J0.encode(c):new Uint8Array(c));queueMicrotask(()=>z1e(s))})(),[{stream:r,source:i,length:o},a]}function cwe(t,e=!1){return Bn.is.ReadableStream(t)&&(NS(!TS.isDisturbed(t),"The body has already been consumed."),NS(!t.locked,"The stream is locked.")),D9(t,e)}function uwe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function lwe(t,e){return{blob(){return Qu(this,s=>{let n=T9(e(this));return n===null?n="":n&&(n=ewe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Qu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Qu(this,nwe,t,e)},json(){return Qu(this,swe,t,e)},formData(){return Qu(this,s=>{let n=T9(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=twe(s,n),o=new S9;return j1e(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new S9;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Qu(this,s=>new Uint8Array(s),t,e)}}}function dwe(t,e){Object.assign(t.prototype,lwe(t,e))}function Qu(t,e,r,s){try{Bn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),x9(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=rwe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(K1e(t.body,o,i),n.promise)}function x9(t){let e=t.body;return e!=null&&(e.stream.locked||TS.isDisturbed(e.stream))}function T9(t){let e=t.headersList,r=X1e(e);return r==="failure"?null:r}R9.exports={extractBody:D9,safelyExtractBody:cwe,cloneBody:uwe,mixinBody:dwe,streamRegistry:Awe,bodyUnusable:x9}});var G9=m((CXe,H9)=>{"use strict";var se=Q("node:assert"),ne=ce(),{channels:k9}=_o(),DS=uN(),{RequestContentLengthMismatchError:lA,ResponseContentLengthMismatchError:gwe,RequestAbortedError:v9,HeadersTimeoutError:hwe,HeadersOverflowError:fwe,SocketError:kg,InformationalError:bu,BodyTimeoutError:mwe,HTTPParserError:pwe,ResponseExceededMaxSizeError:Ewe}=oe(),{kUrl:O9,kReset:kr,kClient:LS,kParser:at,kBlocking:Fg,kRunning:rr,kPending:Cwe,kSize:F9,kWriting:qo,kQueue:Qn,kNoRef:xg,kKeepAliveDefaultTimeout:Iwe,kHostHeader:Bwe,kPendingIdx:Qwe,kRunningIdx:_s,kError:Hs,kPipelining:K0,kSocket:wu,kKeepAliveTimeoutValue:j0,kMaxHeadersSize:ywe,kKeepAliveMaxTimeout:bwe,kKeepAliveTimeoutThreshold:wwe,kHeadersTimeout:Nwe,kBodyTimeout:Swe,kStrictContentLength:kS,kMaxRequests:M9,kCounter:Twe,kMaxResponseSize:Dwe,kOnError:xwe,kResume:Yo,kHTTPContext:_9,kClosed:FS}=Me(),zn=RH(),Rwe=Buffer.alloc(0),W0=Buffer[Symbol.species],kwe=ne.removeAllListeners,xS;function Fwe(){let t=process.env.JEST_WORKER_ID?rS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(MH())}catch{}return e||(e=new WebAssembly.Module(t||rS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onStatus(new W0(Kn.buffer,o,i))},wasm_on_message_begin:s=>(se(Nt.ptr===s),Nt.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderField(new W0(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onHeaderValue(new W0(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(se(Nt.ptr===s),Nt.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{se(Nt.ptr===s);let o=n-Xn+Kn.byteOffset;return Nt.onBody(new W0(Kn.buffer,o,i))},wasm_on_message_complete:s=>(se(Nt.ptr===s),Nt.onMessageComplete())}})}var RS=null,Nt=null,Kn=null,z0=0,Xn=null,Mwe=0,Rg=1,Nu=2|Rg,X0=4|Rg,MS=8|Mwe,US=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(zn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ywe],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[Dwe]}setTimeout(e,r){e!==this.t Line truncated
`;if(typeof n=="string"?E+=`host: ${n}\r
`:E+=t[Bwe],i?E+=`connection: upgrade\r
`);h.push(N,b,f),typeof b.size=="number"?o+=N.byteLength+b.size+f.byteLength:p=!0}let y=aE.encode(`--${c}--\r
`);h.push(y),o+=y.byteLength,p&&(o=null),i=t,n=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(yn.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(KS.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=yn.is.ReadableStream(t)?t:Kwe(t)}return(typeof i=="string"||tNe(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(zS(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!zS(r)&&s.enqueue(typeof c=="string"?aE.encode(c):new Uint8Array(c));queueMicrotask(()=>Xwe(s))})(),[{stream:r,source:i,length:o},a]}function lNe(t,e=!1){return yn.is.ReadableStream(t)&&(WS(!KS.isDisturbed(t),"The body has already been consumed."),WS(!t.locked,"The stream is locked.")),fG(t,e)}function dNe(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function gNe(t,e){return{blob(){return Fu(this,s=>{let n=hG(e(this));return n===null?n="":n&&(n=rNe(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return Fu(this,s=>new Uint8Array(s).buffer,t,e)},text(){return Fu(this,oNe,t,e)},json(){return Fu(this,iNe,t,e)},formData(){return Fu(this,s=>{let n=hG(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=sNe(s,n),o=new gG;return $we(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new gG;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return Fu(this,s=>new Uint8Array(s),t,e)}}}function hNe(t,e){Object.assign(t.prototype,gNe(t,e))}function Fu(t,e,r,s){try{yn.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),mG(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=nNe(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(jwe(t.body,o,i),n.promise)}function mG(t){let e=t.body;return e!=null&&(e.stream.locked||KS.isDisturbed(e.stream))}function hG(t){let e=t.headersList,r=Zwe(e);return r==="failure"?null:r}pG.exports={extractBody:fG,safelyExtractBody:lNe,cloneBody:dNe,mixinBody:hNe,streamRegistry:uNe,bodyUnusable:mG}});var kG=m((vje,RG)=>{"use strict";var re=Q("node:assert"),K=ue(),{channels:EG}=Yo(),XS=xN(),{RequestContentLengthMismatchError:hA,ResponseContentLengthMismatchError:CG,RequestAbortedError:SG,InvalidArgumentError:fNe,HeadersTimeoutError:mNe,HeadersOverflowError:pNe,SocketError:fA,InformationalError:Uu,BodyTimeoutError:ENe,HTTPParserError:CNe,ResponseExceededMaxSizeError:INe}=Ae(),{kUrl:TG,kReset:Pr,kClient:dE,kParser:Xe,kBlocking:Jg,kRunning:St,kPending:sT,kSize:IG,kWriting:Jo,kQueue:bn,kNoRef:qg,kKeepAliveDefaultTimeout:BNe,kHostHeader:QNe,kPendingIdx:yNe,kRunningIdx:Ys,kError:pr,kPipelining:uE,kSocket:pA,kKeepAliveTimeoutValue:gE,kMaxHeadersSize:bNe,kKeepAliveMaxTimeout:wNe,kKeepAliveTimeoutThreshold:NNe,kHeadersTimeout:SNe,kBodyTimeout:TNe,kStrictContentLength:$S,kMaxRequests:BG,kCounter:DNe,kMaxResponseSize:xNe,kOnError:QG,kResume:Ki,kHTTPContext:DG,kClosed:eT}=Ue(),cs=p9(),yG=Buffer.alloc(0),AE=Buffer[Symbol.species],RNe=K.removeAllListeners,EA=Symbol("kIdleSocketValidation"),mA=Symbol("kIdleSocketValidationTimeout"),nT=Symbol("kSocketUsed"),jS;function kNe(){let t=process.env.JEST_WORKER_ID?yS():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(I9())}catch{}return e||(e=new WebAssembly.Module(t||yS())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onStatus(new AE(Kn.buffer,o,i))},wasm_on_message_begin:s=>(re(ct.ptr===s),ct.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onHeaderField(new AE(Kn.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onHeaderValue(new AE(Kn.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(re(ct.ptr===s),ct.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{re(ct.ptr===s);let o=n-Xn+Kn.byteOffset;return ct.onBody(new AE(Kn.buffer,o,i))},wasm_on_message_complete:s=>(re(ct.ptr===s),ct.onMessageComplete())}})}var ZS=null,ct=null,Kn=null,cE=0,Xn=null,FNe=0,Vg=1,Lu=2|Vg,lE=4|Vg,tT=8|FNe,rT=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(cs.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[bNe],this.shouldKeepAlive=!1,this.paused=!1,this.r Line truncated
`;if(typeof n=="string"?p+=`host: ${n}\r
`:p+=t[QNe],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[K0]&&!h[kr]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let p=c[w+0],y=c[w+1];if(Array.isArray(y))for(let N=0;N<y.length;N++)E+=`${p}: ${y[N]}\r
`;else E+=`${p}: ${y}\r
`}return k9.sendHeaders.hasSubscribers&&k9.sendHeaders.publish({request:e,headers:E,socket:h}),!A||g===0?L9(f,null,t,e,h,u,E,d):ne.isBuffer(A)?L9(f,A,t,e,h,u,E,d):ne.isBlobLike(A)?typeof A.stream=="function"?P9(f,A.stream(),t,e,h,u,E,d):Vwe(f,A,t,e,h,u,E,d):ne.isStream(A)?qwe(f,A,t,e,h,u,E,d):ne.isIterable(A)?P9(f,A,t,e,h,u,E,d):se(!1),!0}function qwe(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"stream body cannot be pipelined");let A=!1,c=new Z0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(E){ne.destroy(this,E)}},d=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new v9;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,se(n.destroyed||n[qo]&&r[rr]<=1),n.off("drain",d).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(E){f=E}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?ne.destroy(e,f):ne.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",d).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function L9(t,e,r,s,n,i,o,a){try{e?ne.isBuffer(e)&&(se(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[uE]&&!h[Pr]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let y=0;y<c.length;y+=2){let E=c[y+0],b=c[y+1];if(Array.isArray(b))for(let N=0;N<b.length;N++)p+=`${E}: ${b[N]}\r
`;else p+=`${E}: ${b}\r
`}return EG.sendHeaders.hasSubscribers&&EG.sendHeaders.publish({request:e,headers:p,socket:h}),!A||g===0?wG(f,null,t,e,h,u,p,l):K.isBuffer(A)?wG(f,A,t,e,h,u,p,l):K.isBlobLike(A)?typeof A.stream=="function"?NG(f,A.stream(),t,e,h,u,p,l):VNe(f,A,t,e,h,u,p,l):K.isStream(A)?qNe(f,A,t,e,h,u,p,l):K.isIterable(A)?NG(f,A,t,e,h,u,p,l):re(!1),!0}function qNe(t,e,r,s,n,i,o,a){re(i!==0||r[St]===0,"stream body cannot be pipelined");let A=!1,c=new hE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){K.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new SG;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,re(n.destroyed||n[Jo]&&r[St]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",g),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?K.destroy(e,f):K.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",g),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(g)}function wG(t,e,r,s,n,i,o,a){try{e?K.isBuffer(e)&&(re(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[kr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Pr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(se(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Yo]()}catch(A){t(A)}}async function Vwe(t,e,r,s,n,i,o,a){se(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new lA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(re(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ki]()}catch(A){t(A)}}async function VNe(t,e,r,s,n,i,o,a){re(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new hA;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[kr]=!0),r[Yo]()}catch(A){t(A)}}async function P9(t,e,r,s,n,i,o,a){se(i!==0||r[rr]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{se(A===null),n[Hs]?h(n[Hs]):A=g});n.on("close",c).on("drain",c);let d=new Z0({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[Hs])throw n[Hs];d.write(g)||await u()}d.end()}catch(g){d.destroy(g)}finally{n.off("close",c).off("drain",c)}}var Z0=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[qo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[kS])throw new lA;process.emitWarning(new lA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[kr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[Pr]=!0),r[Ki]()}catch(A){t(A)}}async function NG(t,e,r,s,n,i,o,a){re(i!==0||r[St]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let g=A;A=null,g()}}let u=()=>new Promise((g,h)=>{re(A===null),n[pr]?h(n[pr]):A=g});n.on("close",c).on("drain",c);let l=new hE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let g of e){if(n[pr])throw n[pr];l.write(g)||await u()}l.end()}catch(g){l.destroy(g)}finally{n.off("close",c).off("drain",c)}}var hE=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Jo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[pr])throw r[pr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[$S])throw new hA;process.emitWarning(new hA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Pr]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[at].timeout&&r[at].timeoutType===Nu&&r[at].timeout.refresh&&r[at].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[qo]=!1,e[Hs])throw e[Hs];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Xe].timeout&&r[Xe].timeoutType===Lu&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Jo]=!1,e[pr])throw e[pr];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[kS])throw new lA;process.emitWarning(new lA)}e[at].timeout&&e[at].timeoutType===Nu&&e[at].timeout.refresh&&e[at].timeout.refresh(),s[Yo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[qo]=!1,e&&(se(s[rr]<=1,"pipeline should only contain this request"),n(e))}};H9.exports=Uwe});var j9=m((IXe,X9)=>{"use strict";var Ys=Q("node:assert"),{pipeline:Jwe}=Q("node:stream"),he=ce(),{RequestContentLengthMismatchError:_S,RequestAbortedError:Wwe,SocketError:Pg,InformationalError:Vo,InvalidArgumentError:zwe}=oe(),{kUrl:Lg,kReset:rE,kClient:ss,kRunning:vg,kPending:Kwe,kQueue:Jo,kPendingIdx:GS,kRunningIdx:yn,kError:ns,kSocket:st,kStrictContentLength:Xwe,kOnError:Su,kMaxConcurrentStreams:eE,kPingInterval:Y9,kHTTP2Session:Wi,kHTTP2InitialWindowSize:jwe,kHTTP2ConnectionWindowSize:Zwe,kResume:jn,kSize:$we,kHTTPContext:YS,kClosed:HS,kBodyTimeout:eNe,kEnableConnectProtocol:Mg,kRemoteSettings:Ug,kHTTP2Stream:$0,kHTTP2SessionState:qS}=Me(),{channels:q9}=_o(),Gs=Symbol("open streams"),V9,tE;try{tE=Q("node:http2")}catch{tE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tNe,HTTP2_HEADER_METHOD:J9,HTTP2_HEADER_PATH:W9,HTTP2_HEADER_SCHEME:PS,HTTP2_HEADER_CONTENT_LENGTH:rNe,HTTP2_HEADER_EXPECT:sNe,HTTP2_HEADER_STATUS:vS,HTTP2_HEADER_PROTOCOL:nNe,NGHTTP2_REFUSED_STREAM:iNe,NGHTTP2_CANCEL:oNe}}=tE;function OS(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function aNe(t,e){t[st]=e;let r=t[jwe],s=t[Zwe],n=tE.connect(t[Lg],{createConnection:()=>e,peerMaxConcurrentStreams:t[eE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[st]=e,n[Gs]=0,n[ss]=t,n[st]=e,n[qS]={ping:{interval:t[Y9]===0?null:setInterval(lNe,t[Y9],n).unref()}},n[Mg]=!1,n[Ug]=!1,s&&he.addListener(n,"connect",cNe.bind(n,s)),he.addListener(n,"error",dNe),he.addListener(n,"frameError",gNe),he.addListener(n,"end",hNe),he.addListener(n,"goaway",fNe),he.addListener(n,"close",mNe),he.addListener(n,"remoteSettings",uNe),n.unref(),t[Wi]=n,e[Wi]=n,he.addListener(e,"error",ENe),he.addListener(e,"end",CNe),he.addListener(e,"close",pNe),e[HS]=!1,e.on("close",INe),{version:"h2",defaultPipelining:1/0,write(i){return QNe(t,i)},resume(){ANe(t)},destroy(i,o){e[HS]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[vg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1||he.bodyLength(i.body)!==0&&(he.isStream(i.body)||he.isAsyncIterable(i.body)||he.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Ug]===!1;return!1}}}function ANe(t){let e=t[st];e?.destroyed===!1&&(t[$we]===0||t[eE]===0?(e.unref(),t[Wi].unref()):(e.ref(),t[Wi].ref()))}function cNe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uNe(t){if(this[ss][eE]=t.maxConcurrentStreams??this[ss][eE],this[Ug]===!0&&this[Mg]===!0&&t.enableConnectProtocol===!1){let e=new Vo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[st][ns]=e,this[ss][Su](e);return}this[Mg]=t.enableConnectProtocol??this[Mg],this[Ug]=!0,this[ss][jn]()}function lNe(t){let e=t[qS];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[ss],o=this[ss];if(s!=null){let a=new Vo(`HTTP/2: "PING" errored - type ${s.message}`);o[ns]=a,i[Su](a)}else i.emit("ping",n)}}function dNe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[st][ns]=t,this[ss][Su](t)}function gNe(t,e,r){if(r===0){let s=new Vo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[st][ns]=s,this[ss][Su](s)}}function hNe(){let t=new Pg("other side closed",he.getSocketInfo(this[st]));this.destroy(t),he.destroy(this[st],t)}function fNe(t){let e=this[ns]||new Pg(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this[st])),r=this[ss];if(r[st]=null,r[YS]=null,this.close(),this[Wi]=null,he.destroy(this[st],e),r[yn]<r[Jo].length){let s=r[Jo][r[yn]];r[Jo][r[yn]++]=null,he.errorRequest(r,s,e),r[GS]=r[yn]}Ys(r[vg]===0),r.emit("disconnect",r[Lg],[r],e),r.emit("connectionError",r[Lg],[r],e),r[jn]()}function mNe(){let{[ss]:t,[qS]:e}=this,{[st]:r}=t,s=this[st][ns]||this[ns]||new Pg("closed",he.getSocketInfo(r));if(t[st]=null,t[YS]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Ys(t[Kwe]===0);let n=t[Jo].splice(t[yn]);for(let i=0;i<n.length;i++){let o=n[i];he.errorRequest(t,o,s)}}}function pNe(){let t=this[ns]||new Pg("closed",he.getSocketInfo(this)),e=this[Wi][ss];e[st]=null,e[YS]=null,this[Wi]!==null&&this[Wi].destroy(t),e[GS]=e[yn],Ys(e[vg]===0),e.emit("disconnect",e[Lg],[e],t),e[jn]()}function ENe(t){Ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ns]=t,this[ss][Su](t)}function CNe(){he.destroy(this,new Pg("other side closed",he.getSocketInfo(this)))}function INe() Line truncated
`;q9.sendHeaders.publish({request:e,headers:k,socket:s[st]})}let D=n==="GET"||n==="HEAD"||g===null;A?(h[sNe]="100-continue",f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,f.once("continue",v)):(f=s.request(h,{endStream:D,signal:c}),f[$0]=!0,v()),++s[Gs],f.setTimeout(r);let U=!1;return f.once("response",k=>{let{[vS]:O,..._}=k;if(e.onResponseStarted(),U=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),OS(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",Ne=>{e.aborted||e.completed||e.onData(Ne)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),U?(!e.aborted&&!e.completed&&e.onComplete({}),t[Jo][t[yn]++]=null,t[jn]()):(p(new Vo("HTTP/2: stream half-closed (remote)")),t[Jo][t[yn]++]=null,t[GS]=t[yn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),p(k)}),f.once("frameError",(k,O)=>{f.removeAllListeners("data"),p(new Vo(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[Gs]-=1,s[Gs]===0&&s.unref(),p(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function v(){!g||N===0?z9(p,f,null,t,e,t[st],N,y):he.isBuffer(g)?z9(p,f,g,t,e,t[st],N,y):he.isBlobLike(g)?typeof g.stream=="function"?K9(p,f,g.stream(),t,e,t[st],N,y):bNe(p,f,g,t,e,t[st],N,y):he.isStream(g)?yNe(p,t[st],y,f,g,t,e,N):he.isIterable(g)?K9(p,f,g,t,e,t[st],N,y):Ys(!1)}}function z9(t,e,r,s,n,i,o,a){try{r!=null&&he.isBuffer(r)&&(Ys(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[rE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function yNe(t,e,r,s,n,i,o,a){Ys(a!==0||i[vg]===0,"stream body cannot be pipelined");let A=Jwe(n,s,u=>{u?(he.destroy(A,u),t(u)):(he.removeAllListeners(A),o.onRequestSent(),r||(e[rE]=!0),i[jn]())});he.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bNe(t,e,r,s,n,i,o,a){Ys(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _S;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(A){t(A)}}async function K9(t,e,r,s,n,i,o,a){Ys(o!==0||s[vg]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,g)=>{Ys(A===null),i[ns]?g(i[ns]):A=d});e.on("close",c).on("drain",c);try{for await(let d of r){if(i[ns])throw i[ns];let g=e.write(d);n.onBodySent(d),g||await u()}e.end(),n.onRequestSent(),a||(i[rE]=!0),s[jn]()}catch(d){t(d)}finally{e.off("close",c).off("drain",c)}}X9.exports=aNe});var jo=m((BXe,oG)=>{"use strict";var zi=Q("node:assert"),rG=Q("node:net"),Og=Q("node:http"),dA=ce(),{ClientStats:wNe}=ON(),{channels:Tu}=_o(),NNe=CH(),SNe=oA(),{InvalidArgumentError:Ke,InformationalError:TNe,ClientDestroyedError:DNe}=oe(),xNe=aA(),{kUrl:Zn,kServerName:Xo,kClient:RNe,kBusy:VS,kConnect:kNe,kResuming:gA,kRunning:Yg,kPending:qg,kSize:_g,kQueue:bn,kConnected:FNe,kConnecting:Du,kNeedDrain:zo,kKeepAliveDefaultTimeout:Z9,kHostHeader:MNe,kPendingIdx:wn,kRunningIdx:Ki,kError:UNe,kPipelining:sE,kKeepAliveTimeoutValue:LNe,kMaxHeadersSize:PNe,kKeepAliveMaxTimeout:vNe,kKeepAliveTimeoutThreshold:ONe,kHeadersTimeout:_Ne,kBodyTimeout:HNe,kStrictContentLength:GNe,kConnector:Hg,kMaxRequests:JS,kCounter:YNe,kClose:qNe,kDestroy:VNe,kDispatch:JNe,kLocalAddress:Gg,kMaxResponseSize:WNe,kOnError:zNe,kHTTPContext:ft,kMaxConcurrentStreams:KNe,kHTTP2InitialWindowSize:XNe,kHTTP2ConnectionWindowSize:jNe,kResume:Ko,kPingInterval:ZNe}=Me(),$Ne=G9(),eSe=j9(),Wo=Symbol("kClosedResolve"),tSe=Og&&Og.maxHeaderSize&&Number.isInteger(Og.maxHeaderSize)&&Og.maxHeaderSize>0?()=>Og.maxHeaderSize:()=>{throw new Ke("http module not available or http.maxHeaderSize invalid")},$9=()=>{};function sG(t){return t[sE]??t[ft]?.defaultPipelining??1}var WS=class extends SNe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:d,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:E,tls:w,strictContentLength:p,maxCachedSessions:y,connect:N,maxRequestsPerClient:D,localAddress:U,maxResponseSize:v,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:_,allowH2:Ne,useH2c:Ge,initialWindowSize:ue,connectionWindowSize:fe,pingInterval:Ie}={}){if(c!==void 0)throw new Ke("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new Ke("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Ke("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new Ke("unsupported idleTimeout, use keepAliveTimeout instead");if(d!==void 0)throw new Ke("unsupported maxK Line truncated
`,this[HNe]=a??3e5,this[_Ne]=s??3e5,this[GNe]=p??!0,this[JS]=D,this[Wo]=null,this[WNe]=v>-1?v:-1,this[ft]=null,this[KNe]=_??100,this[XNe]=ue??262144,this[jNe]=fe??524288,this[ZNe]=Ie??6e4,this[bn]=[],this[Ki]=0,this[wn]=0,this[Ko]=lt=>zS(this,lt),this[zNe]=lt=>nG(this,lt)}get pipelining(){return this[sE]}set pipelining(e){this[sE]=e,this[Ko](!0)}get stats(){return new wNe(this)}get[qg](){return this[bn].length-this[wn]}get[Yg](){return this[wn]-this[Ki]}get[_g](){return this[bn].length-this[Ki]}get[FNe](){return!!this[ft]&&!this[Du]&&!this[ft].destroyed}get[VS](){return!!(this[ft]?.busy(null)||this[_g]>=(sG(this)||1)||this[qg]>0)}[kNe](e){iG(this),this.once("connect",e)}[JNe](e,r){let s=new NNe(this[Zn].origin,e,r);return this[bn].push(s),this[gA]||(dA.bodyLength(s.body)==null&&dA.isIterable(s.body)?(this[gA]=1,queueMicrotask(()=>zS(this))):this[Ko](!0)),this[gA]&&this[zo]!==2&&this[VS]&&(this[zo]=2),this[zo]<2}[qNe](){return new Promise(e=>{this[_g]?this[Wo]=e:e(null)})}[VNe](e){return new Promise(r=>{let s=this[bn].splice(this[wn]);for(let i=0;i<s.length;i++){let o=s[i];dA.errorRequest(this,o,e)}let n=()=>{this[Wo]&&(this[Wo](),this[Wo]=null),r(null)};this[ft]?(this[ft].destroy(e,n),this[ft]=null):queueMicrotask(n),this[Ko]()})}};function nG(t,e){if(t[Yg]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){zi(t[wn]===t[Ki]);let r=t[bn].splice(t[Ki]);for(let s=0;s<r.length;s++){let n=r[s];dA.errorRequest(t,n,e)}zi(t[_g]===0)}}function iG(t){zi(!t[Du]),zi(!t[ft]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");zi(i!==-1);let o=r.substring(1,i);zi(rG.isIPv6(o)),r=o}t[Du]=!0,Tu.beforeConnect.hasSubscribers&&Tu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg]}),t[Hg]({host:e,hostname:r,protocol:s,port:n,servername:t[Xo],localAddress:t[Gg]},(i,o)=>{if(i){eG(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}if(t.destroyed){dA.destroy(o.on("error",$9),new DNe),t[Ko]();return}zi(o);try{t[ft]=o.alpnProtocol==="h2"?eSe(t,o):$Ne(t,o)}catch(a){o.destroy().on("error",$9),eG(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Ko]();return}t[Du]=!1,o[YNe]=0,o[JS]=t[JS],o[RNe]=t,o[UNe]=null,Tu.connected.hasSubscribers&&Tu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],socket:o}),t.emit("connect",t[Zn],[t]),t[Ko]()})}function eG(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Du]=!1,Tu.connectError.hasSubscribers&&Tu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[ft]?.version,servername:t[Xo],localAddress:t[Gg]},connector:t[Hg],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(zi(t[Yg]===0);t[qg]>0&&t[bn][t[wn]].servername===t[Xo];){let o=t[bn][t[wn]++];dA.errorRequest(t,o,e)}else nG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function tG(t){t[zo]=0,t.emit("drain",t[Zn],[t])}function zS(t,e){t[gA]!==2&&(t[gA]=2,rSe(t,e),t[gA]=0,t[Ki]>256&&(t[bn].splice(0,t[Ki]),t[wn]-=t[Ki],t[Ki]=0))}function rSe(t,e){for(;;){if(t.destroyed){zi(t[qg]===0);return}if(t[Wo]&&!t[_g]){t[Wo](),t[Wo]=null;return}if(t[ft]&&t[ft].resume(),t[VS])t[zo]=2;else if(t[zo]===2){e?(t[zo]=1,queueMicrotask(()=>tG(t))):tG(t);continue}if(t[qg]===0||t[Yg]>=(sG(t)||1))return;let r=t[bn][t[wn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[Xo]!==r.servername){if(t[Yg]>0)return;t[Xo]=r.servername,t[ft]?.destroy(new TNe("servername changed"),()=>{t[ft]=null,zS(t)})}if(t[Du])return;if(!t[ft]){iG(t);return}if(t[ft].destroyed||t[ft].busy(r))return;!r.aborted&&t[ft].write(r)?t[wn]++:t[bn].splice(t[wn],1)}}oG.exports=WS});var KS=m((yXe,aG)=>{"use strict";var nE=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aG.exports=class{constructor(){this.head=this.tail=new nE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var iE=m((bXe,mG)=>{"use strict";var{PoolStats:sSe}=ON(),nSe=oA(),iSe=KS(),{kConnected:XS,kSize:AG,kRunning:cG,kPending:uG,kQueued:Vg,kBusy:oSe,kFree:aSe,kUrl:ASe,kClose:cSe,kDestroy:uSe,kDispatch:lSe}=Me(),Pt=Symbol("clients"),dr=Symbol("needDrain"),Jg=Symbol("queue"),jS=Symbol("closed resolve"),ZS=Symbol("onDrain"),lG=Symbol("onConnect"),dG=Symbol("onDisconnect"),gG=Symbol("onConnectionError"),$S=Symbol("get dispatcher"),hG=Symbol("add client"),fG=Symbol("remove client"),eT=class extends nSe{[Jg]=new iSe;[Vg]=0;[Pt]=[];[dr]=!1;[ZS](e,r,s){let n=this[Jg],i=!1;for(;!i;){let o=n.shift();if(!o)break;this[Vg]--,i Line truncated
`,"latin1"),r!==null&&n!==r){if(s[$S])throw new hA;process.emitWarning(new hA)}e[Xe].timeout&&e[Xe].timeoutType===Lu&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[Ki]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Jo]=!1,e&&(re(s[St]<=1,"pipeline should only contain this request"),n(e))}};RG.exports=MNe});var HG=m((Oje,_G)=>{"use strict";var Vs=Q("node:assert"),{pipeline:JNe}=Q("node:stream"),fe=ue(),{RequestContentLengthMismatchError:AT,RequestAbortedError:WNe,SocketError:Xg,InformationalError:Wo,InvalidArgumentError:zNe}=Ae(),{kUrl:Kg,kReset:EE,kClient:us,kRunning:jg,kPending:KNe,kQueue:zo,kPendingIdx:uT,kRunningIdx:wn,kError:ls,kSocket:it,kStrictContentLength:XNe,kOnError:Pu,kMaxConcurrentStreams:mE,kPingInterval:FG,kHTTP2Session:Xi,kHTTP2InitialWindowSize:jNe,kHTTP2ConnectionWindowSize:ZNe,kResume:jn,kSize:$Ne,kHTTPContext:lT,kClosed:cT,kBodyTimeout:eSe,kEnableConnectProtocol:Wg,kRemoteSettings:zg,kHTTP2Stream:fE,kHTTP2SessionState:dT}=Ue(),{channels:MG}=Yo(),qs=Symbol("open streams"),UG,pE;try{pE=Q("node:http2")}catch{pE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tSe,HTTP2_HEADER_METHOD:LG,HTTP2_HEADER_PATH:PG,HTTP2_HEADER_SCHEME:iT,HTTP2_HEADER_CONTENT_LENGTH:rSe,HTTP2_HEADER_EXPECT:sSe,HTTP2_HEADER_STATUS:oT,HTTP2_HEADER_PROTOCOL:nSe,NGHTTP2_REFUSED_STREAM:iSe,NGHTTP2_CANCEL:oSe}}=pE;function aT(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function aSe(t,e){t[it]=e;let r=t[jNe],s=t[ZNe],n=pE.connect(t[Kg],{createConnection:()=>e,peerMaxConcurrentStreams:t[mE],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[it]=e,n[qs]=0,n[us]=t,n[it]=e,n[dT]={ping:{interval:t[FG]===0?null:setInterval(lSe,t[FG],n).unref()}},n[Wg]=!1,n[zg]=!1,s&&fe.addListener(n,"connect",cSe.bind(n,s)),fe.addListener(n,"error",dSe),fe.addListener(n,"frameError",gSe),fe.addListener(n,"end",hSe),fe.addListener(n,"goaway",fSe),fe.addListener(n,"close",mSe),fe.addListener(n,"remoteSettings",uSe),n.unref(),t[Xi]=n,e[Xi]=n,fe.addListener(e,"error",ESe),fe.addListener(e,"end",CSe),fe.addListener(e,"close",pSe),e[cT]=!1,e.on("close",ISe),{version:"h2",defaultPipelining:1/0,write(i){return QSe(t,i)},resume(){ASe(t)},destroy(i,o){e[cT]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[jg]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[zg]===!1||fe.bodyLength(i.body)!==0&&(fe.isStream(i.body)||fe.isAsyncIterable(i.body)||fe.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[zg]===!1;return!1}}}function ASe(t){let e=t[it];e?.destroyed===!1&&(t[$Ne]===0||t[mE]===0?(e.unref(),t[Xi].unref()):(e.ref(),t[Xi].ref()))}function cSe(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uSe(t){if(this[us][mE]=t.maxConcurrentStreams??this[us][mE],this[zg]===!0&&this[Wg]===!0&&t.enableConnectProtocol===!1){let e=new Wo("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[it][ls]=e,this[us][Pu](e);return}this[Wg]=t.enableConnectProtocol??this[Wg],this[zg]=!0,this[us][jn]()}function lSe(t){let e=t[dT];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[us],o=this[us];if(s!=null){let a=new Wo(`HTTP/2: "PING" errored - type ${s.message}`);o[ls]=a,i[Pu](a)}else i.emit("ping",n)}}function dSe(t){Vs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[it][ls]=t,this[us][Pu](t)}function gSe(t,e,r){if(r===0){let s=new Wo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[it][ls]=s,this[us][Pu](s)}}function hSe(){let t=new Xg("other side closed",fe.getSocketInfo(this[it]));this.destroy(t),fe.destroy(this[it],t)}function fSe(t){let e=this[ls]||new Xg(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this[it])),r=this[us];if(r[it]=null,r[lT]=null,this.close(),this[Xi]=null,fe.destroy(this[it],e),r[wn]<r[zo].length){let s=r[zo][r[wn]];r[zo][r[wn]++]=null,fe.errorRequest(r,s,e),r[uT]=r[wn]}Vs(r[jg]===0),r.emit("disconnect",r[Kg],[r],e),r.emit("connectionError",r[Kg],[r],e),r[jn]()}function mSe(){let{[us]:t,[dT]:e}=this,{[it]:r}=t,s=this[it][ls]||this[ls]||new Xg("closed",fe.getSocketInfo(r));if(t[it]=null,t[lT]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Vs(t[KNe]===0);let n=t[zo].splice(t[wn]);for(let i=0;i<n.length;i++){let o=n[i];fe.errorRequest(t,o,s)}}}function pSe(){let t=this[ls]||new Xg("closed",fe.getSocketInfo(this)),e=this[Xi][us];e[it]=null,e[lT]=null,this[Xi]!==null&&this[Xi].destroy(t),e[uT]=e[wn],Vs(e[jg]===0),e.emit("disconnect",e[Kg],[e],t),e[jn]()}function ESe(t){Vs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ls]=t,this[us][Pu](t)}function CSe(){fe.destroy(this,new Xg("other side closed",fe.getSocketInfo(this)))}function ISe() Line truncated
`;MG.sendHeaders.publish({request:e,headers:F,socket:s[it]})}let x=n==="GET"||n==="HEAD"||g===null;A?(h[sSe]="100-continue",f=s.request(h,{endStream:x,signal:c}),f[fE]=!0,f.once("continue",P)):(f=s.request(h,{endStream:x,signal:c}),f[fE]=!0,P()),++s[qs],f.setTimeout(r);let k=!1;return f.once("response",F=>{let{[oT]:v,..._}=F;if(e.onResponseStarted(),k=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(v),aT(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",me=>{e.aborted||e.completed||e.onData(me)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),k?(!e.aborted&&!e.completed&&e.onComplete({}),t[zo][t[wn]++]=null,t[jn]()):(E(new Wo("HTTP/2: stream half-closed (remote)")),t[zo][t[wn]++]=null,t[uT]=t[wn],t[jn]())}),f.once("close",()=>{f.removeAllListeners("data"),s[qs]-=1,s[qs]===0&&s.unref()}),f.once("error",function(F){f.removeAllListeners("data"),E(F)}),f.once("frameError",(F,v)=>{f.removeAllListeners("data"),E(new Wo(`HTTP/2: "frameError" received - type ${F}, code ${v}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let F=new Wo(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[qs]-=1,s[qs]===0&&s.unref(),E(F)}),f.once("trailers",F=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(F))}),!0;function P(){!g||N===0?vG(E,f,null,t,e,t[it],N,b):fe.isBuffer(g)?vG(E,f,g,t,e,t[it],N,b):fe.isBlobLike(g)?typeof g.stream=="function"?OG(E,f,g.stream(),t,e,t[it],N,b):bSe(E,f,g,t,e,t[it],N,b):fe.isStream(g)?ySe(E,t[it],b,f,g,t,e,N):fe.isIterable(g)?OG(E,f,g,t,e,t[it],N,b):Vs(!1)}}function vG(t,e,r,s,n,i,o,a){try{r!=null&&fe.isBuffer(r)&&(Vs(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[EE]=!0),n.onRequestSent(),s[jn]()}catch(A){t(A)}}function ySe(t,e,r,s,n,i,o,a){Vs(a!==0||i[jg]===0,"stream body cannot be pipelined");let A=JNe(n,s,u=>{u?(fe.destroy(A,u),t(u)):(fe.removeAllListeners(A),o.onRequestSent(),r||(e[EE]=!0),i[jn]())});fe.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function bSe(t,e,r,s,n,i,o,a){Vs(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new AT;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[EE]=!0),s[jn]()}catch(A){t(A)}}async function OG(t,e,r,s,n,i,o,a){Vs(o!==0||s[jg]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,g)=>{Vs(A===null),i[ls]?g(i[ls]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ls])throw i[ls];let g=e.write(l);n.onBodySent(l),g||await u()}e.end(),n.onRequestSent(),a||(i[EE]=!0),s[jn]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}_G.exports=aSe});var Zo=m((_je,KG)=>{"use strict";var ji=Q("node:assert"),VG=Q("node:net"),Zg=Q("node:http"),CA=ue(),{ClientStats:wSe}=iS(),{channels:vu}=Yo(),NSe=i9(),SSe=cA(),{InvalidArgumentError:je,InformationalError:TSe,ClientDestroyedError:DSe}=Ae(),xSe=uA(),{kUrl:Zn,kServerName:jo,kClient:RSe,kBusy:hT,kConnect:kSe,kResuming:IA,kRunning:rh,kPending:sh,kSize:$g,kQueue:Nn,kConnected:FSe,kConnecting:Ou,kNeedDrain:Xo,kKeepAliveDefaultTimeout:GG,kHostHeader:MSe,kPendingIdx:Sn,kRunningIdx:$i,kError:USe,kPipelining:CE,kKeepAliveTimeoutValue:LSe,kMaxHeadersSize:PSe,kKeepAliveMaxTimeout:vSe,kKeepAliveTimeoutThreshold:OSe,kHeadersTimeout:_Se,kBodyTimeout:HSe,kStrictContentLength:GSe,kConnector:eh,kMaxRequests:fT,kCounter:YSe,kClose:qSe,kDestroy:VSe,kDispatch:JSe,kLocalAddress:th,kMaxResponseSize:WSe,kOnError:zSe,kHTTPContext:mt,kMaxConcurrentStreams:KSe,kHTTP2InitialWindowSize:XSe,kHTTP2ConnectionWindowSize:jSe,kResume:Zi,kPingInterval:ZSe}=Ue(),$Se=kG(),eTe=HG(),Ko=Symbol("kClosedResolve"),tTe=Zg&&Zg.maxHeaderSize&&Number.isInteger(Zg.maxHeaderSize)&&Zg.maxHeaderSize>0?()=>Zg.maxHeaderSize:()=>{throw new je("http module not available or http.maxHeaderSize invalid")},YG=()=>{};function JG(t){return t[CE]??t[mt]?.defaultPipelining??1}var mT=class extends SSe{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:g,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:y,strictContentLength:E,maxCachedSessions:b,connect:N,maxRequestsPerClient:x,localAddress:k,maxResponseSize:P,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:v,maxConcurrentStreams:_,allowH2:me,useH2c:De,initialWindowSize:oe,connectionWindowSize:pe,pingInterval:he,webSocket:Bt}={}){if(c!==void 0)throw new je("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new je("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new je("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new je("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new je("uns Line truncated
`,this[HSe]=a??3e5,this[_Se]=s??3e5,this[GSe]=E??!0,this[fT]=x,this[Ko]=null,this[WSe]=P>-1?P:-1,this[mt]=null,this[KSe]=_??100,this[XSe]=oe??262144,this[jSe]=pe??524288,this[ZSe]=he??6e4,this[Nn]=[],this[$i]=0,this[Sn]=0,this[Zi]=Qt=>pT(this,Qt),this[zSe]=Qt=>WG(this,Qt)}get pipelining(){return this[CE]}set pipelining(e){this[CE]=e,this[Zi](!0)}get stats(){return new wSe(this)}get[sh](){return this[Nn].length-this[Sn]}get[rh](){return this[Sn]-this[$i]}get[$g](){return this[Nn].length-this[$i]}get[FSe](){return!!this[mt]&&!this[Ou]&&!this[mt].destroyed}get[hT](){return!!(this[mt]?.busy(null)||this[$g]>=(JG(this)||1)||this[sh]>0)}[kSe](e){zG(this),this.once("connect",e)}[JSe](e,r){let s=new NSe(this[Zn].origin,e,r);return this[Nn].push(s),this[IA]||(CA.bodyLength(s.body)==null&&CA.isIterable(s.body)?(this[IA]=1,queueMicrotask(()=>pT(this))):this[Zi](!0)),this[IA]&&this[Xo]!==2&&this[hT]&&(this[Xo]=2),this[Xo]<2}[qSe](){return new Promise(e=>{this[$g]?this[Ko]=e:e(null)})}[VSe](e){return new Promise(r=>{let s=this[Nn].splice(this[Sn]);for(let i=0;i<s.length;i++){let o=s[i];CA.errorRequest(this,o,e)}let n=()=>{this[Ko]&&(this[Ko](),this[Ko]=null),r(null)};this[mt]?(this[mt].destroy(e,n),this[mt]=null):queueMicrotask(n),this[Zi]()})}};function WG(t,e){if(t[rh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ji(t[Sn]===t[$i]);let r=t[Nn].splice(t[$i]);for(let s=0;s<r.length;s++){let n=r[s];CA.errorRequest(t,n,e)}ji(t[$g]===0)}}function zG(t){ji(!t[Ou]),ji(!t[mt]);let{host:e,hostname:r,protocol:s,port:n}=t[Zn];if(r[0]==="["){let i=r.indexOf("]");ji(i!==-1);let o=r.substring(1,i);ji(VG.isIPv6(o)),r=o}t[Ou]=!0,vu.beforeConnect.hasSubscribers&&vu.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh]});try{t[eh]({host:e,hostname:r,protocol:s,port:n,servername:t[jo],localAddress:t[th]},(i,o)=>{if(i){gT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Zi]();return}if(t.destroyed){CA.destroy(o.on("error",YG),new DSe),t[Zi]();return}ji(o);try{t[mt]=o.alpnProtocol==="h2"?eTe(t,o):$Se(t,o)}catch(a){o.destroy().on("error",YG),gT(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Zi]();return}t[Ou]=!1,o[YSe]=0,o[fT]=t[fT],o[RSe]=t,o[USe]=null,vu.connected.hasSubscribers&&vu.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh],socket:o}),t.emit("connect",t[Zn],[t]),t[Zi]()})}catch(i){gT(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Zi]()}}function gT(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[Ou]=!1,vu.connectError.hasSubscribers&&vu.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[mt]?.version,servername:t[jo],localAddress:t[th]},connector:t[eh],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ji(t[rh]===0);t[sh]>0&&t[Nn][t[Sn]].servername===t[jo];){let o=t[Nn][t[Sn]++];CA.errorRequest(t,o,e)}else WG(t,e);t.emit("connectionError",t[Zn],[t],e)}}function qG(t){t[Xo]=0,t.emit("drain",t[Zn],[t])}function pT(t,e){t[IA]!==2&&(t[IA]=2,rTe(t,e),t[IA]=0,t[$i]>256&&(t[Nn].splice(0,t[$i]),t[Sn]-=t[$i],t[$i]=0))}function rTe(t,e){for(;;){if(t.destroyed){ji(t[sh]===0);return}if(t[Ko]&&!t[$g]){t[Ko](),t[Ko]=null;return}if(t[mt]&&t[mt].resume(),t[hT])t[Xo]=2;else if(t[Xo]===2){e?(t[Xo]=1,queueMicrotask(()=>qG(t))):qG(t);continue}if(t[sh]===0||t[rh]>=(JG(t)||1))return;let r=t[Nn][t[Sn]];if(r===null)return;if(t[Zn].protocol==="https:"&&t[jo]!==r.servername){if(t[rh]>0)return;t[jo]=r.servername,t[mt]?.destroy(new TSe("servername changed"),()=>{t[mt]=null,pT(t)})}if(t[Ou])return;if(!t[mt]){zG(t);return}if(t[mt].destroyed||t[mt].busy(r))return;!r.aborted&&t[mt].write(r)?t[Sn]++:t[Nn].splice(t[Sn],1)}}KG.exports=mT});var ET=m((Gje,XG)=>{"use strict";var IE=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};XG.exports=class{constructor(){this.head=this.tail=new IE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new IE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var BE=m((Yje,iY)=>{"use strict";var{PoolStats:sTe}=iS(),nTe=cA(),iTe=ET(),{kConnected:CT,kSize:jG,kRunning:ZG,kPending:$G,kQueued:nh,kBusy:oTe,kFree:aTe,kUrl:ATe,kClose:cTe,kDestroy:uTe,kDispatch:lTe}=Ue(),Ht=Symbol("clients"),Er=Symbol("needDrain"),ih=Symbol("queue"),IT=Symbol("closed resolve"),BT=Symbol("onDrain"),eY=Symbol("onConnect"),tY=Symbol("onDisconnect"),rY=Symbol("onConnectionError"),QT=Symbol("get dispatcher"),sY=Symbol("add client"),nY=Symbol("remove client"),yT=class extends nTe{[ih]=new iTe;[nh]=0;[Ht]=[];[Er]=!1;[BT](e,r,s){le Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{InvalidArgumentError:ADe}=oe(),{runtimeFeatures:cDe}=Vi();function uDe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Oq=cDe.has("crypto")?Q("node:crypto"):null,lDe=Oq?.hash?t=>Oq.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Hq(t){return Array.isArray(t)&&(t.length&1)===0}function dDe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function gDe(t){let e={};if(!t)return e;if(Hq(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var _q=["record","playback","update"];function hDe(t){if(!_q.includes(t))throw new ADe(`Invalid snapshot mode: ${t}. Must be one of: ${_q.join(", ")}`)}Gq.exports={createHeaderFilters:uDe,hashId:lDe,isUndiciHeaders:Hq,normalizeHeaders:gDe,isUrlExcludedFactory:dDe,validateSnapshotMode:hDe}});var jq=m((rje,Xq)=>{"use strict";var{writeFile:fDe,readFile:mDe,mkdir:pDe}=Q("node:fs/promises"),{dirname:EDe,resolve:Yq}=Q("node:path"),{setTimeout:CDe,clearTimeout:qq}=Q("node:timers"),{InvalidArgumentError:Vq,UndiciError:IDe}=oe(),{hashId:BDe,isUrlExcludedFactory:QDe,normalizeHeaders:Jq,createHeaderFilters:Wq}=p2();function oh(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||Jq(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:zq(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function zq(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Kq(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function ah(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return BDe(r)}var E2=class{#e;#t;#r=new Map;#s;#i=1/0;#n=!1;#a;constructor(e={}){this.#s=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#n=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Wq(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=QDe(e.excludeUrls),this.#n&&this.#s&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=oh(e,this.#a,this.matchOptions),n=ah(s),i=Jq(r.headers),o={statusCode:r.statusCode,headers:Kq(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#n&&this.#s&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=oh(e,this.#a,this.matchOptions),s=ah(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#s;if(!r)throw new Vq("Snapshot path is required");try{let s=await mDe(Yq(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new IDe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#s;if(!r)throw new Vq("Snapshot path is required");let s=Yq(r);await pDe(EDe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fDe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
${e.format(r)}`.trim())}};xV.exports=H2});var Y2=m((IZe,MV)=>{"use strict";var{InvalidArgumentError:axe}=Ae(),{runtimeFeatures:Axe}=Wi();function cxe(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var RV=Axe.has("crypto")?Q("node:crypto"):null,uxe=RV?.hash?t=>RV.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function FV(t){return Array.isArray(t)&&(t.length&1)===0}function lxe(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function dxe(t){let e={};if(!t)return e;if(FV(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var kV=["record","playback","update"];function gxe(t){if(!kV.includes(t))throw new axe(`Invalid snapshot mode: ${t}. Must be one of: ${kV.join(", ")}`)}MV.exports={createHeaderFilters:cxe,hashId:uxe,isUndiciHeaders:FV,normalizeHeaders:dxe,isUrlExcludedFactory:lxe,validateSnapshotMode:gxe}});var YV=m((BZe,GV)=>{"use strict";var{writeFile:hxe,readFile:fxe,mkdir:mxe}=Q("node:fs/promises"),{dirname:pxe,resolve:UV}=Q("node:path"),{setTimeout:Exe,clearTimeout:LV}=Q("node:timers"),{InvalidArgumentError:PV,UndiciError:Cxe}=Ae(),{hashId:Ixe,isUrlExcludedFactory:Bxe,normalizeHeaders:vV,createHeaderFilters:OV}=Y2();function ph(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||vV(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:_V(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function _V(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function HV(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function Eh(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Ixe(r)}var q2=class{#e;#t;#r=new Map;#n;#i=1/0;#s=!1;#a;constructor(e={}){this.#n=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=OV(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Bxe(e.excludeUrls),this.#s&&this.#n&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=ph(e,this.#a,this.matchOptions),n=Eh(s),i=vV(r.headers),o={statusCode:r.statusCode,headers:HV(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#r.size>=this.#i&&!this.#r.has(n)){let A=this.#r.keys().next().value;this.#r.delete(A)}let a=this.#r.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#r.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#n&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=ph(e,this.#a,this.matchOptions),s=Eh(r),n=this.#r.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#n;if(!r)throw new PV("Snapshot path is required");try{let s=await fxe(UV(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#r.clear();for(let{hash:i,snapshot:o}of n)this.#r.set(i,o)}else this.#r=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#r.clear();else throw new Cxe(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#n;if(!r)throw new PV("Snapshot path is required");let s=UV(r);await mxe(pxe(s),{recursive:!0});let n=Array.from(this.#r.entries()).map(([i,o])=>({hash:i,snapshot:o}));await hxe(s,JSON.stringify(n,null,2),{flush:!0}) Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
PRAGMA optimize;
CREATE TABLE IF NOT EXISTS cacheInterceptorV${as} (
CREATE TABLE IF NOT EXISTS cacheInterceptorV${gs} (
-- Data specific to us
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT NOT NULL,
@@ -117,9 +117,9 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
staleAt INTEGER NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${as}_getValuesQuery ON cacheInterceptorV${as}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${as}_deleteByUrlQuery ON cacheInterceptorV${as}(deleteAt);
`),this.#s=this.#r.prepare(`
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_getValuesQuery ON cacheInterceptorV${gs}(url, method, deleteAt);
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${gs}_deleteByUrlQuery ON cacheInterceptorV${gs}(deleteAt);
`),this.#n=this.#r.prepare(`
SELECT
id,
body,
@@ -132,14 +132,14 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
vary,
cachedAt,
staleAt
FROM cacheInterceptorV${as}
FROM cacheInterceptorV${gs}
WHERE
url = ?
AND method = ?
ORDER BY
deleteAt ASC
`),this.#i=this.#r.prepare(`
UPDATE cacheInterceptorV${as} SET
UPDATE cacheInterceptorV${gs} SET
body = ?,
deleteAt = ?,
statusCode = ?,
@@ -151,8 +151,8 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
staleAt = ?
WHERE
id = ?
`),this.#n=this.#r.prepare(`
INSERT INTO cacheInterceptorV${as} (
`),this.#s=this.#r.prepare(`
INSERT INTO cacheInterceptorV${gs} (
url,
method,
body,
@@ -166,55 +166,55 @@ ${e.format(r)}`.trim())}};vq.exports=f2});var p2=m((tje,Gq)=>{"use strict";var{I
cachedAt,
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${as} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${as}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${as} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${as}
`),this.#o=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE url = ?`),this.#A=this.#r.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${gs}`),this.#a=this.#r.prepare(`DELETE FROM cacheInterceptorV${gs} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#r.prepare(`
DELETE FROM cacheInterceptorV${gs}
WHERE id IN (
SELECT
id
FROM cacheInterceptorV${as}
ORDER BY cachedAt DESC
FROM cacheInterceptorV${gs}
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#r.close()}get(e){_2(e);let r=this.#l(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){_2(e);let s=this.#u(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#l(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#d(),this.#n.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){_2(e),ARe(r);let s=0,n=[],i=this;return new aRe({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#u(e))}#d(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#u(e){return`${e.origin}/${e.path}`}#l(e,r=!1){let s=this.#u(e),{headers:n,method:i}=e,o=this.#s.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let d in u)if(!cRe(n[d],u[d])){c=!1;break}}if(c)return A}}};function cRe(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var SA=m((bje,nJ)=>{"use strict";var{kConstruct:uRe}=Me(),{kEnumerableProperty:qu}=ce(),{iteratorMixin:lRe,isValidHeaderName:lh,isValidHeaderValue:$V}=rs(),{webidl:ye}=Yt(),G2=Q("node:assert"),LE=Q("node:util");function ZV(t){return t===10||t===13||t===9||t===32}function eJ(t){let e=0,r=t.length;for(;r>e&&ZV(t.charCodeAt(r-1));)--r;for(;r>e&&ZV(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function tJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw ye.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});Y2(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)Y2(t,r[s],e[r[s]])}else throw ye.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function Y2(t,e,r){if(r=eJ(r),lh(e)){if(!$V(r))throw ye.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw ye.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sJ(t)==="immutable")throw new TypeError("immutable");return vE(t).append(e,r,!1)}function dRe(t){let e=vE(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function rJ(t,e){return t[0]<e[0]?-1:1}var PE=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!==0)for(let Line truncated
${i}`;break;case"retry":lW(i)&&(r[n]=i);break;case"id":dW(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&lW(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&dW(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};gW.exports={EventSourceStream:ND}});var QW=m((Kje,BW)=>{"use strict";var{pipeline:DUe}=Q("node:stream"),{fetching:xUe}=mh(),{makeRequest:RUe}=Ju(),{webidl:hr}=Yt(),{EventSourceStream:kUe}=hW(),{parseMIMEType:FUe}=vs(),{createFastMessageEvent:MUe}=cC(),{isNetworkError:fW}=gh(),{kEnumerableProperty:UA}=ce(),{environmentSettingsObject:mW}=rs(),pW=!1,EW=3e3,yh=0,CW=1,bh=2,UUe="anonymous",LUe="use-credentials",rl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#s=yh;#i=null;#n=null;#a;#o;constructor(e,r={}){super(),hr.util.markAsUncloneable(this);let s="EventSource constructor";hr.argumentLengthCheck(arguments,1,s),pW||(pW=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=hr.converters.USVString(e),r=hr.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=mW,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=UUe;r.withCredentials===!0&&(o=LUe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=mW.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=RUe(a),this.#A()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#s===bh)return;this.#s=yh;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!fW(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(fW(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?FUe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=CW,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new kUe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(MUe(A.type,A.options))}});DUe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=xUe(e)}#c(){this.#s!==bh&&(this.#s=yh,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#s===yh&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){hr.brandCheck(this,t),this.#s!==bh&&(this.#s=bh,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=hr.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},IW={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:yh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:CW,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:bh,writable:!1}};Object.defineProperties(rl,IW);Object.defineProperties(rl.prototype,IW);Object.defineProperties(rl.prototype,{close:UA,onerror:UA,onmessage:UA,onopen:UA,readyState:UA,url:UA,withCredentials:UA});hr.converters.EventSourceInitDict=hr.dictionaryConverter([{key:"withCredentials",converter:hr.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:hr.converters.any},{key:"node",converter:hr.dictionaryConverter([{key:"reconnectionTime",converter:hr.converters["unsigned long"],defaultValue:()=>EW},{key:"dispatcher",converter:hr.converters.any}]),defaultValue:()=>({})}]);BW.exports={EventSource:rl,defaultReconnectionTime:EW}});var TW=m((Xje,H)=>{"use strict";var PUe=jo(),bW=Qg(),vUe=hA(),OUe=bG(),_Ue=TG(),HUe=pA(),GUe=IT(),YUe=mT(),qUe=lY(),VUe=pY(),JUe=IY(),wW=oe(),QC=ce(),{InvalidArgumentError:BC}=wW,sl=tq(),WUe=aA(),zUe=n2(),{MockCallHistory:KUe,MockCallHistoryLog:XUe}=a2(),jUe=m2( Line truncated
`)}close(){this.#r.close()}get(e){ED(e);let r=this.#d(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){ED(e);let s=this.#l(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#d(e,!0);o?this.#i.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){ED(e),bke(r);let s=0,n=[],i=this;return new yke({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#l(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#l(e){return`${e.origin}/${e.path}`}#d(e,r=!1){let s=this.#l(e),{headers:n,method:i}=e,o=this.#n.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)continue;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!wke(n[l],u[l])){c=!1;break}}if(c)return A}}};function wke(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var PA=m((YZe,lJ)=>{"use strict";var{kConstruct:Nke}=Ue(),{kEnumerableProperty:sl}=ue(),{iteratorMixin:Ske,isValidHeaderName:wh,isValidHeaderValue:oJ}=As(),{webidl:be}=Wt(),ID=Q("node:assert"),ZE=Q("node:util");function iJ(t){return t===10||t===13||t===9||t===32}function aJ(t){let e=0,r=t.length;for(;r>e&&iJ(t.charCodeAt(r-1));)--r;for(;r>e&&iJ(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function AJ(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw be.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});BD(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)BD(t,r[s],e[r[s]])}else throw be.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function BD(t,e,r){if(r=aJ(r),wh(e)){if(!oJ(r))throw be.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw be.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(uJ(t)==="immutable")throw new TypeError("immutable");return eC(t).append(e,r,!1)}function Tke(t){let e=eC(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function cJ(t,e){return t[0]<e[0]?-1:1}var $E=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.val Line truncated
${i}`;break;case"retry":mz(i)&&(r[n]=i);break;case"id":pz(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&mz(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&pz(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Ez.exports={EventSourceStream:ax}});var Sz=m((h$e,Nz)=>{"use strict";var{pipeline:qLe}=Q("node:stream"),{fetching:VLe}=xh(),{makeRequest:JLe}=il(),{webidl:Ir}=Wt(),{EventSourceStream:WLe}=Cz(),{parseMIMEType:zLe}=Hs(),{createFastMessageEvent:KLe}=wC(),{isNetworkError:Iz}=Sh(),{kEnumerableProperty:VA}=ue(),{environmentSettingsObject:Bz}=As(),Qz=!1,yz=3e3,Ph=0,bz=1,vh=2,XLe="anonymous",jLe="use-credentials",fl=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#r=!1;#n=Ph;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ir.util.markAsUncloneable(this);let s="EventSource constructor";Ir.argumentLengthCheck(arguments,1,s),Qz||(Qz=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ir.converters.USVString(e),r=Ir.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=Bz,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XLe;r.withCredentials===!0&&(o=jLe,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Bz.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=JLe(a),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===vh)return;this.#n=Ph;let e={request:this.#i,dispatcher:this.#a},r=s=>{if(!Iz(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Iz(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?zLe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=bz,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new WLe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KLe(A.type,A.options))}});qLe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=VLe(e)}#c(){this.#n!==vh&&(this.#n=Ph,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#n===Ph&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Ir.brandCheck(this,t),this.#n!==vh&&(this.#n=vh,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Ir.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},wz={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ph,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bz,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:vh,writable:!1}};Object.defineProperties(fl,wz);Object.defineProperties(fl.prototype,wz);Object.defineProperties(fl.prototype,{close:VA,onerror:VA,onmessage:VA,onopen:VA,readyState:VA,url:VA,withCredentials:VA});Ir.converters.EventSourceInitDict=Ir.dictionaryConverter([{key:"withCredentials",converter:Ir.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ir.converters.any},{key:"node",converter:Ir.dictionaryConverter([{key:"reconnectionTime",converter:Ir.converters["unsigned long"],defaultValue:()=>yz},{key:"dispatcher",converter:Ir.converters.any}]),defaultValue:()=>({})}]);Nz.exports={EventSource:fl,defaultReconnectionTime:yz}});var Fz=m((f$e,H)=>{"use strict";var ZLe=Zo(),Dz=Lg(),$Le=BA(),ePe=gY(),tPe=pY(),rPe=bA(),sPe=VT(),nPe=HT(),iPe=rq(),oPe=cq(),aPe=dq(),xz=Ae(),vC=ue(),{InvalidArgumentError:PC}=xz,ml=Wq(),APe=uA(),cPe=x2(),{MockCallHistory:uPe,MockCallHistoryLog:lPe}=F2(),dPe=G2( Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return oLe(e,r).catch(s=>{throw yW?SW(s,yW):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=SA().Headers;H.exports.Response=gh().Response;H.exports.Request=Ju().Request;H.exports.FormData=V0().FormData;var{setGlobalOrigin:aLe,getGlobalOrigin:ALe}=iS();H.exports.setGlobalOrigin=aLe;H.exports.getGlobalOrigin=ALe;var{CacheStorage:cLe}=a7(),{kConstruct:uLe}=Me();H.exports.caches=new cLe(uLe);var{deleteCookie:lLe,getCookies:dLe,getSetCookies:gLe,setCookie:hLe,parseCookie:fLe}=I7();H.exports.deleteCookie=lLe;H.exports.getCookies=dLe;H.exports.getSetCookies=gLe;H.exports.setCookie=hLe;H.exports.parseCookie=fLe;var{parseMIMEType:mLe,serializeAMimeType:pLe}=vs();H.exports.parseMIMEType=mLe;H.exports.serializeAMimeType=pLe;var{CloseEvent:ELe,ErrorEvent:CLe,MessageEvent:ILe}=cC(),{WebSocket:BLe,ping:QLe}=eW();H.exports.WebSocket=BLe;H.exports.CloseEvent=ELe;H.exports.ErrorEvent=CLe;H.exports.MessageEvent=ILe;H.exports.ping=QLe;H.exports.WebSocketStream=AW().WebSocketStream;H.exports.WebSocketError=BD().WebSocketError;H.exports.request=wh(sl.request);H.exports.stream=wh(sl.stream);H.exports.pipeline=wh(sl.pipeline);H.exports.connect=wh(sl.connect);H.exports.upgrade=wh(sl.upgrade);H.exports.MockClient=zUe;H.exports.MockCallHistory=KUe;H.exports.MockCallHistoryLog=XUe;H.exports.MockPool=ZUe;H.exports.MockAgent=jUe;H.exports.SnapshotAgent=$Ue;H.exports.mockErrors=eLe;var{EventSource:yLe}=QW();H.exports.EventSource=yLe;function bLe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=bLe});var Nh=m(ua=>{"use strict";ua.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ua.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ua.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";ua.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ua.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ua.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ua.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var xW=m(($je,DW)=>{"use strict";var{asciiLowercase:yC,solelyContainsHTTPTokenCodePoints:wLe,soleyContainsHTTPQuotedStringTokenCodePoints:NLe}=Nh();DW.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=yC(String(e)),this._map.get(e)}has(e){return e=yC(String(e)),this._map.has(e)}set(e,r){if(e=yC(String(e)),r=String(r),!wLe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!NLe(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=yC(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var FW=m((eZe,kW)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:SLe,removeTrailingHTTPWhitespace:RW,isHTTPWhitespaceChar:TLe,solelyContainsHTTPTokenCodePoints:SD,soleyContainsHTTPQuotedStringTokenCodePoints:DLe,asciiLowercase:TD,collectAnHTTPQuotedString:xLe}=Nh();kW.exports=t=>{t=SLe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!SD(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=RW(s),s.length===0||!SD(s))return null;let n={type:TD(r),subtype:TD(s),parameters:new Map};for(;e<t.length;){for(++e;TLe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=TD(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=xLe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=RW(o),o==="")continue}i.length>0&&SD(i)&&DLe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var UW=m((tZe,MW)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:RLe}=Nh();MW.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!RLe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var OW=m((sZe,vW)=>{"use strict";var kLe=xW(),FLe=FW(),MLe=UW(),{asciiLowercase:LW,solelyContainsHTTPTokenCodePoints:PW}=Nh();vW.exports=class{constructor(e){e=String(e);let r=FLe(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new kLe(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=LW(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PW(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=LW(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PW(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return MLe(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var KW=m(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.getProxyUrl=XLe;SC.checkBypass=zW;function XLe(t){let e=t.protocol==="https:";if(zW(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new NC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new NC(`http://${r}`)}else return}function zW(t){if(!t.hostname)return!1;let e=t.hostname;if(jLe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostnameLine truncated
%s`,U,U,y,s);var v=y.type==="*"?sx:y.type==="?"?rx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+v+"\\("+U}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var _=a[O],Ne=s.slice(0,_.reStart),Ge=s.slice(_.reStart,_.reEnd-8),ue=s.slice(_.reEnd-8,_.reEnd),fe=s.slice(_.reEnd);ue+=fe;var Ie=Ne.split("(").length-1,lt=fe;for(E=0;E<Ie;E++)lt=lt.replace(/\)[+*?]?/,"");fe=lt;var Es="";fe===""&&e!==LC&&(Es="$");var Ia=Ne+Ge+fe+Es+ue;s=Ia}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=g+s),e===LC)return[s,n];if(!n)return _3e(t);var Ba=r.nocase?"i":"";try{var pB=new RegExp("^"+s+"$",Ba)}catch{return new RegExp("$.")}return pB._glob=t,pB._src=s,pB}ds.makeRe=function(t,e){return new bt(t,e||{}).makeRe()};bt.prototype.makeRe=O3e;function O3e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?sx:e.dot?R3e:k3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===vA?r:typeof o=="string"?H3e(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}ds.match=function(t,e,r){r=r||{};var s=new bt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};bt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Rh.sep!=="/"&&(e=e.split(Rh.sep).join("/")),e=e.split(iK),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};bt.prototype.matchOne=function(t,e,r){return e.indexOf(vA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};bt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===vA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===vA){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var d=t.slice(s,s+A.length);if(!this._matchOne(d,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var E=String(t[i]);if(f=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||f}for(var w=[[[],0]],p=w[0],y=0,N=[0],D=0;D<c.length;D++){var U=c[D];U===vA?(N.push(y),p=[[],0],w.push(p)):(p[0].push(U),y++)}for(var v=w.length-1,k=t.length-g,O=0;O<w.length;O++)w[O][1]=k-(N[v--]+w[O][0].length);return!!this._matchGlobStarBodySections(t,w,s,0,r,0,!!g)};bt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],d=a[1];r<=d;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};bt.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===vA)return!1;var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function _3e(t){return t.replace(/\\(.)/g,"$1")}function H3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Al=m((tet,uK)=>{"use strict";var J3e="2.0.0",W3e=Number.MAX_SAFE_INTEGER||9007199254740991,z3e=16,K3e=250,X3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uK.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:z3e,MAX_SAFE_BUILD_LENGTH:K3e,MAX_SAFE_INTEGER:W3e,RELEASE_TYPES:X3e,SEMVER_SPEC_VERSION:J3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kh=m((ret,lK)=>{"use strict";var j3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};lK.exports=j3e});var cl=m((ci,dK)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nx,MAX_SAFE_BUILD_LENGTH:Z3e,MAX_LENGTH:$3e}=Al(),eve=kh();ci=dK.exports={};var tve=ci.re=[],rve=ci.safeRe=[],G=ci.src=[],sve=ci.safeSrc=[],Y=ci.t={},nve=0,ix="[a-zA-Z0-9-]",ive=[["\\s",1],["\\d",$3e],[ix,Z3e]],ove=t=>{for(let[e,r]of ive)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
${i}`:n.stack}H.exports.fetch=function(e,r=void 0){return BPe(e,r).catch(s=>{throw Tz?kz(s,Tz):s&&typeof s=="object"&&Error.captureStackTrace(s,H.exports.fetch),s})};H.exports.Headers=PA().Headers;H.exports.Response=Sh().Response;H.exports.Request=il().Request;H.exports.FormData=oE().FormData;var{setGlobalOrigin:QPe,getGlobalOrigin:yPe}=NS();H.exports.setGlobalOrigin=QPe;H.exports.getGlobalOrigin=yPe;var{CacheStorage:bPe}=hW(),{kConstruct:wPe}=Ue();H.exports.caches=new bPe(wPe);var{deleteCookie:NPe,getCookies:SPe,getSetCookies:TPe,setCookie:DPe,parseCookie:xPe}=NW();H.exports.deleteCookie=NPe;H.exports.getCookies=SPe;H.exports.getSetCookies=TPe;H.exports.setCookie=DPe;H.exports.parseCookie=xPe;var{parseMIMEType:RPe,serializeAMimeType:kPe}=Hs();H.exports.parseMIMEType=RPe;H.exports.serializeAMimeType=kPe;var{CloseEvent:FPe,ErrorEvent:MPe,MessageEvent:UPe}=wC(),{WebSocket:LPe,ping:PPe}=iz();H.exports.WebSocket=LPe;H.exports.CloseEvent=FPe;H.exports.ErrorEvent=MPe;H.exports.MessageEvent=UPe;H.exports.ping=PPe;H.exports.WebSocketStream=gz().WebSocketStream;H.exports.WebSocketError=rx().WebSocketError;H.exports.request=Oh(ml.request);H.exports.stream=Oh(ml.stream);H.exports.pipeline=Oh(ml.pipeline);H.exports.connect=Oh(ml.connect);H.exports.upgrade=Oh(ml.upgrade);H.exports.MockClient=cPe;H.exports.MockCallHistory=uPe;H.exports.MockCallHistoryLog=lPe;H.exports.MockPool=gPe;H.exports.MockAgent=dPe;H.exports.SnapshotAgent=hPe;H.exports.mockErrors=fPe;var{EventSource:vPe}=Sz();H.exports.EventSource=vPe;function OPe(){globalThis.fetch=H.exports.fetch,globalThis.Headers=H.exports.Headers,globalThis.Response=H.exports.Response,globalThis.Request=H.exports.Request,globalThis.FormData=H.exports.FormData,globalThis.WebSocket=H.exports.WebSocket,globalThis.CloseEvent=H.exports.CloseEvent,globalThis.ErrorEvent=H.exports.ErrorEvent,globalThis.MessageEvent=H.exports.MessageEvent,globalThis.EventSource=H.exports.EventSource}H.exports.install=OPe});var _h=m(da=>{"use strict";da.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");da.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");da.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";da.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);da.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);da.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());da.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Uz=m((E$e,Mz)=>{"use strict";var{asciiLowercase:OC,solelyContainsHTTPTokenCodePoints:_Pe,soleyContainsHTTPQuotedStringTokenCodePoints:HPe}=_h();Mz.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=OC(String(e)),this._map.get(e)}has(e){return e=OC(String(e)),this._map.has(e)}set(e,r){if(e=OC(String(e)),r=String(r),!_Pe(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!HPe(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=OC(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var vz=m((C$e,Pz)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:GPe,removeTrailingHTTPWhitespace:Lz,isHTTPWhitespaceChar:YPe,solelyContainsHTTPTokenCodePoints:Ax,soleyContainsHTTPQuotedStringTokenCodePoints:qPe,asciiLowercase:cx,collectAnHTTPQuotedString:VPe}=_h();Pz.exports=t=>{t=GPe(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Ax(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=Lz(s),s.length===0||!Ax(s))return null;let n={type:cx(r),subtype:cx(s),parameters:new Map};for(;e<t.length;){for(++e;YPe(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=cx(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=VPe(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Lz(o),o==="")continue}i.length>0&&Ax(i)&&qPe(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var _z=m((I$e,Oz)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:JPe}=_h();Oz.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!JPe(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var qz=m((Q$e,Yz)=>{"use strict";var WPe=Uz(),zPe=vz(),KPe=_z(),{asciiLowercase:Hz,solelyContainsHTTPTokenCodePoints:Gz}=_h();Yz.exports=class{constructor(e){e=String(e);let r=zPe(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new WPe(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Hz(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Gz(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Hz(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Gz(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return KPe(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var eK=m(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.getProxyUrl=lve;YC.checkBypass=$z;function lve(t){let e=t.protocol==="https:";if($z(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new GC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new GC(`http://${r}`)}else return}function $z(t){if(!t.hostname)return!1;let e=t.hostname;if(dve(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostnameLine truncated
%s`,k,k,b,s);var P=b.type==="*"?Ox:b.type==="?"?vx:"\\"+b.type;n=!0,s=s.slice(0,b.reStart)+P+"\\("+k}f(),i&&(s+="\\\\");var F=!1;switch(s.charAt(0)){case"[":case".":case"(":F=!0}for(var v=a.length-1;v>-1;v--){var _=a[v],me=s.slice(0,_.reStart),De=s.slice(_.reStart,_.reEnd-8),oe=s.slice(_.reEnd-8,_.reEnd),pe=s.slice(_.reEnd);oe+=pe;var he=me.split("(").length-1,Bt=pe;for(p=0;p<he;p++)Bt=Bt.replace(/\)[+*?]?/,"");pe=Bt;var Qt="";pe===""&&e!==ZC&&(Qt="$");var mi=me+De+pe+Qt+oe;s=mi}if(s!==""&&n&&(s="(?=.)"+s),F&&(s=g+s),e===ZC)return[s,n];if(!n)return s8e(t);var pi=r.nocase?"i":"";try{var FB=new RegExp("^"+s+"$",pi)}catch{return new RegExp("$.")}return FB._glob=t,FB._src=s,FB}ps.makeRe=function(t,e){return new Dt(t,e||{}).makeRe()};Dt.prototype.makeRe=r8e;function r8e(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Ox:e.dot?z3e:K3e,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===zA?r:typeof o=="string"?n8e(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}ps.match=function(t,e,r){r=r||{};var s=new Dt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Dt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Jh.sep!=="/"&&(e=e.split(Jh.sep).join("/")),e=e.split(uX),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Dt.prototype.matchOne=function(t,e,r){return e.indexOf(zA)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Dt.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===zA){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===zA){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var g=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))g=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;g=u.length+1}}if(!c.length){var f=!!g;for(i=s;i<t.length-g;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var y=[[[],0]],E=y[0],b=0,N=[0],x=0;x<c.length;x++){var k=c[x];k===zA?(N.push(b),E=[[],0],y.push(E)):(E[0].push(k),b++)}for(var P=y.length-1,F=t.length-g,v=0;v<y.length;v++)y[v][1]=F-(N[P--]+y[v][0].length);return!!this._matchGlobStarBodySections(t,y,s,0,r,0,!!g)};Dt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var g=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(g&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};Dt.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===zA)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function s8e(t){return t.replace(/\\(.)/g,"$1")}function n8e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Il=m((ytt,fX)=>{"use strict";var c8e="2.0.0",u8e=Number.MAX_SAFE_INTEGER||9007199254740991,l8e=16,d8e=250,g8e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fX.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l8e,MAX_SAFE_BUILD_LENGTH:d8e,MAX_SAFE_INTEGER:u8e,RELEASE_TYPES:g8e,SEMVER_SPEC_VERSION:c8e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wh=m((btt,mX)=>{"use strict";var h8e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};mX.exports=h8e});var Bl=m((Ai,pX)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:_x,MAX_SAFE_BUILD_LENGTH:f8e,MAX_LENGTH:m8e}=Il(),p8e=Wh();Ai=pX.exports={};var E8e=Ai.re=[],C8e=Ai.safeRe=[],G=Ai.src=[],I8e=Ai.safeSrc=[],Y=Ai.t={},B8e=0,Hx="[a-zA-Z0-9-]",Q8e=[["\\s",1],["\\d",m8e],[Hx,f8e]],y8e=t=>{for(let[e,r]of Q8e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).j Line truncated
`).join(`
`+i),t.push(n+"m+"+iI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=kOe()+e+" "+t[0]}function kOe(){return Ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}function FOe(...t){return process.stderr.write(nI.formatWithOptions(Ot.inspectOpts,...t)+`
`)}function MOe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function UOe(){return process.env.DEBUG}function LOe(t){t.inspectOpts={};let e=Object.keys(Ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ot.inspectOpts[e[r]]}iI.exports=Px()(Ot);var{formatters:Nj}=iI.exports;Nj.o=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nj.O=function(t){return this.inspectOpts.colors=this.useColors,nI.inspect(t,this.inspectOpts)}});var oI=m((Ort,_x)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_x.exports=Ij():_x.exports=Sj()});var xj=m(Or=>{"use strict";var POe=Or&&Or.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),vOe=Or&&Or.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tj=Or&&Or.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&POe(e,t,r);return vOe(e,t),e};Object.defineProperty(Or,"__esModule",{value:!0});Or.req=Or.json=Or.toBuffer=void 0;var OOe=Tj(Q("http")),_Oe=Tj(Q("https"));async function Dj(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Or.toBuffer=Dj;async function HOe(t){let r=(await Dj(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Or.json=HOe;function GOe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?_Oe:OOe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Or.req=GOe});var Gx=m(gs=>{"use strict";var kj=gs&&gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),YOe=gs&&gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fj=gs&&gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kj(e,t,r);return YOe(e,t),e},qOe=gs&&gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kj(e,t,r)};Object.defineProperty(gs,"__esModule",{value:!0});gs.Agent=void 0;var VOe=Fj(Q("net")),Rj=Fj(Q("http")),JOe=Q("https");qOe(xj(),gs);var ui=Symbol("AgentBaseInternalState"),Hx=class extends Rj.Agent{constructor(e){super(e),this[ui]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new VOe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?JOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof Rj.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ui].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ui].currentSocket;if(this[ui].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ui].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ui]&&(this[ui].defaultPort=e)}get protocol(){return this[ui].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ui]&&(this[ui].protocol=e)}};gs.Agent=Hx});var Mj=m(fl=>{"use strict";var WOe=fl&&fl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fl,"__esModule",{value:!0});fl.parseProxyResponse=void 0;var zOe=WOe(oI()),aI=(0,zOe.default)("https-proxy-agent:parse-proxy-response");function KOe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),aI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),aI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let d=Buffer.concat(n,s),g=d.indexOf(`\r
`+i),t.push(n+"m+"+BI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=X6e()+e+" "+t[0]}function X6e(){return Yt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function j6e(...t){return process.stderr.write(II.formatWithOptions(Yt.inspectOpts,...t)+`
`)}function Z6e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $6e(){return process.env.DEBUG}function e_e(t){t.inspectOpts={};let e=Object.keys(Yt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Yt.inspectOpts[e[r]]}BI.exports=CR()(Yt);var{formatters:RZ}=BI.exports;RZ.o=function(t){return this.inspectOpts.colors=this.useColors,II.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RZ.O=function(t){return this.inspectOpts.colors=this.useColors,II.inspect(t,this.inspectOpts)}});var QI=m((int,QR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?QR.exports=wZ():QR.exports=kZ()});var UZ=m(qr=>{"use strict";var t_e=qr&&qr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),r_e=qr&&qr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FZ=qr&&qr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&t_e(e,t,r);return r_e(e,t),e};Object.defineProperty(qr,"__esModule",{value:!0});qr.req=qr.json=qr.toBuffer=void 0;var s_e=FZ(Q("http")),n_e=FZ(Q("https"));async function MZ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}qr.toBuffer=MZ;async function i_e(t){let r=(await MZ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}qr.json=i_e;function o_e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?n_e:s_e).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}qr.req=o_e});var bR=m(Es=>{"use strict";var PZ=Es&&Es.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),a_e=Es&&Es.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vZ=Es&&Es.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&PZ(e,t,r);return a_e(e,t),e},A_e=Es&&Es.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PZ(e,t,r)};Object.defineProperty(Es,"__esModule",{value:!0});Es.Agent=void 0;var c_e=vZ(Q("net")),LZ=vZ(Q("http")),u_e=Q("https");A_e(UZ(),Es);var ci=Symbol("AgentBaseInternalState"),yR=class extends LZ.Agent{constructor(e){super(e),this[ci]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new c_e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?u_e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof LZ.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[ci].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[ci].currentSocket;if(this[ci].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ci].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ci]&&(this[ci].defaultPort=e)}get protocol(){return this[ci].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ci]&&(this[ci].protocol=e)}};Es.Agent=yR});var OZ=m(Sl=>{"use strict";var l_e=Sl&&Sl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.parseProxyResponse=void 0;var d_e=l_e(QI()),yI=(0,d_e.default)("https-proxy-agent:parse-proxy-response");function g_e(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),yI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),yI("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),g=l.indexOf(`\r
\r
`);if(g===-1){aI("have not received end of HTTP headers yet..."),i();return}let h=d.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=f.split(" "),w=+E[1],p=E.slice(2).join(" "),y={};for(let N of h){if(!N)continue;let D=N.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let U=N.slice(0,D).toLowerCase(),v=N.slice(D+1).trimStart(),k=y[U];typeof k=="string"?y[U]=[k,v]:Array.isArray(k)?k.push(v):y[U]=v}aI("got proxy server response: %o %o",f,y),o(),e({connect:{statusCode:w,statusText:p,headers:y},buffered:d})}t.on("error",A),t.on("end",a),i()})}fl.parseProxyResponse=KOe});var _j=m(Zs=>{"use strict";var XOe=Zs&&Zs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),jOe=Zs&&Zs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vj=Zs&&Zs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&XOe(e,t,r);return jOe(e,t),e},Oj=Zs&&Zs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.HttpsProxyAgent=void 0;var AI=vj(Q("net")),Uj=vj(Q("tls")),ZOe=Oj(Q("assert")),$Oe=Oj(oI()),e6e=Gx(),t6e=Q("url"),r6e=Mj(),Gh=(0,$Oe.default)("https-proxy-agent"),Lj=t=>t.servername===void 0&&t.host&&!AI.isIP(t.host)?{...t,servername:t.host}:t,cI=class extends e6e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new t6e.URL(e):e,this.proxyHeaders=r?.headers??{},Gh("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Pj(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Gh("Creating `tls.Socket`: %o",this.connectOpts),n=Uj.connect(Lj(this.connectOpts))):(Gh("Creating `net.Socket`: %o",this.connectOpts),n=AI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=AI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(g===-1){yI("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,g).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),y=+p[1],E=p.slice(2).join(" "),b={};for(let N of h){if(!N)continue;let x=N.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${N}"`));let k=N.slice(0,x).toLowerCase(),P=N.slice(x+1).trimStart(),F=b[k];typeof F=="string"?b[k]=[F,P]:Array.isArray(F)?F.push(P):b[k]=P}yI("got proxy server response: %o %o",f,b),o(),e({connect:{statusCode:y,statusText:E,headers:b},buffered:l})}t.on("error",A),t.on("end",a),i()})}Sl.parseProxyResponse=g_e});var VZ=m(en=>{"use strict";var h_e=en&&en.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),f_e=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YZ=en&&en.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&h_e(e,t,r);return f_e(e,t),e},qZ=en&&en.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(en,"__esModule",{value:!0});en.HttpsProxyAgent=void 0;var bI=YZ(Q("net")),_Z=YZ(Q("tls")),m_e=qZ(Q("assert")),p_e=qZ(QI()),E_e=bR(),C_e=Q("url"),I_e=OZ(),sf=(0,p_e.default)("https-proxy-agent"),HZ=t=>t.servername===void 0&&t.host&&!bI.isIP(t.host)?{...t,servername:t.host}:t,wI=class extends E_e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new C_e.URL(e):e,this.proxyHeaders=r?.headers??{},sf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?GZ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(sf("Creating `tls.Socket`: %o",this.connectOpts),n=_Z.connect(HZ(this.connectOpts))):(sf("Creating `net.Socket`: %o",this.connectOpts),n=bI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=bI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let g=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(g).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let g of Object.keys(i))a+=`${g}: ${i[g]}\r
`;let A=(0,r6e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",s6e),r.secureEndpoint?(Gh("Upgrading socket connection to TLS"),Uj.connect({...Pj(Lj(r),"host","path","port"),socket:n})):n;n.destroy();let d=new AI.Socket({writable:!1});return d.readable=!0,e.once("socket",g=>{Gh("Replaying proxy buffer for failed request"),(0,ZOe.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),d}};cI.protocols=["http","https"];Zs.HttpsProxyAgent=cI;function s6e(t){t.resume()}function Pj(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Yj=m($s=>{"use strict";var n6e=$s&&$s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),i6e=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gj=$s&&$s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&n6e(e,t,r);return i6e(e,t),e},o6e=$s&&$s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($s,"__esModule",{value:!0});$s.HttpProxyAgent=void 0;var a6e=Gj(Q("net")),A6e=Gj(Q("tls")),c6e=o6e(oI()),u6e=Q("events"),l6e=Gx(),Hj=Q("url"),ml=(0,c6e.default)("http-proxy-agent"),uI=class extends l6e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Hj.URL(e):e,this.proxyHeaders=r?.headers??{},ml("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?d6e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new Hj.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;ml("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ml("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let A=(0,I_e.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",B_e),r.secureEndpoint?(sf("Upgrading socket connection to TLS"),_Z.connect({...GZ(HZ(r),"host","path","port"),socket:n})):n;n.destroy();let l=new bI.Socket({writable:!1});return l.readable=!0,e.once("socket",g=>{sf("Replaying proxy buffer for failed request"),(0,m_e.default)(g.listenerCount("data")>0),g.push(u),g.push(null)}),l}};wI.protocols=["http","https"];en.HttpsProxyAgent=wI;function B_e(t){t.resume()}function GZ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var zZ=m(tn=>{"use strict";var Q_e=tn&&tn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),y_e=tn&&tn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WZ=tn&&tn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Q_e(e,t,r);return y_e(e,t),e},b_e=tn&&tn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tn,"__esModule",{value:!0});tn.HttpProxyAgent=void 0;var w_e=WZ(Q("net")),N_e=WZ(Q("tls")),S_e=b_e(QI()),T_e=Q("events"),D_e=bR(),JZ=Q("url"),Tl=(0,S_e.default)("http-proxy-agent"),NI=class extends D_e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new JZ.URL(e):e,this.proxyHeaders=r?.headers??{},Tl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?x_e(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new JZ.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Tl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Tl("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),ml("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(ml("Creating `tls.Socket`: %o",this.connectOpts),i=A6e.connect(this.connectOpts)):(ml("Creating `net.Socket`: %o",this.connectOpts),i=a6e.connect(this.connectOpts)),await(0,u6e.once)(i,"connect"),i}};uI.protocols=["http","https"];$s.HttpProxyAgent=uI;function d6e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var uZ=m(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.state=void 0;dI.state={instrumenterImplementation:void 0}});var QZ=m(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.state=void 0;mI.state={operationRequestMap:new WeakMap}});var ere=m((LIt,vHe)=>{vHe.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var rre=m((PIt,tre)=>{var OHe=ere();tre.exports={version:OHe.version}});var xI=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.isJsonObject=Nl.typeofJsonValue=void 0;function JHe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Nl.typeofJsonValue=JHe;function WHe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Nl.isJsonObject=WHe});var kI=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.base64encode=Sl.base64decode=void 0;var so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),RI=[];for(let t=0;t<so.length;t++)RI[so[t].charCodeAt(0)]=t;RI[45]=so.indexOf("+");RI[95]=so.indexOf("/");function zHe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=RI[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Sl.base64decode=zHe;function KHe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}Sl.base64encode=KHe});var sre=m(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0});FI.utf8read=void 0;var YR=t=>String.fromCharCode.apply(String,t);function XHe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(YR(s)),n=0);return r.length?(n&&r.push(YR(s.slice(0,n))),r.join("")):YR(s.slice(0,n))}FI.utf8read=XHe});var Xh=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var jHe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(jHe=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function ZHe(t,e){return Object.assign(Object.assign({},t),e)}di.mergeBinaryOptions=ZHe;var $He;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})($He=di.WireType||(di.WireType={}))});var UI=m(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.varint32read=_r.varint32write=_r.int64toString=_r.int64fromString=_r.varint64write=_r.varint64read=void 0;function e9e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}_r.varint64read=e9e;function t9e(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}_r.varint64write=t9e;var MI=65536*65536;function r9e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=MI&&(n=n+(s/MI|0),s=s%MI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}_r.int64fromString=r9e;function s9e(t,e){if(e>>>0<=2097151)return""+(MI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,d){let g=u?String(u):"";return d?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}_r.int64toString=s9e;function n9e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}_r.varint32write=n9e;function i9e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}_r.varint32read=i9e});var Ea=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PbLong=pa.PbULong=pa.detectBi=void 0;var jh=UI(),He;function nre(){let t=new DataView(new ArrayBuffer(8));He=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}pa.detectBi=nre;nre();function ire(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var ore=/^-?[0-9]+$/,PI=4294967296,LI=2147483648,vI=c Line truncated
`)}};AB.RpcError=mk});var Ek=m(uB=>{"use strict";Object.defineProperty(uB,"__esModule",{value:!0});uB.mergeRpcOptions=void 0;var Lre=Et();function SGe(t,e){if(!e)return t;let r={};cB(t,r),cB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Lre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Lre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cB(t.meta,r.meta),cB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}uB.mergeRpcOptions=SGe;function cB(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var Ik=m(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0});WA.Deferred=WA.DeferredState=void 0;var fi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(fi=WA.DeferredState||(WA.DeferredState={}));var Ck=class{constructor(e=!0){this._state=fi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==fi.PENDING)throw new Error(`cannot resolve ${fi[this.state].toLowerCase()}`);this._resolve(e),this._state=fi.RESOLVED}reject(e){if(this.state!==fi.PENDING)throw new Error(`cannot reject ${fi[this.state].toLowerCase()}`);this._reject(e),this._state=fi.REJECTED}resolvePending(e){this._state===fi.PENDING&&this.resolve(e)}rejectPending(e){this._state===fi.PENDING&&this.reject(e)}};WA.Deferred=Ck});var Qk=m(lB=>{"use strict";Object.defineProperty(lB,"__esModule",{value:!0});lB.RpcOutputStreamController=void 0;var Pre=Ik(),zA=Et(),Bk=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){zA.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){zA.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){zA.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){zA.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;zA.assert(e,"bad state"),zA.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Pre.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;zA.assert(s.state==Pre.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};lB.RpcOutputStreamController=Bk});var bk=m(Ml=>{"use strict";var TGe=Ml&&Ml.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.UnaryCall=void 0;var yk=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return TGe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Ml.UnaryCall=yk});var Nk=m(Ul=>{"use strict";var DGe=Ul&&Ul.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.ServerStreamingCall=void 0;var wk=class{constructor(e Line truncated
`:Ip(t.children):Kc(t)?Ip(t.children):Nr(t)?t.data:""}function Ui(t){return Array.isArray(t)?t.map(Ui).join(""):ve(t)&&!za(t)?Ui(t.children):Nr(t)?t.data:""}function zd(t){return Array.isArray(t)?t.map(zd).join(""):ve(t)&&(t.type===Be.Tag||Kc(t))?zd(t.children):Nr(t)?t.data:""}function Zc(t){return ve(t)?t.children:[]}function aO(t){return t.parent||null}function B1(t){let e=aO(t);if(e!=null)return Zc(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function Ope(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _pe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Hpe(t){return t.name}function Bp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Qp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function Li(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Gpe(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Ype(t,e){if(Li(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function qpe(t,e){Li(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function Vpe(t,e){if(Li(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Jpe(t,e){Li(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function $c(t,e,r=!0,s=1/0){return yp(t,Array.isArray(e)?e:[e],r,s)}function yp(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&ve(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Wpe(t,e){return e.find(t)}function bp(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&ve(i)&&i.children.length>0){let o=bp(t,i.children,!0);if(o)return o}}return null}function AO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||ve(r)&&AO(t,r.children))}function zpe(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];q(i)&&t(i)&&r.push(i),ve(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var wp={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Nr(e)&&t(e.data):e=>Nr(e)&&e.data===t}};function Q1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function Kpe(t,e){return r=>t(r)||e(r)}function cO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(wp,r)?wp[r](s):Q1(r,s)});return e.length===0?null:e.reduce(Kpe)}function Xpe(t,e){let r=cO(t);return r?r(e):!0}function jpe(t,e,r,s=1/0){let n=cO(t);return n?$c(n,e,r,s):[]}function Zpe(t,e,r=!0){return Array.isArray(e)||(e=[e]),bp(Q1("id",t),e,r)}function Ka(t,e,r=!0,s=1/0){return $c(wp.tag_name(t),e,r,s)}function $pe(t,e,r=!0,s=1/0){return $c(Q1("class",t),e,r,s)}function e0e(t,e,r=!0,s=1/0){return $c(wp.tag_type(t),e,r,s)}function t0e(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Ts;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ts||(Ts={}));function uO(t,e){let r=[],s=[];if(t===e)return 0;let n=ve(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=ve(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Ts.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Ts.FOLLOWING|Ts.CONTAINED_BY:Ts.FOLLOWING:a===t?Ts.PRECEDING|Ts.CONTAINS:Ts.PRECEDING}function To(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=uO(e,r);return s&Ts.PRECEDING?-1:s&Ts.FOLLOWING?1:0}),t}function y1(t){let e=Np(o0e,t);return e?e.name==="feed"?r0e(e):s0e(e):null}function r0e(t){var e;let r=t.children,s={type:"atom",items:Ka("entry",r).map(o=>{var a;let{children:A}=o,c={media:lO(A)};Sr(c,"id","id",A),Sr(c,"title","title",A);let u=(a=Np("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let d=Do("summary",A)||Do("content",A);d&&(c.descript Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Tl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Tl("Creating `tls.Socket`: %o",this.connectOpts),i=N_e.connect(this.connectOpts)):(Tl("Creating `net.Socket`: %o",this.connectOpts),i=w_e.connect(this.connectOpts)),await(0,T_e.once)(i,"connect"),i}};NI.protocols=["http","https"];tn.HttpProxyAgent=NI;function x_e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var f$=m(TI=>{"use strict";Object.defineProperty(TI,"__esModule",{value:!0});TI.state=void 0;TI.state={instrumenterImplementation:void 0}});var S$=m(kI=>{"use strict";Object.defineProperty(kI,"__esModule",{value:!0});kI.state=void 0;kI.state={operationRequestMap:new WeakMap}});var ise=m((rQt,rGe)=>{rGe.exports={name:"@actions/cache",version:"6.2.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var ase=m((sQt,ose)=>{var sGe=ise();ose.exports={version:sGe.version}});var JI=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isJsonObject=vl.typeofJsonValue=void 0;function lGe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}vl.typeofJsonValue=lGe;function dGe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}vl.isJsonObject=dGe});var zI=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.base64encode=Ol.base64decode=void 0;var ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),WI=[];for(let t=0;t<ao.length;t++)WI[ao[t].charCodeAt(0)]=t;WI[45]=ao.indexOf("+");WI[95]=ao.indexOf("/");function gGe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=WI[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Ol.base64decode=gGe;function hGe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ao[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ao[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ao[n|s>>6],e+=ao[s&63],r=0;break}return r&&(e+=ao[n],e+="=",r==1&&(e+="=")),e}Ol.base64encode=hGe});var Ase=m(KI=>{"use strict";Object.defineProperty(KI,"__esModule",{value:!0});KI.utf8read=void 0;var wk=t=>String.fromCharCode.apply(String,t);function fGe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(wk(s)),n=0);return r.length?(n&&r.push(wk(s.slice(0,n))),r.join("")):wk(s.slice(0,n))}KI.utf8read=fGe});var df=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.WireType=li.mergeBinaryOptions=li.UnknownFieldHandler=void 0;var mGe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(mGe=li.UnknownFieldHandler||(li.UnknownFieldHandler={}));function pGe(t,e){return Object.assign(Object.assign({},t),e)}li.mergeBinaryOptions=pGe;var EGe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(EGe=li.WireType||(li.WireType={}))});var jI=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.varint32read=Vr.varint32write=Vr.int64toString=Vr.int64fromString=Vr.varint64write=Vr.varint64read=void 0;function CGe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Vr.varint64read=CGe;function IGe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Vr.varint64write=IGe;var XI=65536*65536;function BGe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=XI&&(n=n+(s/XI|0),s=s%XI)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Vr.int64fromString=BGe;function QGe(t,e){if(e>>>0<=2097151)return""+(XI*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let g=u?String(u):"";return l?"0000000".slice(g.length)+g:g}return c(a,0)+c(o,a)+c(i,1)}Vr.int64toString=QGe;function yGe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Vr.varint32write=yGe;function bGe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Vr.varint32read=bGe});var Ia=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PbLong=Ca.PbULong=Ca.detectBi=void 0;var gf=jI(),Ye;function cse(){let t=new DataView(new ArrayBuffer(8));Ye=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Ca.detectBi=cse;cse();function use(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lse=/^-?[0-9]+$/,$I=4294967296,ZI=2147483648,eB=c Line truncated
`)}};bB.RpcError=Zk});var eF=m(NB=>{"use strict";Object.defineProperty(NB,"__esModule",{value:!0});NB.mergeRpcOptions=void 0;var Hse=Ct();function JYe(t,e){if(!e)return t;let r={};wB(t,r),wB(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Hse.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Hse.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wB(t.meta,r.meta),wB(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}NB.mergeRpcOptions=JYe;function wB(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var rF=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.Deferred=sc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=sc.DeferredState||(sc.DeferredState={}));var tF=class{constructor(e=!0){this._state=hi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};sc.Deferred=tF});var nF=m(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.RpcOutputStreamController=void 0;var Gse=rF(),nc=Ct(),sF=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){nc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){nc.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){nc.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){nc.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;nc.assert(e,"bad state"),nc.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Gse.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;nc.assert(s.state==Gse.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};SB.RpcOutputStreamController=sF});var oF=m(Jl=>{"use strict";var WYe=Jl&&Jl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.UnaryCall=void 0;var iF=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return WYe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Jl.UnaryCall=iF});var AF=m(Wl=>{"use strict";var zYe=Wl&&Wl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(Wl,"__esModule",{value:!0});Wl.ServerStreamingCall=void 0;var aF=class{constructor(e Line truncated
`:Up(t.children):ou(t)?Up(t.children):Rr(t)?t.data:""}function Pi(t){return Array.isArray(t)?t.map(Pi).join(""):_e(t)&&!ja(t)?Pi(t.children):Rr(t)?t.data:""}function ag(t){return Array.isArray(t)?t.map(ag).join(""):_e(t)&&(t.type===Qe.Tag||ou(t))?ag(t.children):Rr(t)?t.data:""}function cu(t){return _e(t)?t.children:[]}function zO(t){return t.parent||null}function H1(t){let e=zO(t);if(e!=null)return cu(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function _0e(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function H0e(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function G0e(t){return t.name}function Lp(t){let{next:e}=t;for(;e!==null&&!q(e);)({next:e}=e);return e}function Pp(t){let{prev:e}=t;for(;e!==null&&!q(e);)({prev:e}=e);return e}function vi(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Y0e(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function q0e(t,e){if(vi(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function V0e(t,e){vi(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function J0e(t,e){if(vi(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function W0e(t,e){vi(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function uu(t,e,r=!0,s=1/0){return vp(t,Array.isArray(e)?e:[e],r,s)}function vp(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&_e(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function z0e(t,e){return e.find(t)}function Op(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(q(i)&&t(i))return i;if(r&&_e(i)&&i.children.length>0){let o=Op(t,i.children,!0);if(o)return o}}return null}function KO(t,e){return(Array.isArray(e)?e:[e]).some(r=>q(r)&&t(r)||_e(r)&&KO(t,r.children))}function K0e(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];q(i)&&t(i)&&r.push(i),_e(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var _p={tag_name(t){return typeof t=="function"?e=>q(e)&&t(e.name):t==="*"?q:e=>q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Rr(e)&&t(e.data):e=>Rr(e)&&e.data===t}};function G1(t,e){return typeof e=="function"?r=>q(r)&&e(r.attribs[t]):r=>q(r)&&r.attribs[t]===e}function X0e(t,e){return r=>t(r)||e(r)}function XO(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(_p,r)?_p[r](s):G1(r,s)});return e.length===0?null:e.reduce(X0e)}function j0e(t,e){let r=XO(t);return r?r(e):!0}function Z0e(t,e,r,s=1/0){let n=XO(t);return n?uu(n,e,r,s):[]}function $0e(t,e,r=!0){return Array.isArray(e)||(e=[e]),Op(G1("id",t),e,r)}function Za(t,e,r=!0,s=1/0){return uu(_p.tag_name(t),e,r,s)}function eEe(t,e,r=!0,s=1/0){return uu(G1("class",t),e,r,s)}function tEe(t,e,r=!0,s=1/0){return uu(_p.tag_type(t),e,r,s)}function rEe(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var Rs;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Rs||(Rs={}));function jO(t,e){let r=[],s=[];if(t===e)return 0;let n=_e(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=_e(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return Rs.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?Rs.FOLLOWING|Rs.CONTAINED_BY:Rs.FOLLOWING:a===t?Rs.PRECEDING|Rs.CONTAINS:Rs.PRECEDING}function Ro(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=jO(e,r);return s&Rs.PRECEDING?-1:s&Rs.FOLLOWING?1:0}),t}function Y1(t){let e=Hp(aEe,t);return e?e.name==="feed"?sEe(e):nEe(e):null}function sEe(t){var e;let r=t.children,s={type:"atom",items:Za("entry",r).map(o=>{var a;let{children:A}=o,c={media:ZO(A)};kr(c,"id","id",A),kr(c,"title","title",A);let u=(a=Hp("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ko("summary",A)||ko("content",A);l&&(c.descript Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Rs=ae(Ro(),1);var _1={};function H1(t,e){return t===Rs.default.falseFunc?Rs.default.falseFunc:r=>e.isTag(r)&&t(r)}function G1(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function O1(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var v1=(t,e,r,s,n)=>{let i=n(e,O1(r),s);return i===Rs.default.trueFunc?t:i===Rs.default.falseFunc?Rs.default.falseFunc:o=>i(o)&&t(o)},Op={is:v1,matches:v1,where:v1,not(t,e,r,s,n){let i=n(e,O1(r),s);return i===Rs.default.falseFunc?t:i===Rs.default.trueFunc?Rs.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=O1(r);o.relativeSelector=!0;let a=e.some(u=>u.some(tg))?[_1]:void 0,A=n(e,o,a);if(A===Rs.default.falseFunc)return Rs.default.falseFunc;let c=H1(A,i);if(a&&A!==Rs.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return d=>{if(!t(d))return!1;a[0]=d;let g=i.getChildren(d),h=u?[...g,...G1(d,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function $O(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in Op))throw new Error(`Unknown pseudo-class :${o}(${a})`);return Op[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:vp[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,ZO.parse)(c);return Op.is(t,u,r,s,n)}if(typeof A=="function")return P1(A,o,a,1),u=>A(u,a)&&t(u);if(o in Au)return Au[o](t,a,r,s);if(o in sg){let u=sg[o];return P1(u,o,a,2),d=>u(d,r,a)&&t(d)}throw new Error(`Unknown pseudo-class :${o}`)}var ks=ae(ou(),1);function Y1(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function e6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case ks.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ks.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ks.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),zO[e.action](t,e,r)}case ks.SelectorType.Pseudo:return $O(t,e,r,s,n);case ks.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case ks.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=Y1(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=Y1(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=Y1(c,i));return!1};case ks.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case ks.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case ks.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let d=c[u];if(o(A,d))break;if(i.isTag(d)&&t(d))return!0}return!1};case ks.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let d=0;d<c.length;d++){let g=c[d];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case ks.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function t6(t,e,r){let s=_p(t,e,r);return H1(s,e.adapter)}function _p(t,e,r){let s=typeof t=="string"?(0,pn.parse)(t):t;return Hp(s,e,r)}function r6(t){return t.type===pn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(r6)))}var j0e={type:pn.SelectorType.Descendant},Z0e={type:"_flexibleDescendant"},$0e={type:pn.SelectorType.Pseudo,name:"scope",data:null};function eEe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===_1||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(E6,`\r
`)}}).toArray()}var iw={};nn(iw,{extract:()=>fCe});function hCe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function fCe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=hCe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Mo=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Mo.prototype.cheerio="[cheerio object]";Mo.prototype.splice=Array.prototype.splice;Mo.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Mo.prototype,k1,tw,rw,sw,nw,iw);function C6(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=zc(n),a=t(s,o,i,null);class A extends Mo{_make(d,g){let h=c(d,g);return h.prevObject=this,h}_parse(d,g,h,f){return t(d,g,h,f)}_render(d){return e(d,this.options)}}function c(u,d,g=a,h){if(u&&Ds(u))return u;let f=zc(h,o),E=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],w=Ds(E)?E:new A(E,null,f);if(w._root=w,!u)return new A(void 0,w,f);let p=typeof u=="string"&&Kd(u)?t(u,f,!1,null).children:mCe(u)?[u]:Array.isArray(u)?u:void 0,y=new A(p,w,f);if(p)return y;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,D=d?typeof d=="string"?Kd(d)?new A([t(d,f,!1,null)],w,f):(N=`${d} ${N}`,w):Ds(d)?d:new A(Array.isArray(d)?d:[d],w,f):w;return D?D.find(N):y}return Object.assign(c,b1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function mCe(t){return!!t.name||t.type===Ns.Root||t.type===Ns.Text||t.type===Ns.Comment}var pCe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ve="\uFFFD",C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));var ur={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Wp(t){return t>=55296&&t<=57343}function I6(t){return t>=56320&&t<=57343}function B6(t,e){return(t-55296)*1024+9216+e}function zp(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Kp(t){return t>=64976&&t<=65007||pCe.has(t)}var x;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ms=ce(Mo(),1);var ow={};function aw(t,e){return t===Ms.default.falseFunc?Ms.default.falseFunc:r=>e.isTag(r)&&t(r)}function Aw(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function iw(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var nw=(t,e,r,s,n)=>{let i=n(e,iw(r),s);return i===Ms.default.trueFunc?t:i===Ms.default.falseFunc?Ms.default.falseFunc:o=>i(o)&&t(o)},e0={is:nw,matches:nw,where:nw,not(t,e,r,s,n){let i=n(e,iw(r),s);return i===Ms.default.falseFunc?t:i===Ms.default.trueFunc?Ms.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=iw(r);o.relativeSelector=!0;let a=e.some(u=>u.some(hg))?[ow]:void 0,A=n(e,o,a);if(A===Ms.default.falseFunc)return Ms.default.falseFunc;let c=aw(A,i);if(a&&A!==Ms.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let g=i.getChildren(l),h=u?[...g,...Aw(l,i)]:g;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function _6(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in e0))throw new Error(`Unknown pseudo-class :${o}(${a})`);return e0[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:$p[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,O6.parse)(c);return e0.is(t,u,r,s,n)}if(typeof A=="function")return sw(A,o,a,1),u=>A(u,a)&&t(u);if(o in Cu)return Cu[o](t,a,r,s);if(o in mg){let u=mg[o];return sw(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Us=ce(pu(),1);function cw(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function H6(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Us.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Us.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Us.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),U6[e.action](t,e,r)}case Us.SelectorType.Pseudo:return _6(t,e,r,s,n);case Us.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Us.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=cw(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=cw(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=cw(c,i));return!1};case Us.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Us.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Us.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Us.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let g=c[l];if(o(A,g))break;i.isTag(g)&&(u=g)}return!!u&&t(u)};case Us.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function G6(t,e,r){let s=t0(t,e,r);return aw(s,e.adapter)}function t0(t,e,r){let s=typeof t=="string"?(0,Cn.parse)(t):t;return r0(s,e,r)}function Y6(t){return t.type===Cn.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Y6)))}var ZEe={type:Cn.SelectorType.Descendant},$Ee={type:"_flexibleDescendant"},eCe={type:Cn.SelectorType.Pseudo,name:"scope",data:null};function tCe(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===ow||i&&e.isTag(i)});for(let n Line truncated
`)})):{name:n,value:i.replace(i_,`\r
`)}}).toArray()}var ww={};an(ww,{extract:()=>mIe});function fIe(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function mIe(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=fIe(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Po=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};Po.prototype.cheerio="[cheerio object]";Po.prototype.splice=Array.prototype.splice;Po.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Po.prototype,Z1,Bw,Qw,yw,bw,ww);function o_(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=iu(n),a=t(s,o,i,null);class A extends Po{_make(l,g){let h=c(l,g);return h.prevObject=this,h}_parse(l,g,h,f){return t(l,g,h,f)}_render(l){return e(l,this.options)}}function c(u,l,g=a,h){if(u&&ks(u))return u;let f=iu(h,o),p=typeof g=="string"?[t(g,f,!1,null)]:"length"in g?g:[g],y=ks(p)?p:new A(p,null,f);if(y._root=y,!u)return new A(void 0,y,f);let E=typeof u=="string"&&Ag(u)?t(u,f,!1,null).children:pIe(u)?[u]:Array.isArray(u)?u:void 0,b=new A(E,y,f);if(E)return b;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let N=u,x=l?typeof l=="string"?Ag(l)?new A([t(l,f,!1,null)],y,f):(N=`${l} ${N}`,y):ks(l)?l:new A(Array.isArray(l)?l:[l],y,f):y;return x?x.find(N):b}return Object.assign(c,q1,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function pIe(t){return!!t.name||t.type===Ds.Root||t.type===Ds.Text||t.type===Ds.Comment}var EIe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ve="\uFFFD",C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));var fr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function A0(t){return t>=55296&&t<=57343}function a_(t){return t>=56320&&t<=57343}function A_(t,e){return(t-55296)*1024+9216+e}function c0(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function u0(t){return t>=64976&&t<=65007||EIe.has(t)}var D;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword" Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},wC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as WLe,existsSync as zLe}from"fs";import{EOL as KLe}from"os";var nl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zLe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(WLe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${KLe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var UD=ae(jW(),1),ZW=ae(Ap(),1),APe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(d){o(d)}}function A(u){try{c(s.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function $W(t){return new UD.HttpClient().getAgent(t)}function cPe(t){return new UD.HttpClient().getAgentDispatcher(t)}function ez(t){let e=cPe(t);return(s,n)=>APe(this,void 0,void 0,function*(){return(0,ZW.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function tz(){return process.env.GITHUB_API_URL||"https://api.github.com"}function la(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function kC(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>kC.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function rz(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function sz(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var nz=Function.bind,iz=nz.bind(nz);function oz(t,e,r){let s=iz(sz,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=iz(rz,null).apply(null,i)})}function lPe(){let t=Symbol("Singular"),e={registry:{}},r=kC.bind(null,e,t);return oz(r,e,t),r}function dPe(){let t={registry:{}},e=kC.bind(null,t);return oz(e,t),e}var az={Singular:lPe,Collection:dPe};var gPe="0.0.0-development",hPe=`octokit-endpoint.js/${gPe} ${la()}`,fPe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":hPe},mediaType:{format:""}};function mPe(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function pPe(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function uz(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{pPe(e[s])?s in t?r[s]=uz(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function Az(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function PD(t,e,r){if(typeof e=="string"){let[n,i]=e.split(" ");r=Object.assign(i?{method:n,url:i}:{url:n},r)}else r=Object.assign({},e);r.headers=mPe(r.headers),Az(r),Az(r.headers);let s=uz(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`)}`}},HC=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};import{readFileSync as Ave,existsSync as cve}from"fs";import{EOL as uve}from"os";var pl=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(cve(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Ave(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${uve}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var mx=ce(rK(),1),sK=ce(yp(),1),yve=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function nK(t){return new mx.HttpClient().getAgent(t)}function bve(t){return new mx.HttpClient().getAgentDispatcher(t)}function iK(t){let e=bve(t);return(s,n)=>yve(this,void 0,void 0,function*(){return(0,sK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function oK(){return process.env.GITHUB_API_URL||"https://api.github.com"}function ga(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function zC(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>zC.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function aK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function AK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var cK=Function.bind,uK=cK.bind(cK);function lK(t,e,r){let s=uK(AK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=uK(aK,null).apply(null,i)})}function Nve(){let t=Symbol("Singular"),e={registry:{}},r=zC.bind(null,e,t);return lK(r,e,t),r}function Sve(){let t={registry:{}},e=zC.bind(null,t);return lK(e,t),e}var dK={Singular:Nve,Collection:Sve};var Tve="0.0.0-development",Dve=`octokit-endpoint.js/${Tve} ${ga()}`,xve={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Dve},mediaType:{format:""}};function Rve(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}function kve(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}function fK(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(s=>{kve(e[s])?s in t?r[s]=fK(t[s],e[s]):Object.assign(r,{[s]:e[s]}):Object.assign(r,{[s]:e[s]})}),r}function gK(t){for(let e in t)t[e]===void 0&&delete t[e];return t}function Ex(t,e,r){if(typeof e=="string"){let[n,i]=e.split(" ");r=Object.assign(i?{method:n,url:i}:{url:n},r)}else r=Object.assign({},e);r.headers=Rve(r.headers),gK(r),gK(r.headers);let s=fK(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(s.mediaType.preLine truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var jPe=class extends Error{constructor(t,e,r){super(XPe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},ZPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],$Pe=["query","method","url"],Rz=/\/api\/v3\/?$/;function e3e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if($Pe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>ZPe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Rz.test(i)&&(n.url=i.replace(Rz,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new jPe(n,a,o.data)}return o.data.data})}function qD(t,e){let r=t.defaults(e);return Object.assign((n,i)=>e3e(r,n,i),{defaults:qD.bind(null,r),endpoint:r.endpoint})}var GZe=qD(Dh,{headers:{"user-agent":`octokit-graphql.js/${KPe} ${la()}`},method:"POST",url:"/graphql"});function kz(t){return qD(t,{method:"POST",url:"/graphql"})}var VD="(?:[a-zA-Z0-9_-]+)",Fz="\\.",Mz=new RegExp(`^${VD}${Fz}${VD}${Fz}${VD}$`),t3e=Mz.test.bind(Mz);async function r3e(t){let e=t3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function s3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function n3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=s3e(t),e(n)}var Uz=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(r3e.bind(null,e),{hook:n3e.bind(null,e)})};var JD="7.0.6";var Lz=()=>{},i3e=console.warn.bind(console),o3e=console.error.bind(console);function a3e(t={}){return typeof t.debug!="function"&&(t.debug=Lz),typeof t.info!="function"&&(t.info=Lz),typeof t.warn!="function"&&(t.warn=i3e),typeof t.error!="function"&&(t.error=o3e),t}var Pz=`octokit-core.js/${JD} ${la()}`,UC=class{static VERSION=JD;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new az.Collection,s={baseUrl:Dh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Pz}`:Pz,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Dh.defaults(s),this.graphql=kz(this.request).defaults(s),this.log=a3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Uz(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var WD="17.0.0";var A3e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};TI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var DI=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};DI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var _He=ae(rre(),1);var Xre=ae(Yre(),1),Ct=ae(Et(),1),ps=ae(Et(),1),KA=ae(Et(),1),XA=ae(Et(),1),jA=ae(Et(),1);var Lk=ae(Et(),1),Pk=ae(Et(),1),Wre=ae(Et(),1),zre=ae(Et(),1),Kre=ae(Et(),1);var Fk=ae(Et(),1),Mk=ae(Et(),1),qre=ae(Et(),1),Vre=ae(Et(),1),Jre=ae(Et(),1),Uk=class extends Jre.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Vre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,qre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Mk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Fk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Fk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Mk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},hB=new Uk;var vk=class extends Kre.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>hB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,zre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Wre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(hB.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Pk.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,Lk.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)hB.internalBinaryWrite(e.scope[i],r.tag(2,Lk.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?Pk.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},mi=new vk;var Ok=class extends jA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>mi},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=mi.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&mi.internalBinaryWrite(e.metadata,r.tag(1,Ct.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,Ct.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,Ct.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ps.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},jre=new Ok,_k=class extends jA.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,XA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,KA.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ps.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,Ct.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;sYe.push(s),Fi(s)}function nse(t=!0){if(sse.length>0){No(`This job uses deprecated functionality from the '${fB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of sse)jt(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var ose="GRADLE_ACTION_ID";var ise=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ase("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return ar("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return ar("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return ar("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return ar("develocity-token-expiry")}getDevelocityInjectionEnabled(){return mB("develocity-injection-enabled")}getDevelocityUrl(){return ar("develocity-url")}getDevelocityAllowUntrustedServer(){return mB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return mB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return mB("develocity-enforce-url")}getDevelocityPluginVersion(){return ar("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return ar("develocity-ccud-plugin-version")}getPluginRepository(){return new zk}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(No("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},zk=class{getUrl(){return Wk("gradle-plugin-repository-url")}getUsername(){return Wk("gradle-plugin-repository-username")}getPassword(){return Wk("gradle-plugin-repository-password")}};function fB(){return process.env[ose]}function ase(t){L4(ose,t)}function Wk(t){let e=ar(t);if(e.length>0)return e}function Ase(t,e=!1){let r=ar(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function mB(t){if(ar(t)!=="")return Ase(t)}var Kk=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function cse(t){if(t instanceof AggregateError){Fi("Multiple errors returned");for(let e of t.errors)up(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&jt(e.stack)}else t instanceof Kk?(Fi(String(t)),t.stack&&jt(t.stack)):(Fi(String(t)),t instanceof Error&&t.stack&&jt(t.stack))}async function iYe(){try{fB()==="gradle/wrapper-validation-action"&&Jk("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),ase("gradle/actions/wrapper-validation");let t=await JW(use.resolve("."),ar("allow-snapshots")==="true",ar("allow-checksums").split(","));if(t.isValid()){jt(t.toDisplayString());let e=+ar("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;Fi(r)}}else Fi(`At least one Gradle Wrapper Jar failed validation!
`)}var d3e=class extends Error{constructor(t,e,r){super(l3e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},g3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],h3e=["query","method","url"],LK=/\/api\/v3\/?$/;function f3e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(h3e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>g3e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return LK.test(i)&&(n.url=i.replace(LK,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new d3e(n,a,o.data)}return o.data.data})}function wx(t,e){let r=t.defaults(e);return Object.assign((n,i)=>f3e(r,n,i),{defaults:wx.bind(null,r),endpoint:r.endpoint})}var aet=wx(Yh,{headers:{"user-agent":`octokit-graphql.js/${u3e} ${ga()}`},method:"POST",url:"/graphql"});function PK(t){return wx(t,{method:"POST",url:"/graphql"})}var Nx="(?:[a-zA-Z0-9_-]+)",vK="\\.",OK=new RegExp(`^${Nx}${vK}${Nx}${vK}${Nx}$`),m3e=OK.test.bind(OK);async function p3e(t){let e=m3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function E3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function C3e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=E3e(t),e(n)}var _K=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(p3e.bind(null,e),{hook:C3e.bind(null,e)})};var Sx="7.0.6";var HK=()=>{},I3e=console.warn.bind(console),B3e=console.error.bind(console);function Q3e(t={}){return typeof t.debug!="function"&&(t.debug=HK),typeof t.info!="function"&&(t.info=HK),typeof t.warn!="function"&&(t.warn=I3e),typeof t.error!="function"&&(t.error=B3e),t}var GK=`octokit-core.js/${Sx} ${ga()}`,jC=class{static VERSION=Sx;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new dK.Collection,s={baseUrl:Yh.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${GK}`:GK,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Yh.defaults(s),this.graphql=PK(this.request).defaults(s),this.log=Q3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=_K(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var Tx="17.0.0";var y3e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};qI.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var VI=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};VI.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var nGe=ce(ase(),1);var tne=ce(zse(),1),It=ce(Ct(),1),Qs=ce(Ct(),1),ic=ce(Ct(),1),oc=ce(Ct(),1),ac=ce(Ct(),1);var EF=ce(Ct(),1),CF=ce(Ct(),1),Zse=ce(Ct(),1),$se=ce(Ct(),1),ene=ce(Ct(),1);var fF=ce(Ct(),1),mF=ce(Ct(),1),Kse=ce(Ct(),1),Xse=ce(Ct(),1),jse=ce(Ct(),1),pF=class extends jse.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Xse.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Kse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?mF.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,fF.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,fF.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?mF.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},xB=new pF;var IF=class extends ene.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>xB}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,$se.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Zse.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(xB.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?CF.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,EF.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)xB.internalBinaryWrite(e.scope[i],r.tag(2,EF.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?CF.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},fi=new IF;var BF=class extends ac.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>fi},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,oc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ic.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.metadata=fi.internalBinaryRead(e,e.uint32(),s,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Qs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.metadata&&fi.internalBinaryWrite(e.metadata,r.tag(1,It.WireType.LengthDelimited).fork(),s).join(),e.key!==""&&r.tag(2,It.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,It.WireType.LengthDelimited).string(e.version);let n=s.writeUnknownFields;return n!==!1&&(n==!0?Qs.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},rne=new BF,QF=class extends ac.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,oc.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ic.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?Qs.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.ok!==!1&&r.tag(1,It.WireType.Varint).bool(e.ok),e.signedUploadU Line truncated
See ${r.getDocumentationLink()}`;Qqe.push(s),Ui(s)}function cne(t=!0){if(Ane.length>0){Do(`This job uses deprecated functionality from the '${RB()}' action. Consult the ${t?"Job Summary":"logs"} for more details.`);for(let e of Ane)er(`DEPRECATION: ${e.message}. See ${e.getDocumentationLink()}`)}}var lne="GRADLE_ACTION_ID";var une=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return gne("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return kB("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return kB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return kB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return kB("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new xF}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",s=this.getTermsOfUseAgree()==="yes";return e||r&&s}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Do("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},xF=class{getUrl(){return DF("gradle-plugin-repository-url")}getUsername(){return DF("gradle-plugin-repository-username")}getPassword(){return DF("gradle-plugin-repository-password")}};function RB(){return process.env[lne]}function dne(t){yO(lne,t)}function DF(t){let e=dr(t);if(e.length>0)return e}function gne(t,e=!1){let r=dr(t);switch(r.toLowerCase().trim()){case"":return e;case"false":return!1;case"true":return!0}throw TypeError(`The value '${r} is not valid for '${t}. Valid values are: [true, false]`)}function kB(t){if(dr(t)!=="")return gne(t)}var RF=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function hne(t){if(t instanceof AggregateError){Ui("Multiple errors returned");for(let e of t.errors)wp(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&er(e.stack)}else t instanceof RF?(Ui(String(t)),t.stack&&er(t.stack)):(Ui(String(t)),t instanceof Error&&t.stack&&er(t.stack))}async function bqe(){try{RB()==="gradle/wrapper-validation-action"&&TF("The action `gradle/wrapper-validation-action` has been replaced by `gradle/actions/wrapper-validation`"),dne("gradle/actions/wrapper-validation");let t=await jz(fne.resolve("."),dr("allow-snapshots")==="true",dr("allow-checksums").split(","));if(t.isValid()){er(t.toDisplayString());let e=+dr("min-wrapper-count");if(t.valid.length<e){let r=t.valid.length===0?"Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?":`Wrapper validation failed: expected at least ${e} Gradle Wrapper jars, but found ${t.valid.length}.`;Ui(r)}}else Ui(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${t.toDisplayString()}`),t.invalid.length>0&&P4("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);nse(!1)}catch(t){cse(t)}}iYe();export{iYe as run};
${t.toDisplayString()}`),t.invalid.length>0&&bO("failed-wrapper",`${t.invalid.map(e=>e.path).join("|")}`);cne(!1)}catch(t){hne(t)}}bqe();export{bqe as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
+1 -1
View File
@@ -921,7 +921,7 @@ Here's a minimal example:
run: ./gradlew build
```
This configuration will automatically apply `v4.4.2` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This configuration will automatically apply `v4.5.0` of the [Develocity Gradle plugin](https://docs.gradle.com/develocity/gradle-plugin/), and publish build scans to https://develocity.your-server.com.
This example assumes that the `develocity.your-server.com` server allows anonymous publishing of build scans.
In the likely scenario that your Develocity server requires authentication, you will also need to pass a valid [Develocity access key](https://docs.gradle.com/develocity/gradle-plugin/#via_environment_variable) taken from a secret:
-1
View File
@@ -1 +0,0 @@
v16
+1035 -319
View File
File diff suppressed because it is too large. Load diff
+11 -11
View File
@@ -36,7 +36,7 @@
},
"dependencies": {
"@actions/artifact": "6.2.1",
"@actions/cache": "6.0.1",
"@actions/cache": "6.2.0",
"@actions/core": "3.0.1",
"@actions/exec": "3.0.0",
"@actions/github": "9.1.1",
@@ -45,7 +45,7 @@
"@actions/tool-cache": "4.0.0",
"@octokit/webhooks-types": "7.6.1",
"cheerio": "1.2.0",
"semver": "7.8.3",
"semver": "7.8.5",
"string-argv": "0.3.2",
"unhomoglyph": "1.0.6",
"which": "7.0.0"
@@ -53,20 +53,20 @@
"devDependencies": {
"@jest/globals": "30.4.1",
"@types/jest": "30.0.0",
"@types/node": "25.9.2",
"@types/node": "24.13.3",
"@types/semver": "7.7.1",
"@types/unzipper": "0.10.11",
"@types/which": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.61.0",
"@typescript-eslint/eslint-plugin": "8.65.0",
"dedent": "1.7.2",
"esbuild": "0.28.0",
"eslint": "10.4.1",
"globals": "17.6.0",
"esbuild": "0.28.1",
"eslint": "10.8.0",
"globals": "17.8.0",
"jest": "30.4.2",
"nock": "15.0.0",
"nock": "14.0.17",
"npm-run-all": "4.1.5",
"prettier": "3.8.4",
"ts-jest": "29.4.11",
"typescript": "5.9.3"
"prettier": "3.9.6",
"ts-jest": "29.4.12",
"typescript": "6.0.3"
}
}
@@ -47,6 +47,7 @@ export async function run(): Promise<void> {
-Dorg.gradle.configureondemand=false
-Dorg.gradle.dependency.verification=off
-Dorg.gradle.unsafe.isolated-projects=false
-Dorg.gradle.isolated-projects=false
${taskList}
${additionalArgs}
`
@@ -1,6 +1,6 @@
import * as setupGradle from '../../setup-gradle'
import {CacheConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {forceExit} from '../../force-exit'
@@ -14,7 +14,7 @@ process.on('uncaughtException', e => handlePostActionError(e))
*/
export async function run(): Promise<void> {
try {
await setupGradle.complete(new CacheConfig(), new SummaryConfig())
await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())
} catch (error) {
handlePostActionError(error)
}
+2 -2
View File
@@ -1,7 +1,7 @@
import * as setupGradle from '../../setup-gradle'
import * as dependencyGraph from '../../dependency-graph'
import {CacheConfig, DependencyGraphConfig, SummaryConfig} from '../../configuration'
import {CacheConfig, DependencyGraphConfig, DevelocityConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {emitDeprecationWarnings, restoreDeprecationState} from '../../deprecation-collector'
import {forceExit} from '../../force-exit'
@@ -19,7 +19,7 @@ export async function run(): Promise<void> {
restoreDeprecationState()
emitDeprecationWarnings()
if (await setupGradle.complete(new CacheConfig(), new SummaryConfig())) {
if (await setupGradle.complete(new CacheConfig(), new DevelocityConfig(), new SummaryConfig())) {
// Only submit the dependency graphs once per job
await dependencyGraph.complete(new DependencyGraphConfig())
}
+22 -1
View File
@@ -80,7 +80,28 @@ export class BasicCacheService implements CacheService {
const cachePaths = getCachePaths(gradleUserHome)
try {
await cache.saveCache(cachePaths, primaryKey)
// A cacheId of -1 means the save failed: `saveCache` reports the underlying cause and returns
// normally, rather than throwing. Warn and continue: caching failures should not fail the build.
const cacheId = await cache.saveCache(cachePaths, primaryKey)
if (cacheId === -1) {
core.warning(
`Basic caching failed to save entry with key \`${primaryKey}\`. See preceding log output for the cause.`
)
return {
status: 'enabled',
entries: [
entryReport({
primaryKey,
restoredKey,
restoredOutcome: restoredKey
? '(Entry restored: exact match found)'
: '(Entry not restored: no match found)',
savedOutcome: '(Entry not saved: save failed)'
})
]
}
}
core.info(`Basic caching saved entry with key: ${primaryKey}`)
return {
status: 'enabled',
+12 -11
View File
@@ -8,24 +8,24 @@ export interface CacheOptions {
strictMatch: boolean
cleanup: string
encryptionKey?: string
develocityAccessToken?: string
develocityServerUrl?: string
includes: string[]
excludes: string[]
}
export type CacheStatus =
| 'enabled'
| 'read-only'
| 'write-only'
| 'disabled'
| 'disabled-existing-home'
| 'not-available'
'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available'
export type CacheCleanupStatus =
| 'enabled'
| 'disabled-param'
| 'disabled-failure'
| 'disabled-config-cache-hit'
| 'disabled-readonly'
'enabled' | 'disabled-param' | 'disabled-failure' | 'disabled-config-cache-hit' | 'disabled-readonly'
export type ProjectCacheStatus =
| 'not-enabled' // the hidden opt-in env var was not set (rendered as nothing)
| 'trial-expired' // past the hard trial expiry
| 'trial-not-licensed' // Develocity trial token missing or invalid
| 'no-encryption-key' // Cannot store due to missing encryption key
| 'enabled' // Trial in effect: will attempt to save project state
export interface CacheEntryReport {
entryName: string
@@ -47,6 +47,7 @@ export interface CacheEntryReport {
export interface CacheReport {
status: CacheStatus
cleanup?: CacheCleanupStatus
projectCache?: ProjectCacheStatus
entries: CacheEntryReport[]
}
+16 -2
View File
@@ -1,4 +1,4 @@
import {CacheCleanupStatus, CacheEntryReport, CacheReport, CacheStatus} from './cache-service'
import {CacheCleanupStatus, CacheEntryReport, CacheReport, CacheStatus, ProjectCacheStatus} from './cache-service'
const DOCS = 'https://github.com/gradle/actions/blob/main/docs/setup-gradle.md'
const DISTRIBUTION = 'https://github.com/gradle/actions/blob/main/DISTRIBUTION.md'
@@ -28,6 +28,14 @@ const CLEANUP_COPY: Record<CacheCleanupStatus, string> = {
'disabled-readonly': `[Cache cleanup](${DOCS}#configuring-cache-cleanup) is always disabled when the cache is read-only.`
}
const PROJECT_CACHE_COPY: Record<ProjectCacheStatus, string> = {
'not-enabled': ``,
'trial-expired': `Project state (build-logic and configuration cache) was not cached - the Develocity caching trial has expired.`,
'trial-not-licensed': `Project state (build-logic and configuration cache) was not cached - a develocity-access-key and develocity-server-url is required.`,
'no-encryption-key': `Project state (build-logic and configuration cache) was not cached - a [cache-encryption-key](${DOCS}#cache-encryption-key) is required.`,
enabled: `Caching of project state (build-logic and configuration cache) was enabled.`
}
/**
* Renders a cache report into the unified Job Summary markdown, with a consistent
* skeleton across every variant: a section heading, a status line, an integrated
@@ -69,6 +77,11 @@ function renderCleanupLine(cleanup?: CacheCleanupStatus): string | undefined {
return cleanup ? CLEANUP_COPY[cleanup] : undefined
}
function renderProjectCacheLine(projectCache?: ProjectCacheStatus): string | undefined {
// PROJECT_CACHE_COPY['not-enabled'] is '', which the .filter(Boolean) at the call site drops.
return projectCache ? PROJECT_CACHE_COPY[projectCache] : undefined
}
function renderProviderNote(providerNote?: ProviderNote): string | undefined {
if (!providerNote) {
return undefined
@@ -88,9 +101,10 @@ function renderDetails(report: CacheReport): string {
: `Entries: ${restored} restored, ${saved} saved - Expand for more details`
const cleanup = report.status === 'enabled' ? renderCleanupLine(report.cleanup) : undefined
const projectCache = renderProjectCacheLine(report.projectCache)
const table = renderEntryTable(report.entries)
const pre = `<pre>\n${renderEntryDetails(report.entries)}</pre>`
const body = [STATUS_COPY[report.status], cleanup, table, pre].filter(Boolean).join('\n\n')
const body = [STATUS_COPY[report.status], cleanup, projectCache, table, pre].filter(Boolean).join('\n\n')
return `<details>
<summary>${summary}</summary>
+2 -9
View File
@@ -1,8 +1,7 @@
import * as core from '@actions/core'
import {DevelocityConfig} from '../configuration'
import {setupToken} from './short-lived-token'
export async function setup(config: DevelocityConfig): Promise<void> {
export function setup(config: DevelocityConfig): void {
maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle')
maybeExportVariable('DEVELOCITY_INJECTION_CUSTOM_VALUE', 'gradle-actions')
@@ -34,17 +33,11 @@ export async function setup(config: DevelocityConfig): Promise<void> {
// except if they are defined in the configuration
if (config.getBuildScanPublishEnabled()) {
maybeExportVariable('DEVELOCITY_INJECTION_ENABLED', 'true')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.4.2')
maybeExportVariable('DEVELOCITY_INJECTION_DEVELOCITY_PLUGIN_VERSION', '4.5.0')
maybeExportVariable('DEVELOCITY_INJECTION_CCUD_PLUGIN_VERSION', '2.1')
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_URL', config.getTermsOfUseUrl())
maybeExportVariable('DEVELOCITY_INJECTION_TERMS_OF_USE_AGREE', config.getTermsOfUseAgree())
}
return setupToken(
config.getDevelocityAccessKey(),
config.getDevelocityAllowUntrustedServer(),
config.getDevelocityTokenExpiry()
)
}
function maybeExportVariable(variableName: string, value: unknown): void {
+51 -21
View File
@@ -3,28 +3,41 @@ import * as httpm from '@actions/http-client'
import {DevelocityConfig} from '../configuration'
import {recordDeprecation} from '../deprecation-collector'
export async function setupToken(
develocityAccessKey: string,
develocityAllowUntrustedServer: boolean | undefined,
develocityTokenExpiry: string
): Promise<void> {
if (develocityAccessKey) {
try {
core.debug('Fetching short-lived token...')
const tokens = await getToken(develocityAccessKey, develocityAllowUntrustedServer, develocityTokenExpiry)
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the access key env vars`)
const token = tokens.raw()
core.setSecret(token)
exportAccessKeyEnvVars(token)
} else {
handleMissingAccessToken()
}
} catch (e) {
handleMissingAccessToken()
core.warning(`Failed to fetch short-lived token, reason: ${e}`)
}
/**
* Exchange the configured Develocity access key(s) for short-lived tokens, export them as the access
* key env vars, and return the short-lived token matching the configured Develocity server URL (for
* use as the `develocityAccessToken` cache option). Returns `undefined` when there is no access key,
* token fetching fails, or no token matches the configured server.
*/
export async function setupToken(config: DevelocityConfig): Promise<string | undefined> {
const develocityAccessKey = config.getDevelocityAccessKey()
if (!develocityAccessKey) {
return undefined
}
try {
core.debug('Fetching short-lived token...')
const tokens = await getToken(
develocityAccessKey,
config.getDevelocityAllowUntrustedServer(),
config.getDevelocityTokenExpiry()
)
if (tokens != null && !tokens.isEmpty()) {
core.debug(`Got token(s), setting the access key env vars`)
const token = tokens.raw()
core.setSecret(token)
exportAccessKeyEnvVars(token)
for (const k of tokens.keys) {
core.setSecret(k.key)
}
const serverUrl = config.getDevelocityUrl()
return serverUrl ? resolveTokenForServer(tokens, serverUrl) : undefined
}
handleMissingAccessToken()
} catch (e) {
handleMissingAccessToken()
core.warning(`Failed to fetch short-lived token, reason: ${e}`)
}
return undefined
}
function exportAccessKeyEnvVars(value: string): void {
@@ -174,3 +187,20 @@ export class DevelocityAccessCredentials {
return this.accessKeyRegexp.test(allKeys)
}
}
/**
* Resolve the token whose hostname matches a given Develocity server URL. Returns `undefined`
* (fail-closed) when the server URL is empty or no token matches the server's host.
*/
export function resolveTokenForServer(tokens: DevelocityAccessCredentials, serverUrl: string): string | undefined {
if (!serverUrl) {
return undefined
}
let host: string
try {
host = new URL(serverUrl).hostname
} catch {
host = serverUrl // tolerate a bare hostname (no scheme)
}
return tokens.keys.find(k => k.hostname === host)?.key
}
+8 -8
View File
@@ -13,6 +13,8 @@ export async function generateJobSummary(
providerNote: ProviderNote | undefined,
config: SummaryConfig
): Promise<void> {
core.startGroup('Generating Job Summary')
const errors = renderErrors()
if (errors) {
core.summary.addRaw(errors)
@@ -23,19 +25,17 @@ export async function generateJobSummary(
const summaryTable = renderSummaryTable(buildResults)
const cachingReport = renderCachingReport(cacheReport, providerNote)
const hasFailure = anyFailed(buildResults)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.info('Generating Job Summary')
core.info(summaryTable)
core.info('============================')
core.info(cachingReport)
if (config.shouldGenerateJobSummary(hasFailure)) {
core.summary.addRaw(summaryTable)
core.summary.addRaw(cachingReport)
await core.summary.write()
} else {
core.info('============================')
core.info(summaryTable)
core.info('============================')
core.info(cachingReport)
core.info('============================')
}
core.endGroup()
if (config.canAddPRComment()) {
await minimizeObsoletePRComments()
@@ -6,7 +6,7 @@ buildscript {
def pluginRepositoryUrl = getInputParam('gradle.plugin-repository.url') ?: 'https://plugins.gradle.org/m2'
def pluginRepositoryUsername = getInputParam('gradle.plugin-repository.username')
def pluginRepositoryPassword = getInputParam('gradle.plugin-repository.password')
def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.4.1'
def dependencyGraphPluginVersion = getInputParam('dependency-graph-plugin.version') ?: '1.4.2'
logger.lifecycle("Resolving dependency graph plugin ${dependencyGraphPluginVersion} from plugin repository: ${pluginRepositoryUrl}")
repositories {
+30 -5
View File
@@ -5,6 +5,7 @@ import * as path from 'path'
import * as os from 'os'
import * as jobSummary from './job-summary'
import * as buildScan from './develocity/build-scan'
import {setupToken} from './develocity/short-lived-token'
import {loadBuildResults, markBuildResultsProcessed} from './build-results'
import {getCacheService, getProviderNote} from './cache-service-loader'
@@ -21,6 +22,8 @@ import {initializeGradleUserHome} from './gradle-user-home'
const GRADLE_SETUP_VAR = 'GRADLE_BUILD_ACTION_SETUP_COMPLETED'
const GRADLE_USER_HOME = 'GRADLE_USER_HOME'
// Short-lived Develocity token for the configured server, resolved during setup and reused on save.
const DEVELOCITY_CACHE_TOKEN = 'DEVELOCITY_CACHE_TOKEN'
export async function setup(
cacheConfig: CacheConfig,
@@ -44,17 +47,27 @@ export async function setup(
initializeGradleUserHome(userHome, gradleUserHome, cacheConfig.getCacheEncryptionKey())
// Exchange the long-lived access key(s) for short-lived tokens, resolving the token for the
// configured Develocity server and retaining it for the post-action (save) step.
const develocityServerUrl = develocityConfig.getDevelocityUrl() || undefined
const cacheToken = await setupToken(develocityConfig)
core.saveState(DEVELOCITY_CACHE_TOKEN, cacheToken ?? '')
const cacheService = await getCacheService(cacheConfig)
await cacheService.restore(gradleUserHome, cacheOptionsFrom(cacheConfig))
await cacheService.restore(gradleUserHome, cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken))
await wrapperValidator.validateWrappers(wrapperValidationConfig, getWorkspaceDirectory(), gradleUserHome)
await buildScan.setup(develocityConfig)
buildScan.setup(develocityConfig)
return true
}
export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryConfig): Promise<boolean> {
export async function complete(
cacheConfig: CacheConfig,
develocityConfig: DevelocityConfig,
summaryConfig: SummaryConfig
): Promise<boolean> {
if (!core.getState(GRADLE_SETUP_VAR)) {
core.info('Gradle setup post-action only performed for first gradle/actions step in workflow.')
return false
@@ -64,8 +77,14 @@ export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryC
const buildResults = loadBuildResults()
const gradleUserHome = core.getState(GRADLE_USER_HOME)
const develocityServerUrl = develocityConfig.getDevelocityUrl() || undefined
const cacheToken = core.getState(DEVELOCITY_CACHE_TOKEN) || undefined
const cacheService = await getCacheService(cacheConfig)
const cacheReport = await cacheService.save(gradleUserHome, buildResults, cacheOptionsFrom(cacheConfig))
const cacheReport = await cacheService.save(
gradleUserHome,
buildResults,
cacheOptionsFrom(cacheConfig, develocityServerUrl, cacheToken)
)
await jobSummary.generateJobSummary(buildResults, cacheReport, getProviderNote(cacheConfig), summaryConfig)
markBuildResultsProcessed()
@@ -75,7 +94,11 @@ export async function complete(cacheConfig: CacheConfig, summaryConfig: SummaryC
return true
}
function cacheOptionsFrom(config: CacheConfig): CacheOptions {
function cacheOptionsFrom(
config: CacheConfig,
develocityServerUrl: string | undefined,
develocityAccessToken: string | undefined
): CacheOptions {
return {
disabled: config.isCacheDisabled(),
readOnly: config.isCacheReadOnly(),
@@ -84,6 +107,8 @@ function cacheOptionsFrom(config: CacheConfig): CacheOptions {
strictMatch: config.isCacheStrictMatch(),
cleanup: config.getCacheCleanupOption(),
encryptionKey: config.getCacheEncryptionKey() || undefined,
develocityAccessToken,
develocityServerUrl,
includes: config.getCacheIncludes(),
excludes: config.getCacheExcludes()
}
@@ -1,4 +1,40 @@
[
{
"version": "9.7.0-rc-2",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-rc-1",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-milestone-3",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.7.0-milestone-2",
"checksum": "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
},
{
"version": "9.6.1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.7.0-milestone-1",
"checksum": "8a23bf708fd4e02674e77fb34b0fa7c02f0d53c2ad377385ab507422313d26d1"
},
{
"version": "9.6.0-rc-3",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-rc-2",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
},
{
"version": "9.6.0-rc-1",
"checksum": "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+2 -2
View File
@@ -20,7 +20,7 @@
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
# gradlew start up script for POSIX generated by Gradle.
#
# Important for running:
#
@@ -29,7 +29,7 @@
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
# ksh gradlew
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
+2 -2
View File
@@ -19,7 +19,7 @@
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem gradlew startup script for Windows
@rem
@rem ##########################################################################
@@ -72,7 +72,7 @@ echo location of your Java installation. 1>&2
@rem Execute Gradle
@rem Execute gradlew
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
+1 -1
View File
@@ -1,5 +1,5 @@
plugins {
id "com.gradle.develocity" version "4.4.2"
id "com.gradle.develocity" version "4.5.0"
id "com.gradle.common-custom-user-data-gradle-plugin" version "2.4.0"
}
@@ -16,7 +16,7 @@ import java.nio.file.Files
import java.util.zip.GZIPOutputStream
class BaseInitScriptTest extends Specification {
static final String DEVELOCITY_PLUGIN_VERSION = '4.4.2'
static final String DEVELOCITY_PLUGIN_VERSION = '4.5.0'
static final String CCUD_PLUGIN_VERSION = '2.1'
static final TestGradleVersion GRADLE_4_X = new TestGradleVersion(GradleVersion.version('4.10.3'), 7, 10)
@@ -248,7 +248,7 @@ task expectFailure {
when:
settingsFile.text = """
plugins {
id 'com.gradle.develocity' version '4.4.2' apply(false)
id 'com.gradle.develocity' version '4.5.0' apply(false)
}
gradle.settingsEvaluated {
apply plugin: 'com.gradle.develocity'
+35
View File
@@ -79,6 +79,41 @@ describe('renderCachingReport', () => {
expect(md).toContain('<summary>Entries: 1 restored, 0 saved - Expand for more details</summary>')
})
it('renders the project-cache status line inside the details', () => {
const report: CacheReport = {
status: 'enabled',
cleanup: 'enabled',
projectCache: 'enabled',
entries: [entry()]
}
const md = renderCachingReport(report, ENHANCED)
const detailsBody = md.slice(md.indexOf('</summary>'))
expect(detailsBody).toContain(
'Caching of project state (build-logic and configuration cache) was enabled.'
)
})
it('renders nothing for the not-enabled project-cache status', () => {
const report: CacheReport = {
status: 'enabled',
cleanup: 'enabled',
projectCache: 'not-enabled',
entries: [entry()]
}
const md = renderCachingReport(report, ENHANCED)
expect(md).not.toContain('Project state')
expect(md).not.toContain('build-logic')
})
it('omits the project-cache line when the status is absent', () => {
const report: CacheReport = {status: 'enabled', cleanup: 'enabled', entries: [entry()]}
const md = renderCachingReport(report, ENHANCED)
expect(md).not.toContain('Project state')
})
it('renders a compact disabled report with no note and no details', () => {
const report: CacheReport = {status: 'disabled', entries: []}
const md = renderCachingReport(report, undefined)
+40 -1
View File
@@ -1,7 +1,7 @@
import nock from "nock";
import {describe, expect, it} from '@jest/globals'
import {DevelocityAccessCredentials, getToken} from "../../src/develocity/short-lived-token";
import {DevelocityAccessCredentials, getToken, resolveTokenForServer} from "../../src/develocity/short-lived-token";
describe('short lived tokens', () => {
it('parse valid access key should return an object', async () => {
@@ -134,3 +134,42 @@ describe('short lived tokens with retry', () => {
.toBeNull()
})
})
describe('resolveTokenForServer', () => {
const credentials = (...pairs: [string, string][]): DevelocityAccessCredentials =>
DevelocityAccessCredentials.of(pairs.map(([hostname, key]) => ({hostname, key})))
it('returns the token matching the server host from a full URL', () => {
const tokens = credentials(['ge.example.com', 'key1'], ['other', 'key2'])
expect(resolveTokenForServer(tokens, 'https://ge.example.com')).toBe('key1')
})
it('matches on hostname, ignoring scheme, port and path', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, 'https://ge.example.com:8443/path')).toBe('key1')
})
it('tolerates a bare hostname with no scheme', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, 'ge.example.com')).toBe('key1')
})
it('selects the matching token when multiple are present', () => {
const tokens = credentials(['dev', 'key1'], ['ge.example.com', 'key2'])
expect(resolveTokenForServer(tokens, 'https://ge.example.com')).toBe('key2')
})
it('returns undefined when no token matches the server host', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, 'https://other.example.com')).toBeUndefined()
})
it('returns undefined for an empty server URL', () => {
const tokens = credentials(['ge.example.com', 'key1'])
expect(resolveTokenForServer(tokens, '')).toBeUndefined()
})
it('returns undefined when there are no tokens', () => {
expect(resolveTokenForServer(credentials(), 'https://ge.example.com')).toBeUndefined()
})
})
+12
View File
@@ -37,6 +37,8 @@ export declare interface CacheOptions {
strictMatch: boolean;
cleanup: 'always' | 'on-success' | 'never';
encryptionKey?: string;
develocityAccessToken?: string;
develocityServerUrl?: string;
includes: string[];
excludes: string[];
}
@@ -45,12 +47,22 @@ export declare interface CacheOptions {
export declare interface CacheReport {
status: CacheStatus;
cleanup?: CacheCleanupStatus;
projectCache?: ProjectCacheStatus;
entries: CacheEntryReport[];
}
/** @public */
export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available';
/**
* Status of project-entry caching (build-logic artifacts + configuration-cache data) for a run.
* The first three are set on restore (always ungated); the rest are set on save and reflect the
* two-tier gate (opt-in + Develocity trial, then encryption key + Gradle version). Still beta.
*
* @public
*/
declare type ProjectCacheStatus = 'not-enabled' | 'trial-expired' | 'trial-not-licensed' | 'no-encryption-key' | 'enabled';
/** @public */
export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>;
+3 -2
View File
@@ -1,2 +1,3 @@
const a0_0x1bd7a2=a0_0x2cb3;(function(_0x56f501,_0x179f84){const _0x46a052=a0_0x2cb3,_0x2d7dec=_0x56f501();while(!![]){try{const _0x3d411c=parseInt(_0x46a052(0x1160))/0x1+parseInt(_0x46a052(0x50a))/0x2*(-parseInt(_0x46a052(0x12a8))/0x3)+parseInt(_0x46a052(0x160a))/0x4+parseInt(_0x46a052(0x833))/0x5+parseInt(_0x46a052(0x1207))/0x6+parseInt(_0x46a052(0xd9f))/0x7+-parseInt(_0x46a052(0x529))/0x8*(parseInt(_0x46a052(0x601))/0x9);if(_0x3d411c===_0x179f84)break;else _0x2d7dec['push'](_0x2d7dec['shift']());}catch(_0x2c27a4){_0x2d7dec['push'](_0x2d7dec['shift']());}}}(a0_0x5878,0xcea34));import*as a0_0x5527ee from'os';import a0_0x5b6b58,{EOL as a0_0x130149}from'os';import*as a0_0x79e382 from'crypto';import*as a0_0x2a5768 from'fs';import a0_0x22a574,{promises,writeFileSync,existsSync,readFileSync}from'fs';import*as a0_0x15ae89 from'path';import a0_0x195bed from'path';import*as a0_0x442a45 from'http';import a0_0x5711b4 from'http';import*as a0_0x48a11e from'https';import a0_0xcb849 from'https';import a0_0x2d67a2 from'net';import a0_0x1c135b from'tls';import*as a0_0x2ffe87 from'events';import a0_0x37cc87,{EventEmitter}from'events';import a0_0x9c5225,{ok}from'assert';import*as a0_0x34090f from'util';import a0_0x504494 from'util';import a0_0x22a2d4 from'node:assert';import a0_0xb73604 from'node:net';import a0_0x4e3b64 from'node:http';import a0_0x342e8b,{Transform,Readable as a0_0x30f2c6}from'node:stream';import a0_0x10b5be from'node:buffer';import a0_0x4bf44a,{inspect}from'node:util';import a0_0x58740a from'node:querystring';import a0_0x4166fc from'node:events';import a0_0x4fab14 from'node:diagnostics_channel';import a0_0x204cf0 from'node:tls';import a0_0x2aded1 from'node:zlib';import a0_0x20d593 from'node:perf_hooks';import a0_0x2f58a6 from'node:util/types';import a0_0x180a6b from'node:worker_threads';import a0_0x582c3b from'node:url';import a0_0x5c863e from'node:async_hooks';import a0_0x1a08a7 from'node:console';import a0_0x19b828 from'node:dns';import a0_0x5db89b,{StringDecoder}from'string_decoder';import*as a0_0x54345f from'child_process';import{setTimeout as a0_0x5a7f3d}from'timers';import*as a0_0x550281 from'stream';import{Readable}from'stream';import a0_0x4ee6b8,{URL as a0_0x3bf3a5}from'url';import*as a0_0x12b669 from'buffer';import{Buffer as a0_0x48fdd3}from'buffer';import a0_0x462391,{EOL as a0_0xc62905}from'node:os';import a0_0x3888c2 from'node:process';import a0_0x58cc3a from'node:https';import a0_0x189fcf from'tty';import{createHmac}from'node:crypto';import a0_0x5cef57 from'node:fs';function toCommandValue(_0x2a7a97){const _0x267496=a0_0x2cb3;if(_0x2a7a97===null||_0x2a7a97===undefined)return'';else{if(typeof _0x2a7a97===_0x267496(0x7b9)||_0x2a7a97 instanceof String)return _0x2a7a97;}return JSON[_0x267496(0x350)](_0x2a7a97);}function toCommandProperties(_0x73c5c7){const _0x307137=a0_0x2cb3;if(!Object[_0x307137(0xb4b)](_0x73c5c7)['length'])return{};return{'title':_0x73c5c7['title'],'file':_0x73c5c7[_0x307137(0x16b7)],'line':_0x73c5c7['startLine'],'endLine':_0x73c5c7[_0x307137(0x7a8)],'col':_0x73c5c7[_0x307137(0xa6d)],'endColumn':_0x73c5c7[_0x307137(0x1692)]};}function issueCommand(_0x287431,_0x475d0f,_0x355bba){const _0x2dbd9f=a0_0x2cb3,_0x5cfff7=new Command(_0x287431,_0x475d0f,_0x355bba);process[_0x2dbd9f(0x14d5)][_0x2dbd9f(0x10dc)](_0x5cfff7[_0x2dbd9f(0x105d)]()+a0_0x5527ee[_0x2dbd9f(0x8cf)]);}function issue(_0x335c6d,_0x1d7af7=''){issueCommand(_0x335c6d,{},_0x1d7af7);}const CMD_STRING='::';class Command{constructor(_0x97db11,_0x52dc8e,_0x45637d){const _0x2a8ba7=a0_0x2cb3;!_0x97db11&&(_0x97db11=_0x2a8ba7(0x4b8)),this[_0x2a8ba7(0x11d5)]=_0x97db11,this['properties']=_0x52dc8e,this['message']=_0x45637d;}[a0_0x1bd7a2(0x105d)](){const _0x4a14a6=a0_0x1bd7a2;let _0x438344=CMD_STRING+this['command'];if(this[_0x4a14a6(0x6e0)]&&Object[_0x4a14a6(0xb4b)](this[_0x4a14a6(0x6e0)])[_0x4a14a6(0x908)]>0x0){_0x438344+='\x20';let _0x223f9f=!![];for(const _0x59e430 in this[_0x4a14a6(0x6e0)]){if(this[_0x4a14a6(0x6e0)][_0x4a14a6(0xb75)](_0x59e430)){const _0x3775f8=this[_0x4a14a6(0x6e0)][_0x59e430];_0x3775f8&&(_0x223f9f?_0x223f9f=![]:_0x438344+=',',_0x438344+=_0x59e430+'='+escapeProperty(_0x3775f8));}}}return _0x438344+=''+CMD_STRING+escapeData(this['message']),_0x438344;}}function escapeData(_0x115656){const _0x28d52c=a0_0x1bd7a2;return toCommandValue(_0x115656)[_0x28d52c(0x1589)](/%/g,_0x28d52c(0x914))[_0x28d52c(0x1589)](/\r/g,_0x28d52c(0xda5))[_0x28d52c(0x1589)](/\n/g,'%0A');}function escapeProperty(_0x456485){const _0x3e8611=a0_0x1bd7a2;return toCommandValue(_0x456485)[_0x3e8611(0x1589)](/%/g,_0x3e8611(0x914))[_0x3e8611(0x1589)](/\r/g,_0x3e8611(0xda5))[_0x3e8611(0x1589)](/\n/g,_0x3e8611(0x1477))[_0x3e8611(0x1589)](/:/g,_0x3e8611(0x495))[_0x3e8611(0x1589)](/,/g,_0x3e8611(0x7d5));}function issueFileCommand(_0x56eed7,_0x98fe28){const _0x150e68=a0_0x1bd7a2,_0x35d866=process.env[`GITHUB_${_0x56eed7}`];if(!_0x35d866)throw new Error(_0x150e68(0xe2d)+_0x56eed7);if(!a0_0x2a5768[_0x150e68(0x1394)](_0x35d866))throw new Error('Missing\x20fiLine truncated
()=>new ArrayBuffer(0x0));}function isJSONResponse(_0x35a3ca){const _0x163dc6=a0_0x1bd7a2;return _0x35a3ca[_0x163dc6(0x48b)]===_0x163dc6(0x32e)||_0x35a3ca[_0x163dc6(0x48b)]===_0x163dc6(0x1050);}function toErrorMessage(_0x3d27f0){const _0x507ba4=a0_0x1bd7a2;if(typeof _0x3d27f0===_0x507ba4(0x7b9))return _0x3d27f0;if(_0x3d27f0 instanceof ArrayBuffer)return'Unknown\x20error';if(_0x507ba4(0xdba)in _0x3d27f0){const _0x2f2cb2='documentation_url'in _0x3d27f0?_0x507ba4(0x157e)+_0x3d27f0[_0x507ba4(0x660)]:'';return Array[_0x507ba4(0xc9f)](_0x3d27f0[_0x507ba4(0x245)])?_0x3d27f0[_0x507ba4(0xdba)]+':\x20'+_0x3d27f0[_0x507ba4(0x245)]['map'](_0x5f1ffb=>JSON[_0x507ba4(0x350)](_0x5f1ffb))[_0x507ba4(0xea3)](',\x20')+_0x2f2cb2:''+_0x3d27f0['message']+_0x2f2cb2;}return _0x507ba4(0x847)+JSON[_0x507ba4(0x350)](_0x3d27f0);}function withDefaults$1(_0x251c3f,_0x1a8760){const _0x5a2f0c=a0_0x1bd7a2,_0x48a963=_0x251c3f[_0x5a2f0c(0x15fb)](_0x1a8760),_0x4d9022=function(_0x54c8bc,_0x11f126){const _0x4fa6e2=_0x5a2f0c,_0x520895=_0x48a963['merge'](_0x54c8bc,_0x11f126);if(!_0x520895[_0x4fa6e2(0x12f8)]||!_0x520895[_0x4fa6e2(0x12f8)][_0x4fa6e2(0xca2)])return fetchWrapper(_0x48a963[_0x4fa6e2(0x624)](_0x520895));const _0x22a61c=(_0x1188b0,_0x51508c)=>{const _0x4806ec=_0x4fa6e2;return fetchWrapper(_0x48a963[_0x4806ec(0x624)](_0x48a963[_0x4806ec(0xf11)](_0x1188b0,_0x51508c)));};return Object[_0x4fa6e2(0x9fc)](_0x22a61c,{'endpoint':_0x48a963,'defaults':withDefaults$1[_0x4fa6e2(0xe78)](null,_0x48a963)}),_0x520895[_0x4fa6e2(0x12f8)][_0x4fa6e2(0xca2)](_0x22a61c,_0x520895);};return Object[_0x5a2f0c(0x9fc)](_0x4d9022,{'endpoint':_0x48a963,'defaults':withDefaults$1[_0x5a2f0c(0xe78)](null,_0x48a963)});}var request=withDefaults$1(endpoint,defaults_default),VERSION$3=a0_0x1bd7a2(0xac2);function _buildMessageForResponseErrors(_0x36bb84){const _0x210d01=a0_0x1bd7a2;return _0x210d01(0x4b9)+_0x36bb84[_0x210d01(0x245)]['map'](_0x43ca44=>_0x210d01(0x157e)+_0x43ca44['message'])[_0x210d01(0xea3)]('\x0a');}var GraphqlResponseError=class extends Error{constructor(_0x614a92,_0x5cca33,_0x58c692){const _0x2ca2f1=a0_0x1bd7a2;super(_buildMessageForResponseErrors(_0x58c692)),this['request']=_0x614a92,this['headers']=_0x5cca33,this[_0x2ca2f1(0x1657)]=_0x58c692,this[_0x2ca2f1(0x245)]=_0x58c692['errors'],this[_0x2ca2f1(0x6d5)]=_0x58c692[_0x2ca2f1(0x6d5)],Error[_0x2ca2f1(0x1641)]&&Error[_0x2ca2f1(0x1641)](this,this[_0x2ca2f1(0xe76)]);}[a0_0x1bd7a2(0x301)]='GraphqlResponseError';['errors'];[a0_0x1bd7a2(0x6d5)];},NON_VARIABLE_OPTIONS=[a0_0x1bd7a2(0x16e0),a0_0x1bd7a2(0x156f),'url',a0_0x1bd7a2(0x10cb),a0_0x1bd7a2(0x12f8),a0_0x1bd7a2(0xf8f),'mediaType',a0_0x1bd7a2(0x7e1)],FORBIDDEN_VARIABLE_OPTIONS=[a0_0x1bd7a2(0xf8f),'method','url'],GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(_0x4ba26c,_0x19d39e,_0x1f21c6){const _0x5b03d7=a0_0x1bd7a2;if(_0x1f21c6){if(typeof _0x19d39e===_0x5b03d7(0x7b9)&&_0x5b03d7(0xf8f)in _0x1f21c6)return Promise[_0x5b03d7(0xad4)](new Error('[@octokit/graphql]\x20\x22query\x22\x20cannot\x20be\x20used\x20as\x20variable\x20name'));for(const _0x4e0c95 in _0x1f21c6){if(!FORBIDDEN_VARIABLE_OPTIONS['includes'](_0x4e0c95))continue;return Promise[_0x5b03d7(0xad4)](new Error(_0x5b03d7(0x8cb)+_0x4e0c95+_0x5b03d7(0x18c)));}}const _0x48ca1e=typeof _0x19d39e===_0x5b03d7(0x7b9)?Object[_0x5b03d7(0x9fc)]({'query':_0x19d39e},_0x1f21c6):_0x19d39e,_0x33a317=Object[_0x5b03d7(0xb4b)](_0x48ca1e)[_0x5b03d7(0x1737)]((_0x17a6ce,_0x39dbba)=>{const _0x24de7d=_0x5b03d7;if(NON_VARIABLE_OPTIONS[_0x24de7d(0x112d)](_0x39dbba))return _0x17a6ce[_0x39dbba]=_0x48ca1e[_0x39dbba],_0x17a6ce;return!_0x17a6ce['variables']&&(_0x17a6ce[_0x24de7d(0x359)]={}),_0x17a6ce[_0x24de7d(0x359)][_0x39dbba]=_0x48ca1e[_0x39dbba],_0x17a6ce;},{}),_0x37b0f4=_0x48ca1e['baseUrl']||_0x4ba26c[_0x5b03d7(0xfb2)][_0x5b03d7(0x1600)]['baseUrl'];return GHES_V3_SUFFIX_REGEX[_0x5b03d7(0x733)](_0x37b0f4)&&(_0x33a317[_0x5b03d7(0x13f6)]=_0x37b0f4[_0x5b03d7(0x1589)](GHES_V3_SUFFIX_REGEX,_0x5b03d7(0xb1b))),_0x4ba26c(_0x33a317)[_0x5b03d7(0xb71)](_0x13c136=>{const _0x97057c=_0x5b03d7;if(_0x13c136['data'][_0x97057c(0x245)]){const _0x3ebccd={};for(const _0x53603c of Object[_0x97057c(0xb4b)](_0x13c136[_0x97057c(0x10cb)])){_0x3ebccd[_0x53603c]=_0x13c136[_0x97057c(0x10cb)][_0x53603c];}throw new GraphqlResponseError(_0x33a317,_0x3ebccd,_0x13c136[_0x97057c(0x6d5)]);}return _0x13c136['data'][_0x97057c(0x6d5)];});}function withDefaults(_0x55ca8a,_0x17263c){const _0x42f71e=a0_0x1bd7a2,_0x5886ba=_0x55ca8a[_0x42f71e(0x15fb)](_0x17263c),_0x1db650=(_0x18376f,_0x5e5c14)=>{return graphql(_0x5886ba,_0x18376f,_0x5e5c14);};return Object[_0x42f71e(0x9fc)](_0x1db650,{'defaults':withDefaults[_0x42f71e(0xe78)](null,_0x5886ba),'endpoint':_0x5886ba[_0x42f71e(0xfb2)]});}withDefaults(request,{'headers':{'user-agent':'octokit-graphql.js/'+VERSION$3+'\x20'+getUserAgent()},'method':a0_0x1bd7a2(0xe5e),'url':a0_0x1bd7a2(0x1001)});function withCustomRequest(_0x2b4fc3){const _0x368c82=a0_0x1bd7a2;return withDefaults(_0x2b4fc3,{'method':_0x368c82(0xe5e),'url':_0x3Line truncated
const a0_0x47fd01=a0_0x1dcd;(function(_0x4a03b9,_0x1aa485){const _0x5b37bd=a0_0x1dcd,_0x58f33c=_0x4a03b9();while(!![]){try{const _0x1ef3d=parseInt(_0x5b37bd(0xc98))/0x1+parseInt(_0x5b37bd(0x7d9))/0x2*(parseInt(_0x5b37bd(0x17de))/0x3)+parseInt(_0x5b37bd(0x1853))/0x4+-parseInt(_0x5b37bd(0x1ae2))/0x5*(parseInt(_0x5b37bd(0x18e))/0x6)+-parseInt(_0x5b37bd(0x194f))/0x7*(parseInt(_0x5b37bd(0x92f))/0x8)+-parseInt(_0x5b37bd(0x1492))/0x9+parseInt(_0x5b37bd(0x18d7))/0xa;if(_0x1ef3d===_0x1aa485)break;else _0x58f33c['push'](_0x58f33c['shift']());}catch(_0x55cf49){_0x58f33c['push'](_0x58f33c['shift']());}}}(a0_0x4b53,0x6ae38));import{createRequire as a0_0x4f0102}from'module';const require=a0_0x4f0102(import.meta.url);import*as a0_0x18ba62 from'os';import a0_0x3697b1,{EOL as a0_0x17ed13}from'os';import*as a0_0x297ae4 from'crypto';import*as a0_0x23ae8b from'fs';import a0_0x871f4f,{promises,writeFileSync,existsSync,readFileSync}from'fs';import*as a0_0x57b46c from'path';import a0_0x32ac22 from'path';import*as a0_0x4035da from'http';import a0_0x18bd57 from'http';import*as a0_0x302f3a from'https';import a0_0x4fe882 from'https';import a0_0x102601 from'net';import a0_0x31cfdb from'tls';import*as a0_0x358f51 from'events';import a0_0x3ecaa0,{EventEmitter}from'events';import a0_0x1d296b,{ok}from'assert';import*as a0_0x5fa1b5 from'util';import a0_0x10fe6e from'util';import a0_0x12bace from'node:assert';import a0_0x2a6118 from'node:net';import a0_0x404526 from'node:http';import a0_0x1e1e3d,{Transform,Readable as a0_0x1a9f01}from'node:stream';import a0_0x16c527 from'node:buffer';import a0_0x488dbd,{inspect}from'node:util';import a0_0x43c864 from'node:querystring';import a0_0x469e3d from'node:events';import a0_0x160a02 from'node:diagnostics_channel';import a0_0x1c99c1 from'node:tls';import a0_0x2f87e5 from'node:zlib';import a0_0x2e2f89 from'node:perf_hooks';import a0_0x14f758 from'node:util/types';import a0_0x1285eb from'node:worker_threads';import a0_0x95da6d,{fileURLToPath}from'node:url';import a0_0x32dea7 from'node:async_hooks';import a0_0x30c181 from'node:console';import a0_0x5a0806 from'node:dns';import a0_0x1317a6,{StringDecoder}from'string_decoder';import*as a0_0x35d930 from'child_process';import{setTimeout as a0_0x40f869}from'timers';import*as a0_0x30b462 from'stream';import{Readable}from'stream';import a0_0x3b2aec,{URL as a0_0x4f4094}from'url';import{createRequire}from'node:module';import{dirname as a0_0x5d1d4d}from'node:path';import*as a0_0x2b6dba from'buffer';import{Buffer as a0_0x2dc6ea}from'buffer';import a0_0x8ddcd6,{EOL as a0_0xd93434}from'node:os';import a0_0x4f6547 from'node:process';import a0_0x391968 from'node:https';import{createHmac}from'node:crypto';import a0_0xba9be6 from'tty';import a0_0x564093 from'node:fs';import*as a0_0x2e6892 from'zlib';function toCommandValue(_0x4b79bf){const _0x1848d4=a0_0x1dcd;if(_0x4b79bf===null||_0x4b79bf===undefined)return'';else{if(typeof _0x4b79bf===_0x1848d4(0x195a)||_0x4b79bf instanceof String)return _0x4b79bf;}return JSON['stringify'](_0x4b79bf);}function toCommandProperties(_0x60f858){const _0x1e6d17=a0_0x1dcd;if(!Object[_0x1e6d17(0x1721)](_0x60f858)['length'])return{};return{'title':_0x60f858[_0x1e6d17(0x8fb)],'file':_0x60f858['file'],'line':_0x60f858['startLine'],'endLine':_0x60f858[_0x1e6d17(0x7f7)],'col':_0x60f858[_0x1e6d17(0xd4f)],'endColumn':_0x60f858[_0x1e6d17(0x364)]};}function issueCommand(_0x1cab71,_0xb5db34,_0x33a878){const _0x2e56c9=a0_0x1dcd,_0x15c5db=new Command(_0x1cab71,_0xb5db34,_0x33a878);process[_0x2e56c9(0x17df)][_0x2e56c9(0x153f)](_0x15c5db[_0x2e56c9(0x113)]()+a0_0x18ba62[_0x2e56c9(0x19d2)]);}function issue(_0x30dc23,_0x1efaa0=''){issueCommand(_0x30dc23,{},_0x1efaa0);}const CMD_STRING='::';class Command{constructor(_0x29332d,_0x34d7a4,_0x4077f6){const _0x3f2406=a0_0x1dcd;!_0x29332d&&(_0x29332d=_0x3f2406(0xee)),this['command']=_0x29332d,this[_0x3f2406(0x10af)]=_0x34d7a4,this[_0x3f2406(0x307)]=_0x4077f6;}['toString'](){const _0xd2ae6=a0_0x1dcd;let _0x2943fe=CMD_STRING+this[_0xd2ae6(0xa72)];if(this['properties']&&Object['keys'](this[_0xd2ae6(0x10af)])[_0xd2ae6(0x6ec)]>0x0){_0x2943fe+='\x20';let _0x19c3ae=!![];for(const _0x193b4a in this[_0xd2ae6(0x10af)]){if(this[_0xd2ae6(0x10af)][_0xd2ae6(0xa63)](_0x193b4a)){const _0x413e78=this[_0xd2ae6(0x10af)][_0x193b4a];_0x413e78&&(_0x19c3ae?_0x19c3ae=![]:_0x2943fe+=',',_0x2943fe+=_0x193b4a+'='+escapeProperty(_0x413e78));}}}return _0x2943fe+=''+CMD_STRING+escapeData(this[_0xd2ae6(0x307)]),_0x2943fe;}}function escapeData(_0x32bc19){const _0x4550a0=a0_0x1dcd;return toCommandValue(_0x32bc19)['replace'](/%/g,'%25')[_0x4550a0(0x1a2c)](/\r/g,'%0D')['replace'](/\n/g,_0x4550a0(0x1a98));}function escapeProperty(_0xcfbf86){const _0x2f4947=a0_0x1dcd;return toCommandValue(_0xcfbf86)['replace'](/%/g,'%25')[_0x2f4947(0x1a2c)](/\r/g,'%0D')['replace'](/\n/g,_0x2f4947(0x1a98))['replace'](/:/g,_0x2f4947(0x1622))[_0x2f4947(0x1a2c)](/,/g,_0x2f4947(0x100));}function issueFileCommand(_0xd0b049,_0x4a54f4){const _0x34ffc1=a0_0x1dcd,_0x591b31=proceLine truncated
()=>new ArrayBuffer(0x0));}function isJSONResponse(_0x226641){const _0x220ce1=a0_0x47fd01;return _0x226641[_0x220ce1(0x72c)]===_0x220ce1(0x1798)||_0x226641[_0x220ce1(0x72c)]===_0x220ce1(0xf5e);}function toErrorMessage(_0x5393c8){const _0x59fe3d=a0_0x47fd01;if(typeof _0x5393c8===_0x59fe3d(0x195a))return _0x5393c8;if(_0x5393c8 instanceof ArrayBuffer)return _0x59fe3d(0x19f9);if(typeof _0x5393c8===_0x59fe3d(0x1c7)&&_0x5393c8!==null&&_0x59fe3d(0x307)in _0x5393c8){const _0x2f7c52=_0x5393c8,_0x58055a='documentation_url'in _0x2f7c52?'\x20-\x20'+_0x2f7c52[_0x59fe3d(0x81c)]:'';return Array[_0x59fe3d(0xc38)](_0x2f7c52[_0x59fe3d(0x21a)])?_0x2f7c52[_0x59fe3d(0x307)]+':\x20'+_0x2f7c52['errors']['map'](_0x20ff35=>JSON[_0x59fe3d(0x1584)](_0x20ff35))[_0x59fe3d(0x122d)](',\x20')+_0x58055a:''+_0x2f7c52[_0x59fe3d(0x307)]+_0x58055a;}return'Unknown\x20error:\x20'+JSON[_0x59fe3d(0x1584)](_0x5393c8);}function withDefaults$1(_0x24ec52,_0x4df226){const _0x327a69=a0_0x47fd01,_0x365111=_0x24ec52[_0x327a69(0x14b7)](_0x4df226),_0x20a9c4=function(_0x5cc1ff,_0x37d542){const _0xa1257=_0x327a69,_0x12338e=_0x365111['merge'](_0x5cc1ff,_0x37d542);if(!_0x12338e['request']||!_0x12338e[_0xa1257(0x21b)][_0xa1257(0x146)])return fetchWrapper(_0x365111['parse'](_0x12338e));const _0x57df34=(_0x5a0162,_0x51cd71)=>{const _0x3df79c=_0xa1257;return fetchWrapper(_0x365111['parse'](_0x365111[_0x3df79c(0x878)](_0x5a0162,_0x51cd71)));};return Object[_0xa1257(0xdda)](_0x57df34,{'endpoint':_0x365111,'defaults':withDefaults$1[_0xa1257(0x72b)](null,_0x365111)}),_0x12338e[_0xa1257(0x21b)][_0xa1257(0x146)](_0x57df34,_0x12338e);};return Object[_0x327a69(0xdda)](_0x20a9c4,{'endpoint':_0x365111,'defaults':withDefaults$1[_0x327a69(0x72b)](null,_0x365111)});}var request=withDefaults$1(endpoint,defaults_default),VERSION$3=a0_0x47fd01(0x1a93);function _buildMessageForResponseErrors(_0x5447cf){const _0x3376f1=a0_0x47fd01;return'Request\x20failed\x20due\x20to\x20following\x20response\x20errors:\x0a'+_0x5447cf[_0x3376f1(0x21a)][_0x3376f1(0x12a0)](_0x2b797c=>_0x3376f1(0x160d)+_0x2b797c[_0x3376f1(0x307)])[_0x3376f1(0x122d)]('\x0a');}var GraphqlResponseError=class extends Error{constructor(_0x2ecc6e,_0xa88e17,_0x5cb215){const _0x4fc796=a0_0x47fd01;super(_buildMessageForResponseErrors(_0x5cb215)),this[_0x4fc796(0x21b)]=_0x2ecc6e,this[_0x4fc796(0x67c)]=_0xa88e17,this[_0x4fc796(0x61b)]=_0x5cb215,this[_0x4fc796(0x21a)]=_0x5cb215[_0x4fc796(0x21a)],this[_0x4fc796(0x1058)]=_0x5cb215[_0x4fc796(0x1058)],Error[_0x4fc796(0x8ad)]&&Error[_0x4fc796(0x8ad)](this,this[_0x4fc796(0x1996)]);}['request'];[a0_0x47fd01(0x67c)];[a0_0x47fd01(0x61b)];[a0_0x47fd01(0xe6f)]=a0_0x47fd01(0x150a);[a0_0x47fd01(0x21a)];[a0_0x47fd01(0x1058)];},NON_VARIABLE_OPTIONS=['method','baseUrl','url',a0_0x47fd01(0x67c),a0_0x47fd01(0x21b),a0_0x47fd01(0xb2f),'mediaType',a0_0x47fd01(0x16c0)],FORBIDDEN_VARIABLE_OPTIONS=[a0_0x47fd01(0xb2f),'method','url'],GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(_0x284fa4,_0x1f5c86,_0x4eb39e){const _0x3fe0bb=a0_0x47fd01;if(_0x4eb39e){if(typeof _0x1f5c86===_0x3fe0bb(0x195a)&&_0x3fe0bb(0xb2f)in _0x4eb39e)return Promise['reject'](new Error(_0x3fe0bb(0x14f2)));for(const _0x51b893 in _0x4eb39e){if(!FORBIDDEN_VARIABLE_OPTIONS[_0x3fe0bb(0x6f1)](_0x51b893))continue;return Promise[_0x3fe0bb(0xfbb)](new Error(_0x3fe0bb(0x907)+_0x51b893+_0x3fe0bb(0x256)));}}const _0xd4247b=typeof _0x1f5c86===_0x3fe0bb(0x195a)?Object[_0x3fe0bb(0xdda)]({'query':_0x1f5c86},_0x4eb39e):_0x1f5c86,_0x184c33=Object[_0x3fe0bb(0x1721)](_0xd4247b)['reduce']((_0x3a3269,_0x4e1c15)=>{const _0x313df2=_0x3fe0bb;if(NON_VARIABLE_OPTIONS['includes'](_0x4e1c15))return _0x3a3269[_0x4e1c15]=_0xd4247b[_0x4e1c15],_0x3a3269;return!_0x3a3269[_0x313df2(0x831)]&&(_0x3a3269[_0x313df2(0x831)]={}),_0x3a3269[_0x313df2(0x831)][_0x4e1c15]=_0xd4247b[_0x4e1c15],_0x3a3269;},{}),_0x2cd797=_0xd4247b[_0x3fe0bb(0x1783)]||_0x284fa4[_0x3fe0bb(0x67d)][_0x3fe0bb(0x905)][_0x3fe0bb(0x1783)];return GHES_V3_SUFFIX_REGEX['test'](_0x2cd797)&&(_0x184c33[_0x3fe0bb(0x1802)]=_0x2cd797[_0x3fe0bb(0x1a2c)](GHES_V3_SUFFIX_REGEX,_0x3fe0bb(0xc75))),_0x284fa4(_0x184c33)[_0x3fe0bb(0x1ac0)](_0x29c752=>{const _0x51b2a1=_0x3fe0bb;if(_0x29c752[_0x51b2a1(0x1058)][_0x51b2a1(0x21a)]){const _0x51ad56={};for(const _0x206216 of Object[_0x51b2a1(0x1721)](_0x29c752[_0x51b2a1(0x67c)])){_0x51ad56[_0x206216]=_0x29c752[_0x51b2a1(0x67c)][_0x206216];}throw new GraphqlResponseError(_0x184c33,_0x51ad56,_0x29c752[_0x51b2a1(0x1058)]);}return _0x29c752[_0x51b2a1(0x1058)][_0x51b2a1(0x1058)];});}function withDefaults(_0x66f202,_0x41033f){const _0x5375ea=a0_0x47fd01,_0x10b078=_0x66f202[_0x5375ea(0x14b7)](_0x41033f),_0xa1ce97=(_0x2fb1f3,_0x3fece6)=>{return graphql(_0x10b078,_0x2fb1f3,_0x3fece6);};return Object[_0x5375ea(0xdda)](_0xa1ce97,{'defaults':withDefaults['bind'](null,_0x10b078),'endpoint':_0x10b078['endpoint']});}withDefaults(request,{'headers':{'user-agent':a0_0x47fd01(0x1652)+VERSION$3+'\x20'+getUserAgent()},'method':'POST','url':'/graphql'});function withCustomRequest(_0x36750d){constLine truncated
var b64url=a0_0x47fd01(0xa39),sep='\x5c.',jwtRE=new RegExp('^'+b64url+sep+b64url+sep+b64url+'$'),isJWT=jwtRE[a0_0x47fd01(0x1d1)][a0_0x47fd01(0x72b)](jwtRE);async function auth(_0xc70a95){const _0x15b3a7=a0_0x47fd01,_0x337e80=isJWT(_0xc70a95),_0x586e1c=_0xc70a95[_0x15b3a7(0x1977)](_0x15b3a7(0x424))||_0xc70a95[_0x15b3a7(0x1977)]('ghs_'),_0x1f5a92=_0xc70a95[_0x15b3a7(0x1977)](_0x15b3a7(0x1095)),_0x29ae47=_0x337e80?_0x15b3a7(0x17d8):_0x586e1c?_0x15b3a7(0x16c1):_0x1f5a92?'user-to-server':'oauth';return{'type':'token','token':_0xc70a95,'tokenType':_0x29ae47};}function withAuthorizationPrefix(_0x29bf1f){const _0x39e7c4=a0_0x47fd01;if(_0x29bf1f['split'](/\./)['length']===0x3)return _0x39e7c4(0x18c1)+_0x29bf1f;return _0x39e7c4(0xd7b)+_0x29bf1f;}async function hook(_0xa083c1,_0x3067f7,_0x2ebd40,_0x37279d){const _0x29f42a=a0_0x47fd01,_0x54bbd8=_0x3067f7[_0x29f42a(0x67d)][_0x29f42a(0x878)](_0x2ebd40,_0x37279d);return _0x54bbd8[_0x29f42a(0x67c)][_0x29f42a(0x15ae)]=withAuthorizationPrefix(_0xa083c1),_0x3067f7(_0x54bbd8);}var createTokenAuth=function createTokenAuth2(_0x557fe5){const _0xbea864=a0_0x47fd01;if(!_0x557fe5)throw new Error(_0xbea864(0x1236));if(typeof _0x557fe5!=='string')throw new Error('[@octokit/auth-token]\x20Token\x20passed\x20to\x20createTokenAuth\x20is\x20not\x20a\x20string');return _0x557fe5=_0x557fe5['replace'](/^(token|bearer) +/i,''),Object[_0xbea864(0xdda)](auth['bind'](null,_0x557fe5),{'hook':hook[_0xbea864(0x72b)](null,_0x557fe5)});};const VERSION$2=a0_0x47fd01(0x1959),noop=()=>{},consoleWarn=console['warn'][a0_0x47fd01(0x72b)](console),consoleError=console[a0_0x47fd01(0xb03)][a0_0x47fd01(0x72b)](console);function createLogger(_0x2e6a8d={}){const _0x32e6d1=a0_0x47fd01;return typeof _0x2e6a8d[_0x32e6d1(0x125d)]!=='function'&&(_0x2e6a8d['debug']=noop),typeof _0x2e6a8d[_0x32e6d1(0x1a79)]!==_0x32e6d1(0xccc)&&(_0x2e6a8d[_0x32e6d1(0x1a79)]=noop),typeof _0x2e6a8d[_0x32e6d1(0x13c5)]!==_0x32e6d1(0xccc)&&(_0x2e6a8d[_0x32e6d1(0x13c5)]=consoleWarn),typeof _0x2e6a8d[_0x32e6d1(0xb03)]!==_0x32e6d1(0xccc)&&(_0x2e6a8d[_0x32e6d1(0xb03)]=consoleError),_0x2e6a8d;}const userAgentTrail=a0_0x47fd01(0x15ff)+VERSION$2+'\x20'+getUserAgent();class Octokit{static ['VERSION']=VERSION$2;static[a0_0x47fd01(0x14b7)](_0x3fb592){const _0x396835=class extends this{constructor(..._0x44447a){const _0x3bc1b5=a0_0x1dcd,_0x3860cb=_0x44447a[0x0]||{};if(typeof _0x3fb592===_0x3bc1b5(0xccc)){super(_0x3fb592(_0x3860cb));return;}super(Object[_0x3bc1b5(0xdda)]({},_0x3fb592,_0x3860cb,_0x3860cb[_0x3bc1b5(0x75a)]&&_0x3fb592['userAgent']?{'userAgent':_0x3860cb['userAgent']+'\x20'+_0x3fb592[_0x3bc1b5(0x75a)]}:null));}};return _0x396835;}static ['plugins']=[];static[a0_0x47fd01(0xa08)](..._0x3fc1f8){const _0x59a518=a0_0x47fd01,_0xf4e3c4=this[_0x59a518(0x67e)],_0x4bec75=class extends this{static [_0x59a518(0x67e)]=_0xf4e3c4['concat'](_0x3fc1f8[_0x59a518(0x1fd)](plugin=>!_0xf4e3c4[_0x59a518(0x6f1)](plugin)));};return _0x4bec75;}constructor(_0x13d4fb={}){const _0x178c0b=a0_0x47fd01,_0x12fb8e=new Hook[(_0x178c0b(0x94))](),_0x540b3c={'baseUrl':request['endpoint'][_0x178c0b(0x905)][_0x178c0b(0x1783)],'headers':{},'request':Object[_0x178c0b(0xdda)]({},_0x13d4fb['request'],{'hook':_0x12fb8e['bind'](null,_0x178c0b(0x21b))}),'mediaType':{'previews':[],'format':''}};_0x540b3c['headers'][_0x178c0b(0x129c)]=_0x13d4fb[_0x178c0b(0x75a)]?_0x13d4fb[_0x178c0b(0x75a)]+'\x20'+userAgentTrail:userAgentTrail;_0x13d4fb[_0x178c0b(0x1783)]&&(_0x540b3c[_0x178c0b(0x1783)]=_0x13d4fb[_0x178c0b(0x1783)]);_0x13d4fb['previews']&&(_0x540b3c[_0x178c0b(0x13f7)][_0x178c0b(0xdce)]=_0x13d4fb[_0x178c0b(0xdce)]);_0x13d4fb[_0x178c0b(0x1a9d)]&&(_0x540b3c[_0x178c0b(0x67c)][_0x178c0b(0xa5a)]=_0x13d4fb['timeZone']);this[_0x178c0b(0x21b)]=request[_0x178c0b(0x14b7)](_0x540b3c),this[_0x178c0b(0x1357)]=withCustomRequest(this[_0x178c0b(0x21b)])[_0x178c0b(0x14b7)](_0x540b3c),this['log']=createLogger(_0x13d4fb[_0x178c0b(0xff3)]),this[_0x178c0b(0x146)]=_0x12fb8e;if(!_0x13d4fb[_0x178c0b(0x6d4)]){if(!_0x13d4fb[_0x178c0b(0xca7)])this[_0x178c0b(0xca7)]=async()=>({'type':_0x178c0b(0xd9e)});else{const _0x542eae=createTokenAuth(_0x13d4fb[_0x178c0b(0xca7)]);_0x12fb8e[_0x178c0b(0x39a)](_0x178c0b(0x21b),_0x542eae['hook']),this[_0x178c0b(0xca7)]=_0x542eae;}}else{const {authStrategy:_0x56dd7e,..._0x1ca146}=_0x13d4fb,_0x277e7e=_0x56dd7e(Object[_0x178c0b(0xdda)]({'request':this[_0x178c0b(0x21b)],'log':this[_0x178c0b(0xff3)],'octokit':this,'octokitOptions':_0x1ca146},_0x13d4fb['auth']));_0x12fb8e[_0x178c0b(0x39a)]('request',_0x277e7e[_0x178c0b(0x146)]),this[_0x178c0b(0xca7)]=_0x277e7e;}const _0x11f32b=this[_0x178c0b(0x1996)];for(let _0x3d017a=0x0;_0x3d017a<_0x11f32b[_0x178c0b(0x67e)]['length'];++_0x3d017a){Object[_0x178c0b(0xdda)](this,_0x11f32b['plugins'][_0x3d017a](this,_0x13d4fb));}}[a0_0x47fd01(0x21b)];[a0_0x47fd01(0x1357)];['log'];[a0_0x47fd01(0x146)];[a0_0x47fd01(0xca7)];}const VERSION$1=a0_0x47fd01(0x258),Endpoints={'actions':{'addCustomLabelsToSelfHostedRunnerForOrg':[a0_0x47fd01(0x1528)],'addCustomLabelsToLine truncated
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gradle-actions-caching",
"version": "0.7.0",
"version": "1.0.0",
"type": "module",
"main": "./index.js",
"types": "./index.d.ts",
+1 -1
View File
@@ -5,7 +5,7 @@
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.58.8"
"packageVersion": "7.58.12"
}
]
}